Yep, the URLs work fine if I hit them directly in my browser (FF
3.0.12, Win XP)
The weird thing is that I have an entry in my hosts file so that
http://localhost.google.com/ points to 127.0.0.1 (localhost.) If I hit
the page as
http://localhost.google.com/map everything works fine
without touching any code. If I hit the page as
http://localhost/map
(again, not changing any code or server settings), it doesn't work.
Here is a sample of what the CSS code looks like:
------
.destination-1 {list-style-image: url("
http://www.google.com/chart?
chst=d_map_pin_letter&chld=1|00CCFF|000000"); }
.destination-2 {list-style-image: url("
http://www.google.com/chart?
chst=d_map_pin_letter&chld=2|00CCFF|000000"); }
.destination-3 {list-style-image: url("
http://www.google.com/chart?
chst=d_map_pin_letter&chld=3|00CCFF|000000"); }
.destination-4 {list-style-image: url("
http://www.google.com/chart?
chst=d_map_pin_letter&chld=4|00CCFF|000000"); }
.destination-5 {list-style-image: url("
http://www.google.com/chart?
chst=d_map_pin_letter&chld=5|00CCFF|000000"); }
-----
And here is a sample of what the JS code looks like:
-----
//this is inside of an init() method...
var markers = [];
for (var i=0; i<mapData.length; i++) {
var item = mapData[i];
var lat = item["latitude"];
var lng = item["longitude"];
var opts = {"icon": "
http://www.google.com/chart?
chst=d_map_pin_letter&chld="+(i+1)+"|00CCFF|000000"};
markers.push(new Marker(new GLatLng(lat, lng), opts));
}
markerManager.addMarkers(markers, 0);
-----
Watching the requests, the JS code appears to be correct. It generates
URLs like:
http://www.google.com/chart?chst=d_map_pin_letter&chld=3|FFCCFF|000000.
Again, when I watch the requests coming from the page, i get 400
error, but when I hit the URL directly, it works perfectly.