The measurement tool is displaying two mouse pointers and two pins when using the "location" tool. Anyone else having this problem?
Thanks.
Remove the call to the startup function.
Arjun,
Nope I have not seen this behavior. Can you have your code for review?
Hi Robert,
Not doing anything fancy to the widget, except calling it in the JS file:
var measurement = new Measure({
map: map,
style:"margin-top:25px;height:200px",
id:"measurement",
}, 'measurement').startup();
and <div id='measurement'></div> in html.
The other erratic behaviour was that I had to force a height on the tool, otherwise it was making it incredibly tall, pushing the divs below way down having to scroll down to see them.
You have:
What is the require that you are using for this? Normally you would use
esri/dijit/Measurement
and a var of
Measurement
Did you just choose to use Measure as your var?
What happens when you use the esri sample for the Measurement widget?
Measurement Widget | ArcGIS API for JavaScript
Seeing your complete code would help.
That was just what I called it in my function list. You can give a class you have registered in the array any name you like.
I'm 99% sure my code is right, its the "behind-the-scenes" functionality on ESRI's end, from what I can tell. My code would be way to long to share. That snippet is really the important part.
Yes I know you can give the var any name you like, I was just checking. The fact that you are having this issue in your code and using the esri sample I referenced and all of the apps I have produced that do not have this issue leads me to believe that you have something in your code that is causing this.
I don't really have any other code that could be interfering - except for the style within the widget. Since the widget creates the x/y point table, I don't really have much control over it. Thank you for your help!
That did it. Thanks! So simple. Im so used to making the startup call in dojo.
Joel,
Why?....
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.