Select to view content in your preferred language

Measurement widget location tool not displaying correctly.

4855
19
Jump to solution
06-26-2015 05:39 AM
ArjunDongre
Regular Contributor

The measurement tool is displaying two mouse pointers and two pins when using the "location" tool. Anyone else having this problem?

Thanks.

Tags (1)
0 Kudos
19 Replies
RobertScheitlin__GISP
MVP Emeritus

Are you guys using parse on load or some other dojo parse directive?

0 Kudos
ArjunDongre
Regular Contributor

I use parser.parse()…

0 Kudos
JoelBennett
MVP Regular Contributor

I'm not...window.dojoConfig.parseOnLoad is explicitly set to false in my application.

My Measurement widget gets created programmatically and then added to the DOM tree as a child of another dijit (a subclass of dijit/Dialog that's been hacked to be modeless).  Perhaps adding it as a child of another pre-existing dijit already in the tree makes the difference...

JoelBennett
MVP Regular Contributor

I can't say with absolute certainty, but I know it worked for me (and now for Arjun as well).  I think this behavior started in 3.10.  I'm supposing it's called automatically and doesn't need to be explicitly called, but I don't see evidence of that in the Measurement module itself...

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Arjun,

   Seeing your complete code would help.

0 Kudos
ArjunDongre
Regular Contributor

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.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Arjun,

   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.

0 Kudos
ArjunDongre
Regular Contributor

Hi Robert,

  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!

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Arjun,

   Can you try and produce a quick sample app that just has the Measurement dijit and add in your css rules and see if it produces that same result. Like I mentioned I can produce apps with the measurement dijit and never have this issue.

ArjunDongre
Regular Contributor

Good idea, Ill try that.

0 Kudos