1

The Unit type for the geometry service accepts the code value. The code value can be found on the esriSRUnitType Constants page. For example, if you want esriSRUnit_Meter, you can provide the value 9001


1

Try to just use ESRI's API, just check to see the extent of the map and move it back if its outside of the bounding box. Try adding this: var previousExtent = map.extent.getExtent(); map.on("extent-change", function(){ let currentExtent = map.extent.getExtent(); if (boundingBox.contains(map.extent.getCenter())){ // Update previous extent ...


1

You have a problem in the order of the dojo require statements. The following order is the right one, putting the domReady at the end: require([ "esri/map", "esri/layers/FeatureLayer", "esri/geometry/Extent", "esri/SpatialReference", "dojo/domReady!",], function( Map, FeatureLayer, ...


1

You can skip the query and use definitionExpression if you want to filter the displayed data. Here's a working example - based on your code.


1

The company I work for created a customized solution to this exact issue, I cannot copy the code but I can give you a guideline: - Create a variable that indicates 'inDrawing' state - Create a variable for 'currentPoints' - Create a graphicLayer for measurements - Create a listener on "mouse-move"/"mouse-drag" event on the map - If "inDrawing": - ...


Only top voted, non community-wiki answers of a minimum length are eligible