POST
|
Hi, Simple question: What is the correct way to remove a layer (ArcGISDynamicMapServiceLayer)? We do constantly add and remove layers to/from a map object. We noticed that after remove and add there is an exception Uncaught DOMException: Failed to execute 'removeChild' on 'Node': The node to be removed is not a child of this node. at Object._onLoadHandler (https://js.arcgis.com/3.17/init.js:1857:295) at HTMLImageElement.<anonymous> (https://js.arcgis.com/3.17/init.js:63:154) What is wrong? What is the meaning?
... View more
12-20-2016
09:58 PM
|
0
|
5
|
1792
|
POST
|
Hi, We noticed a strange problem: We created additional print service to print our web map. It works ok except extent problem when printing a map with extent including "international date line" (or +/-180 (dateline)) (or the horizon of the coordinate system) - (it ok for Europe or Africa). Example: We zoom in on our web map to see only New Zealand (include "international date line" or what is a correct name?) Press print - the printout has wrong extent - include all world. Even we do NOT include our own data (switch off all data layers) and print ESRI basemap - the extent is still wrong. We set in mxd template -> MainMap -> Properties ->CoordinateSystem: WGS 84 Web Mercator auxilary wkid: 3857. -> MainMap ->Properties->DataFrame->Extent-> Automatic Any help please.
... View more
12-15-2016
03:53 PM
|
0
|
2
|
653
|
POST
|
As usual, data issue !! Some feature with shape is NULL. Robert, thank you for the example code.
... View more
12-14-2016
03:25 PM
|
0
|
0
|
557
|
POST
|
Hi, We have SimpleMarkerSymbol defined in ArcMap with size 10 published to a map service. When we create in Javascript SimpleMarkerSymbol with size 10 and put it to map the symbol is much smaller than defined in ArcMap. The units in ArcMap are "points". So, probably we need to convert from units-points to pixels. How to do it?
... View more
12-13-2016
06:12 PM
|
0
|
2
|
2251
|
POST
|
Robert, This makes sense. Could you please provide an example when we get "features" and "method" from selectFeatures()?
... View more
12-13-2016
01:22 PM
|
0
|
2
|
687
|
POST
|
You are right. Could we do it in function initFunctionality() { var query2 = new Query(); query2.outFields = ["*"]; query2.where = "OBJECTID < 5"; censusBlockPointsLayer.selectFeatures(query2, FeatureLayer.SELECTION_NEW, function (featureSet) { console.info(featureSet); }); ... }; The print in console is the same: Array of Objects
... View more
12-12-2016
09:07 PM
|
0
|
4
|
687
|
POST
|
Robert, Thank you for the response. I see. Please try this censusBlockPointsLayer.on("selection-complete", function(evt) { var query = new Query(); query.outFields = ["*"]; query.where = "OBJECTID < 5"; censusBlockPointsLayer.selectFeatures(query, FeatureLayer.SELECTION_NEW, function (featureSet) { console.info(featureSet); }); //console.info(evt); var totalPopulation = sumPopulation(censusBlockPointsLayer.getSelectedFeatures()); var r = ""; r = "<b>The total Census Block population within the drive time polygon is <i>" + totalPopulation + "</i>.</b>"; dom.byId('messages').innerHTML = r; });
... View more
12-12-2016
07:41 PM
|
0
|
6
|
687
|
POST
|
Hi, Version 3.17. We surprised that FeatureLayer selectFeatures() method does not return "features" and "method" - just Array of objects. And help is not correct FeatureLayer | API Reference | ArcGIS API for JavaScript 3.18 That means there is a difference to use QueryTask.execute() or FeatureLayer.selectFeatures(). Should we use 3.18? Any help please.
... View more
12-12-2016
04:59 PM
|
0
|
8
|
2143
|
POST
|
Thank you Evelyn, The same in the web app we developing. It asks for user/password every zoom in/out. But shows data even we press cancel on user/password request. Is it expected behavior?
... View more
12-12-2016
01:58 PM
|
0
|
2
|
371
|
POST
|
Hi, We defined some map service as private in ArcGIS Server Manager. We generated a token for one year. We use "map_service_URL +token" and put to a browser. It shows the info about the map service. When we try to "View in ArcGIS Online map viewer " - it asks user/password Why? What is wrong in the steps to use secure map service?
... View more
12-12-2016
11:39 AM
|
0
|
4
|
860
|
POST
|
We noticed that if open the URL+token in browser it opens the page of ArcGIS Server service directory, but if on the page we press on link "ArcGIS Online map viewer" it shows a user/password dialog. Please help.
... View more
12-10-2016
05:11 PM
|
0
|
0
|
316
|
Title | Kudos | Posted |
---|---|---|
1 | 11-22-2016 08:03 PM | |
1 | 10-27-2016 04:55 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|