Hey Keith,

Any chance you've been able to look into this further?

Thanks,
-Jesse

On Jul 30, 10:50 am, Jesse Fulton <[email protected]> wrote:
> 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 
> thathttp://localhost.google.com/points to 127.0.0.1 (localhost.) If I hit
> the page ashttp://localhost.google.com/mapeverything works fine
> without touching any code. If I hit the page ashttp://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.
>
> On Jul 30, 10:33 am, KeithB <[email protected]> wrote:
>
> > Requesting Google Maps resources with your specific Google Maps API
> > key should have nothing to do with getting "400 Bad Reqeust" errors on
> > your Google Chart API calls. The Maps API validates your key before
> > returning its resources and, separately, the Chart API sends back its
> > response. Does your individual Chart API calls return valid images
> > when you put them in the address bar of a browser? I ask because in
> > the past I've had a few malformed Chart URLs that would work sometimes
> > and not work at other times (400 Bad Request errors). It seemed pretty
> > random, but it ended up being issues with my URL parameters. I'd
> > double check the syntax of each and every parameter, making sure you
> > haven't doubled up on anything (multiple CHM parameters, etc.).
>
> > Hopefully that will help. Good luck,
> > K
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Chart 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-chart-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to