<?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: ArcGIS Map is Blank due to goTo() on queryExtent() Zooming in Too Far in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-ensure-geojsonlayer-s-spatial-reference-is/m-p/1102401#M74817</link>
    <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/445592"&gt;@developerarce&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, I'd recommend to make them both have the same spatial reference.&lt;/P&gt;&lt;P&gt;The following link is a good example of how to change view's spatial reference / projection. You can also add the GeoJSONLayer's spatial reference to the dropdown list in the code to check it out:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-hosted-imagerytilelayer-landcover/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/layers-hosted-imagerytilelayer-landcover/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Sep 2021 02:52:49 GMT</pubDate>
    <dc:creator>MehdiPira1</dc:creator>
    <dc:date>2021-09-28T02:52:49Z</dc:date>
    <item>
      <title>How to Ensure GeoJsonLayer's Spatial Reference is the same as View's Spatial Reference</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-ensure-geojsonlayer-s-spatial-reference-is/m-p/1101930#M74797</link>
      <description>&lt;P&gt;&lt;STRIKE&gt;Hi, I have a pretty interesting task which involves rendering the map with a GeoJSON layer and symbols for the data. I then need to take a screenshot of this map. The map is being rendered off screen on purpose and the screenshot is being taken programmatically via arcGis API. When the view is ready, I go to the desired location of the geojson with 0 animation.&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;The problem I am having, is the screenshot is empty. I believe the map and geojson with symbol doesn’t appear to be rendered yet. I am watching for the update on the view for when it is done moving to the location and then timing out for 2s. It inconsistently takes a screenshot.&lt;/STRIKE&gt;&lt;/P&gt;&lt;P&gt;&lt;STRIKE&gt;Is there some process to know when the map and all the layers are done rendering?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/STRIKE&gt;So, after further investigation, `queryExtent()` in combination with `goTo()` (&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-queryextent/" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/javascript/latest/sample-code/featurelayer-queryextent/&lt;/A&gt;) is actually zooming in so far that the screen turns white. The GeoJsonLayer I have is definitely big enough that it covers like 10 square meters. However, if I click the Zoom (-) button 3 times, I can see my layer just fine now.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I think I know what the issue is. The spatial reference of the GeoJSONLayer is different than the View's spatial reference. Should I be setting the GeoJSONLayer spatial reference to be equal to the View?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 02:06:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-ensure-geojsonlayer-s-spatial-reference-is/m-p/1101930#M74797</guid>
      <dc:creator>developerarce</dc:creator>
      <dc:date>2021-09-28T02:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Map is Blank due to goTo() on queryExtent() Zooming in Too Far</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-ensure-geojsonlayer-s-spatial-reference-is/m-p/1101991#M74799</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/445592"&gt;@developerarce&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I would suggest checking this code sample:&amp;nbsp;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/watch-for-changes/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/watch-for-changes/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It demonstrate how to check the status of the map view if moving/panning or at stationary. You can extend it to check for layers properties like "&lt;SPAN&gt;loadStatus&lt;/SPAN&gt;" to detect if a layer finished loading or still loading.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;/P&gt;&lt;P&gt;Ihab&lt;/P&gt;</description>
      <pubDate>Mon, 27 Sep 2021 04:26:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-ensure-geojsonlayer-s-spatial-reference-is/m-p/1101991#M74799</guid>
      <dc:creator>IhabHassan</dc:creator>
      <dc:date>2021-09-27T04:26:25Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Map is Blank due to goTo() on queryExtent() Zooming in Too Far</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-ensure-geojsonlayer-s-spatial-reference-is/m-p/1102385#M74814</link>
      <description>&lt;P&gt;So, I think I know what the issue is. The spatial reference of the GeoJSONLayer is different than the View's spatial reference. Should I be setting the GeoJSONLayer spatial reference to be equal to the View?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 02:05:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-ensure-geojsonlayer-s-spatial-reference-is/m-p/1102385#M74814</guid>
      <dc:creator>developerarce</dc:creator>
      <dc:date>2021-09-28T02:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Map is Blank due to goTo() on queryExtent() Zooming in Too Far</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-ensure-geojsonlayer-s-spatial-reference-is/m-p/1102401#M74817</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/445592"&gt;@developerarce&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;Yes, I'd recommend to make them both have the same spatial reference.&lt;/P&gt;&lt;P&gt;The following link is a good example of how to change view's spatial reference / projection. You can also add the GeoJSONLayer's spatial reference to the dropdown list in the code to check it out:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/sample-code/layers-hosted-imagerytilelayer-landcover/" target="_blank"&gt;https://developers.arcgis.com/javascript/latest/sample-code/layers-hosted-imagerytilelayer-landcover/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 02:52:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-ensure-geojsonlayer-s-spatial-reference-is/m-p/1102401#M74817</guid>
      <dc:creator>MehdiPira1</dc:creator>
      <dc:date>2021-09-28T02:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: ArcGIS Map is Blank due to goTo() on queryExtent() Zooming in Too Far</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-ensure-geojsonlayer-s-spatial-reference-is/m-p/1102407#M74818</link>
      <description>&lt;P&gt;Yeah, I think that's my issue with `queryExtent()` because the view is in Web Mercator and the GeoJSONLayer is in WSG84, so when we `gotTo()` on the view using the extent of the GeoJSONLayer. Going to give this a shot really quick.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Sep 2021 03:02:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/how-to-ensure-geojsonlayer-s-spatial-reference-is/m-p/1102407#M74818</guid>
      <dc:creator>developerarce</dc:creator>
      <dc:date>2021-09-28T03:02:53Z</dc:date>
    </item>
  </channel>
</rss>

