Leaflet: map div's position gets changed to relative

Created on 3 Jun 2011  ·  4Comments  ·  Source: Leaflet/Leaflet

The api seems to change the map div's position to relative from what ever the user had set it to. I had position the map at a certain absolute position on my page, but the maps is created, the div's position is changed to relative which messes up the layout of the map on my page

Thank You,
Vish

bug

Most helpful comment

Had to use !important too.

All 4 comments

Did you find a solution to this?

This got fixed as above.
If it is broken again then please open a new issue and relate it to this. Thanks.

For the next one to reopen a new issue to follow up on this one, I had to use

#map {
    position: fixed !important;
}

which felt bad and ugly to fix a map to the background.

Had to use !important too.

Was this page helpful?
0 / 5 - 0 ratings