<?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 Datatype definition error for mapView.center in Angular in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datatype-definition-error-for-mapview-center-in/m-p/870561#M70778</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not really sure if this is the right spot for this. If not, I'll be happy to move it.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have created a P.O.C in Angular with the help of&amp;nbsp;the&amp;nbsp;brilliant tutorial code in&amp;nbsp;github.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have changed the basemap to my own tile service, but since we are using a different SpatialReference, problems started to&amp;nbsp;come up quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I discovered that when addressing the center property of the&amp;nbsp;basemap, by default, it takes either an array of two numbers [x,y], or a PointProperties datatype... either way, SpatialReference is out of the picture and that is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I managed to solve this was by passing a json object as follow - { x:..., y:...., SpatialReference: 2039 }&lt;/P&gt;&lt;P&gt;This code luckily works, but I'm getting an error on the data type, since it's not documented as supported inside the API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to pass this as a change recommendation to ESRI??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SpatialReference is super important for some countries and the difference between supporting it and not in most cases, for us, it's show stopper.&lt;/P&gt;&lt;P&gt;Most of ESRI's new products will never be in use for us because&amp;nbsp;they lack of support&amp;nbsp;with the relevant SpatialReference..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="411596" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/411596_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Jun 2018 14:37:42 GMT</pubDate>
    <dc:creator>SvivaManager</dc:creator>
    <dc:date>2018-06-18T14:37:42Z</dc:date>
    <item>
      <title>Datatype definition error for mapView.center in Angular</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datatype-definition-error-for-mapview-center-in/m-p/870561#M70778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not really sure if this is the right spot for this. If not, I'll be happy to move it.&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have created a P.O.C in Angular with the help of&amp;nbsp;the&amp;nbsp;brilliant tutorial code in&amp;nbsp;github.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;have changed the basemap to my own tile service, but since we are using a different SpatialReference, problems started to&amp;nbsp;come up quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I discovered that when addressing the center property of the&amp;nbsp;basemap, by default, it takes either an array of two numbers [x,y], or a PointProperties datatype... either way, SpatialReference is out of the picture and that is wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The way I managed to solve this was by passing a json object as follow - { x:..., y:...., SpatialReference: 2039 }&lt;/P&gt;&lt;P&gt;This code luckily works, but I'm getting an error on the data type, since it's not documented as supported inside the API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to pass this as a change recommendation to ESRI??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SpatialReference is super important for some countries and the difference between supporting it and not in most cases, for us, it's show stopper.&lt;/P&gt;&lt;P&gt;Most of ESRI's new products will never be in use for us because&amp;nbsp;they lack of support&amp;nbsp;with the relevant SpatialReference..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="411596" class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/411596_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jun 2018 14:37:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/datatype-definition-error-for-mapview-center-in/m-p/870561#M70778</guid>
      <dc:creator>SvivaManager</dc:creator>
      <dc:date>2018-06-18T14:37:42Z</dc:date>
    </item>
  </channel>
</rss>

