I need to insert markers depending on the area the map is currently covering. So I need the bounds (north east: lat, lng and south west: lat, lng).
How can I get these values?
In case it is not possible, it would be necessary to be able to calculate based on the latitude and longitude of the location point, plus the zoom value, plus the width and height of the map … !! … a little complex!
When working with maps, bounds are one of the basic and necessary information.
I realized now that the user cannot move the map.
No matter how much I try to move my fingers, it always returns to its original location! … is it supposed to be like this?
I think this has to do with using a API for google maps vs an embedded map or a custom coded map insertion.
The api is complicated but this would be a good feature request. Are you familiar with how to do those?
Seems like it asks for a starting reference point. And it snaps back to that location. One way I worked around is to update the map location after each click. But that could be annoying.
I’m trying to do the same thing, show x markers depending on the zoon level (farther away, less markers). If only there was a block where you could get the current zoom level, it would be very easy, but you can only get latitude and longitude data.