Select to view content in your preferred language

Exception in using GeoJSONLayer to add layers and maxScale when turning on "ground: 'world elevation'" in SceneView

721
4
01-09-2024 07:00 PM
HHAO
by
New Contributor II

When turning on "ground:'world elevation '" in SceneView, use GeoJSONLayer to add layers and use maxScale. When you tilt or rotate the map, the layers will suddenly appear. Here is my demo code

HHAO_0-1704855436948.png

Normal scaling:

HHAO_1-1704855472071.png

After tilting:

HHAO_2-1704855495799.png

how to solve the problem

 

0 Kudos
4 Replies
Noah-Sager
Esri Regular Contributor

Hi @HHAO, thanks for posting your issue here. If I understand correct, after you zoom in to the map, until the geoJSONLayer features disappear due to the maxScale, if you tilt/rotate the map, the geoJSONLayer features (some, anyway) reappear. Is that correct?

0 Kudos
HHAO
by
New Contributor II

yes!

0 Kudos
Noah-Sager
Esri Regular Contributor

Excellent, we are investigating, and will update this thread when we have an update to share.

0 Kudos
Noah-Sager
Esri Regular Contributor

Hi @HHAO, good news and bad news. The bad news is that this is by design. For 3D SceneViews, the scale is based on the center of the view. So when the view is tilted/rotated, the view's scale can interact with the layer's scale, and you can see the effects in your repro case. The good news is that you're not doing anything wrong. Hope this helps!

0 Kudos