Select to view content in your preferred language

ESRI Javascript API : Drawing Tool - Circle Issue

4056
8
Jump to solution
05-22-2013 10:26 PM
by Anonymous User
Not applicable
Original User: rajasekar80

We are using the ESRI Javascript api 3.4 & Dojo 1.9 version. We have implemented the drawing tool for polygon, circle, line features. The polygon & line features are working fine. We can able to create the circle but it???s in defined radius format. We are expecting to draw the circle to use of the dragging option. But we have the option of ???Click to add a shape??? only.

[ATTACH=CONFIG]24606[/ATTACH]

See the Circle functionality in the following ESRI help links,
http://help.arcgis.com/en/webapi/javascript/arcgis/samples/toolbar_draw/

It has the option of ???Click to add a shape or press down to start and let go to finish???. We are expecting the circle behavior like this only. Please help us. 

[ATTACH=CONFIG]24607[/ATTACH]
0 Kudos
1 Solution

Accepted Solutions
RajasekarNammalvar
Deactivated User
I have fixed the issue & application working fine. In the dojo.js file, I have used my application server URL (//MyServerName/esri-3.4/dojo/dojo) instead of ???HOSTNAME_AND_PATH_TO_JSAPI??? & it???s not loaded with some JS error. Now I have removed the following baseUrl property from dojo.js and then run the application, it works fine.

baseUrl:(location.protocol === 'file:' ? 'http:' : location.protocol) + '//' + "[HOSTNAME_AND_PATH_TO_JSAPI]js/dojo/dojo",


:cool::cool::cool: Thank you for your supports. :cool::cool::cool:

View solution in original post

0 Kudos
8 Replies
JianHuang
Deactivated User
That should be the default behavior. I'm not sure why your app doesn't show it. Try 3.5 JavaScript API.
0 Kudos
by Anonymous User
Not applicable
Original User: svakil

We have implemented the drawing tool for polygon, circle, line features.


Can you please provide us with some reproducible case where we can look into this further.
0 Kudos
RajasekarNammalvar
Deactivated User
Hi Jian,
Already I was trying to download the ESRI Javascript API 3.5 version. But it's not available in the following link,
http://www.esri.com/apps/products/download/

Can you please point out the link of 3.5 version?
0 Kudos
by Anonymous User
Not applicable
Original User: vinaybansal

Hi Rajshekhar,

It seems that you are using the Javascript API 3.4 after deploying in your server or by including the library in your project.

Have you tried using the
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.4">
    </script>
and tested your application. Since same library is working at my end and I am getting both options while drawing a circle.
0 Kudos
by Anonymous User
Not applicable
Original User: rajasekar80

Hi Vinay,

Previously I have used the following link & getting the same problem,
http://serverapi.arcgisonline.com/jsapi/arcgis/3.4/

Now I have used your link also. But same issue.
<script src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=3.4" type="text/javascript"></script>

Is it possible to send the latest javascript api 3.5 version link? I am not sure that is this new feature has included earlier version of 3.5. Because all the circle feature sample has point out only 3.5 & it's not avilable in ESRI dowload link.
0 Kudos
JianHuang
Deactivated User
This is not a new feature at 3.5. It was introduced at 3.4. The only reason that I suggested to use 3.5 is to make sure your environment is the same as the sample, so that we can narrow down the issue.
If you are using 3.4 hosted by Esri, instead of your local hosted one, and you can still reproduce the issue, that would be very strange.
Maybe you want to post a simplified reproducible code snippet?
0 Kudos
by Anonymous User
Not applicable
Original User: vinaybansal

Hi rajasekar,

You must post some code so that we can get an idea of where is the problem.

Vinay
0 Kudos
RajasekarNammalvar
Deactivated User
I have fixed the issue & application working fine. In the dojo.js file, I have used my application server URL (//MyServerName/esri-3.4/dojo/dojo) instead of ???HOSTNAME_AND_PATH_TO_JSAPI??? & it???s not loaded with some JS error. Now I have removed the following baseUrl property from dojo.js and then run the application, it works fine.

baseUrl:(location.protocol === 'file:' ? 'http:' : location.protocol) + '//' + "[HOSTNAME_AND_PATH_TO_JSAPI]js/dojo/dojo",


:cool::cool::cool: Thank you for your supports. :cool::cool::cool:
0 Kudos