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

Adding marker and layer #7

Draft
wants to merge 1 commit into
base: pirated_main
Choose a base branch
from
Draft

Conversation

TabeaW
Copy link
Collaborator

@TabeaW TabeaW commented Mar 24, 2023

Adding layers and adding markers is now possible via add_marker and add_layer.
Somehow there is a problem with the order, it matters if a layer or marker is shown.
See example below:

layers=vcat(layers,Leaflet.Layer.([GADM.get("DNK").geom[1]])
provider=Providers.OpenStreetMap()
m=Leaflet.Map(;provider,zoom=6,height=1200,center=[47.5,10.0])
Leaflet.add_marker(m, [47.5,10.0])
Leaflet.add_layer(m,layers)
Leaflet.run(m)

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

Successfully merging this pull request may close these issues.

1 participant