In the Google Maps mashup I'm working on, the map is 100% wide and almost 100% high, and I have a horizontal transparent div that overlays the left side of the map using z-index and CSS.
When I dynamically add my markers, I start with an empty Bounds object and expand it one by one to contain new LatLngs. Sometimes, however, markers appear under my transparent div, which contains other elements.
Say my transparent div is 250 pixels wide.
What I would like to do is when my borders showing all the markers are set, I would like to extend them again to expand the viewing area of ββGoogle Maps so that when I fit into the frames these markers now appear at a distance less than 250 pixels from the left border, so they are not covered by a transparent div.
I tried playing with MapProjection.fromPointToLatLng and MapCanvasProjection.fromDivPointToLatLng , but could not achieve the predicted results.
Any tips or examples would be appreciated.
javascript google-maps google-maps-api-3
Vladimir Gurovich Jan 26 2018-11-11T00: 00Z
source share