I am importing our CAD files into ArcGIS so that I can server them up to the JavaScript API using Server. These CAD files do not have any spatial information at this point. What we are doing is really looking at the inside of our stores when zoomed in very closely. I've been tasked to come up with a way to allow our upper management the ability to draw a box that will give them the sqft of that box and be able to either add some data/label to that box or be able to pull some information into that box. In other words show changes to departments that want made to the store over top the CAD drawing.
Any ideas/suggestions on how to get going on this project. The measurement tool and drawing tools are nice don't really help me with this problem. Examples are always appreciated.
Thanks,
Michael
Michael,
maybe check out my widget. http://jsfiddle.net/timw1984/4p7d241v/17/embedded/result/
Just check "Add Measurements" and start drawing.
here is the code Javascript API - Advanced Draw widget
Tim
This is awesome!
When I click on the map the actual place it starts to draw or put a text piece is off. It seems to be high and to the right. I've seen this before and believe their is a fix. What am I doing wrong?
This might help: Map Navigation Mouse Offset?
What is interesting is that I get this issue using your example as well. Try following a highway at the start I think you will see what I mean.
Everything works for me correct.
Are you using Chrome or IE because I just did a test and everything works fine in Chrome but IE is off for some strange reason. Sadly IE is what our company browser is.
Michael,
it should be fixed with the version I published today.
Tim
Where do I get the new version from? Any chance you created a save button for the graphics. It is such an awesome tool. I love it.