patricksurry
patricksurry

Reputation: 5898

Can leaflet show dynamic arrows aimed at offscreen points of interest?

Using leaflet mobile maps, you can easily get "lost" if you zoom in too far or pan in the wrong direction, so I'd like to display some kind of dynamic hint arrows(?) around the edge of the map which point to those offscreen markers. Something like the illustration below which I stumbled on here while trying to find a solution.

a bit like this picture

Upvotes: 3

Views: 841

Answers (1)

ghybs
ghybs

Reputation: 53370

You would probably be interested in Leaflet EdgeMarker plugin (demo):

[…] allows you to indicate Markers, Circles and CircleMarkers that are outside of the current view by displaying [a chosen icon (like an arrow)] at the edges of the map.

demo screenshot

Upvotes: 3

Related Questions