Select to view content in your preferred language

Measurement of Distance in IPad ?

853
4
12-11-2010 04:40 AM
zeeshanbhatti
Emerging Contributor
i am measuring distance from point to point in IPad. I am using source "http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.1compact"
for Ipad application as mentioned in the samples to work with Iphone. The problem is i am not getting distance measurment when i use "v=2.1compact". but if i use "v=2.1" only then it works fine. i m using "v=2.1compact" coz it is compatible for popups in Ipad/Iphone. So kindly suggest me to sortout this problem. Well i already have send thread for some problem but didnt get reply so far. I request kindly give quick replies. Thanks

Regards,
Zeeshan
0 Kudos
4 Replies
KellyHutchins
Esri Frequent Contributor
You have to add a dojo.require to your application to include the geometry service:

dojo.require("esri.tasks.geometry");

More details on the compact build can be found here:

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_compactbuild....
0 Kudos
zeeshanbhatti
Emerging Contributor
Hi kelly
i have tried the way u advised. But still i cant see measurements. Kindly try your self if i m wrong some where
                http://help.arcgis.com/en/webapi/javascript/arcgis/demos/util/util_distance.html

This is the sample which i tried with "v=2.1compact" with including dojo.require("esri.tasks.geometry");

  please check again.

Thanks,
Zeeshan
0 Kudos
zeeshanbhatti
Emerging Contributor
I want to add that i just learnt from

http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_compactbuild....

is that Module "dojo.number" Compact status shows "No". So this means we need to sort out dojo.number with v2.1compact.
0 Kudos
zeeshanbhatti
Emerging Contributor
So finally its done by adding

dojo.require("dojo.number");

Thanks for the help.

Kindly help me for my previous thread as well

http://forums.arcgis.com/threads/18869-Graphic-popup-Event-Method

Regards,
Zeeshan
0 Kudos