|
POST
|
I would like to get the map click point, buffer it, and then use the resulting buffer polygon to Identify features with the IdentifyTask. The IdentifyTask does not execute using the code below, but if I use the evt.mapPoint, it does execute. Has anyone used a polygon as input into the IdentifyTask and can you tell me what I am doing wrong in this code? Thanks, Mele function executeIdentifyTask(evt) {
var bufferGeometry;
params = new esri.tasks.BufferParameters();
params.bufferSpatialReference = new esri.SpatialReference({ wkid: 2223 });
params.geometries = [evt.mapPoint];
params.distances = [35];
params.outSpatialReference = map.spatialReference;
gsvc = new esri.tasks.GeometryService("http://Server/Utilities/Geometry/GeometryServer");
gsvc.buffer(params);
gsvc.on("buffer-complete", function (result) {
bufferGeometry = result.geometries[0]
identifyParams.geometry = bufferGeometry;
//identifyParams.geometry = evt.mapPoint;
identifyParams.mapExtent = map.extent;
identifyTask.execute(identifyParams);
});
... View more
06-17-2013
03:33 PM
|
0
|
0
|
600
|
|
POST
|
Thanks Ken for the suggestion. I took a look at it appears that this level of control of Operation Allowed is availabe in 10.1. I did not see it in our 10.0 installation, but did see it in our 10.1 installation. This holds some promise, but like you said, I hope that the update of attributes is not disabled by un-checking 'Update'. I did notice that there is a "Allow Geometry Updates" Property but this would allow users to only update attributes. I will have to experiment with settings in the service, but it doesn't sound like we can prohibit the users from editing the geometry. Maybe there is something in the API.
... View more
06-13-2013
03:53 PM
|
0
|
0
|
372
|
|
POST
|
Is it possible to allow users to only ADD features with the Editor Widget? We don't want the users to be able to MOVE, DELETE, or EDIT VERTICES. I was looking at the the CreateOptions parameters, but didn't see how we could limit the functionality of the Editor Widget to only allow ADDs. Let me know if there is a way to do this. Thanks, Mele
... View more
06-13-2013
02:19 PM
|
0
|
2
|
682
|
|
POST
|
Kelly, Thanks for responding. I believe I may have found a fix for my issue. I had used css to set the height and width of the attribute inspector as shown: .esriAttributeInspector { height: 250px; width: 250px; } But if I change the height to 500px .esriAttributeInspector { height: 500px; width: 250px; } It appears that I can now click through the selected records. I will continue to test, but this is enouraging. Mele
... View more
05-31-2013
08:01 AM
|
0
|
0
|
479
|
|
POST
|
I am using the Attribute inspector in a DIV where users can edit attributes of selected features. If I select more than one feature, the attribute inspector shows (1 of 2) and has buttons to scroll through the selected features. The problem I am having is that only the "Last" button allows the user to click on it. The "Last" button take the user to the last record, but he other button do not move through the selected features. Any ideas as to what is preventing the buttons from being usable?
... View more
05-30-2013
02:13 PM
|
0
|
2
|
1117
|
|
POST
|
Charmalee, Thanks for the sample. This looks like just what I needed. Mele
... View more
05-14-2013
06:50 AM
|
0
|
0
|
1058
|
|
POST
|
I have a datagrid (dojox.grid.DataGrid) configured such that I can click on a row and show a symbol on the map for the "clicked" feature in the Grid. What I would like is to flash a symbol where the feature is. My thinking is to draw a graphic, pause, and then remove it to simulate a flash. Anyone have some code using the methodology above, or with a different method? Thanks, Mele
... View more
05-07-2013
03:43 PM
|
0
|
1
|
3192
|
|
POST
|
Kelly and Sowjanya, I am having trouble with getting the getSelectedFeatures method to show the current set of selected Features. Can you provide an example of what worked for you? I was able to get some success by using the "onselectioncomplete" event, but it fires often and the count did not seem correct. Thanks Mele function initSelectToolbar() {
var selectQuery = new esri.tasks.Query();
dojo.connect(map, "onClick", function (evt) {
var layerInfos = hydrMSL.layerInfos;
var visible = hydrMSL.visibleLayers;
for (var i = 0; i < layerInfos.length; i++)
{
layer = layerInfos;
if (visible.indexOf(layer.id) > -1)
{
var FL = find_in_array(FLayers, layer.id);
FL.setSelectionSymbol(selectionSymbol);
selectMode;
if(evt.ctrlKey) {
selectMode = esri.layers.FeatureLayer.SELECTION_SUBTRACT;
}
else
{
selectMode = esri.layers.FeatureLayer.SELECTION_ADD;
};
var centerPoint = new esri.geometry.Point
(evt.mapPoint.x, evt.mapPoint.y, evt.mapPoint.spatialReference);
var mapWidth = map.extent.getWidth();
//Divide width in map units by width in pixels
var pixelWidth = mapWidth / map.width;
//Calculate a 10 pixel envelope width (5 pixel tolerance on each side)
var tolerance = 10 * pixelWidth;
//Build tolerance envelope and set it as the query geometry
var queryExtent = new esri.geometry.Extent
(1, 1, tolerance, tolerance, evt.mapPoint.spatialReference);
selectQuery.geometry = queryExtent.centerAt(centerPoint);
//selectQuery.geometry = evt.mapPoint;
FL.selectFeatures(selectQuery, selectMode, function (features) {
if (features.length > 0) {
} else {
}
});
// dojo.connect(FL, "onSelectionComplete", selectMode, function(){
// for (var x = 0; x < FLayers.length; x++) {
// var selected = FLayers .getSelectedFeatures();
// var selected = FL.getSelectedFeatures();
// alert(selected.length);
// for (i =0; i < selected.length; i++)
// {
// var row = selected;
// }
//};
// });
};
}
});
function find_in_array(arr, value) {
var FLayer;
for (var i = 0, len = FLayers.length; i<len; i++) {
if (arr.layerId == value) return FLayers;
};
}
};
... View more
05-03-2013
03:02 PM
|
0
|
0
|
727
|
|
POST
|
I am adding both the feature layer and the map service to a map and setting the mode on the FeatureLayer to esri.layers.FeatureLayer.MODE_SELECTION. The application will have the ability to change the visibile layers for the Map Service. Based on the visible layers in the Map Service, I would like to either allow or disallow a query on the feature layer within the Map Service. How can I determine if the FeatureLayer is visible based on the visibleLayers for the Map Service. Thanks, Mele
... View more
04-26-2013
02:38 PM
|
0
|
0
|
423
|
|
POST
|
I was able to work around this bug by putting the following as the last line of code in my application: Process.GetCurrentProcess().Kill()
... View more
04-25-2013
03:21 PM
|
0
|
0
|
850
|
|
POST
|
This is a bug with the Geoprocessor.Excecute method. NIM090973
... View more
04-24-2013
06:14 PM
|
0
|
0
|
850
|
|
POST
|
After trying to delete the tiles with ArcGIS Server Tools in ArcCatalog, what I ended up doing was to stop the ArcGIS Server Windows Service and then I deleted the files manually within the offending scale level. I could then recreate the tiles in the scale that was reported in the error message. Not sure if this will work for others, but it was a work around for us.
... View more
04-23-2013
06:28 PM
|
1
|
0
|
1983
|
|
POST
|
I am having the same problem with Code I migrated from 10.0 to 10.1. I have the exact same references in a VS 2010 project as you but I am Deleting and Appending Features. My code works in 10.0, but after migrating it to 10.1, the console application either crashes or hangs up after executing the code much like you are seeing. I currently have a support ticket in and it is starting to sound like a bug with 10.1
... View more
04-23-2013
02:36 PM
|
0
|
0
|
850
|
|
POST
|
This worked great, but if I don't have the Editor widget and I am using just the AttributeInspector like in this sample: http://help.arcgis.com/en/webapi/javascript/arcgis/jssamples/ed_attribute_inspector.html How can I place the AttributeInspector in a DIV that is not on the Map? Thanks, Mele
... View more
04-22-2013
10:58 AM
|
0
|
0
|
1058
|
|
POST
|
I am using the IGeoProcessor in .NET and have seen the same behavior. I am using with ArcGIS 10 SP5. If a Feature Dataset contains a feature class with the same name, when I use IGeoProcessor.ListFeatureClasses(), None of the Feature Classes within the Feature Dataset are returned. Was there any resolution to this issue?
... View more
04-05-2013
09:36 AM
|
1
|
0
|
2232
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-20-2025 05:21 AM | |
| 1 | 03-13-2015 04:39 PM | |
| 1 | 09-18-2025 08:33 AM | |
| 1 | 05-12-2025 03:17 PM | |
| 1 | 08-15-2025 03:36 PM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|