laptop and a wrench

Erro

The in-memory layer polygon does not draw correctly when spanning over the date line (Prime Meridian).

ArcGIS Maps SDK for JavaScript
Número de ID do Erro BUG-000162151
EnviadoOctober 17, 2023
Última ModificaçãoDecember 6, 2024
Aplica-se àArcGIS Maps SDK for JavaScript
Versão encontrada4.27
Sistema OperacionalWindows OS
Versão do Sistema Operacional10.0 64 Bit
StatusAs Designed

Informações Adicionais

The issue is that the geometry is not normalized. A polygon that crosses the dateline must be defined with two rings, one for each side of the dateline, to be considered a normalized geometry. Each ring must start and end with the same vertex. The client-side FeatureLayer expects the geometries of graphics added via the source property to already be normalized. This maintains optimal performance in the case of large client-side layers. This can be done for GraphicsLayer because the cost of normalizing one or just a few feature(s) is relatively low. However, a layer created with many features can really slow down the startup of the layer. Create normal geometries for the rendering to work, or add features to the FeatureLayer with applyEdits, which normalizes all input geometries on behalf of the user.

Solução Provisória

  • Create the layer with simple, normalized geometries. For example, if a geometry spans the dateline, it should be normalized to have two rings.
  • Use applyEdits which does the normalization for the user. For example, refer to the following link: https://codepen.io/ycabon/pen/zYedvOv?editors=0010.

Etapas para Reproduzir

ID do Erro: BUG-000162151

Software:

  • ArcGIS Maps SDK for JavaScript

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download