Hello,
I've been searching for a way to draw a portion of a circle on the map. For example, if you want to portray where someone is looking - they are at coordinates X, Y; looking northeast; with a field of view of 90 degrees.
Thanks in advance!
Hi there,
Perhaps you will find this sample useful: https://developers.arcgis.com/javascript/latest/sample-code/sandbox/?sample=featurelayerview-query-geometry
Circle is drawn on the map. It can be moved and resized after it is created. Please take a look atet drawBufferPolygon function in particular.
-Undral
I recently did something similar using the JS API CIMSymbol. Here's a simple CodePen showing the concept: https://codepen.io/john-grayson/pen/dyVjomE
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.