|
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
|
1247
|
|
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
|
570
|
|
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
|
1396
|
|
POST
|
This is a bug with the Geoprocessor.Excecute method. NIM090973
... View more
04-24-2013
06:14 PM
|
0
|
0
|
1396
|
|
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
|
2913
|
|
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
|
1396
|
|
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
|
1926
|
|
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
|
3429
|
|
POST
|
Once published, a ArcGIS Map Service has a Full Extent and an initial Extent property. These two values don't match in our map services. The Full Extent in the map service matches what I have set in the MXD data frame Extent at time of publishing, but I don't understand where the initial extent comes from. How is the initial extent property set for a Map Service, and is it possible to change after publishing? Thanks, Mele
... View more
03-28-2013
12:38 PM
|
0
|
0
|
1524
|
|
POST
|
In the Silverlight API Map Class , there is a Map.SnapToLevels property which "Gets or sets whether zooming will snap to scale levels if the map contains cached layers". I do not see the same property in the JS API, but I was wondering if someone had found a way to zoom "in between" cached layers in a Tiled Map Service. Thanks, Mele
... View more
03-28-2013
12:32 PM
|
0
|
4
|
1390
|
|
POST
|
I am suddenly encountering the same issue on a Cache that I have rebuilt many times before. Any luck with resolving this? I also have a support request in to ESRI and will post if I get some resolution to this problem. Thanks, Mele
... View more
03-13-2013
03:44 PM
|
0
|
0
|
2913
|
|
POST
|
We recently upgraded our SDE database to 10.1 and in 10.1, the SQL Geometry is the default Geometry type as defined in the DBTUNE table and as such new feature classes used the SQL Geometry Type unless specified otherwise. Also, new Geodatabases use SQL Geometry as the default as well. What is the reason that the SQL Geometry is the default type in ArcSDE 10.1? Is it to make the Geodatabase more accessible in an enterprise? Are there performance benefits? Is the parcel fabric supported use SQL Geometry? Are ArcGIS Topologies supported using SQL Geometry? I like the capabilities that SQL Geometry offers in terms of accessing the data, but in our situation, the Geodatabase is for data creation and management and I am wondering if the SDE Binary Geometry Type is suitable. Thanks for your thoughts, Mele
... View more
03-11-2013
06:17 PM
|
0
|
2
|
2290
|
|
POST
|
Another way around this is to add a buttoon that clears the selected feature in the TemplatePicker using the clearSelection method: http://help.arcgis.com/en/webapi/javascript/arcgis/jsapi/#TemplatePicker/clearSelection Mele
... View more
03-05-2013
02:08 PM
|
0
|
0
|
1006
|
|
POST
|
Diana, Thanks for the information. I did not know that clicking the feature again in the template picker would cancel. As you said, not intuitive, but at least a way out of the process for our users. Mele
... View more
03-05-2013
11:41 AM
|
0
|
0
|
1006
|
|
POST
|
Vince, Thanks for clarifying this issue. We may update the multi-version views down the road, but it sounds like it is not an immediate concern as they are working. Mele
... View more
03-04-2013
11:14 AM
|
0
|
0
|
1559
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-27-2026 09:23 AM | |
| 1 | 02-26-2026 06:47 AM | |
| 3 | 10-20-2025 05:21 AM | |
| 1 | 03-13-2015 04:39 PM | |
| 1 | 09-18-2025 08:33 AM |
| Online Status |
Online
|
| Date Last Visited |
10 hours ago
|