Turbo87 / leaflet-sidebar

A responsive sidebar for Leaflet maps
http://turbo87.github.io/leaflet-sidebar/examples/
MIT License
489 stars 158 forks source link

Sidebar out map div #67

Open valeriodeluca opened 5 years ago

valeriodeluca commented 5 years ago

Hi eb, Can I put the Sidebar out of th map div?

I tried, this is my webmap with sidebar inside the map div, everthong works:

www.mainjoin.eu/map/sidebar_in_map_div

And this is the webmap when I put the sidebar out the map div:

www.mainjoin.eu/map/sidebar_out_map_div

But here the point and polygon in map disappear.

My goal is confine the sidebar in a 50% left div: div id="sideleft" style="width:50%;float:left;"

and confine the map in a 50% right: div id="map" style="width:50%;float:right;"

Thanks for any tip Valerio

iladan0 commented 4 years ago

Hi eb, Can I put the Sidebar out of th map div?

I tried, this is my webmap with sidebar inside the map div, everthong works:

www.mainjoin.eu/map/sidebar_in_map_div

And this is the webmap when I put the sidebar out the map div:

www.mainjoin.eu/map/sidebar_out_map_div

But here the point and polygon in map disappear.

My goal is confine the sidebar in a 50% left div: div id="sideleft" style="width:50%;float:left;"

and confine the map in a 50% right: div id="map" style="width:50%;float:right;"

Thanks for any tip Valerio

hello @valeriodeluca , i have a question about your webmap which i found so brilliant , my question is how you made the content of the sidebar change dynamically when you click diffrent marker, i have been trying doing it but i can't figure out a way, thanks

ghost commented 4 years ago

Bonjour, je voudrais ajouter du contenu dynamique. pouvez vous nous aider ???

Merci d avance