I have a KMZ file produced by ArcMap. Its 1.26 MB.
I have successfully loaded KML (not KMZ) files from a server with the
following:
var kmlLayer = new google.maps.KmlLayer("http://www.url.com/filename.kml",
{suppressInfoWindows: true});
kmlLayer.preserveViewport = true;
kmlLayer.setMap(map);
OK.
Is loading a KMZ file the same process? As in, do I just place the KMZ file
on the server and using the following:
var kmlLayer = new google.maps.KmlLayer("http://www.url.com/filename.KMZ",
{suppressInfoWindows: true});
kmlLayer.preserveViewport = true;
kmlLayer.setMap(map);
I haven't gotten this to work. Please explain to me what I need to do
different, or even better, show me an example of loading a KMZ file.
--
You received this message because you are subscribed to the Google Groups
"Google Maps JavaScript API v3" 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-js-api-v3?hl=en.