K
K
keeiyo2016-04-06 10:27:07
JavaScript
keeiyo, 2016-04-06 10:27:07

How to designate the scope of the map?

There is a map, it is blocked by a third-party block. Is it possible to set a specific scope for a map? There is a certain set of markers on the map. When selected in the list, the marker is highlighted. If the marker is out of line of sight then the center of the map should change.
The scope of the map can be obtained using getBounds. How to get the coordinate to the right of the leftmost point by, say, 200 pixels?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
My joy, 2016-04-06
@keeiyo

You need to either experiment with the methods of converting coordinates in the XY container
Leaflet conversion methods
or this plugin Leaflet-active-area

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question