POST
|
I'm glad to help. Please remember to click the check mark if this answered your question. This helps others searching for a similar answer.
... View more
01-09-2014
11:17 AM
|
0
|
0
|
421
|
POST
|
You can set the content of an infoWindow to be just about anything you want. I don't know of any specific popup that would have the capability of what you're looking for, but you can be quite creative. It's just a matter of coding it. You've probably seen the samples of Popup and InfoWindows that show several different ways of formatting it. Here's an example where I use a dGrid to show the results of an IdentifyTask for multiple layers in a dynamic layer.
... View more
01-09-2014
09:01 AM
|
0
|
0
|
421
|
POST
|
Take a look at this thread, which refers to the documentation page about events. What you'll probably need is something like this
AG_QueryTask.execute(query, function(featureSet) {
callback(featureSet,evt);
}, function(returnedEvent){
hideLoading();
if (bUserQuery && returnedEvent.error.message == "timeout exceeded") {missatge("Error",_("Took too long to answer. Try again"));}
else {errorMessage(returnedEvent.error);}
});
... View more
01-09-2014
08:35 AM
|
0
|
0
|
357
|
POST
|
Are you thinking of an application like this that uses the Attribute Inspector?
... View more
01-08-2014
08:46 AM
|
0
|
0
|
419
|
POST
|
Agreed, feature layers from feature collections are a great thing but they are limiting when your app requires editing and/or advanced querying capabilities. Is there information in the documentation about what makes feature layers from feature collections so great?
... View more
01-08-2014
07:14 AM
|
0
|
0
|
229
|
POST
|
I'm running IdentifyTasks on several different dynamic layers and I like to find out which results came from a specific service. The application is built as a template, where the layers are added using information (urls, etc) from a configuration file. I'm using code that was developed from this thread to get my list of results. In the code, a list of IdentifyTasks is built with different IdentifyParameters for each visible layer in the map. Each of the features gets the result's layerName appended to its attributes formatResults = arrayUtils.map(results, function (result) { var feature = result.feature; var layerName = result.layerName; feature.attributes.layerName = result.layerName; return feature; }); Here is an example of the application. There are two different services that are being identified, Benthic Data and Additional Data. The content in the infowindow will depend on which service the feature is from. [ATTACH=CONFIG]30326[/ATTACH] However, since the layers are being added dynamically, I could have a case where different services could contain layers with the same name. Therefore, instead of the layerName, I'd like to get the url of the service appended to each feature. Is there a way to do that? If that isn't possible, could I get the layer ID (not the numeric layerID, but the ArcGISDynamicMapServiceLayer id)?
... View more
01-07-2014
09:37 AM
|
0
|
5
|
3093
|
POST
|
Sorry about that...can you post links with errors? I've started a new thread to avoid hijacking this one.
... View more
01-03-2014
11:01 AM
|
0
|
0
|
462
|
POST
|
If that's too much trouble, you can always email js_feedback@esri.com to get our attention. As an aside, I've sent several emails to that address as far back as July about corrections that should be made to the documentation, such as incorrect code snippets or listed return values. However, the errors still persist.
... View more
01-03-2014
07:19 AM
|
0
|
0
|
462
|
POST
|
It seems that geostatistical layers are really just referencing the source of their input layers? http://resources.arcgis.com/en/help/main/10.2/index.html#/What_is_a_geostatistical_layer/00310000005z000000/ http://help.arcgis.com/en/sdk/10.0/arcobjects_net/componenthelp/index.html#/esriDatasetType_Constants/002500000042000000/ I played around with it briefly and it seems to return 5-esriDTFeatureClass for some outputs, and 12-esriDTRasterDataset for other Geostatistical Layers. There must be some way to identify geostatistical layers though, obviously you can find a specific layer using the name in the TOC, but I'm not sure how you could identify just those layers created using geostatistical analyst. Sounds like a question for an MVP or support... However, a GeoStatistical Analyst layer does have some unique aspects, with additional information in the TOC and a different context menu, so there must be some way of differentiating it. I just can't find any coclasses that implement ILayer which would represent a GeoStatistical layer.
... View more
01-02-2014
08:45 AM
|
1
|
0
|
572
|
POST
|
It could be that the map isn't ready by the time the code gets to the line "myMap.graphics.clear();". Have you tried putting that in the onLoad or onLayersAddResult event?
... View more
01-02-2014
04:14 AM
|
0
|
0
|
566
|
POST
|
Did you set up a proxy page? If you examine the code, it contains this // use a proxy page if a URL generated by this page is greater than 2000 characters
//
// using a polygon (the buffer returned from the geometry service) as a query geometry
// will generate a long url as all vertexes from the geometry are sent to the service as
// part of the URL
//
// if proxyUrl is null or undefined the featureLayer.selectFeatures call will not work
esriConfig.defaults.io.proxyUrl = "/proxy";
... View more
12-31-2013
07:43 AM
|
0
|
0
|
294
|
POST
|
Also, be aware that the reference will not be found in "Add ArcGIS Reference". For all geoprocessing tools, you have to use "Add Reference", select the .NET tab, and chose the reference from that list. Once you add the reference, you have to manually set the Specific Version to false.
... View more
12-30-2013
05:18 AM
|
1
|
1
|
728
|
POST
|
I'm not aware of a layer type specific to GeoStatistics
... View more
12-30-2013
04:19 AM
|
0
|
0
|
572
|
POST
|
This code, taken from an add-in (which is why it uses My.ArcMap.Document), will loop through all the layers in your document and return only point layers
ESRI.ArcGIS.Carto.ILayer2 pLayer = default(ESRI.ArcGIS.Carto.ILayer2);
ESRI.ArcGIS.Carto.IFeatureLayer2 pFLayer = default(ESRI.ArcGIS.Carto.IFeatureLayer2);
ESRI.ArcGIS.Carto.IEnumLayer pEnumLayers = default(ESRI.ArcGIS.Carto.IEnumLayer);
if (My.ArcMap.Document.FocusMap.LayerCount > 0) {
pEnumLayers = My.ArcMap.Document.FocusMap.Layers;
pLayer = pEnumLayers.Next;
while (!(pLayer == null)) {
if (pLayer is ESRI.ArcGIS.Carto.IFeatureLayer & !pLayer is ESRI.ArcGIS.Carto.IGroupLayer & pLayer.Valid) {
pFLayer = new ESRI.ArcGIS.Carto.FeatureLayer();
pFLayer = pLayer;
if (pFLayer.ShapeType == ESRI.ArcGIS.Geometry.esriGeometryType.esriGeometryPoint) {
//a point layer
}
}
pLayer = pEnumLayers.Next;
}
}
... View more
12-24-2013
03:39 AM
|
1
|
0
|
572
|
POST
|
Could it be a problem in connecting to the Esri's JSAPI? Take a look at this post to see if this solution works for you.
... View more
12-19-2013
07:23 AM
|
0
|
0
|
97
|
Title | Kudos | Posted |
---|---|---|
1 | 07-22-2021 02:14 PM | |
1 | Thursday | |
1 | Thursday | |
1 | 12-15-2023 08:33 AM | |
1 | 2 weeks ago |
Online Status |
Offline
|
Date Last Visited |
yesterday
|