Select to view content in your preferred language

Create an ellipse

877
1
Jump to solution
07-19-2023 12:37 AM
Guy_srb
Regular Contributor

Hi!

I need to create an ellipse from center point of the ellispe, x axis, y axis and azimuth(rotation).

As far as I know there is no support for ellipse shapes or creating it in Arcgis jsapi4.

Is there anyway can I create it?

What I've tried so far :

  1. I've tried using the function in the codepen in this thread, but even though it's written in the function that the units are in kilometers, the ellipse size do not match the x axis and y axis I've entered.
  2.  I've come across the Arcgis Pro tool "Table to Ellipse", but that is a last resort for me, becuase I do not know if I will have a connection to Arcgis server.
0 Kudos
1 Solution

Accepted Solutions
Guy_srb
Regular Contributor

I've found a sulotion from this link - https://stackoverflow.com/questions/13157880/google-maps-draw-ellipse-based-off-4-coordinates 

In this link the code is using google maps api, so I'm posting here alomst the same code, but with esri geometry engine functions instead of google maps api functions.

Credit for the original code and calculations:Mike Williams.

https://jsfiddle.net/guysh/3897psdg/47/ 

 

View solution in original post

0 Kudos
1 Reply
Guy_srb
Regular Contributor

I've found a sulotion from this link - https://stackoverflow.com/questions/13157880/google-maps-draw-ellipse-based-off-4-coordinates 

In this link the code is using google maps api, so I'm posting here alomst the same code, but with esri geometry engine functions instead of google maps api functions.

Credit for the original code and calculations:Mike Williams.

https://jsfiddle.net/guysh/3897psdg/47/ 

 

0 Kudos