Hi
I have a site. It was using 3.11, now the highest 3.30, pending some more refactoring to get it to 4.x
There is a measure tool. It no longer gives a result when the mouse is moved around. Only when the mouse is clicked.
It still works if I go back to 3.11
I have added this
measurement.on("measure-end", function (evt) {
console.log("Really done.");
// measurement.setTool(evt.toolName, false);
enableID()
});
measurement.on("measure", function (evt) {
console.log("moved");
// measurement.setTool(evt.toolName, false);
});
According to the API ref "measure" event should be when the mouse moves
"Fires any time the mouse pointer moves while doing a distance measurement. (Added at v3.11). Note: Prior to v3.16, this event only fired on single-click."
Yet on my new code I only get an output when I click - so showing the pre-v3.16 behaviour.
I've stripped my code back as far as I can - I had added stuff to change the default units and to add more, and still the same behaviour. I have compared my code with the sample, but can't see anything.
What am I missing here?
Cheers
ACM
Edit: I stripped the Esri sample right down and now got a working version and a broken version - the broken version uses one of our services as the basemap, so in British National Grid. And, yes, we have a Geometry service defined.
http://maps.strata.solutions/eddc/test/fail.html
http://maps.strata.solutions/eddc/test/work.html