Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)
[resolved] Background colour and map widt (2 posts)

  1. beetee1
    Posted 3 years ago #

    What a fantastic plug-in! Well done!

    Firstly, I don't do code so please be gentle. I want to change the background colour behind the map (currently #333333). Do I do this through my wordpress css file, or does leaflet.css override my page template?

    Secondly, I want to make the map wider, so that it fills the screen or at least centres on the middle of the screen. How do I do this?

    Finally, intrying to find a solution to this problem (I've certainly been digging!) I found the following vulnerability in your code. I don't know if it helps, but you need to go to: http://1337day.com/exploits/18944

    I will vote :)


  2. RobertHarm
    Plugin Author

    Posted 3 years ago #

    Hi beetee1,

    thanks for your feedback :-)

    If you want to change the background behind the map (=background of your whole site), you have to change your templates css file. leaflet.css doesnt override this background.

    When creating a new marker or layer map, you can set the width and height. Set the width to 100% for example to fit the whole width of your content area.

    Concerning vulnerability: the plugin has been audited by an external company and the flaws you mentioned were discovered and fixed with v2.4. So Leaflet Maps Marker is now safe to use again :-)


Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic