Select to view content in your preferred language

Using a geojson layer with simpleMarkerSymbol with real world units will cut off when zoomed in

465
1
12-07-2023 11:58 AM
MitchellMecca
New Contributor

I am using JavaScript arcgis Maps API 4.27. I am using a geojson layer with a bunch of points with an radius and type. I am using the unique value render to have each type rendered in a different color, and I am using a visual variable of the size type with the field radius and value unit in meters. The symbol being used is the simpleMarkerSymbol. When viewed from a zoomed out position, it works fine with the circle appearing normal, but as you zoom in the circle will appear to have its edges cut off. The more you zoom in the more is cut off. The best I can describe is that there is some invisible grid square where only the parts of the circle in the grid square will be visible. When zoom out the circle fits within the square but as you zoom the circle gets larger relative to the size of the map but the grid square stays the same size, so eventually parts the circle move outside the square and are no longer shown.

.esri.png

0 Kudos
1 Reply
AnneFitz
Esri Regular Contributor

Hi, you should see some improvement in the next release (4.29), which is planned for February. You can test this out on the development version of the API at https://js.arcgis.com/next. I'm still noticing a cut off when very zoomed in and the symbol takes up the entire screen, but it should be an improvement from previous versions. To work around this, you could set a maxScale on your MapView to stop users from zooming in too far to where the symbols are cut off.