<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: ArcGIS Server KML with Google Maps in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-kml-with-google-maps/m-p/244960#M22655</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a way to use the kml that is served from ArcGIS server in an app created with the Google Maps api?&amp;nbsp; When I try it with my service it never loads.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had used kml in Google Map Api with Google Earth plug. You can get the kmz for the mapserver through REST:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the part of code that my give me some clue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
kmlUrl="http://xxx/ArcGIS/rest/services/yourmapservice/MapServer/kml/mapImage.kmz";
geoXml = new GGeoxml(kmlUrl);
map.addOverlay(geoXml);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 11 Dec 2021 12:13:05 GMT</pubDate>
    <dc:creator>HemingZhu</dc:creator>
    <dc:date>2021-12-11T12:13:05Z</dc:date>
    <item>
      <title>ArcGIS Server KML with Google Maps</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-kml-with-google-maps/m-p/244959#M22654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is there a way to use the kml that is served from ArcGIS server in an app created with the Google Maps api?&amp;nbsp; When I try it with my service it never loads.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jul 2011 13:55:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-kml-with-google-maps/m-p/244959#M22654</guid>
      <dc:creator>BrianGustafson</dc:creator>
      <dc:date>2011-07-28T13:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server KML with Google Maps</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-kml-with-google-maps/m-p/244960#M22655</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a way to use the kml that is served from ArcGIS server in an app created with the Google Maps api?&amp;nbsp; When I try it with my service it never loads.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I had used kml in Google Map Api with Google Earth plug. You can get the kmz for the mapserver through REST:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is the part of code that my give me some clue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
kmlUrl="http://xxx/ArcGIS/rest/services/yourmapservice/MapServer/kml/mapImage.kmz";
geoXml = new GGeoxml(kmlUrl);
map.addOverlay(geoXml);
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:13:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-kml-with-google-maps/m-p/244960#M22655</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2021-12-11T12:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server KML with Google Maps</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-kml-with-google-maps/m-p/244961#M22656</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;My map shows up correctly but when I go to add in my kmz file nothing happens.&amp;nbsp; I have tested it with other kmz and kml files and it works sometimes.&amp;nbsp; when I try and open my kmz in Google Earth it works every time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var url = "http://XXXXX/ArcGIS/rest/services/MyService/MapServer/kml/mapImage.kmz";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var TSGTLayer = new google.maps.KmlLayer(url, {preserveViewport:false, map:map});&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:13:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-kml-with-google-maps/m-p/244961#M22656</guid>
      <dc:creator>BrianGustafson</dc:creator>
      <dc:date>2021-12-11T12:13:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Server KML with Google Maps</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-kml-with-google-maps/m-p/244962#M22657</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;My map shows up correctly but when I go to add in my kmz file nothing happens.&amp;nbsp; I have tested it with other kmz and kml files and it works sometimes.&amp;nbsp; when I try and open my kmz in Google Earth it works every time.&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;var url = "http://XXXXX/ArcGIS/rest/services/MyService/MapServer/kml/mapImage.kmz";&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; var TSGTLayer = new google.maps.KmlLayer(url, {preserveViewport:false, map:map});&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If your kmz works on google earth, I suggest that you add google earth plugin as a base layer and add kmz on it when you switch your base layer to google earth plug in. One approach i did is save kmz from the map service to a specific location (saying sub folder under your web application). I find it more stable. One down side is that it is a snapshot.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 12:13:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-server-kml-with-google-maps/m-p/244962#M22657</guid>
      <dc:creator>HemingZhu</dc:creator>
      <dc:date>2021-12-11T12:13:10Z</dc:date>
    </item>
  </channel>
</rss>

