I'm using leaflet
and modalcss to display a modal within a map.
This worked like a charm with leaflet
v0.7.7. See this Plunker: click
--> Click the button under the zoom controls.
When I switch to leaflet
v1.2.0 the modal gets opened but behind the map. See this Plunker: click
Why is this happening?
Any idea on how to show the modal in front of the map like in the old version of leaflet
?
Thanks!
I'm using leaflet
and modalcss to display a modal within a map.
This worked like a charm with leaflet
v0.7.7. See this Plunker: click
--> Click the button under the zoom controls.
When I switch to leaflet
v1.2.0 the modal gets opened but behind the map. See this Plunker: click
Why is this happening?
Any idea on how to show the modal in front of the map like in the old version of leaflet
?
Thanks!
1 Answer
Reset to default 8Apply this CSS rules to map and model:
#map{ z-index:1; }
#modal{ z-index:2; }
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744988680a4604767.html
评论列表(0条)