Select to view content in your preferred language

bug: Feature layer graphic gets split along 180 degree line

573
1
Jump to solution
11-15-2022 02:52 PM
ironmaskito
Occasional Contributor

problem 2.png

Hi, I'm trying to draw a continuous line across the 180 degree longitudinal line that is added to a feature layer, but am unable to do so. There seems to be an invisible knife that cuts whatever shape crosses this imaginary line. I want the line to be continuous so that the next time I select it, I can add it to a sketch layer and edit a single graphic instead of many pieces of the original graphic. Is there a solution or workaround for this? I have the hunch it is due to the webmercator conversion behind the scenes, but I'm really not knowlegable enough to dig further. Please any help would go a long way. 

Here is a JS Bin that demonstrates the bug, and logs the split polyine geometry consisting of three split line segments:

https://jsbin.com/jizalaqora/1/edit?html,output

ps: i have tested with arcgis v4.25

0 Kudos
1 Solution

Accepted Solutions
GreteSoosalu
Esri Contributor

Hi @ironmaskito 

Unfortunately, this is a current limitation. As there are no coordinates beyond the limit of the coordinate system, the line is cut at the dateline to be a valid line. 
 
As a workaround, you could use another basemap with a spatial reference that has a different central meridian (so that all your data is within its extent and doesn't get cut).  

I use here https://epsg.io/102025 but there are other similar spatial references such as  https://epsg.io/8858
 
Hope this helps!

View solution in original post

1 Reply
GreteSoosalu
Esri Contributor

Hi @ironmaskito 

Unfortunately, this is a current limitation. As there are no coordinates beyond the limit of the coordinate system, the line is cut at the dateline to be a valid line. 
 
As a workaround, you could use another basemap with a spatial reference that has a different central meridian (so that all your data is within its extent and doesn't get cut).  

I use here https://epsg.io/102025 but there are other similar spatial references such as  https://epsg.io/8858
 
Hope this helps!