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://xxx/ArcGIS/rest/services/yourmapservice/MapServer/kml/mapImage.kmz"; geoXml = new GGeoxml(kmlUrl); map.addOverlay(geoXml);
var url = "http://XXXXX/ArcGIS/rest/services/MyService/MapServer/kml/mapImage.kmz"; var TSGTLayer = new google.maps.KmlLayer(url, {preserveViewport:false, map:map});
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://XXXXX/ArcGIS/rest/services/MyService/MapServer/kml/mapImage.kmz"; var TSGTLayer = new google.maps.KmlLayer(url, {preserveViewport:false, map:map});