hi,
im trying to save the ne,sw points into a db, problem is i get
different values on different browsers for the same zoom level , same
center and same map size!
using google maps api v2.
my setup is a winxp,wamp,php
facts i've found out:
1) same center point on all browser
checked by alert - ing it , came out the same on all
center point
lat: 40.6284127605594
lng: -73.92861127853391
2) the map sitts inside:
<div id="map" style="width: 500px; height: 300px"></div>
this would give me the same lng values BUT different lat values.
chrome:
sw
lat:40.479337
lng:-74.100723
ne:
lat:40.780541
lng:-73.756027
firefox
sw
lat:40.496048
lng:-74.100723
ne
lat:40.761301
lng:-73.756027
removing the style from the div, meaning:
<div id="map"></div>
would make both the lng and the lat to differ between the browsers.
3) the way i check for the ne,sw in via an overlay class which sends
the server the sw,ne point value via the following code:
Detail.prototype.loadBackground = function() {
var bounds = map.getBounds();
var southWest = bounds.getSouthWest();
var northEast = bounds.getNorthEast();
var swPixels = map.fromLatLngToDivPixel(southWest);
var nePixels = map.fromLatLngToDivPixel(northEast);
alert('ne=' + northEast.toUrlValue()
+ '&sw=' + southWest.toUrlValue());
etc..
as you can see i've also alert the values just to be sure.
appriciate the help, thanks alot!
--
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-maps-api?hl=en.