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

Incorrect marker option name for adding class to icon

Open mxgnr opened this issue 3 years ago • 1 comments

Hi there,

First of all, thank you for your work for this very useful plugin, it speeds up a lot leaflet integration :)

I may have found a bug in the marker shortcode attributes for adding a class to the image : it's actually set to iconClass in the plugin but leaflet does not add the new class, as the official documentation says to use className option instead (https://leafletjs.com/reference-1.7.1.html#icon-classname). I've tried by manually editing the marker shortcode class and it's working but only for image tags, not for svg only markers (it may need a fix, but since i'm using only images, it's not bothering me).

mxgnr avatar Mar 17 '21 16:03 mxgnr

There is a demo of this in the Shortcode helper, so I believe it is working correctly.

Let me know if I'm misunderstanding this.

Screen Shot 2021-06-24 at 10 55 18 PM

bozdoz avatar Jun 25 '21 01:06 bozdoz