POST
|
Try this: var selInfoTemplate = new esri.InfoTemplate("Sales Rep: ${NAME}", "${*}"); The extra () you had around the second parameter is unnecessary. The infoTemplate constructor takes two strings. http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/infotemplate.htm
... View more
04-10-2012
04:44 AM
|
0
|
0
|
776
|
POST
|
The simplest (and fastest) way to get the extent of an array of graphics is to use esri.graphicsExtent: var Extent = esri.graphicsExtent(FeatureSet.features); This is a little gem helper function found in the esri namespace: http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi_start.htm#jsapi/namespace_esri.htm#esri.graphicsExtent
... View more
03-30-2012
12:25 AM
|
0
|
0
|
294
|
POST
|
Speno, Can you describe the workflow and what you mean by intersection of two layers? Are they polygons? Is it the whole layer, just a few features, or just two features, or do you, etc. You should be able to use the intersect method of a geometry service. After which you can combine attributes. http://help.arcgis.com/en/webapi/javascript/arcgis/help/jsapi/geometryservice.htm#intersect and http://tasks.arcgisonline.com/ArcGIS/SDK/REST/index.html?intersect.html Please post more detail on your workflow.
... View more
03-30-2012
12:11 AM
|
0
|
0
|
1009
|
POST
|
Can you provide a link to your app or a sample that reproduces the issue?
... View more
03-28-2012
10:10 PM
|
0
|
0
|
311
|
POST
|
Did you guys get this working? It is very reliable once you get it setup correctly. One trick that may be causing you trouble is that the mxd template needs to be zoomed out to the full extent that anyone may ever ask for. I simply leave the templates zoomed out to world extent. Also, remember to leave all group layers on and turn off only the actual feature class layers in the template. This is necessary due to only the list of actual layers being sent to the service in the request, not group layers. The new print service at 10.1 will make this gp service no longer needed in most cases, and is MUCH faster. It will still be needed for large format printing (> 11x17) by using the data from SDE and not the web service (web service images will begin to pixel-ate at larger print sizes). Hope that helps!
... View more
03-28-2012
10:08 PM
|
0
|
0
|
402
|
POST
|
The ZoomTo link has an additional css class assigned to it. To remove (actually hide) only the ZoomTo link, but leave the other links you have created, use this css: .esriPopup .actionsPane .zoomTo { display: none; }
... View more
03-28-2012
09:44 PM
|
0
|
0
|
661
|
POST
|
Usually this is due to the group layers not being turned on in the MXD template. The best approach is to have all group layers turned on in the mxd and only the actual featureclasses turned off. The layers that get sent from the web app to the service in the layersList object are the actual feature layers, not group layers, thus the need to have all group layers turned on in the MXD template.
... View more
08-23-2011
08:38 AM
|
0
|
0
|
254
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:22 AM
|