POST
|
Thanks Robert. That code snippet worked great! I am still doing more testing, but it looks like it is doing the job. I appreciate your help and guidance. I did not know you could add a "watch" to the visible property. I learned something new.
... View more
06-13-2017
01:07 PM
|
0
|
0
|
1558
|
POST
|
Robert, I am adding the layers manually. I thought about creating an IF statement to keep track of what is visible. Seems like I can get the legend widget populated only if a layer is visible on map. I am just trying to display a legend 100% of the time, regardless if the layer is visible or not. Looks like the legendEnabled is dependent on the visibility of the layer. I know it is an odd request, but the user can always collapse the widget. I am still messing with it. if (Flzone1.visible = true) { (FlFake.visible = true); (FlFake.legendEnabled = true); } else if (Flzone1.visible = false) (FlFake.visible = false); (FlFake.legendEnabled = true); { }
... View more
06-13-2017
08:33 AM
|
0
|
1
|
1558
|
POST
|
Robert, I am not sure how I would check the visible property for each service. I ended up creating a duplicate feature layer of the services I am using (Zone1) and hide from my layerlist and set it to show in legend, so a user would not be able to toggle it off or on. But they funny the thing is that layer can never be turned off now, since it is hidden. Is there a way to always show a feature layer in the legend even though the the visible property is false Steve, I tried your suggestion below, but couldn't get it to work. Even though all my layers are turned off, I still have the hidden layer visible on map //Add the legend var legend = new Legend({ view: view, container: document.createElement("div") //this shows one legend instead of all 8 zones ,layerInfos: [{ layer: HiddenZoneLayer, // name of layer to display always title: "My Legend" }] //end showing one }); var lgExpand = new Expand({ view: view, content: legend.domNode, expandIconClass: "esri-icon-layer-list", expanded: true, expandTooltip: "Expand Legend", // optional, defaults to "Expand" for English locale }); // Add the widget to the bottom left corner of the view view.ui.add(lgExpand, "bottom-right"); // view.ui.add(legend, "bottom-right");
... View more
06-12-2017
06:06 PM
|
0
|
1
|
1558
|
POST
|
Thanks Robert for the reply, I was using that property in my code for all 8 services and I set only one service to true, but when I toggled off that particular layer off, there was no legend to see even though one or all of the remaining services were turned on due to the legendEnabled property set to false for the other seven services I have a separate layer widget where I can toggle off/on the different services. I've been looking around on how to efficiently insert an image when a user clicks an expand widget, if I can't get this work. Maybe listen for a click event or something like that
... View more
06-12-2017
12:52 PM
|
0
|
1
|
1558
|
POST
|
Hi, I have arcgis javascript 4.3 application with multiple map services which are all the same, so in my legend they appear 8 times with a vertical scroll bar, if all the map services are on and are identical. I was wondering there was a way to only display one map service regardless if the layer is off or on. I have 8 zones that are all symbolized the same, but I only need one legend inside the widget. I was also trying to just display a .png or .jpeg image of the legend widget, but no luck. Not sure if I will need to recreate a new widget or if there is another way to accomplish this task. Thanks in advance, Jerry
... View more
06-12-2017
12:19 PM
|
0
|
9
|
2237
|
POST
|
Hi - I want to create a query, if a user click a county anywhere in the states of California or Texas, I would like to highlight the county and state and display a message “you are in the state of CA or TX”, but if they click in any other state, display a message, “you are not in the designated state”, along the county and State name? I can’t get it to query two different states (polygons) and display the message. I am not sure if I am on the right track. I've reviewed most of the samples, but still having some issues. Thanks in advance. Jerry <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no" /> <title>Simple Map</title> <link rel="stylesheet" href="https://js.arcgis.com/3.17/esri/css/esri.css"> <style> html, body, #map { height: 100%; margin: 0; padding: 0; } </style> <script src="https://js.arcgis.com/3.17/"></script> <script> var map; require(["esri/map", "esri/layers/ArcGISDynamicMapServiceLayer", "esri/layers/ImageParameters", "esri/tasks/QueryTask", "esri/tasks/query", "esri/symbols/SimpleMarkerSymbol", "esri/InfoTemplate", "dojo/_base/Color", "dojo/domReady!"], function (Map, ArcGISDynamicMapServiceLayer, ImageParameters, QueryTask, Query, SimpleMarkerSymbol, InfoTemplate, Color) { map = new Map("map", { basemap: "topo", //For full list of pre-defined basemaps, navigate to http://arcg.is/1JVo6Wd center: [-122.45, 37.75], // longitude, latitude zoom: 5 }); //map.on("click", excuteQueryTask); //var imageParameters = new ImageParameters(); //imageParameters.format = "jpeg"; //set the image type to PNG24, note default is PNG8. //Takes a URL to a non cached map service. var dynamicMapServiceLayer = new ArcGISDynamicMapServiceLayer("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer", { "opacity": 0.5, //"imageParameters" : imageParameters, //"infoTemplate" : infoTemplate }); map.addLayer(dynamicMapServiceLayer); var queryTask = new QueryTask("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/3"); //States var queryTask1 = new QueryTask("https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/2"); //Counties var query = new Query(); query.returnGeometry = true; query.outFields = ["*"]; var query1 = new Query(); query.returnGeometry = true; query.outFields = ["NAME", "STATE_NAME", "POP2000"] var infoTemplate = new InfoTemplate("${*}"); var infoTemplate1 = new InfoTemplate("${Name}", "State Name : ${STATE_NAME}"); var symbol = new SimpleMarkerSymbol(); symbol.setStyle(SimpleMarkerSymbol.STYLE_SQUARE); symbol.setSize(10); symbol.setColor(new Color([255, 255, 0, 0.5])); map.on("click", excuteQueryTask); function excuteQueryTask(evt) { mappoint = evt.mapPoint; query.geometry = mappoint; queryTask.execute(query, showResults); queryTask1.execute(query1, showResults1); } function showResults(featureSet) { //remove all graphics on the maps graphics layer map.graphics.clear(); map.infoWindow.clearFeatures(); //Performance enhancer - assign featureSet array to a single variable. var resultFeatures = featureSet.features; //Loop through each feature returned 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); resultFeatures.setInfoTemplate(infoTemplate); } map.infoWindow.setFeatures(resultFeatures); map.infoWindow.show(mappoint); } function showResults1(featureSet1) { map.graphics.clear(); map.infoWindow.clearFeatures() var resultFeatures1 = featureSet1.features; for (var i = 0, il = resultFeatures1.length; i < il; i++) { resultFeatures1.setInfoTemplate(infoTemplate1); } map.infoWindow.setFeatures(resultFeatures1); map.infoWindow.show(mappoint) // alert(" you are in the state " ); } }); </script> </head> <body> <div id="map"></div> </body> </html>
... View more
08-24-2016
01:38 PM
|
0
|
1
|
1027
|
POST
|
Thanks Jake, I followed your advice and troubleshooted everything. I was able to get it going. Thanks again.
... View more
02-02-2016
06:52 AM
|
0
|
0
|
896
|
POST
|
Hi Jake, Thanks for the updated code. I am making progress. I think the problem is that I am not using the ESRI Streets basemap, instead I switched to a custom basemap("spatialReference "wkid": 102740). Now when I perform some of my spatial queries I get errors like "Unable to perform buffer(…) " or "Error executing simplify" I think I need to set my spatial reference again in my code, but I am not able to troubleshoot where. Here is a example of my error: {"error":{"code":400,"message":"Unable to perform buffer","details":["'geometries' must be specified"]}}
... View more
02-01-2016
01:26 PM
|
0
|
1
|
896
|
POST
|
Hi - I've been trying to implement some of the code samples that use the drawing toolbar, along with buffer parameters and query some feature layers. I've seen samples where you can click a point on the map, create a buffer and create a grid, but I can't seem to get mine to work. My click event seems to get mixed up with the Identify. I've also been trying to write the results to a grid, but I get the following error: Cannot read property 'setStore' of undefined. I attached my code with some sample services. I think I am somewhat close. Any help is greatly appreciated. Thanks <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <!--The viewport meta tag is used to improve the presentation and behavior of the samples on iOS devices--> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no" /> <title>Buffertest</title> <link rel="stylesheet" href="http://js.arcgis.com/3.12/dojo/resources/dojo.css" /> <link rel="stylesheet" href="http://js.arcgis.com/3.12/dijit/themes/claro/claro.css" /> <link rel="stylesheet" href="http://js.arcgis.com/3.12/dgrid/css/dgrid.css" /> <link rel="stylesheet" href="http://js.arcgis.com/3.12/esri/css/esri.css" /> <style type="text/css"> html, body, #map { padding: 0; margin: 0; height: 100%; } #rightPane { padding: 0; width: 420px; font-family: "Verdana"; font-size: "4"; } .details { font-size: 14px; font-weight: 600; padding-bottom: 20px; } button1 { margin: 2px; cursor: pointer; } #search { display: block; position: absolute; z-index: 2; top: 20px; left: 60px; } .esriScalebar { padding: 20px 20px; } #map { padding: 0; } .dgrid { border: none; height: 100%; } .dgrid-column-0 { width: 35px; } .dgrid-row-odd { background: #FFFDF3; } td div img:hover { cursor: pointer; } #titlePane { width: 240px; } .claro .dijitTitlePaneTitle { background: #fff; font-weight: 600; border: none; border-bottom: solid 1px #29201A; border-top: solid 1px #29201A; } .claro .dijitTitlePaneTitleHover { background: #eee; } .claro .dijitTitlePaneTitleActive { background: #808775; } .claro .dijitTitlePaneContentOuter { border-right: none; border-bottom: none; border-left: none; } </style> <!--<script> var dojoConfig = { parseOnLoad: true }; </script>--> <script src="http://js.arcgis.com/3.14/"></script> <script> var map, geocoder, grid, tb; require([ "esri/map", 'esri/dijit/Basemap', 'esri/dijit/BasemapLayer', 'esri/geometry/Point', "esri/InfoTemplate", "esri/dijit/Geocoder", "esri/graphic", "dojo/query", "esri/config", "esri/geometry/normalizeUtils", "esri/tasks/GeometryService", "esri/tasks/BufferParameters", "esri/toolbars/draw", "dijit/registry", "esri/symbols/SimpleLineSymbol", "esri/symbols/SimpleFillSymbol", "esri/symbols/SimpleMarkerSymbol", "esri/renderers/SimpleRenderer", "esri/dijit/Measurement", "esri/layers/FeatureLayer", "esri/dijit/PopupTemplate", "esri/request", "esri/tasks/query", "esri/geometry/Point", "esri/graphic", "esri/symbols/PictureMarkerSymbol", "dojo/on", "esri/Color", "dojo/_base/array", "dgrid/OnDemandGrid", "dgrid/Selection", "dojo/store/Memory", "dijit/form/Button", "dojo/parser", "dojo/_base/declare", "dojo/dom", "dojox/grid/DataGrid", "dojo/data/ItemFileReadStore", "dijit/TitlePane", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dijit/layout/AccordionContainer", "dojo/domReady!" ], function ( Map, Basemap, BasemapLayer, Point, InfoTemplate, Geocoder, Graphic, query, esriConfig, normalizeUtils, GeometryService, BufferParameters, Draw, registry, SimpleLineSymbol, SimpleFillSymbol, SimpleMarkerSymbol, SimpleRenderer, Measurement, FeatureLayer, PopupTemplate, esriRequest, Query, Point, Graphic, PictureMarkerSymbol, on, Color, arrayUtils, Grid, Selection, Memory, Button, parser, declare, dom, DataGrid, ItemFileReadStore ) { parser.parse(); esriConfig.defaults.geometryService = new GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"); esriConfig.defaults.io.proxyUrl = "/proxy/"; esriConfig.defaults.io.alwaysUseProxy = false; //Setup button click handlers //Setup button click handlers on(dom.byId("clearGraphics"), "click", function () { if (map) { map.graphics.clear(); } }); var featureLayer; map = new Map("map", { basemap: "streets", center: [-46.807, 32.553], zoom: 3 }); map.on("load", initOperationalLayer); map.on("load", initToolbar); function initOperationalLayer() { //Layer that is in Lat, Long Spatial reference 102100 var infoTemplate = new InfoTemplate(); var hydrant = new FeatureLayer("http://services1.arcgis.com/ziLNoRgqnICUM0q1/arcgis/rest/services/Hydrants/FeatureServer/0", { mode: FeatureLayer.MODE_ONDEMAND, outFields: ["*"], infoTemplate: infoTemplate }); //Layer that is NAD83 / UTM zone 15 N Spatial Reference 26915 var hospital = new FeatureLayer("http://services1.arcgis.com/ziLNoRgqnICUM0q1/ArcGIS/rest/services/Hospitals/FeatureServer/0", { mode: FeatureLayer.MODE_ONDEMAND, outFields: ["*"], infoTemplate: infoTemplate }); var outline = new SimpleLineSymbol() .setColor(Color.fromHex('#fff')); var sym = new SimpleFillSymbol() .setColor(new Color([212, 212, 210, 0.3])) .setOutline(outline); var renderer = new SimpleRenderer(sym); //parcel.setRenderer(renderer); //hydrant.maxScale = 20000; //hydrant.minScale = 10000; //hospital.maxScale = 1000; //hospital.minScale = 10000; map.addLayer(hydrant); map.addLayer(hospital); } function initToolbar(evtObj) { tb = new Draw(evtObj.map); tb.on("draw-end", doBuffer); //click handler for the draw tool buttons query(".tool").on("click", function (evt) { console.info(evt); if (tb) { tb.activate(evt.target.id); } }); } function doBuffer(evtObj) { tb.deactivate(); var geometry = evtObj.geometry, symbol; switch (geometry.type) { case "point": symbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE, 10, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([255, 0, 0]), 1), new Color([0, 255, 0, 0.25])); break; case "polyline": symbol = new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASH, new Color([255, 0, 0]), 1); break; case "polygon": symbol = new SimpleFillSymbol(SimpleFillSymbol.STYLE_NONE, new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASHDOT, new Color([255, 0, 0]), 2), new Color([255, 255, 0, 0.25])); break; } var graphic = new Graphic(geometry, symbol); map.graphics.add(graphic); //setup the buffer parameters var params = new BufferParameters(); params.distances = [dom.byId("distance").value]; params.outSpatialReference = map.spatialReference; params.unit = GeometryService[dom.byId("unit").value]; //normalize the geometry normalizeUtils.normalizeCentralMeridian([geometry]).then(function (normalizedGeometries) { var normalizedGeometry = normalizedGeometries[0]; if (normalizedGeometry.type === "polygon") { //if geometry is a polygon then simplify polygon. This will make the user drawn polygon topologically correct. esriConfig.defaults.geometryService.simplify([normalizedGeometry], function (geometries) { params.geometries = geometries; esriConfig.defaults.geometryService.buffer(params, showBuffer); }); } else { params.geometries = [normalizedGeometry]; esriConfig.defaults.geometryService.buffer(params, showResults); } }); } function showBuffer(bufferedGeometries) { var symbol = new SimpleFillSymbol( SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol( SimpleLineSymbol.STYLE_SOLID, new Color([255, 0, 0, 0.65]), 2 ), new Color([255, 0, 0, 0.35]) ); array.forEach(bufferedGeometries, function (geometry) { var graphic = new Graphic(geometry, symbol); map.graphics.add(graphic); }); } //**************************************************************************** function queryMapService(Geom) { var promises = []; var query = new Query(); query.returnGeometry = false; query.outFields = ["*"]; query.geometry = Geom; promises.push(hydrant.selectFeatures(query, FeatureLayer.SELECTION_NEW)); promises.push(parcel.selectFeatures(query, FeatureLayer.SELECTION_NEW)); var allPromises = new All(promises); allPromises.then(function (r) { showResults(r); }); } function showResults(results) { //var featureLayer1Message = results[0].length; //var featureLayer2Message = results[1].length; //var count = 0; //for (var i = 0; i < results.length; i++) { // count = count + results.length; //} //dom.byId("messages").innerHTML = "Total FEATURES selected: <b>" + count + "</b><br> DayCaresFL: <b>" + featureLayer1Message // + "</b><br> SchoolsFL: <b>" + featureLayer2Message; var items = arrayUtils.map(results, function (result) { return result; }); var allItems = []; arrayUtils.map(items[0], function (item) { allItems.push(item.attributes); }) arrayUtils.map(items[1], function (item) { allItems.push(item.attributes); }) var data = { identifier: "OBJECTID", //This field needs to have unique values label: "OBJECTID", //Name field for display. Not pertinent to a grid but may be used elsewhere. items: allItems }; //Create data store and bind to grid. store = new ItemFileReadStore({ data: data }); var grid = registry.byId("grid"); grid.setStore(store); grid.on("rowclick", onRowClickHandler); } function onRowClickHandler(evt) { var clickedObjectf = evt.grid.getItem(evt.rowIndex).OBJECTID; var selectedObjectf; var distance = 50; dojo.forEach(Hydrant.graphics, function (graphicf) { if ((graphicf.attributes) && graphicf.attributes.OBJECTID === clickedObjectf) { selectedObjectf = graphicf; return; } }); if (selectedObjectf.geometry.declaredClass == 'esri.geometry.Point') { var PointExtent = new esri.geometry.Extent({ "xmin": selectedObjectf.geometry.x - distance, "ymin": selectedObjectf.geometry.y - distance, "xmax": selectedObjectf.geometry.x + distance, "ymax": selectedObjectf.geometry.y + distance, "spatialReference": { "wkid": 102740 } }); map.setExtent(PointExtent); //} else if (selectedObjectf.geometry.declaredClass == 'esri.geometry.Polygon') { // var selectedParcel = selectedObjectf.geometry.getExtent(); // map.setExtent(selectedParcel.expand(1)); //} else if (selectedObjectf.geometry.declaredClass == 'esri.geometry.Polyline') { // var selectedStreetl = selectedObjectf.geometry.getExtent(); // map.setExtent(selectedStreetl.expand(1)); } } var measurement = new Measurement({ map: map }, dom.byId("measurementDiv")); measurement.startup(); geocoder = new Geocoder({ autoComplete: true, map: map }, "search"); geocoder.startup(); geocoder.on("select", showLocation); function showLocation(evt) { map.graphics.clear(); var point = evt.result.feature.geometry; var symbol = new SimpleMarkerSymbol() .setStyle("square") .setColor(new Color([255, 0, 0, 0.5])); var graphic = new Graphic(point, symbol); map.graphics.add(graphic); map.infoWindow.setTitle("Search Result"); map.infoWindow.setContent(evt.result.name); map.infoWindow.show(evt.result.feature.geometry); } }); </script> </head> <body class="claro"> <div id="search"></div> <div id="mainWindow" data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design:'headline',gutters:false" style="width:100%; height:100%;"> <div id="map" class="shadow roundedCorners" data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'center'"> <div style="position:absolute; right:20px; top:10px; z-Index:999;"> <!--<div id="search"></div>--> <div data-dojo-type="dijit/TitlePane" data-dojo-props="title:'Switch Basemap', closable:false, open:false"> <div data-dojo-type="dijit/layout/ContentPane" style="width:380px; height:280px; overflow:auto;"> <div id="basemapGallery"></div> </div> </div> </div> </div> <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="region:'right'" class="roundedCorners" id="rightPane"> <div data-dojo-type="dijit.layout.AccordionContainer"> <div data-dojo-type="dijit.layout.ContentPane" data-dojo-props="title:' Buffer Info'" id='graphics'> <span style="padding: 10px 0;"></span> <div id="toggle" style="padding: 2px 2px;"></div> <br /> <hr /> <div class="details">Pick a tool and draw on the map. The drawn graphic will be buffered based on the specified parameters.</div> <button type="button" class="tool" id="line">Line</button> <button data-dojo-type="dijit/form/Button">Point</button> <button type="button" class="tool" id="polyline">Polyline</button> <button type="button" class="tool" id="freehandpolyline">Freehand Polyline</button> <br /> <button type="button" class="tool" id="polygon">Polygon</button> <button type="button" class="tool" id="freehandpolygon">Freehand Polygon</button> <br /> <div><b>Buffer Parameters</b></div> Distance: <input type="text" id="distance" size="5" value="25" /> <select id="unit" style="width:100px;"> <option value="UNIT_STATUTE_MILE">Miles</option> <option value="UNIT_FOOT">Feet</option> <option value="UNIT_KILOMETER">Kilometers</option> <option value="UNIT_METER">Meters</option> <option value="UNIT_NAUTICAL_MILE">Nautical Miles</option> <option value="UNIT_US_NAUTICAL_MILE">US Nautical Miles</option> <option value="UNIT_DEGREE">Degrees</option> </select> <br /> <button type="button" id="clearGraphics">Clear Graphics</button> <br /> <br /><hr /> <div id="grid"></div> <hr /> <!--<div><b>Enter an address</b></div>--> <br /> <div id="messages"></div> </div> <div data-dojo-type="dijit/layout/ContentPane" id="legendPane" data-dojo-props="title:'Legend'"> <div id="legendDiv"></div> </div> <div data-dojo-type="dijit.layout.ContentPane" id='MeasurementPane' data-dojo-props="title:'Measurement'"> <div id="measurementDiv"></div> </div> </div> </div> </div> </body> </html>
... View more
02-01-2016
10:25 AM
|
0
|
3
|
2933
|
POST
|
Thanks for the tip. That did the trick. I was not using the ArcServer credentials, instead my own, thus it was not picking up my changes. Thanks again!
... View more
08-15-2013
11:36 AM
|
0
|
0
|
494
|
POST
|
Hi, I am having the same issue described above, but I can't find where to make the necessary changes. Is it done to the actual PrintingTools Geoprocessing Service? Where do I change the default print size? Thanks.
... View more
08-15-2013
10:30 AM
|
0
|
0
|
494
|
POST
|
Thanks Ken & Everyone. Looks I was finally able to get it to work..... I tweaked my file structure, but most importantly. I when I copied the GoogleMapsLayer, I misspelled it, thus it could not find it. I can't believe it. Thanks.
... View more
08-09-2013
06:25 AM
|
0
|
0
|
766
|
POST
|
I ended up having IT place the 'agsjs' files on the server, and put the full path to the directory on the server in the web application, which now works. First, I basically tried the same on my Sharepoint site, which did not work. hI, I am attempting to host the 'agsjs' files on our own server, I downloaded the code from //http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/ and put it in folders on our server and then use path like: //"location": location.pathname.replace(/\/[^/]+$/, '') + '/../src/agsjs' When I run the app, I always get the following error.... 404 Object Not Found - http://localhost/APPS/agsjs/build/agsjs/layers/GoogleMapsLayer.js Where is the 'GoogleMapsLayer.js' coming from. I don't want to point to 'http://gmaps...." seems to unstable lately. Thanks.
... View more
08-08-2013
11:31 AM
|
0
|
0
|
766
|
POST
|
dbecker88, I followed an URL on the gis.stackexchange website you quoted - http://jsfiddle.net/blordcastillo/mULcz/ - to be specific. The code was easily adaptable to my needs! Thanks, Luci Hi, In using the above example and Identify tool, is there a way to tweak the code to not display a field if it is null. If it is null, I just want to display a blank attribute versus seeing the text "null" Thanks.
... View more
08-06-2013
05:38 AM
|
0
|
0
|
457
|
POST
|
Thanks Lawrence for info, I was able to use it. I got it to work, just needed to also add this below. dojo.connect(map, "onUpdateStart", function(){ esri.show(dojo.byId("status")); }); dojo.connect(map, "onUpdateEnd", function(){ esri.hide(dojo.byId("status")); }); Regards.
... View more
08-02-2013
05:12 AM
|
0
|
0
|
700
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|