ArcGIS

23rd October
2008
written by Eric Polerecky

My good friend Jamey’s first blog post is about helping himself. Well…I just did the same on a post about using the ESRI JavaScript API to zoom to a polygon so I thought it best to provide him with a ping back…

21st August
2008
written by Eric Polerecky

In jQuery DOM manipulation is incredibly easy:

$("#dealer-toggle").toggle();

One would assume the same can be accomplished in dojo via:

dojo.query('node').toggle();

but you would be DAMN WRONG!

dojo.query will work fine but hide/show/toggle have been moved to the dojo.fx and renamed fadeOut for .hide() and wipeIn for .show()…what about toggle? no sir. There is no dojo function to toggle nods. You have to write your own.

 

ESRI

For anyone using the ESRI JavaScript Library for ArcGIS Server (a JavaScript Lib based on Dojo): ESRI created their own namespace in the API.

The ESRI namespace consists of 7 methods. I bet you can guess 3 of them.

hide

show

and of course

toggle

http://resources.esri.com/help/9.3/arcgisserver/apis/javascript/arcgis/help/jsapi/namespace_esri.htm

Wish

  1. Dojo “fixes” their query interface by using common function names. even if they are alias.
  2. Dojo adds toggle to the functions that can be acted on node lists (a node list if what is returned from dojo.query)
  3. The ESRI namespace used the same constructors as Dojo. ie: hide should be dojo.query(‘node’).hide();
12th August
2008
written by Eric Polerecky

After publishing a service if you make changes to the .MXD you need to clear the REST cache. There are a few ways to clear the REST cache:

  1. Restart IIS – Super Easy
  2. From the ArcGIS 9.3 REST admin page

Until you restart IIS the updates to the MXD will not be reflected in the REST service endpoint.

  • You are currently browsing the archives for the ArcGIS category.