Skip to content

SDaron/leaflet-custom-marker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Leaflet custom marker allow you to use custom path as markers on your maps. It's curently only working with Leaflet 0.8-dev and is not recommended in production.

Why?

To have the same styling rules than other vectors in leaflet, like CircleMarkers or polygon.

Usage

L.geoJson(someGeojsonFeature, {
    pointToLayer: function (feature, latlng) {
        return L.CustomMarker(latlng, geojsonMarkerOptions);
    }
}).addTo(map);

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published