POST
|
Thanks for the reply. when i define an outSpatialReference, it's working now. Spatial reference of the basemap is 102100 and that of the layer is 3006. But, if you see the api reference; outSpatialReference The spatial reference for the returned geometry. If not specified, the geometry is returned in the spatial reference of the map. selectFeatures(query,selectionMethod?,callback?,errback?) The outSpatialReference set by the query object is ignored and the map's spatial reference is used. So, according to Api reference, map's WKID value should be used when selecting features, isn't it? whay we need to specify WKID for the query if they skip? and how it works when I specify an outSpatialReference? /Rukshan
... View more
11-21-2013
07:12 PM
|
0
|
0
|
199
|
POST
|
[ATTACH=CONFIG]29264[/ATTACH] See the image attached. When I call the Select Features method, selected features shows in a different location. I debug the code and came to know that WKID values and line feature paths are different in two scenarios (initial load & calling Select Features method). How this can happen? Any solution for that? In the image, first value set is of the initial load of the feature and second value set is of the select feature method call of that feature.
... View more
11-21-2013
01:36 AM
|
0
|
2
|
390
|
POST
|
Thanks for the reply. Now I understood that, map should be fully loaded to get the geometry type of a layer. So, when i call FeatureLayer.geometryType inside layer-add-result event. it works fine.
... View more
11-20-2013
08:52 PM
|
0
|
0
|
1362
|
POST
|
Hi, I created a feature layer and tried to get the geometry type of that layer. But this doesn't work. I need this to define a selection symbol depending on the geometry type. featureLayer = new esri.layers.FeatureLayer(layerListArray[0], layerOptions);
featureLayer.geometryType; (This doesn't work)
featureLayer.setSelectionSymbol(markerSymbol);
map.addLayer(featureLayer); Need a help...
... View more
11-20-2013
07:11 PM
|
0
|
2
|
4415
|
POST
|
Callback funtion: function selectFeatureCallBackFunc(featureServerCalls, features) {
AddCallbackLayerDetails(featureServerCalls, features);
} For loop: for (k = 0; k < mapServicesList.length; k++) {
featureLayertoSelect = mapServicesList ;
featureLayertoSelect.selectFeatures(query, esri.layers.FeatureLayer.SELECTION_NEW, function (result) { selectFeatureCallBackFunc(featureLayertoSelect, result) }, errback);
}
If you debug the code and check the featureServerCalls value inside the callback function, it'll be same in each call back.
... View more
10-16-2013
09:37 PM
|
0
|
0
|
437
|
POST
|
I tired this and this doesn't work. :mad: in the callback method when you try to get the feature server id, every time you get the id of the feature server you called last inside the loop. Strange, but not working.
... View more
10-14-2013
08:05 PM
|
0
|
0
|
437
|
POST
|
I�??m calling selectFeatures(query,selectionMethod?,callback?,errback?) method in a loop and I need to know the feature layer of each result. I call the same callback function for each call inside the loop. I tried several ways but neither worked. Followed this link as well: http://directwebremoting.org/dwr/documentation/browser/extra-data.html What I want to do is to list the number of features returned from each feature server. Please help�?�
... View more
10-14-2013
03:05 AM
|
0
|
5
|
756
|
POST
|
i want to know how to set column value as null in esri table from java script. i tried using below but it doesn't work. features[0].attributes['IFSid'] = null features[0].getLayer().applyEdits(null, [features[0]], null, cbUpdateEsriHandleQueryResult, ebUpdateEsriHandleQueryResult); IFSid is a smallint column.
... View more
08-25-2013
10:00 PM
|
0
|
0
|
611
|
POST
|
http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/ed_attribute_inspector.html Using above sample, I cannot edit the fields. I tried the live sample. It didn't work. Can anyone help me?
... View more
05-30-2013
03:39 AM
|
0
|
2
|
625
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|