Skip to content

Pomax/Leaflet.EdgeMarker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Leaflet EdgeMarker

Works with Leaflet 0.7x and 1.0x

Leaflet EdgeMarker is a Leaflet plugin which allows you to indicate Markers, Circles and CircleMarkers that are outside of the current view by displaying CircleMarkers at the edges of the map.

Demo

Check out the demo

Usage

  • bower install Leaflet.EdgeMarker

or

  • Download the Leaflet.EdgeMarker.js

then

  • Include the file after you included leaflet.js
  • copy images/edge-arrow-marker.png to the leaflet image directory or specify your own marker icon (see demo).
  • Initialize the EdgeMarkers with var edgeMarkers = L.edgeMarker().addTo(map) after you initialized your map and Markers/Circles/CircleMarkers
  • To remove the EdgeMarkers, call edgeMarkers.destroy()

Or look at the source of example.html

About

A Leaflet Plugin to indicate GeoFeatures outside of the view

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 57.0%
  • HTML 43.0%