Hi Howard,
Referring gis.thinkgeo.com/Support/Dis...fault.aspx
My client needs measure tool that calculates distance in miles and feet between line(s) on client side.
I used your demo code from above posted link. I modified code to get distance in miles and feet’s. Your demo does activate measure tool object OnMapCreated = function(map) in javascript.
But I want to activate measure tool when user clicks on ‘Measure line’ button and should deactive when user clicks on ‘Clear’ button to return normal moade.
I tried to activate measureLineControl.activate(); by calling javascript ‘activate()’ on client click of btnMeasureLine but nothing happened. It did not allowed me to measure line.
Am I missing something here?
Please find attached sample code along with shape file.
To get broad view, I have also included screen shots of main page where I will have button for Measure tool next to Hybrid button at top right corner.
Also I have forwarded shape data file (Fiber_Security_Aerial.zip) to support people.
Your quick response highly appreciated.
Thanks
Hiren
1281-MT.zip (3.01 KB)
1282-Main_Page.GIF (64.7 KB)