|
POST
|
Alternatively, return a value from within the run function: map.on('click', function (e) {
parcels = queryOnMapClick(e);
});
function queryOnMapClick(clicked) {
var clickedParcels = L.esri.Tasks.identifyFeatures(pathtoservice)
.on(map)
.at(clicked.latlng)
.layers('visible:4')
.run(function (error, featureCollection, response) {
console.log("UTC Offset: " + featureCollection.features[0].properties.APN_PQ);
return featureCollection.features;
});
}
... View more
02-26-2015
01:12 PM
|
0
|
3
|
1391
|
|
POST
|
You could assign the variable in your run function: map.on('click', function (e) {
queryOnMapClick(e);
});
function queryOnMapClick(clicked) {
var clickedParcels = L.esri.Tasks.identifyFeatures(pathtoservice)
.on(map)
.at(clicked.latlng)
.layers('visible:4')
.run(function (error, featureCollection, response) {
console.log("UTC Offset: " + featureCollection.features[0].properties.APN_PQ);
parcels = featureCollection.features;
});
}
... View more
02-26-2015
01:09 PM
|
0
|
0
|
1391
|
|
POST
|
The Shape_Length is a calculated field and cannot be changed. The value is derived directly from the geometry so the only way to change it is to modify the shape of the feature.
... View more
02-26-2015
01:04 PM
|
0
|
1
|
572
|
|
POST
|
Check out the Summary Statistics tool. You could SUM the PCE_VOLU_3 fields using NO as your case field.
... View more
02-26-2015
12:59 PM
|
0
|
0
|
1317
|
|
POST
|
Forgot to mention: the GeoJSON file that the sample links to (i.e. operationalLayers). The sample seems to be loading GeoJSON from an ESRI service that has a different JSON data structure than the data that you are loading. There are no special keywords - the sample just accesses features using a different object property: Sample: var features = response.operationalLayers[0].featureCollection.layers[0].featureSet.features; Your data: var features = response.features;
... View more
02-24-2015
02:32 PM
|
1
|
1
|
4366
|
|
POST
|
Once you have your JSON data in the response object you can iterate over the list of features and use the geometry or properties (attributes) however you like: // Change URL to get your JSON data
L.esri.get('http://.../data', {}, function (error, response) {
// JSON data is in the response object - get features
var features = response.features;
// Loop through the response features
for (var i = features.length - 1; i >= 0; i--) {
// access feature properties
console.log("Feature ID: " + features.id, features);
}
}
... View more
02-24-2015
02:26 PM
|
1
|
2
|
4366
|
|
POST
|
No problem - I haven't used it for a while but ArcGIS Diagrammer was very useful for a project I worked on some time ago.
... View more
02-22-2015
01:07 AM
|
0
|
0
|
1700
|
|
POST
|
You may need to ensure that they have .NET Support for ArcGIS Desktop. For more information see: 34178 - Install .NET Support for ArcGIS Desktop Below are the two instances in which .NET support is not automatically installed with ArcGIS Desktop. The .NET Framework was not installed on the computer before the ArcGIS Desktop install was performed. The version of the .NET Framework installed on the computer was not the correct version at the time that the ArcGIS Desktop install was performed. The ArcGIS installer should really handle this stuff but I have come across installations with the issues highlighted. Can you locate the ESRI .Net assemblies on the target machine? - for example ESRI.ArcGIS.Geometry
... View more
02-22-2015
01:05 AM
|
0
|
0
|
1097
|
|
POST
|
You may want to check out the ArcGIS Diagrammer - Demonstration Video - YouTube The ArcGIS 10.1 version is available here, but there should be a version of the tool for ArcGIS 10.0 around somewhere as well. ESRI keeps changing the links to older resources
... View more
02-22-2015
12:55 AM
|
0
|
2
|
1700
|
|
POST
|
Hi Amanda - this is the ESRi forum for all things ArcGIS. Maptitude is not an ESRI product so you may be better asking this somewhere else.
... View more
02-18-2015
04:40 PM
|
0
|
1
|
554
|
|
POST
|
In Visual Studio you can change the ESRI references to be somewhat version independent. In your project navigate to the References folder and select one of the ESRI references (e.g. ESRI.ArcGIS.Geometry). If you look in the Properties window there is a Specific Version setting - change this to false. If the Specific Version is set to true, your application runs it will attempt to locate the exact version of the DLL file. When you deploy to multiple ArcGIS versions this will fail. Be aware that this approach will not work if there have been changes to the namespaces or you use new functions that are not in previous versions of the SDK. The safest solution is to have separate versions for each ArcGIS version. However, if you are only using a limited part of the SDK that is fairly static then I would look into the Specific Version setting first.
... View more
02-18-2015
01:46 PM
|
0
|
2
|
1097
|
|
POST
|
The shape field is a geometry and cannot be compared to a string. ESRI often displays the geometry type in the field value - for example in the ArcMap feature class attribute table. Why are you attempting to search on geometry type? - there may be an alternative way to do what you are after.
... View more
02-18-2015
01:15 PM
|
1
|
1
|
1125
|
|
POST
|
Have a look at the reply by Kelly Hutchins in this question - Re: URL coordinate parameters You can get the URL parameters using urlToObject: var urlObject = esri.urlToObject(document.location.href);
// check for a URL query and address parameter
if(urlObject.query && urlObject.query.search){
var addr = urlObject.query.search;
console.log("Address: ", addr);
} EDIT - Rene just beat me to it and has the correct approach.
... View more
02-18-2015
01:11 PM
|
1
|
0
|
1554
|
|
POST
|
You can right-click on your layer in the Table of Contents and 'Save as Layer File...'. If you have other layers that need to use this symbology: open the Layer Properties to the same tab as shown in the image above click the Import button. browse to the layer file you saved previously
... View more
02-17-2015
04:31 PM
|
1
|
2
|
1151
|
|
POST
|
From memory - when using Update Features in the REST API you need to pass in the ObjectId of the feature(s) you want to update. This may be an issue if you only have the GlobalId value as you would need a separate query to get the ObjectId for a known GlobalId.
... View more
02-17-2015
04:19 PM
|
0
|
0
|
1566
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-07-2014 06:13 PM | |
| 1 | 08-25-2015 02:04 AM | |
| 1 | 10-07-2014 03:54 PM | |
| 1 | 08-07-2014 09:19 PM | |
| 1 | 03-04-2015 02:02 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-21-2021
06:32 PM
|