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);
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.