• Hi!
    How can I pass a custom class to the popup. On the leaflet.js website I can see a “className” option, but is not available in your plugin.

    Thanks in advance!

    Great plugin BTW!!!

Viewing 1 replies (of 1 total)
  • Plugin Author bozdoz

    (@bozdoz)

    Popups are kind of difficult to work with. You might have to alter all of the short codes, or add a helper function to the main class: something like function alterPopup(jsPopUp). I think this kind of thing would be easier in JavaScript actually; I’m working on a better JavaScript API. Also check frequently asked questions for a method to adding your own javascript events, in the meantime: https://github.com/bozdoz/wp-plugin-leaflet-map#frequently-asked-questions

Viewing 1 replies (of 1 total)
  • The topic ‘Adding CSS class to a popup’ is closed to new replies.