I want to use map.fitBounds
to fit points on a google map. It works good, as soon as I use a taler icon for my point. my icon is 95px tall.
you can see how it looks like if I have 2 points in the map:
What I need is to calculate a point that is (95 px translated to decimal coordinates) north from the actual center of the marker markerLatlng
, so that the whole icon is visible.
Any ideas on how to do this? Is there a better way?