My map shows up correctly but when I go to add in my kmz file nothing happens. I have tested it with other kmz and kml files and it works sometimes. when I try and open my kmz in Google Earth it works every time.var url = "http://xyz/ArcGIS/rest/services/MyService/MapServer/kml/mapImage.kmz"; var TSGTLayer = new google.maps.KmlLayer(url, {preserveViewport:false, map:map});
var url = "http://xyz/ArcGIS/rest/services/MyService/MapServer/kml/mapImage.kmz"; var TSGTLayer = new google.maps.KmlLayer(url, {preserveViewport:false, map:map});
Is there a way to use the kml that is served from ArcGIS server in an app created with the Google Maps api? When I try it with my service it never loads.
kmlUrl="http://xyz/ArcGIS/rest/services/yourmapservice/MapServer/kml/mapImage.kmz"; geoXml = new GGeoxml(kmlUrl); map.addOverlay(geoXml);
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.