|
POST
|
Greetings! I was working on a project that uses the measurement dijit in the JSAPI 3.20 and noticed that they have event handlers that would lend themselves to displaying an interactive measurement similar to what I was doing with WAB Measure Widget. I put together a demo that you can try: Interactive Distance Measurement Example Thought someone might find this useful... Regards, Tom
... View more
07-05-2017
04:23 PM
|
4
|
2
|
2160
|
|
DOC
|
Rebecca, Of course. I have added the date to the title of the page. Regards, Tom
... View more
07-05-2017
11:48 AM
|
1
|
0
|
11433
|
|
POST
|
Ryan, You are welcome! Glad it was helpful. Regards, Tom
... View more
06-16-2017
03:06 PM
|
0
|
0
|
1467
|
|
POST
|
Ryan, You can add some code to override the result with a couple of event handlers. Here is some sample code to do this: measurement.startup();
measurement.on("measure", function(e) {
measurement.resultValue.srcNodeRef.innerHTML = e.values.toFixed(3) + " " + e.unitName;
});
measurement.on("measure-end", function(e) {
measurement.resultValue.srcNodeRef.innerHTML = e.values.toFixed(3) + " " + e.unitName;
});
I also have a working demo: Measure Tool Regards, Tom
... View more
06-16-2017
10:02 AM
|
1
|
2
|
1467
|
|
POST
|
David, I believe you also need to set the time extent for the featurelayer too. To set the time definition please look at: FeatureLayer | API Reference | ArcGIS API for JavaScript 3.20 You may also need to set the map time extent. Map | API Reference | ArcGIS API for JavaScript 3.20 Regards, Tom
... View more
06-07-2017
04:32 PM
|
0
|
0
|
676
|
|
DOC
|
Greetings Saurabh, Apologies for the late reply, I was out of my office last week. Looking at the map you are using, you should be using a WKID of 102100. You are using ESRI basemaps for your app which uses web mercator (102100). I see how you might be confused as the district boundary is in a different projection, but it is drawn over an ESRI basemap which uses web mercator as its projection. I am certain you will get a desirable result when you change this in the settings dialog screen. Here is a quick example I did in your area: Please give this a try and let me know how it goes! Best Regards, Tom
... View more
06-05-2017
02:42 PM
|
0
|
0
|
11433
|
|
DOC
|
Adam, This was intended to be a simple traverse widget. I am not planning on adding curves. Best Regards, Tom
... View more
06-05-2017
08:05 AM
|
0
|
0
|
11433
|
|
POST
|
Engr, There were a few problems with your script. The query task was not querying a feature layer, so no features were being returned. The SimpleFillSymbol was not defined so it was not able to construct the graphic. I put together a working demo for you. You can view it at: Quetta Locations Please view the source to see the modifications I made to your code. I hope this helps! Regards, Tom
... View more
05-10-2017
11:40 AM
|
1
|
0
|
1190
|
|
DOC
|
Ryan, You are welcome! It was a good idea to have the running total. Regards, Tom
... View more
05-08-2017
09:02 AM
|
0
|
0
|
9328
|
|
DOC
|
mcavoye and rkelso, I have added functionality to display an interactive total when measuring with a polyline. The total will start displaying when the second segment starts to draw. If there is only one segment the total is already displayed. Please give it a try and let me know how it works. Regards, Tom
... View more
05-04-2017
04:43 PM
|
1
|
0
|
9328
|
|
DOC
|
Ryan, You can control-click a graphic to delete the whole graphic. Right mouse clicking a vertex will allow you to delete a single vertex. Regards, Tom
... View more
05-03-2017
03:54 PM
|
0
|
0
|
9328
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-19-2023 08:13 AM | |
| 1 | 02-22-2023 09:12 AM | |
| 1 | 05-15-2015 03:11 PM | |
| 1 | 02-10-2015 11:52 AM | |
| 1 | 01-19-2017 02:01 PM |
| Online Status |
Offline
|
| Date Last Visited |
02-26-2024
04:50 PM
|