bozdoz / wp-plugin-leaflet-map

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

Set Default Marker Icon in Admin; not per map #45

Open bozdoz opened 6 years ago

bozdoz commented 6 years ago

From WordPress Forum:

Thing is, Leaflet marker setup accepts 6 arguments for a marker icon:

‘iconUrl’, ‘shadowUrl’, ‘iconSize’, ‘iconAnchor’, ‘shadowSize’, and ‘shadowAnchor’

Maybe I could make a specialized popup/modal that is interactive and can help a user visualize the new marker, and set an anchor position. I believe shadowUrl is kind of non-essential. I’m just trying to think, if I do something like this, I want to do it right and not have to keep redoing it.

What do you think? An option to set iconUrl, with an interactive way to drag the marker to its anchor? Maybe a slider to change the size of the icon? Forget about the shadow? I’m not sure. I’ll at least add the idea to the list.

bozdoz commented 3 years ago

Related to #119