<?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 Export map layer to KMZ and keep resolution Javascript API in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/export-map-layer-to-kmz-and-keep-resolution/m-p/122709#M771</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write an application that takes the current extent of my map and exports the map service to KMZ. I have achieved this functionality however, the KMZ layer LOOKS AWFUL. Its effectively a useless blob of pixels that looks nothing like my map service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve this, currently I am using:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;MAP SERVICE ROOT&amp;gt;/MapServer/export?bbox&amp;lt;EXTENT&amp;gt;&amp;amp;f=kmz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And just using JavaScript to open a window with this url and its downloads the kmz. The query string accepts a lot of other&amp;nbsp;arguments that I have been manipulating but nothing is seeming to produce a viable result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have any experience with this or thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Jul 2017 14:41:07 GMT</pubDate>
    <dc:creator>ConnorWilliams</dc:creator>
    <dc:date>2017-07-06T14:41:07Z</dc:date>
    <item>
      <title>Export map layer to KMZ and keep resolution Javascript API</title>
      <link>https://community.esri.com/t5/developers-questions/export-map-layer-to-kmz-and-keep-resolution/m-p/122709#M771</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to write an application that takes the current extent of my map and exports the map service to KMZ. I have achieved this functionality however, the KMZ layer LOOKS AWFUL. Its effectively a useless blob of pixels that looks nothing like my map service.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To achieve this, currently I am using:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2F" rel="nofollow" target="_blank"&gt;https://&lt;/A&gt;&lt;SPAN&gt;&amp;lt;MAP SERVICE ROOT&amp;gt;/MapServer/export?bbox&amp;lt;EXTENT&amp;gt;&amp;amp;f=kmz&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And just using JavaScript to open a window with this url and its downloads the kmz. The query string accepts a lot of other&amp;nbsp;arguments that I have been manipulating but nothing is seeming to produce a viable result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone have any experience with this or thoughts?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Jul 2017 14:41:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/export-map-layer-to-kmz-and-keep-resolution/m-p/122709#M771</guid>
      <dc:creator>ConnorWilliams</dc:creator>
      <dc:date>2017-07-06T14:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Export map layer to KMZ and keep resolution Javascript API</title>
      <link>https://community.esri.com/t5/developers-questions/export-map-layer-to-kmz-and-keep-resolution/m-p/122710#M772</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is the spatial reference properly defined for your bounding box? &amp;nbsp;And what other parameters are you modifying for the export? &amp;nbsp;Combinations of DPI and Map Scale can have unexpected effects on the resulting KML.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 10:17:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/export-map-layer-to-kmz-and-keep-resolution/m-p/122710#M772</guid>
      <dc:creator>FC_Basson</dc:creator>
      <dc:date>2017-07-10T10:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Export map layer to KMZ and keep resolution Javascript API</title>
      <link>https://community.esri.com/t5/developers-questions/export-map-layer-to-kmz-and-keep-resolution/m-p/122711#M773</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually solved this - there are two arguments that I was not specifying that control for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Image Size (size)&lt;/P&gt;&lt;P&gt;2) DPI (dpi)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for the export, I just ramped these up and got the quality I wanted.&lt;/P&gt;&lt;P&gt;This is what I added to my query string:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&amp;amp;size=3000,3000&amp;amp;dpi700"&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jul 2017 13:29:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/export-map-layer-to-kmz-and-keep-resolution/m-p/122711#M773</guid>
      <dc:creator>ConnorWilliams</dc:creator>
      <dc:date>2017-07-10T13:29:51Z</dc:date>
    </item>
  </channel>
</rss>

