<?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: Create a Link for zooming into a parcel from a different webpage in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-link-for-zooming-into-a-parcel-from-a/m-p/744375#M68873</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kelly has a great answer. For example calling the sample page with parcel ids:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427026"&gt;http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427026&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427014"&gt;http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427014&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once this is set up you just need to code your links from the other page to open in a new window:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14078867809512517 jive_text_macro" jivemacro_uid="_14078867809512517" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;a href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427026" rel="nofollow" target="_blank"&gt;http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427026&lt;/A&gt;&lt;SPAN&gt;" target="_blank"&amp;gt;5190 Clarendon Crest Dr&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;br/&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;a href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427014" rel="nofollow" target="_blank"&gt;http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427014&lt;/A&gt;&lt;SPAN&gt;" target="_blank"&amp;gt;5157 Nob Hill Ct&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Aug 2014 23:40:31 GMT</pubDate>
    <dc:creator>OwenEarley</dc:creator>
    <dc:date>2014-08-12T23:40:31Z</dc:date>
    <item>
      <title>Create a Link for zooming into a parcel from a different webpage</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-link-for-zooming-into-a-parcel-from-a/m-p/744372#M68870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a need where a user needs to zoom into a parcel based on what parcel id they give in the string...&lt;/P&gt;&lt;P&gt;for example&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;imagine this is the string &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://webmap...?parcelid=" rel="nofollow" target="_blank"&gt;http://webmap...?parcelid=&lt;/A&gt;&lt;SPAN&gt;&amp;lt;USER ENTERS PARCEL ID&amp;gt;?window=new&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then click ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now it should open up a new window and open that web map and zoom to that parcel id..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;whats the way to make it happen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 06:17:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-link-for-zooming-into-a-parcel-from-a/m-p/744372#M68870</guid>
      <dc:creator>GopiParthasarathy</dc:creator>
      <dc:date>2014-08-12T06:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Link for zooming into a parcel from a different webpage</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-link-for-zooming-into-a-parcel-from-a/m-p/744373#M68871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will be (Legacy) pseudo-code but essentially, create a barebones web map (something like an ESRI sample) and, in the map init function, perform a query for your parcel and then zoom to the result it returns. Here's something similar I did for a web map that would zoom into the location of a feature if a lat/long coordinate pair was passed as part of the URL:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14078555979292666" jivemacro_uid="_14078555979292666"&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Evaluate the URL of this HTML page to determine if any parameters were passed with it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var htmlPagePath = window.location.toString();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var qLocation = htmlPagePath.indexOf('?');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (qLocation &amp;lt; 1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; passedLatLong = false;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; else&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; passLatLong = true;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //If a coordinate location was passed as a parameter, zoom the map to it&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if (passedLatLong)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Extract the lat/long coordinates passed as a parameter with the URL&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var coordStr = window.location.toString().substr(qLocation + 1,window.location.toString().length);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var coords = new Array();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; coords = coordStr.split(',');&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //Create a lat/long point&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; var bridgeLoc = new esri.geometry.Point(coords[0],coords[1], new esri.SpatialReference({wkid:4326}));&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set the map extent based on the lat/long coordinate passed. The coordinate must be converted&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //to Web Mercator since the web services used have been defined with that projection..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; map.setExtent(pointToExtent(map,esri.geometry.geographicToWebMercator(bridgeLoc),3));&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Obviously, in your case, you would perform a queryTask on your parcels using the supplied parcel ID and then zoom to the result.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 15:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-link-for-zooming-into-a-parcel-from-a/m-p/744373#M68871</guid>
      <dc:creator>SteveCole</dc:creator>
      <dc:date>2014-08-12T15:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Link for zooming into a parcel from a different webpage</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-link-for-zooming-into-a-parcel-from-a/m-p/744374#M68872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The 'History API to track selected feature' sample in the help shows how to do this. The application checks for a url parameter called parcelid when it loads and will then zoom to the parcel. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/jssamples/exp_history.html" title="https://developers.arcgis.com/javascript/jssamples/exp_history.html"&gt;History API to track selected feature | ArcGIS API for JavaScript&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 16:25:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-link-for-zooming-into-a-parcel-from-a/m-p/744374#M68872</guid>
      <dc:creator>KellyHutchins</dc:creator>
      <dc:date>2014-08-12T16:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Create a Link for zooming into a parcel from a different webpage</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-link-for-zooming-into-a-parcel-from-a/m-p/744375#M68873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Kelly has a great answer. For example calling the sample page with parcel ids:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427026"&gt;http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427026&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427014"&gt;http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427014&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once this is set up you just need to code your links from the other page to open in a new window:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="html" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14078867809512517 jive_text_macro" jivemacro_uid="_14078867809512517" modifiedtitle="true"&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;a href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427026" rel="nofollow" target="_blank"&gt;http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427026&lt;/A&gt;&lt;SPAN&gt;" target="_blank"&amp;gt;5190 Clarendon Crest Dr&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;lt;br/&amp;gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;lt;a href="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427014" rel="nofollow" target="_blank"&gt;http://developers.arcgis.com/javascript/samples/exp_history/?parcelid=1919427014&lt;/A&gt;&lt;SPAN&gt;" target="_blank"&amp;gt;5157 Nob Hill Ct&amp;lt;/a&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;

&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2014 23:40:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/create-a-link-for-zooming-into-a-parcel-from-a/m-p/744375#M68873</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2014-08-12T23:40:31Z</dc:date>
    </item>
  </channel>
</rss>

