Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to change the icons ? #8

Open
jphconstantin opened this issue Aug 31, 2020 · 3 comments
Open

how to change the icons ? #8

jphconstantin opened this issue Aug 31, 2020 · 3 comments

Comments

@jphconstantin
Copy link

jphconstantin commented Aug 31, 2020

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 jphconstantin changed the title how to cnage the icons ? how to change the icons ? Aug 31, 2020
@DavidJVitale
Copy link
Owner

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...

@jphconstantin
Copy link
Author

jphconstantin commented Sep 2, 2020

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

@sgofferj
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants