<?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: mapandcenter zoom to the wrong location in ArcGIS Web AppBuilder Questions</title>
    <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/mapandcenter-zoom-to-the-wrong-location/m-p/376521#M10030</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing this line:&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14476429986121828 jive_text_macro" data-renderedposition="29_8_912_16" jivemacro_uid="_14476429986121828"&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;this.map.centerAndZoom(myGraphicPoint.geometry, 8);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14476430053726188" data-renderedposition="87_8_912_16" jivemacro_uid="_14476430053726188"&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;this.map.centerAndZoom(myGraphicPoint, 8);&lt;/P&gt;&lt;/PRE&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The &lt;A href="https://developers.arcgis.com/javascript/jsapi/map-amd.html#centerandzoom"&gt;Center and Zoom&lt;/A&gt; function takes a Point as the first argument.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Nov 2015 03:04:30 GMT</pubDate>
    <dc:creator>OwenEarley</dc:creator>
    <dc:date>2015-11-16T03:04:30Z</dc:date>
    <item>
      <title>mapandcenter zoom to the wrong location</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/mapandcenter-zoom-to-the-wrong-location/m-p/376520#M10029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have this script that defines a point, it draws the point at the correct location but it centers the map at the wrong place! Why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;startup: function() {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.inherited(arguments);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; pointSymbol = new SimpleMarkerSymbol(&lt;/P&gt;&lt;P&gt;&amp;nbsp; SimpleMarkerSymbol.STYLE_CIRCLE, 10,&lt;/P&gt;&lt;P&gt;&amp;nbsp; new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([0, 0, 0]), 1),&lt;/P&gt;&lt;P&gt;&amp;nbsp; new Color([0, 204, 0])&lt;/P&gt;&lt;P&gt;&amp;nbsp; );&lt;/P&gt;&lt;P&gt;&amp;nbsp; myGraphicPoint = new Point([-121.07462622, 38.90015662]);&lt;/P&gt;&lt;P&gt;&amp;nbsp; myGraphicMarker = new Graphic(myGraphicPoint, pointSymbol);&lt;/P&gt;&lt;P&gt;&amp;nbsp; myGraphicMarker.setAttributes({"name":"Project Spot"});&lt;/P&gt;&lt;P&gt;&amp;nbsp; myGraphicsLayer = new GraphicsLayer();&lt;/P&gt;&lt;P&gt;&amp;nbsp; myGraphicsLayer.add(myGraphicMarker);&lt;/P&gt;&lt;P&gt;&amp;nbsp; this.map.addLayer(myGraphicsLayer);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; this.map.centerAndZoom(myGraphicPoint.geometry, 8);&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; },&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 00:33:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/mapandcenter-zoom-to-the-wrong-location/m-p/376520#M10029</guid>
      <dc:creator>LefterisKoumis</dc:creator>
      <dc:date>2015-11-16T00:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: mapandcenter zoom to the wrong location</title>
      <link>https://community.esri.com/t5/arcgis-web-appbuilder-questions/mapandcenter-zoom-to-the-wrong-location/m-p/376521#M10030</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing this line:&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14476429986121828 jive_text_macro" data-renderedposition="29_8_912_16" jivemacro_uid="_14476429986121828"&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;this.map.centerAndZoom(myGraphicPoint.geometry, 8);&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to:&lt;/P&gt;&lt;PRE __default_attr="javascript" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14476430053726188" data-renderedposition="87_8_912_16" jivemacro_uid="_14476430053726188"&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;this.map.centerAndZoom(myGraphicPoint, 8);&lt;/P&gt;&lt;/PRE&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;/P&gt;&lt;P style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;The &lt;A href="https://developers.arcgis.com/javascript/jsapi/map-amd.html#centerandzoom"&gt;Center and Zoom&lt;/A&gt; function takes a Point as the first argument.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Nov 2015 03:04:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-web-appbuilder-questions/mapandcenter-zoom-to-the-wrong-location/m-p/376521#M10030</guid>
      <dc:creator>OwenEarley</dc:creator>
      <dc:date>2015-11-16T03:04:30Z</dc:date>
    </item>
  </channel>
</rss>

