View Single Post
12/21/14, 10:18 AM   #5
SnowmanDK
 
SnowmanDK's Avatar
AddOn Author - Click to view addons
Join Date: Apr 2014
Posts: 161
Originally Posted by Garkin View Post
LibMapPins creates one filter per pinType (category). So if you don't want to create filters by yourself, just merge more pins to one pinType. If you want different textures for each pin of the same pinType, in layout use function which will return correct texture. I have done the same in LoreBooks.
Earlier I did something like this:
Lua Code:
  1. local TYPE = pinData[ACHDataIndex.TYPE]
  2.         if TYPE == 20 then
  3.             pinType = PINS_AYLEID
  4.         elseif TYPE == 21 then
  5.             pinType = PINS_WWVAMP
  6.         end
  7.         LMP:CreatePin(pinType, {OtherTypeName}, pinData[ACHDataIndex.X], pinData[ACHDataIndex.Y])
But that caused issues with things like zrMiniMap.

I'll snoop around in your code
  Reply With Quote