Google Maps API v3, Ground Overlay not positioning image tag correctly -


i experiencing strange positioning issue when placing overlay in home city (syracuse, ny). first test map:

http://hotsdg.com/~downtown/map.html

this map uses example code place image on newark. no problem here. image skewed , distorted of course, placement occurs expected.

the second map:

http://hotsdg.com/~downtown/map_two.html

this map uses example code coords adjusted place image on syracuse, ny. @ first glance overlay appears missing. however, upon inspection discovered element used overlay has it's top set 94px (at initial zoom), instead of 0px. adjusting manually brings image view.

any thoughts might happening here, or more importantly, why it's happening?

a google.maps.latlngbounds takes sw, ne latlngs constructor.

your working map (sw, ne):

        var imagebounds = new google.maps.latlngbounds(               new google.maps.latlng(40.716216, -74.213393),               new google.maps.latlng(40.765641, -74.139235)); 

the not working 1 (nw, se):

        var imagebounds = new google.maps.latlngbounds(                 new google.maps.latlng(43.054340, -76.159101),                 new google.maps.latlng(43.042504, -76.142601)); 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -