<?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: Map Tour new URL Parameter in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/map-tour-new-url-parameter/m-p/502887#M25365</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the quick reply &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and there is no way to start the application at a specific point?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking at the code and i am not finding a path to take...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks again&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 08 May 2013 16:42:23 GMT</pubDate>
    <dc:creator>DavidCaseiro</dc:creator>
    <dc:date>2013-05-08T16:42:23Z</dc:date>
    <item>
      <title>Map Tour new URL Parameter</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/map-tour-new-url-parameter/m-p/502885#M25363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying add a parameter in the URL so that the application starts at a specific point of interest.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Is it possible? I think it as to be the name of the place, for example &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;???/index.html?name=Lisbon&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it gets the parameter and goes direct to the point where the name= Lisbon&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advanced!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 16:16:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/map-tour-new-url-parameter/m-p/502885#M25363</guid>
      <dc:creator>DavidCaseiro</dc:creator>
      <dc:date>2013-05-08T16:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Map Tour new URL Parameter</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/map-tour-new-url-parameter/m-p/502886#M25364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Nope, there isn�??t any URL parameter to help with the initial location.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The map tour initial extent is controlled by the webmap extent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 16:35:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/map-tour-new-url-parameter/m-p/502886#M25364</guid>
      <dc:creator>MikeMinami</dc:creator>
      <dc:date>2013-05-08T16:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: Map Tour new URL Parameter</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/map-tour-new-url-parameter/m-p/502887#M25365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for the quick reply &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;and there is no way to start the application at a specific point?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am looking at the code and i am not finding a path to take...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks again&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 16:42:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/map-tour-new-url-parameter/m-p/502887#M25365</guid>
      <dc:creator>DavidCaseiro</dc:creator>
      <dc:date>2013-05-08T16:42:23Z</dc:date>
    </item>
    <item>
      <title>Re: Map Tour new URL Parameter</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/map-tour-new-url-parameter/m-p/502888#M25366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This is the response from the app developer...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Adding an URL parameter to control the initial point can be done in tourPointLayerLoaded function in Core.js:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Replace&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
app.data.setCurrentPointByIndex(result.graphics.length ? 0 : -1);
&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;with&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
var urlParams = esri.urlToObject(document.location.search).query || {};
var index = parseInt(urlParams.index);
if( index &amp;amp;&amp;amp; ! Number.isNaN(index) &amp;amp;&amp;amp; index &amp;lt;= app.data.getTourPoints().length )
&amp;nbsp;&amp;nbsp;&amp;nbsp; app.data.setCurrentPointByIndex(index - 1);
else
&amp;nbsp;&amp;nbsp;&amp;nbsp; app.data.setCurrentPointByIndex(result.graphics.length ? 0 : -1);
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The map will be centered on the point, the level will be the same than when you don�??t have that URL parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So you can play with the webmap extent to set the level but it will have to be the same for all your points of when you start without any URL parameter.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Mike&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:04:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/map-tour-new-url-parameter/m-p/502888#M25366</guid>
      <dc:creator>MikeMinami</dc:creator>
      <dc:date>2021-12-11T22:04:25Z</dc:date>
    </item>
  </channel>
</rss>

