KMZ File Issue

30 views
Skip to first unread message

weekend

unread,
Jul 14, 2011, 11:09:30 AM7/14/11
to Google Maps JavaScript API v3
Hey all-

So I can load my KMZ files into Google Maps no problem by searching
for it.

http://www.eggtv.tv/magic.kmz

but when I try to load it through my JS

<code>
var ctaLayer = new google.maps.KmlLayer('http://www.eggtv.tv/
magic.kmz');
ctaLayer.setMap(map);
</code>

It centers the map on the area of the KMZ, but it does not load the
data.


Any ideas?
Message has been deleted

Rossko

unread,
Jul 14, 2011, 3:35:09 PM7/14/11
to Google Maps JavaScript API v3
> So I can load my KMZ files into Google Maps no problem by searching
> for it.
>
> http://www.eggtv.tv/magic.kmz

I can't; maps.google.com says "file not found"

weekend

unread,
Jul 15, 2011, 3:51:08 PM7/15/11
to google-map...@googlegroups.com
I'm an idiot, I didn't fix it.

http://www.eggtv.tv/testcenter.kmz

Joseph Elfelt

unread,
Jul 16, 2011, 10:20:10 AM7/16/11
to Google Maps JavaScript API v3
Did you run your KML through a validator?
http://www.kmlvalidator.com/home.htm

Does your file exceed the size limits?
http://code.google.com/apis/kml/documentation/mapsSupport.html
Reply all
Reply to author
Forward
0 new messages