bozdoz / wp-plugin-leaflet-map

Add leaflet maps to Wordpress with shortcodes
https://wordpress.org/plugins/leaflet-map/
GNU General Public License v2.0
141 stars 72 forks source link

Add option to use CircleMarkers with GeoJSON #96

Closed sal0max closed 4 years ago

sal0max commented 4 years ago

This could be a solution for issue #79.

Basically, it adds a new option circleMarker to [leaflet-geojson]. If set, the pointToLayer-function is called, which vastly increases the performance with a lot of points as all those points get rendered on a single canvas. In the prior way, each regular marker represents a single DOM element.

Adding this function doesn't affect any old maps at all. Readme and examples page were extended to inform about this option.

bozdoz commented 4 years ago

Love it. Thanks!