API unable to load PNG image in KMZ file

185 views
Skip to first unread message

weekend

unread,
Aug 1, 2011, 9:40:05 AM8/1/11
to google-map...@googlegroups.com
Okay, I've tried a few different fixes and will outline them here.

File in question: http://www.vicinitynyc.com/maps/UnionSq.kmz

The file loads in GoogleMaps and Earth, and kml validator shows nothing of note.

One curious error was that when the API was trying to load the PNG it was calling www.vicinitynyc.com/mapsatt and trying to pass it the PNG file, but I've read that is a bug and it needs to be calling maps.google.com/mapsatt so I made a /mapsatt directory and placed a index.php file there that forwards the request. The error disappears, but still no image.

The website this is happening on is www.vicinitynyc.com in the small textfield I Loaded you can copy and paste the map file URL and hit Map File.

James McGill

unread,
Aug 1, 2011, 10:09:10 PM8/1/11
to google-map...@googlegroups.com
Hi,

Loading the PNG from www.vicinitynyc.com/mapsatt is a bug that we're working to fix. If you file a bug in the external issue tracker, we'll update it with progress.

In the meantime, it looks like your PHP script isn't forwarding the request as you describe:



Once the bug is fixed, I strongly recommend removing this forwarding logic as it may cause problems in the future if we change the URL format.

Regards,
James


--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-maps-js-api-v3/-/5fcf3EE3oCUJ.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.


weekend

unread,
Aug 2, 2011, 2:32:27 PM8/2/11
to google-map...@googlegroups.com
My PHP is pretty weak. Why would:

header(“Location: http://www.maps.google.com/mapsatt?$_SERVER[QUERY_STRING]“);


not work? It's the only line of index.php stored in /mapsatt


weekend

unread,
Aug 2, 2011, 3:20:13 PM8/2/11
to Google Maps JavaScript API v3
Okay. I have fixed my PHP, silly error. But now I get no GET error in
console, and the PNG image still does not load.

Any ideas?

On Aug 1, 10:09 pm, James McGill <jmcg...@google.com> wrote:
> Hi,
>
> Loading the PNG fromwww.vicinitynyc.com/mapsattis a bug that we're working
> to fix. If you file a bug in the external issue tracker, we'll update it
> with progress.
>
> In the meantime, it looks like your PHP script isn't forwarding the request
> as you describe:
>
> http://www.vicinitynyc.com/mapsatt?id=http://www.vicinitynyc.com/maps...
> returns
> a 404.
>
> http://maps.google.com/mapsatt?id=http://www.vicinitynyc.com/maps/Uni...
> returns
> the PNG file.
>
> Once the bug is fixed, I strongly recommend removing this forwarding logic
> as it may cause problems in the future if we change the URL format.
>
> Regards,
> James
>
> On Mon, Aug 1, 2011 at 11:40 PM, weekend <mehin...@gmail.com> wrote:
> > Okay, I've tried a few different fixes and will outline them here.
>
> > File in question:http://www.vicinitynyc.com/maps/UnionSq.kmz
>
> > The file loads in GoogleMaps and Earth, and kml validator shows nothing of
> > note.
>
> > One curious error was that when the API was trying to load the PNG it was
> > callingwww.vicinitynyc.com/mapsattand trying to pass it the PNG file,
> > but I've read that is a bug and it needs to be calling
> > maps.google.com/mapsatt so I made a /mapsatt directory and placed a
> > index.php file there that forwards the request. The error disappears, but
> > still no image.
>
> > The website this is happening on iswww.vicinitynyc.comin the small

weekend

unread,
Aug 2, 2011, 4:01:18 PM8/2/11
to google-map...@googlegroups.com
Fixed. Thanks all. Time for a PHP book.....

Rossko

unread,
Aug 2, 2011, 5:15:02 PM8/2/11
to Google Maps JavaScript API v3
> Okay. I have fixed my PHP, silly error. But now I get no GET error in
> console, and the PNG image still does not load.

Works in maps.google.com, sometimes it takes time for changes to get
through the caching.
Reply all
Reply to author
Forward
Message has been deleted
0 new messages