POST
|
Turn on Network layer, Line Barrier, point Barriers. Check is there any barriers are placed. Check the network restrictions.
... View more
08-29-2019
01:49 PM
|
0
|
0
|
326
|
POST
|
The solutions worked for me with esriRequest Done the below changes in dotnet proxy => web.config <system.webServer> <httpProtocol> <customHeaders> <add name="Access-Control-Allow-Origin" value="https://localhost:44332" /> <add name="Access-Control-Allow-Credentials" value="true" /> <add name="Access-Control-Allow-Headers" value="Authorization, Origin, X-Requested-With, Content-Type, Accept, User-Agent" /> <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE, OPTIONS" /> </customHeaders> </httpProtocol> </system.webServer> Added the below code in widget.js esri.config.defaults.io.proxyUrl = "https://hostservername.com/proxy/proxy.ashx"; esriConfig.defaults.io.alwaysUseProxy = false; esri.config.defaults.io.corsEnabledServers.push("servicehostname.com"); var requestHandle = esriRequest({ url: URL, handleAs: "json", headers: { "Accept": "application/json" }, timeout: 10000 }, { useProxy: true, usePost: false, disableIdentityLookup: true }); requestHandle.then(lang.hitch(this, function (results, io) { console.log(results); }
... View more
04-02-2019
11:51 AM
|
0
|
0
|
4210
|
POST
|
o All, I am using a config.JSON file with ArcGIS Pro to read some user-defined parameters and which are changeable by the user. string path = String.Join("\\", System.Reflection.Assembly.GetExecutingAssembly().Location.Split('\\').Take(System.Reflection.Assembly.GetExecutingAssembly().Location.Split('\\').Count() - 1).ToArray())+ "\\Config.json"; string json = File.ReadAllText(path); jsonData = JObject.Parse(json); I installed this add-in another system, then the user needs to change the .json file according to user local path and parameters. I am not able to get the .json external exposed and it staying inside.esriAddinX. Even I alter the .json in .esriAddinX, it's correctpting. Please may I know, how to use/Change content in JSON and add-in should read the data from .json. Thanks, Arun E
... View more
03-22-2019
01:22 PM
|
0
|
0
|
345
|
POST
|
Hi All, I am using a config.JSON file with ArcGIS Pro to read some user-defined values (like FME workbench paths and it's related input values). Which can be changeable based on user environment and user requirement. But when I installed this add-in another system, the user will change the .json file according to his local path and values. How Can make this .json file external exposed and editable by the user. Please may I know, how to use/Change content in JSON and add-in should read the data from .json. Thanks, Arun E
... View more
03-21-2019
02:31 PM
|
0
|
3
|
666
|
POST
|
Hi Helen, I was having the same issue as you mentioned and I was able to resolve the issue by using below code. Issue: When adding multiple ArcGISDynamicMapServiceLayer to the map. The layers in LayerList widget expand only one layer and rest won't expand. Reason: As Robert mentioned when you are adding multiple layers at the same time, layer nodes are not added. Solution: //Create an array to hold all new layers this.dynamicLayers = []; //Add all dynamic layer to array this.dynamicLayers.push(dynamicLayer1); this.dynamicLayers.push(dynamicLayer2); this.dynamicLayers.push(dynamicLayer3); this.dynamicLayers.push(dynamicLayer4); if (this.dynamicLayers.length > 0) { //setTimeout is requried for multiple dynamic layer, else layer list node expand issue is there. setTimeout(lang.hitch(this, function () { //Use addLayers() to add multiple layers. this.map.addLayers(this.dynamicLayers); }), 500); } Regards, Arun E
... View more
12-04-2018
01:38 PM
|
0
|
0
|
413
|
POST
|
Hi Akshay, I am having the same issue as you mentioned. But whatever you mentioned in the above code that is already in LayerList\Widget.js. Can you please explain your solutions in details and from where you called this function. If possible code snippet will be helpful. I am using WAB 2.8 default Layer List widget. When I add any dynamic layer to the map through another custom widget as per below code. the map is showing properly with the visible layers which are provided with a SetVisibleLayers option. But the same is not reflecting in LayerList widget and default it is considering map service Default Visibility property and showing all nodes as checked even though on the map that layers are not visible. Code: I added a sample water network map service Water_Network (MapServer) var dynamicLayer = new ArcGISDynamicMapServiceLayer(url, { 'visible': true }); dynamicLayer.setVisibleLayers([-1,-1,20,21,23]); map.addLayer(dynamicLayer); Thanks Arun E
... View more
12-04-2018
10:01 AM
|
0
|
0
|
1788
|
POST
|
The issue is resolved by using below code // To get the layerInfosObj from LayerInfos.getInstance(this.map, this.map.itemInfo).then(function (layerInfosObj) { layerInfosObj.traversal(lang.hitch(this, function (layerInfo) { if (arrayUtils.indexOf(dynamicLayer .visibleLayers, layerInfo.id) > -1) { layerInfo._setTopLayerVisible(true); } else { layerInfo._setTopLayerVisible(false); } } });
... View more
12-04-2018
09:45 AM
|
0
|
0
|
411
|
POST
|
Hi All, I am using WAB 2.8 default Layer List widget. When I add any dynamic layer to the map through another custom widget as per below code. the map is showing properly with the visible layers which are provided with a SetVisibleLayers option. But the same is not reflecting in LayerList widget and default it is considering map service Default Visibility property and showing all nodes as checked even though on the map that layers are not visible. Code: I added a sample water network map service Water_Network (MapServer) var dynamicLayer = new ArcGISDynamicMapServiceLayer(url, { 'visible': dynamicData[key].visible, 'opacity': dynamicData[key].opacity }); dynamicLayer.setVisibleLayers([-1,-1,20,21,23]); map.addLayer(dynamicLayer); Please suggest, if I am missing any code/ property which needs to set. Thanks, Arun E
... View more
11-30-2018
01:33 PM
|
0
|
1
|
478
|
POST
|
Hi Robb, How we can mimic the same with ArcGIS pro. As pro "Export Web Map" is script tool, when right click => edit clicked=> it's showing python script. Is there any code block needs to be included to include ArcGIS user connection with credentials. We are using default utility print service in Portal web app builder application=> print widget Printing is working fine for external (ESRI) or other sample services. when we are using internal ArcGIS Server hosted services we are getting below error message in console and ArcGIS Server log. {"error":{"code":400,"extendedCode":-2147467261,"message":"Unable to complete operation.","details":["Error executing tool. Export Web Map Task : Failed to create layer from service at https://XXXXXXXXXXXXXXx/_Map/MapServer.\nFailed to create layer from service at https://XXXXXXXXXXXX/plate/FeatureServer/2.\nFailed to execute (Export Web Map).\nFailed to execute (Export Web Map Task)."]}} Thanks in Advance. Thanks, Arun E
... View more
11-01-2018
09:05 AM
|
0
|
0
|
3960
|
POST
|
Hi, Did you get any solution for this? Please share your workout with code sample that will great. Arun
... View more
09-11-2018
11:59 AM
|
0
|
5
|
6130
|
POST
|
Hi Alex, Can you please share the code which you used to fetch all portal users and groups. Gone through the Robert provided links but there are no samples. Thanks, Arun E
... View more
08-31-2018
08:28 AM
|
0
|
0
|
923
|
POST
|
Hi Faryal, Do you got any solution or rest service to get current weather details based on lat,long. I am also in the same boat. Thanks, Arun E
... View more
05-01-2018
09:13 AM
|
0
|
0
|
752
|
POST
|
The issue fixed the reason was passing the parameters in proper order/Passing address as object //Error code var newaddress = { singleLine: item.address, magicKey: item.Magickey }; esrilocator.outSpatialReference = map.spatialReference; esrilocator.addressToLocations(newaddress); l. //Working code var address = { "singleLine": item.address }; var newaddress = { address: address, magicKey: item.Magickey }; esrilocator.outSpatialReference = map.spatialReference; esrilocator.addressToLocations(newaddress);
... View more
06-20-2017
01:47 PM
|
0
|
0
|
356
|
POST
|
Hi All, We are using ArcGIS Javascript API V 3.4 with "esri/tasks/locator", "esri/tasks/AddressCandidate", When searched with Business names(Startbuck, San Francico or Walmart San Ramon) the suggestion are coming properly with magickey and bound the dataset to Grid But when selected a row in the data grid, for user required address. The address locator not giving proper lat, longs. GeoCode locator URL: http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer Javascrpt Code snippet. //Passing the one the suggestion address to get the lat,long var newaddress = { singleLine: item.address, magicKey: item.Magickey }; esrilocator.outSpatialReference = map.spatialReference; esrilocator.addressToLocations(newaddress); esrilocator.on("address-to-locations-complete", function (e) { //Zoonto result lat,long Checked direct URL which ESRI using http://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/findAddressCandidates?SingleLine=starbucks+sydney+AUS… This also not working properly. Anyonce faced the similar issue with esrilocator.addressToLocations Please let me know your thoughts and suggestions
... View more
06-19-2017
05:52 PM
|
0
|
1
|
858
|
POST
|
1. Create new print_gp with required format with required templates. 2. In UI restrict/filter only required format and templates. PrintTemplate (legacy) | API Reference | ArcGIS API for JavaScript
... View more
05-11-2016
02:20 PM
|
0
|
0
|
249
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|