Hello,
I'm displaying markers based on a mysql table in Google Map but I need
the
longitude/latitude values bigger than double. Therefore my lng/lat
fields in
the mysql table are datatype varchar(20). I first tried used double
but I always
lost one digit.
However, it seems like the API is converting the value back to a
double
which means the marker isn't placed exactly where I want it.
I double checked the xml file, the source code and the original kml
file (the marker is correct and accurate in Google Earth).
kml File:
<longitude>19.84341943710374</longitude>
<latitude>45.24724062874271</latitude>
xml:
<marker arID="1137" name="Ledena dvorana SPENS" address="Sutjeska, 2,
Novi Sad" lat="45.24724062874271" lng="19.84341943710374" type="yu"/>
html source:
map.setCenter(new GLatLng(45.24724062874271, 19.84341943710374), 17);
and
var point = new GLatLng(parseFloat(markers[i].getAttribute("lat")),
parseFloat(markers[i].getAttribute
("lng")));
(I also tried without the parseFloat)
But The marker in Google Map is simply showing up at
45.2472406287427/19.8434194371037 (the last digit is missing)
Is there a way to overcome this problem?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---