wp-plugin-leaflet-map icon indicating copy to clipboard operation
wp-plugin-leaflet-map copied to clipboard

Do you regard the Leaflet.markercluster plugin as generic enough to be supported?

Open ptandler opened this issue 2 years ago • 4 comments

This marker cluster Leaflet plugin is quite nice if you have many markers close to each other or if you want to zoom out a lot. I started working on an PR and then read your Contributing guidelines that you only might consider plugins that are "completely simplistic and globally usable". I would regard the marker cluster plugin as quite "globally usable" and hopefully also "completely simplistic". What do you think?

I actually thought of adding a [leaflet-marker-cluster-group] shortcode to be able to define multiple groups that will get clustered. This way, only markers defined after this chortcode will go to a cluster group. This won't interfere with any existing functionality.

Or is there maybe an existing way I did miss so far how to use this plugin?

ptandler avatar Dec 18 '21 21:12 ptandler

Can definitely use whatever plugins you want. Details in the FAQ of this repo.

bozdoz avatar Dec 19 '21 05:12 bozdoz

Well, I meant, would the marker cluster plugin something you would consider to make sense to support directly in your plugin? Then I'd think to work on a PR to include this directly in the wp-plugin-leaflet-map. Otherwise, I'll implement it separately.

ptandler avatar Dec 19 '21 20:12 ptandler

You might want to have a look at PR #151 As this is my first time to write any WP plugin code, I'd appreciate your feedback. :smiley:

ptandler avatar Dec 21 '21 15:12 ptandler

See https://wordpress.org/plugins/extensions-leaflet-map/ Shortcode [cluster]

hupe13 avatar Jan 31 '22 12:01 hupe13