Hello,

I would like to display a map as background.

My idea is to use z-index for displaying content above the map and set position:absolute on

with top:0 and left:0.

The problem is that each time I set position:absolute the map disappears and let a blank place instead.

Can you help me ?

Thanks.

Comments

augustus.kling’s picture

Ensure width and height of the map is defined, too. If changing the position after map initialization, call updateSize on the map object in JavaScript afterwards.