<?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 Use current map extent or center to open an external application in Embed widget to same location in ArcGIS Experience Builder Questions</title>
    <link>https://community.esri.com/t5/arcgis-experience-builder-questions/use-current-map-extent-or-center-to-open-an/m-p/1525441#M14420</link>
    <description>&lt;P&gt;I have a requirement to allow user to display Oblique Imagery for the map area they are currently viewing in an experience builder application.&amp;nbsp; The 3rd party oblique imagery provider does not yet have an OIC to use with experience builder.&amp;nbsp; Since we have deadlines that require this functionality before an OIC may be available,&amp;nbsp; I thought we could use the Embed widget to view the 3rd party imagery application as a work around.&amp;nbsp; &amp;nbsp;The application will display to a default location in Embed widget.&amp;nbsp; The application does accept url parameters to center the map at a particular lat/lon.&amp;nbsp; So far, I have not been able to identify how to pass the current map center point lat/lon on url parameters to the Embed widget.&amp;nbsp; I went to the experience's settings, Manage Url status and turned on the Map URL parameters.&amp;nbsp; When I zoom the map, I see these parameters in the URL.&lt;/P&gt;&lt;P&gt;&lt;A href="https://localhost:3001/experience/1/page/Main/?draft=true#widget_1=" target="_blank" rel="noopener"&gt;https://localhost:3001/experience/1/page/Main/?draft=true#widget_1=&lt;/A&gt;&lt;STRONG&gt;center:-9294254.181727238,5268863.529987389,&lt;/STRONG&gt;102100,viewpoint:{"rotation":0,"scale":104002.29977184,"targetGeometry":{"spatialReference":{"wkid":102100},"&lt;STRONG&gt;x":-9294254.181727238,&lt;/STRONG&gt;"&lt;STRONG&gt;y":5268863.529987389&lt;/STRONG&gt;}}&lt;/P&gt;&lt;P&gt;However, I haven't been able to get the application to access these for use with the Embed widget.&amp;nbsp; I configured the Embed widget with url and added an x and y parameter, but these are only populated if I add &amp;amp;x= and &amp;amp;y= to the experience url ( I did this to get x and y to appear in the URL info in the Embed widget), but was hoping the dynamic value of the x and y from the map url parameters would be picked up and placed on the Embed url.&amp;nbsp; &amp;nbsp;I am thinking that this is not possible because these appear to be part of a url parameter fragment and are part of the viewpoint.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to get the current map center/extent/etc. to pass to a 3rd party application without creating custom code?&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I came across this post of a custom widget for accessing the url parameter info.&amp;nbsp; Is something like this the only way to achieve the use of the current map location values?&amp;nbsp;@&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/experience-builder-tips-and-tricks/starter-widget-for-getting-information-from-a-url/ta-p/1354035" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/experience-builder-tips-and-tricks/starter-widget-for-getting-information-from-a-url/ta-p/1354035&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Aug 2024 13:43:20 GMT</pubDate>
    <dc:creator>DavidMGiannone</dc:creator>
    <dc:date>2024-08-22T13:43:20Z</dc:date>
    <item>
      <title>Use current map extent or center to open an external application in Embed widget to same location</title>
      <link>https://community.esri.com/t5/arcgis-experience-builder-questions/use-current-map-extent-or-center-to-open-an/m-p/1525441#M14420</link>
      <description>&lt;P&gt;I have a requirement to allow user to display Oblique Imagery for the map area they are currently viewing in an experience builder application.&amp;nbsp; The 3rd party oblique imagery provider does not yet have an OIC to use with experience builder.&amp;nbsp; Since we have deadlines that require this functionality before an OIC may be available,&amp;nbsp; I thought we could use the Embed widget to view the 3rd party imagery application as a work around.&amp;nbsp; &amp;nbsp;The application will display to a default location in Embed widget.&amp;nbsp; The application does accept url parameters to center the map at a particular lat/lon.&amp;nbsp; So far, I have not been able to identify how to pass the current map center point lat/lon on url parameters to the Embed widget.&amp;nbsp; I went to the experience's settings, Manage Url status and turned on the Map URL parameters.&amp;nbsp; When I zoom the map, I see these parameters in the URL.&lt;/P&gt;&lt;P&gt;&lt;A href="https://localhost:3001/experience/1/page/Main/?draft=true#widget_1=" target="_blank" rel="noopener"&gt;https://localhost:3001/experience/1/page/Main/?draft=true#widget_1=&lt;/A&gt;&lt;STRONG&gt;center:-9294254.181727238,5268863.529987389,&lt;/STRONG&gt;102100,viewpoint:{"rotation":0,"scale":104002.29977184,"targetGeometry":{"spatialReference":{"wkid":102100},"&lt;STRONG&gt;x":-9294254.181727238,&lt;/STRONG&gt;"&lt;STRONG&gt;y":5268863.529987389&lt;/STRONG&gt;}}&lt;/P&gt;&lt;P&gt;However, I haven't been able to get the application to access these for use with the Embed widget.&amp;nbsp; I configured the Embed widget with url and added an x and y parameter, but these are only populated if I add &amp;amp;x= and &amp;amp;y= to the experience url ( I did this to get x and y to appear in the URL info in the Embed widget), but was hoping the dynamic value of the x and y from the map url parameters would be picked up and placed on the Embed url.&amp;nbsp; &amp;nbsp;I am thinking that this is not possible because these appear to be part of a url parameter fragment and are part of the viewpoint.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to get the current map center/extent/etc. to pass to a 3rd party application without creating custom code?&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;I came across this post of a custom widget for accessing the url parameter info.&amp;nbsp; Is something like this the only way to achieve the use of the current map location values?&amp;nbsp;@&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/experience-builder-tips-and-tricks/starter-widget-for-getting-information-from-a-url/ta-p/1354035" target="_blank" rel="noopener"&gt;https://community.esri.com/t5/experience-builder-tips-and-tricks/starter-widget-for-getting-information-from-a-url/ta-p/1354035&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Aug 2024 13:43:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-experience-builder-questions/use-current-map-extent-or-center-to-open-an/m-p/1525441#M14420</guid>
      <dc:creator>DavidMGiannone</dc:creator>
      <dc:date>2024-08-22T13:43:20Z</dc:date>
    </item>
  </channel>
</rss>

