POST
|
Hi Kevin, I hope all is well. I know this is an old thread but did you ever find a solution to this issue? I'm having the same problem the map and features update fine but the indicators, charts and gauges won't refresh unless I refresh the browser.
... View more
05-16-2022
11:50 PM
|
1
|
2
|
1326
|
POST
|
Hi Is there any way to display information from different data sources on the same widgets? I would like to include a bar chart that breaks down my data by type, I would like the user to have the ability to select a geographical area and see the results in the bar chart. This all works fine how I have configured the system, the problem is I have more than one data source showing different data. I would like the bar chart to change depending on which data source I have switched on in the layer picker. Is this possible? Regards Martyn
... View more
01-13-2014
12:58 AM
|
0
|
0
|
3343
|
POST
|
I've managed to get it working now I just needed to add a refresh method into the gridUpdated function like this; _gridUpdated: function () { // [GOTCHA] For some reason, whenever the list of features is displayed, // dojo re-renders the Grid headers. So, here we need to set the feature // count again. this._featureGrid._refresh(); dojo.byId(this.id + "-count").innerHTML = "(" + this._featureGrid.rowCount + ")"; },
... View more
03-18-2011
01:35 AM
|
0
|
0
|
246
|
POST
|
I think that the problem lies with that fact that i'm using version 1.6 of the API and the Identify Dijit uses version 1.4 of the API. Still not sure how to fix this problem??
... View more
03-17-2011
01:40 AM
|
0
|
0
|
246
|
POST
|
Hi How would I add a Hyperlink to the Identify Dijit, the code it needs to be added to is; identifyDijit = new dijits.identify.Identify ({ map: this._map, label: "Identify features", defaultTolerance: 2, mapServices: [{ url: "http://arcgis/ArcGIS/rest/services/Features/MapServer/", name: "Humberside Features", //layerIds: [0], layerOption: esri.tasks.IdentifyParameters.LAYER_OPTION_ALL, displayOptions: {"0": { layerAlias: "Risk Information", displayFieldName: "URN", attributes: ["URN","FILE_PATH", "NAME", "TYPE","SITE_ID"] } } The FILE_PATH is what I need to be displayed as a Hyperlink.
... View more
02-06-2011
10:44 PM
|
0
|
0
|
388
|
POST
|
Hi I am trying to incorporate the sample ESRI Identify Dijit into my mapping system using Visual Studio, i have added all the necessary folders/files, I have created the reference to my map which works fine. I am able to click any point on the map and the Identify window is loaded, the problem I'm having is with the results that are being returned. At first the window is blank showing zero results, if I then click the header of the datagrid which sorts the results all of the results appear?? It's like the Identify window needs a mouse click to display the results, but i've used the dijit exactly as advised. Anyone have a solution to this?
... View more
02-03-2011
01:55 AM
|
0
|
3
|
600
|
POST
|
Try changing your query.where statement to this unless you have a field called Upper(ADDRESS1): query.where = "ADDRESS1 LIKE '%" + station.toUpperCase() + "%'" ; Also you have an extra space in the onclick event: onclick="executeQueryTask(dojo.byId('station').val ue);" Change it to: onclick="executeQueryTask(dojo.byId('station').value);" I hope this helps. Hi Don Thanks for getting back to me. My query and code works fine as it is, the UPPER is to handle users entering data in the wrong case, and the extra space is just how the code was formatted as bold. The issue I have is altering my working code to include 2 user inputs via 2 text boxes but only using one button to execute the query.
... View more
08-19-2010
11:59 PM
|
0
|
0
|
223
|
POST
|
Hi All I'm new to ESRI and Javascript and i'm a little stuck. How do I get a queryTask to run with 2 user inputs? I'm looking at having 2 textboxes and one onclick button, but I want both user inputs to be used in the same query. Here is my code with one input, I think that the code that I have bolded need to be altered but I can't seem to get it to work. //build query task queryTask = new esri.tasks.QueryTask("http://arcgis/ArcGIS/rest/services/AllIncidents/MapServer/0"); //build query filter query = new esri.tasks.Query(); query.returnGeometry = true; query.outFields = ["ADDRESS1", "ADDRESS2", "STATIONGROUND"]; //create the infoTemplate to be used in an InfoWindow. //All ${attributeName} will be substituted with the attribute value for current feature. infoTemplate = new esri.InfoTemplate("${ADDRESS1}", "Address1 : ${ADDRESS1}<br/> Address2 : ${ADDRESS2}<br />station : ${STATIONGROUND}"); //create symbol for selected features symbol = new esri.symbol.SimpleMarkerSymbol(); symbol.setStyle(esri.symbol.SimpleMarkerSymbol.STYLE_SQUARE); symbol.setSize(10); symbol.setColor(new dojo.Color([0,255,0,0.25])); } function executeQueryTask(station) { //set query based on what user typed in for population; query.where = "Upper(ADDRESS1) LIKE '"+ "%" + station.toUpperCase() + "%" + "'" ; ; //execute query and call showResults on completion queryTask.execute(query,showResults); } function showResults(featureSet) { //remove all graphics on the maps graphics layer map.graphics.clear(); //QueryTask returns a featureSet. Loop through features in the featureSet and add them to the map. //Performance enhancer - assign featureSet array to a single variable. var resultFeatures = featureSet.features; for (var i=0, il=resultFeatures.length; i<il; i++) { //Get the current feature from the featureSet. //Feature is a graphic var graphic = resultFeatures; graphic.setSymbol(symbol); //Set the infoTemplate. graphic.setInfoTemplate(infoTemplate); //Add graphic to the map graphics layer. map.graphics.add(graphic); } } dojo.addOnLoad(init); </script> </head> <body class="tundra"> <br/> Please Enter Incident Address: <input type="text" id="station" value="a164 rd" /> <input type="button" value="Get Details" onclick="executeQueryTask(dojo.byId('station').value);" /> <div id="mapDiv" style="width:600px; height:600px; border:1px solid #000;"></div> Click on a city once it's highlighted to get an InfoWindow.
... View more
08-19-2010
05:57 AM
|
0
|
3
|
1857
|
Title | Kudos | Posted |
---|---|---|
1 | 05-16-2022 11:50 PM |
Online Status |
Offline
|
Date Last Visited |
05-17-2022
01:21 AM
|