POST
|
Check this thread: http://forums.esri.com/Thread.asp?c=158&f=2396&t=267461 You can just connect your own event handler to something like the onClick event of the map. I hope this helps. - Paul
... View more
11-18-2013
06:50 PM
|
0
|
0
|
369
|
POST
|
Indeed, glad I stumbled on your post! I was struggling to figure out why the heck the onLayersAddResult event was not firing in my app. This should definitely be documented better. It is entirely unobviously that it would behave this way, and I would have been stuck on this much longer had I not seen this post.
... View more
03-25-2011
12:23 PM
|
0
|
0
|
360
|
POST
|
Hey, I got a bit lucky on this today. I decided to upgrade to version 2.2. of the API just because it was available (was using 2.1 prior). Upon trying the same functionality, I still got an error but a different message: Error: esri.config.defaults.io.proxyUrl is not set. It turns out that as I was passing more geometries and/or geometries with more vertices to the Geometry service, the URL string was exceeding the 2048 character limit. Thus, you have to configure a proxy page for your web server and access it in your web mapping app. Within the ArcGIS JavaScript API reference doc (http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm), go to the Concepts tab > Working with ArcGIS Server Services > Using the Proxy Page. I had the whole thing configured in less than an hour and indeed it solved the problem! I hope that helps. - Paul
... View more
03-16-2011
01:59 PM
|
0
|
0
|
154
|
POST
|
Hi, did you ever find out anything about this error? I'm experiencing something similar. I have a pretty basic web mapping app at this point. The user draws one or more polygons on the map and then clicks a button which calls the geometry service to simplify the polys, reproject them and calculate the combined area of them. I'm seeing the same error as you intermittently. Please let me know if you learn anything and I'll do the same. Thanks, Paul
... View more
03-16-2011
09:10 AM
|
0
|
0
|
154
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|