<?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 styled map image using REST APIs in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/export-styled-map-image-using-rest-apis/m-p/1493652#M4772</link>
    <description>&lt;P data-unlink="true"&gt;I created a style which uses the OSM v2 vector tile service as url (&lt;A href="https://basemaps-api.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer" target="_self"&gt;link&lt;/A&gt;).&lt;/P&gt;&lt;P data-unlink="true"&gt;I'm using ArcGIS in Unreal Engine and my goal is to export an image of a small region of the map to use it in a widget.&lt;/P&gt;&lt;P data-unlink="true"&gt;I've not seen any way to do so with a vector tile service unlike MapService which does have an export map option.&lt;/P&gt;&lt;P data-unlink="true"&gt;Right now i'm looking at export web map task (&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/export-web-map-task/" target="_self"&gt;link&lt;/A&gt;) which should support vector tile layers, but i've not been able to get it to work.&lt;/P&gt;&lt;P data-unlink="true"&gt;This is my request (using &lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute" target="_self"&gt;this page&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
   "mapOptions":{
      "extent":{
         "xmin":-74.2841,
         "ymin":40.5096,
         "xmax":-73.8068,
         "ymax":40.8947,
         "spatialReference":{
            "wkid":4326
         }
      },
      "spatialReference":{
         "wkid":4326
      }
   },
   "operationalLayers":[
      {
         "url":"https://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer"
      }
   ],
   "baseMap":[
      {
         "title":"VectorTileLayer as BaseMap",
         "baseMapLayers":[
            {
               "type":"VectorTileLayer",
               "layerType":"VectorTileLayer",
               "title":"World_Basemap",
               "styleUrl":"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/a4173e7071f7463594d2b3bc585cf978?type=style",
               "visibility":true,
               "opacity":1
            }
         ]
      }
   ],
   "exportOptions":{
      "dpi":300,
      "outputSize":[
         1000,
         1000
      ]
   },
   "layoutOptions":{
      
   },
   "reportOptions":{
      
   }
}&lt;/LI-CODE&gt;&lt;P&gt;Using a MapServer works, but again it's unstyled:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IvanCotti_0-1718627548780.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107168i08EE6A34A57D4C99/image-size/small?v=v2&amp;amp;px=200" role="button" title="IvanCotti_0-1718627548780.png" alt="IvanCotti_0-1718627548780.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to use the VectorTileServer instead, replacing it with:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"url": "https://basemaps-api.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;But that gives me an error instead. Adding the token to the url, or as an added parameter, did not help.&lt;/P&gt;&lt;P&gt;Omitting the operational layers completely led to a white image instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to export a styled image of a given map region?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
    <pubDate>Mon, 17 Jun 2024 12:35:12 GMT</pubDate>
    <dc:creator>IvanCotti</dc:creator>
    <dc:date>2024-06-17T12:35:12Z</dc:date>
    <item>
      <title>Export styled map image using REST APIs</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/export-styled-map-image-using-rest-apis/m-p/1493652#M4772</link>
      <description>&lt;P data-unlink="true"&gt;I created a style which uses the OSM v2 vector tile service as url (&lt;A href="https://basemaps-api.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer" target="_self"&gt;link&lt;/A&gt;).&lt;/P&gt;&lt;P data-unlink="true"&gt;I'm using ArcGIS in Unreal Engine and my goal is to export an image of a small region of the map to use it in a widget.&lt;/P&gt;&lt;P data-unlink="true"&gt;I've not seen any way to do so with a vector tile service unlike MapService which does have an export map option.&lt;/P&gt;&lt;P data-unlink="true"&gt;Right now i'm looking at export web map task (&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/export-web-map-task/" target="_self"&gt;link&lt;/A&gt;) which should support vector tile layers, but i've not been able to get it to work.&lt;/P&gt;&lt;P data-unlink="true"&gt;This is my request (using &lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute" target="_self"&gt;this page&lt;/A&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;{
   "mapOptions":{
      "extent":{
         "xmin":-74.2841,
         "ymin":40.5096,
         "xmax":-73.8068,
         "ymax":40.8947,
         "spatialReference":{
            "wkid":4326
         }
      },
      "spatialReference":{
         "wkid":4326
      }
   },
   "operationalLayers":[
      {
         "url":"https://services.arcgisonline.com/arcgis/rest/services/World_Street_Map/MapServer"
      }
   ],
   "baseMap":[
      {
         "title":"VectorTileLayer as BaseMap",
         "baseMapLayers":[
            {
               "type":"VectorTileLayer",
               "layerType":"VectorTileLayer",
               "title":"World_Basemap",
               "styleUrl":"https://basemaps-api.arcgis.com/arcgis/rest/services/styles/a4173e7071f7463594d2b3bc585cf978?type=style",
               "visibility":true,
               "opacity":1
            }
         ]
      }
   ],
   "exportOptions":{
      "dpi":300,
      "outputSize":[
         1000,
         1000
      ]
   },
   "layoutOptions":{
      
   },
   "reportOptions":{
      
   }
}&lt;/LI-CODE&gt;&lt;P&gt;Using a MapServer works, but again it's unstyled:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="IvanCotti_0-1718627548780.png" style="width: 200px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/107168i08EE6A34A57D4C99/image-size/small?v=v2&amp;amp;px=200" role="button" title="IvanCotti_0-1718627548780.png" alt="IvanCotti_0-1718627548780.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried to use the VectorTileServer instead, replacing it with:&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;"url": "https://basemaps-api.arcgis.com/arcgis/rest/services/OpenStreetMap_v2/VectorTileServer"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;But that gives me an error instead. Adding the token to the url, or as an added parameter, did not help.&lt;/P&gt;&lt;P&gt;Omitting the operational layers completely led to a white image instead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to export a styled image of a given map region?&lt;/P&gt;&lt;P&gt;Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2024 12:35:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/export-styled-map-image-using-rest-apis/m-p/1493652#M4772</guid>
      <dc:creator>IvanCotti</dc:creator>
      <dc:date>2024-06-17T12:35:12Z</dc:date>
    </item>
  </channel>
</rss>

