jekyll-leaflet icon indicating copy to clipboard operation
jekyll-leaflet copied to clipboard

how to change the icons ?

Open jphconstantin opened this issue 4 years ago • 3 comments

Hello, Could you explain how to change the icon marker and, according to the issue #7, how to change the image size by using divId.

Thank you,

jphconstantin avatar Aug 31 '20 21:08 jphconstantin

For your second question, I believe this is how you specify the divId:

{% leaflet_map { "zoom" : 9,
                 "divId" : "mydiv123" } %}

    {% leaflet_marker { "latitude" : 41.881832,
                        "longitude" : -87.623177,
                        "popupContent" : "Hello World from Chicago!" } %}

{% endleaflet_map %}

You would then specify the CSS for that particular id:

 #mydiv123 {
  height: 600px;
}

Let me know if that doesn't work. For your first question, I will have to look a bit deeper into specifying of customer marker images...

DavidJVitale avatar Sep 02 '20 16:09 DavidJVitale

Yesssss that works ! But it would be better to assign height in {% leaflet_map %} and other parameters ... ;-)

jphconstantin avatar Sep 02 '20 17:09 jphconstantin

I came across this issue while trying to find out how to set custom marker icons. Is this available nowadays?

sgofferj avatar Mar 17 '24 19:03 sgofferj