<?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 Can I pass Object ID in the web address and zoom to it. in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-pass-object-id-in-the-web-address-and-zoom/m-p/559298#M52191</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;I normally use the Silverlight SDK so I understand the map layers and the QueryTask and zooming to the returned features. What I would like to do is have a URL of a java script map that if I pass it the VALUE of a feature in a layer it would open it and zoom to it. I would like a URL something like this "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myarc.server.com/map?StateName=Texas" rel="nofollow" target="_blank"&gt;http://myarc.server.com/map?StateName=Texas&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the above example the map would open and then zoom in to the state with the Name = Texas. Is this even possible in java script and if so is there code to show how to achieve this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Craig&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Jan 2012 16:44:12 GMT</pubDate>
    <dc:creator>CraigGallant</dc:creator>
    <dc:date>2012-01-10T16:44:12Z</dc:date>
    <item>
      <title>Can I pass Object ID in the web address and zoom to it.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-pass-object-id-in-the-web-address-and-zoom/m-p/559298#M52191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;I normally use the Silverlight SDK so I understand the map layers and the QueryTask and zooming to the returned features. What I would like to do is have a URL of a java script map that if I pass it the VALUE of a feature in a layer it would open it and zoom to it. I would like a URL something like this "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://myarc.server.com/map?StateName=Texas" rel="nofollow" target="_blank"&gt;http://myarc.server.com/map?StateName=Texas&lt;/A&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the above example the map would open and then zoom in to the state with the Name = Texas. Is this even possible in java script and if so is there code to show how to achieve this.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Craig&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 16:44:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-pass-object-id-in-the-web-address-and-zoom/m-p/559298#M52191</guid>
      <dc:creator>CraigGallant</dc:creator>
      <dc:date>2012-01-10T16:44:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can I pass Object ID in the web address and zoom to it.</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-pass-object-id-in-the-web-address-and-zoom/m-p/559299#M52192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;I would like a URL something like this "http://myarc.server.com/map?StateName=Texas"&lt;BR /&gt;&lt;BR /&gt;In the above example the map would open and then zoom in to the state with the Name = Texas.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at &lt;/SPAN&gt;&lt;A href="http://www.w3schools.com/jsref/prop_loc_href.asp"&gt;location.href&lt;/A&gt;&lt;SPAN&gt; to obtain the URL, then parse it to obtain the section you need, before feeding that to the search/query section of your code.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Jan 2012 22:14:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/can-i-pass-object-id-in-the-web-address-and-zoom/m-p/559299#M52192</guid>
      <dc:creator>StephenLead</dc:creator>
      <dc:date>2012-01-10T22:14:13Z</dc:date>
    </item>
  </channel>
</rss>

