I have a unique background with a Google Map. It loads perfectly in the right place when I open the page, but as I scroll down, it disappears from view. Is there a way to keep the Google map constantly in the background, even when scrolling?
This is my current CSS:
#map-canvas {
top:0;
height: 100vh;
position:absolute;
z-index:-10000;
margin: 0px;
margin-top: 0;
padding: 0px;
width: 100%
}
I've tried using position:fixed
and experimented with different DOM structures like having position:fixed
on #mapCanvScroller
, but so far nothing has worked:
<div id="mapCanvScroller">
<div id="map-canvas"></div>
</div>