Hi,
I am building map with markers
62 GDownloadUrl("http://my_host/registry/geoxml/?continent=1", function
(data, responseCode) {
63 if(responseCode == 200) {
64 var xml = GXml.parse(data);
65 var objects = xml.documentElement.getElementsByTagName("object");
66 var objects_size = objects.length;
67 for (var i = 0; i < objects_size; i++) {
68 var lat = parseFloat(GXml.value(objects[i].childNodes[0]));
69 var lng = parseFloat(GXml.value(objects[i].childNodes[1]));
70 var ag = GXml.value(objects[i].childNodes[2]);
71 var latlng = new GLatLng(lat, lng);
72 var marker = createMarker([latlng, ag], i + 1);
73 map.addOverlay(marker);
74 }
When I load this page from the vhost (my_host_2) it says that
RESPONSE
XML Parsing Error: no element found
Location: data:application/xml;base64,
Line Number 1, Column 1:
When I load this page from original host all is fine.
Does it mean that Google.key defined in
<script type="text/javascript" src="http://maps.google.com/maps?
file=api&v=2&key=my_secret_key_for_my_host&sensor=false"/>
restrict only to load xml data from the registered host, or there is
any way to work around it?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---