I am creating a custom indoor streetview of my university, so i have no LatLng values to add markers, is it possible to put an overlay on the map that will stay in one position on the image?
by this i mean if there is a div overlay ontop of a door, when moving the map the div overlay should move with the map and go off screen if necessary. (so basically a custom marker that does not need Latlng argument).
I've tried fiddling with the CSS position properties and have had no luck, is it possible to do?
You can use css transitions here's my [Image overlay][1]
[1]: http://codepen.io/dfrierson2/pen/NPeOoJ
.gallery figure {
display: inline-block;
width: 315px;
height: 268px;
margin: 0 5px 5px 5px;
position: relative;
}
.gallery figcaption {
position: absolute;
width: 290px;
height: 217px;
bottom: 32px;
left: 13px;
right: 0px;
top: 11px;
opacity: 0;
border: 1px solid #ddd;
}
.gallery figcaption:hover {
opacity: 1;
-webkit-transition: opacity .3s ease-in;
-moz-transition: opacity .3s ease-in;
-o-transition: opacity .3s ease-in;
}
<body>
<!--Image overlay starts here-->
<div class="gallery">
<h1>Image Overlay</h1>
<figure>
<a href="#"><img src="http://placehold.it/315x268"></a>
<figcaption><img src="http://placehold.it/290x217"/></figcaption>
</figure>
</div>
</body>