The thing is, I can’t find a way to trigger hype functions when I click each marker, specifically, I can’t find a way to create an unique ID or a way to know which marker I’m clicking.
Is this possible with Mapbox, or even Google maps?
I come again in require your assistance with a new issue at hand:
Using your solution i managed to trigger functions using custom behaviors inside Hype:
The thing is, Im starting to get too many custom behaviors:
While this, at this moment is not a big problem, I may start to add some 10 to 20 new functions and this means 10 to 20 new custom behaviors, not sure if that could mean problems with hype performance, but I’m trying to avoid anything that could compromise stability.
Is there a way to trigger the hype functions directly, by matching the name of the function with the title of each marker?
I tried with hypeDocument.functions().marker.properties.title(hypeDocument, element, event);
And with var myfunction = marker.properties.title hypeDocument.functions().myfunction(hypeDocument, element, event);