Adding some padding on a Google Maps

Some days ago I was asked to make a google maps with a nice translucent bar on “position absolute”.

Everything worked fine until some of the map markers went under the box.

To fix this issue I had to use the Projection object to translate the vertical and horizontal box pixels into gmaps coordinates and then extend the map bounds.

Continue reading →