I have only been playing around with the Google Maps plugin but I would like to access the coordinates of the map when the user navigates around, so I can update markers for that particular boundary. I am pulling markers via a SQL query and need to pass the coordinates in.
I believe this is a “bounds_changed” event per the API but I don’t see an event listener for this
Is there a way to bind a search field that can be connected to something like Google locations API where users can search a location and then on click the map goes to that location?
Preferably this could work whether we use our own location data, google location API, or a combination (i’d like to mix in my use case)
Here’s how I got box coordinates as user changes drag with MapBox. Can also add for on zoom but I haven’t done it yet since you have to build your own “listener” like MapBox docs say
Unfortunately I haven’t encountered that issue before; my only thought is you may have something else somehow controlling the center value being set. Wish I could help more!