Hello,
It was exciting to see the new Draw tools added in JSAPI 4.5, but I'm wondering how to limit the user to drawing a rectangle like we can do in 3.x. Any ideas?
Thanks!
--john
Hello,
It was exciting to see the new Draw tools added in JSAPI 4.5, but I'm wondering how to limit the user to drawing a rectangle like we can do in 3.x. Any ideas?
Thanks!
--john
John,
Currently in 4.5 there are only 3 draw actions permitted:
PointDrawAction | PolygonDrawAction | PolylineDrawAction
Drawing an extent is not mentioned at all in the Functionality Matrix but it is most likely one of those coming soon items.
An extent or a rectangle? The difference is that an extent will always be oriented based on the surface of the world, whereas a rectangle could be oriented however you like.
To draw an extent, you can do something simple like this (click and drag to draw): JS Bin - Collaborative JavaScript Debugging
I imagine extents will be added to the drawing tools at some point.
An extent or a rectangle? The difference is that an extent will always be oriented based on the surface of the world, whereas a rectangle could be oriented however you like.
To draw an extent, you can do something simple like this (click and drag to draw): JS Bin - Collaborative JavaScript Debugging
I imagine extents will be added to the drawing tools at some point.