Select to view content in your preferred language

Difficulty adding the Measurement API

3888
3
Jump to solution
05-09-2015 03:56 PM
SteveCline
Regular Contributor

I have a functioning site which is nearly complete and I am trying to add the Measurement Tool: Measurement Widget | ArcGIS API for JavaScript

I am having some difficulty sorting out where I have gone wrong.  Even though I am relatively new to the API I can usually sort these out, but not this time.  Any suggestions would be appreciated.  The HTML, JS and CSS are attached below.

Thanks,

Steve

Tags (1)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Steve,

    You had to issues with your requires and matching vars and some issue in the html with div tag not having closing div tags. I have comment all my changes.

I would recommend adding the measure dijit to your accordion pane. Do do this you would need to remove it from the current titlepane.

View solution in original post

3 Replies
RobertScheitlin__GISP
MVP Emeritus

Steve,

    You had to issues with your requires and matching vars and some issue in the html with div tag not having closing div tags. I have comment all my changes.

I would recommend adding the measure dijit to your accordion pane. Do do this you would need to remove it from the current titlepane.

SteveCline
Regular Contributor

Robert -

First of all, thank you for all the advice you have given me over the last two weeks.  I am a graduate student in Geography and finishing up a project for an Online GIS class.  Without your guidance, along with a few others here, my app would have been pretty basic.  I was able to see the changes made in your version and I think I am ready to wrap the project up.

Do you use any specific type of editor which can detect some of those div and other mistakes?  We use notepad++ in the lab but my primary laptop operates on Linux and I have not been able to get it.

Thanks again.  If you are ever in Northern Colorado I will gladly buy you some beverages of your choice.

Steve

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Steve,

   I use a free IDE called Brackets, It works great with the interactive linting to show mistakes.