I'd actually made something slightly different - an iterator that creates the InfoWindows and their anchor positions, and then an onClick for each marker that passes out the marker ID as an action to a Redux store, changing the relevant infoWindow's visibility.
Actually, there was one other thing - is there a list of event handlers for each component?
For example, I can set an onClick handler on Mapbox and that deals with any click events on the map itself - are there handlers for onLoad, onZoomChange, etc?
Great little wrapper for Google Maps - only problem I've run into is activating the InfoWindow on Marker click - am I missing something obvious here?
Thanks,
James
Hi James, here is an example of InteractiveMarker.
Amazing, thanks Gabriel :)
I'd actually made something slightly different - an iterator that creates the InfoWindows and their anchor positions, and then an onClick for each marker that passes out the marker ID as an action to a Redux store, changing the relevant infoWindow's visibility.
Really enjoying working with your library!
Actually, there was one other thing - is there a list of event handlers for each component?
For example, I can set an onClick handler on Mapbox and that deals with any click events on the map itself - are there handlers for onLoad, onZoomChange, etc?
Many thanks, James
See
PROPS & METHODS
section for each component in the documentation.Thanks :)