POST
|
I am trying to query a feature layer on my ArcGis Server withe the following code:
var queryTask = new esri.tasks.QueryTask(arcServerRESTURL + "/" + layerNumber);
var query = new esri.tasks.Query();
query.geometry = multipoint;
query.returnGeometry = true;
query.outFields = ["*"];
queryTask.execute(query, function(featureSet) {
for (var i=0, il=featureSet.features.length; i<il; i++) {
idList.push(parseInt(featureSet.features.attributes.id));
if (showResult) {
featureSet.features.setSymbol(gemeindenSymbol);
graphicsLayer.add(featureSet.features);
};
}
}
}, function(error){
alert(error);
});
Everytime I got this error message: Invalid or missing input parameters. Can I do something that the query use the mulipoint as geometry type? Regards Jörg
... View more
03-26-2014
07:24 AM
|
0
|
0
|
878
|
POST
|
hi Haoliang thanks for your answer. I will try it soon and I am optimistic that these code will help me 🙂 Jörg
... View more
01-23-2014
12:27 AM
|
0
|
0
|
315
|
POST
|
Hi all! Last year I developed an Add-In which works together with an Extension. In the Add-In code i get the extension with these rows: Dim extensionID As New UIDClass()
extensionID.Value = "Id_of_Extension"
Dim pExtension As IExtension = pApplication.FindExtensionByCLSID(extensionID) After these rows the Add-In calls methos from the Extension and this works fine. But now we are converting the extension to an Add-In and I need a similar solution to get the Add-In. I don't find code examples on the ESRI sites. Maybe I use the wrong search words 😉 Is there a similar method to get an Add-In for working with it? Jörg
... View more
01-06-2014
10:44 PM
|
0
|
2
|
881
|
POST
|
Hi Sai Phaneendra, did you find a solution? I am also trying to reorder the layers. There is a method moveLayer(oldindex, newindex) of the map but it does not work for me 😞 Jörg
... View more
07-11-2013
01:00 AM
|
0
|
0
|
241
|
POST
|
Finally I found it. Old code: <script type="text/javascript"> var dojoConfig = { parseOnLoad : true, packages : [{ name : "cbtree", location : "$cbtreePfad" }, ] }; </script> The comma after the closing bracket cause the problem on IE8. With this code it works: <script type="text/javascript"> var dojoConfig = { parseOnLoad : true, packages : [{ name : "cbtree", location : "$cbtreePfad" }, ] }; </script> Hard to find and the messages from IE8 are not very useful 😞 But now it works 🙂
... View more
06-21-2013
07:18 AM
|
0
|
0
|
343
|
POST
|
Hi, I've got an web application which runs withoiut problems with Firefox and Chrome but not with Internet Explorer 8: [ATTACH=CONFIG]25380[/ATTACH] This is the row 36 in gamo.js: define("gamo", ["dojo/ready", "dijit/Tooltip", "dijit/Toolbar", "dijit/TooltipDialog", "dijit/form/TextBox", "dijit/form/Button", "dijit/form/DropDownButton", "dojo/dom", "cbtree/Tree", "cbtree/models/ForestStoreModel", "dojo/_base/connect", "dojo/domReady", "esri/dijit/Legend", "esri/dijit/Popup", "esri/dijit/OverviewMap", "esri/dijit/Scalebar", "esri/layers/FeatureLayer", "dijit/Dialog", "dojo", "dojo/_base/lang", "dojo/data/ItemFileWriteStore", "dojox/grid/DataGrid", "esri/dijit/Print", "dijit/Menu", "dijit/MenuItem", "dijit/form/ComboButton"], function(ready, Tooltip, Toolbar, TooltipDialog, TextBox, Button, DropDownButton, dom, Tree, ForestStoreModel, connect, domReady, Legend, Popup, OverviewMap, Scalebar, FeatureLayer, Dialog, dojo, lang, ItemFileWriteStore, DataGrid, Print, Menu, MenuItem, ComboButton) { IE doesn't recognize the define method from dojo. But if it is in debug mode IE8 shows the page with a working map but with css failures. In normal mode no map is shown. I think it is a problem with loading the esri/dojo api but I am not sure. Has anyone ane idea?
... View more
06-20-2013
01:46 AM
|
0
|
1
|
1585
|
POST
|
Hi frank_mclean, thanks for your answer in this thread. At this time I don't have to work with our webclients but shortly I have to and then I will try your solution. It is good to know that now I can change from a static legend to a dynamically created 🙂 Thanks, Jörg
... View more
04-25-2013
11:18 PM
|
0
|
0
|
167
|
POST
|
Did you ever figure this out? I'm having the same issue. No, I have no idea how to solve the problem. I tried to find an attribute in the graphics object which is used in the print service as name in the legend but it does not work. rlt.typ should be the legend name: graphic = new Graphic();
graphic.geometry = new MapPoint(rlt.localX, rlt.localY, usedSRS);
graphic.symbol = new PictureMarkerSymbol(markerImage);
graphic.toolTip = rlt.bezeichnung;
graphic.name = rlt.typ;
graphic.accessibilityDescription = rlt.typ;
graphic.accessibilityName = rlt.typ;
graphic.className = rlt.typ;
graphic.automationName = rlt.typ; I save the graphics in an own graphicsLayer and added this layer to the map. I also saved the graphics in the defaultGraphicsLayer from the map but in this way no items appear in the legend. I think this behaviour is normal because items in the defaultGraphicslayer are not considered in the legend.
... View more
02-27-2013
01:37 AM
|
0
|
0
|
1382
|
POST
|
Hi! I added some graphics in a graphicLayer which works well in the browser web map and also in the pdf produced with the server print task. You can see the graphics in the pdf but in the legend you see the symbols but only the item names "Override 1" "Override 2" etc. Is there a possibilty to rename the item objects in the legend from the pdf? Here is an example: [ATTACH=CONFIG]21491[/ATTACH] The other 2 items are not part of the graphics layer.
... View more
02-06-2013
02:50 AM
|
1
|
10
|
8163
|
POST
|
Same problem with Javascript API 3.2. If I add a Layer to the visibleLayers-Array of a DynamicMapServiceLayer the legend does not automatically refresh. I must call legend.refresh() to refresh it. In the legend only the Layers are displayed which are loaded at the start of the webmp 😞 But my main problem is that the legend does not refreshes at the print task. There is always shown the original legend with the maps from the webMap after loading 😞
... View more
01-16-2013
10:17 PM
|
0
|
0
|
379
|
POST
|
Hi together! I'm trying to delete an ITable in an inMemoryWorkspace but the following code doesn't work: Public Sub deleteTableInWorkspace(ByVal pTable As ITable)
Dim pDataset As IDataset
pDataset = pTable
CType(managerInMemoryWorkspace, IFeatureWorkspaceManage).DeleteByName(pDataset.FullName)
End Sub The code doesn't throw an exception but later I try to generate a new ITable with the same name: Dim pTable As ITable = workspace.CreateTable(ITableName, pFields, Nothing, Nothing, "") Now I get the following exception: "Exception from HRESULT: 0x80040353" I debugged my code and recognize that the IName object from my generated ITable is empty. Is this the problem why the deleteTableInWorkspace method doesn't work? But how can i fill the IName object from the Tbale with values?
... View more
12-18-2012
11:51 PM
|
0
|
1
|
304
|
POST
|
I solved the problem and choose the attribute field before loading the layer in a hard coded renderer.
... View more
11-19-2012
03:28 AM
|
0
|
0
|
178
|
POST
|
I want to load a layer with a static layout which I created in ArcMap but I want to select the attribute column from a feature layer dynamically after loading the layer into the webclient. Every year has its own attribute column. I tried this but it does not work:
dojo.connect(map, "onLayerAdd", function(layer) {
if (layerKey == "zielabw11m2") {
layer.renderer.Field = "M2_11_PZ";
}
else if (layerKey == "zielabw10m2") {
layer.renderer.Field = "M2_10_PZ";
}
else if (layerKey == "zielabw07m2") {
layer.renderer.Field = "M2_07_PZ";
}
}
});
I debugged it and Firebug throws no error. The layer appears but always with the same attribute column which I selected in ArcMap. Must I reload the layer? But how?
... View more
11-07-2012
04:42 AM
|
0
|
1
|
382
|
POST
|
It doesn't seem to respond to the standard slider settings: esriConfig.defaults.map.slider = { right:"10px", bottom:"10px", width:"200px", height:null }; Hi! I am wondering why nobody else have these problems with the slider. I also want to change the look but I can not find information about the sliderstyle except these line of code which does not work 😞 Did you solve the problem and what did you do? regards, Jörg
... View more
07-18-2012
04:21 AM
|
0
|
0
|
555
|
Title | Kudos | Posted |
---|---|---|
1 | 02-06-2013 02:50 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|