Draw circle on mapview

1309
2
Jump to solution
02-16-2021 09:43 PM
phanivvk
New Contributor

Hi There,

I'm developing maps using Javascript API, 

I'm trying to draw a circle of 5km radius with transparent style , below is my codpen

https://codepen.io/phaneendravvk/pen/vYymZeN

0 Kudos
1 Solution

Accepted Solutions
UndralBatsukh
Esri Regular Contributor

Hi there,

I updated your app and added SketchViewModel and geometryEngine to create a circle with 5km radius with a transparent style. This should get you started.

This sample  shows how to use SketchViewModel and geometryEngine to resize circle on the fly.

Hope this helps,

-Undral

 

View solution in original post

2 Replies
BlakeTerhune
MVP Regular Contributor

You'll need to combine the sketch widget with buffer.

0 Kudos
UndralBatsukh
Esri Regular Contributor

Hi there,

I updated your app and added SketchViewModel and geometryEngine to create a circle with 5km radius with a transparent style. This should get you started.

This sample  shows how to use SketchViewModel and geometryEngine to resize circle on the fly.

Hope this helps,

-Undral