<?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: Center mapView base on address in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-mapview-base-on-address/m-p/265552#M24521</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No there is no option to center the map on an address. You easiest option is to Google the lat and lon for that address ahead of time and enter it. Another option would be to set the map center in code after the app initializes by using a Locator class and the adressToLocations method.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Locator.html#addressesToLocations" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Locator.html#addressesToLocations"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Locator.html#addressesToLocations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 May 2020 12:10:34 GMT</pubDate>
    <dc:creator>RobertScheitlin__GISP</dc:creator>
    <dc:date>2020-05-14T12:10:34Z</dc:date>
    <item>
      <title>Center mapView base on address</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-mapview-base-on-address/m-p/265551#M24520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;center my map base on initial coordinates and it works perfect:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #d4d4d4; background-color: #1e1e1e; font-weight: normal; font-size: 14px;"&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;const&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51b6c4;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;=&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #569cd6;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #4ec9b0;"&gt;MapView&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;({&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;center:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;[&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;initialPointToCenterMap&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;x&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;initialPointToCenterMap&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;y&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;],&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;container:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #ce9178;"&gt;'viewDiv'&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;map&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #9cdcfe;"&gt;zoom:&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #b5cea8;"&gt;14&lt;/SPAN&gt;&lt;SPAN style="color: #d4d4d4;"&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #d4d4d4;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;});&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was&amp;nbsp;wondering if there is an option to&amp;nbsp;center map base on certain address like "London,&amp;nbsp;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;10 Downing Street"?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 11:03:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-mapview-base-on-address/m-p/265551#M24520</guid>
      <dc:creator>MagdalenaChmura</dc:creator>
      <dc:date>2020-05-14T11:03:33Z</dc:date>
    </item>
    <item>
      <title>Re: Center mapView base on address</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-mapview-base-on-address/m-p/265552#M24521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No there is no option to center the map on an address. You easiest option is to Google the lat and lon for that address ahead of time and enter it. Another option would be to set the map center in code after the app initializes by using a Locator class and the adressToLocations method.&lt;/P&gt;&lt;P&gt;&lt;A class="link-bare" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Locator.html#addressesToLocations" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Locator.html#addressesToLocations"&gt;https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-Locator.html#addressesToLocations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 12:10:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-mapview-base-on-address/m-p/265552#M24521</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2020-05-14T12:10:34Z</dc:date>
    </item>
    <item>
      <title>Re: Center mapView base on address</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-mapview-base-on-address/m-p/265553#M24522</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.esri.com/migrated-users/404043"&gt;Magdalena Chmura&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another option of course would be to add a &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html"&gt;Search&lt;/A&gt; widget to the map, allowing users to enter an address to center the map themselves.&lt;/P&gt;&lt;P&gt;&lt;A href="https://twiav.nl/en/arcgis/javascript/arcgis_javascript_with_uk_data_address_search.htm"&gt;&lt;IMG class="image-1 j-img-floatend jive-image" src="https://community.esri.com/legacyfs/online/492158_pastedImage_3.png" style="float: right;" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Inspired by your sample address (London,&amp;nbsp;&lt;SPAN style="color: #222222; background-color: #ffffff; font-size: 14px;"&gt;10 Downing Street&lt;/SPAN&gt;) I have created a little sample app using UK maps from Ordnance Survey.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The projection of this map is British National Grid (EPSG:27700). Address Search has been limited by applying countryCode:"GBR".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can see the app (and the source) here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://twiav.nl/en/arcgis/javascript/arcgis_javascript_with_uk_data_address_search.htm" title="https://twiav.nl/en/arcgis/javascript/arcgis_javascript_with_uk_data_address_search.htm"&gt;ArcGIS JavaScript with UK data - Search address in the United Kingdom&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Egge-Jan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 May 2020 13:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/center-mapview-base-on-address/m-p/265553#M24522</guid>
      <dc:creator>Egge-Jan_Pollé</dc:creator>
      <dc:date>2020-05-14T13:27:47Z</dc:date>
    </item>
  </channel>
</rss>

