Select to view content in your preferred language

🌐 Simple X,Y coordinate system for map

427
0
09-20-2023 01:58 PM
RussellMGreen
New Contributor II

I'm trying to use the ArcGIS JS API Map to draw a simplified "straight line" representation of spatial data (with measure values) to a representation where there are no curves (just straight lines). I'm thinking the easiest way to do this would be to set a simple linear x,y coordinate system for the map and then draw features based on that simple x,y coordinate system using the feature's "measure" values.

Example:

  1. Query the line data from ArcGIS Server
    1. Example feature: {geometry: [{x: -72, y: 42, m: 0}, ...other points..., {x: -90, y: 40, m: 10}]
  2. Convert the geometries to simple x,y coordinate system (using the measure values)
  3. Add the new features to the map with a simple x/y coordinate system
    1. The x axis would be based on the measure value
    2. The y axis would be arbitrary number based on where we want to show the lines (stacked on top of each other)

 

Example:

RussellMGreen_0-1695243096766.png

 

Anyone have any suggestions for the most efficient way to do this in ArcGIS JS API? Also, can anyone point me to a supported coordinate system that is just a simple x/y (0, 1, 2, 3, etc.).

 

Thanks!

 

 

0 Kudos
0 Replies