POST
|
Double update: we will be adding a "complete" event to the print widget at 4.17 (early October 2020) that will make this all much easier to handle.
... View more
09-18-2020
09:50 AM
|
1
|
0
|
398
|
POST
|
Thank you very much for all of your help! I have a slider now and am rejoicing! Here is a codepen that I hope will help other people. I found that featureLayers work just fine, but ArcGUSDynamicMapServiceLayers require "layer._div = map.root" even though I don't understand what this does. https://codepen.io/RochelleWolfe/pen/YmLKYG
... View more
08-08-2019
06:39 AM
|
0
|
0
|
979
|
POST
|
Its also possible in 3.X using esriRequest.setRequestPreCallback() I solved my problem using following code; Step 1: on(dom.byId("btnPrint"), "click", function () { esriRequest.setRequestPreCallback(myCallbackFunction); printTask.execute(printObj.params, function (evt) { document.getElementById("printResult").href = evt.url; on(dom.byId("printResult"), "click", function () { esriRequest.setRequestPreCallback(); // Detach myCallbackFunction() }); }, function (evt) { esriRequest.setRequestPreCallback(); // Detach myCallbackFunction() }); } Step 2: function myCallbackFunction(args) { if (args.url.indexOf("execute") > -1) { var jsonObj = JSON.parse(args.content.Web_Map_as_JSON); var jsontxt = JSON.stringify(setLocalIP(jsonObj)); args.content.Web_Map_as_JSON = jsontxt } return args; } Step 3: function setLocalIP(strjson) { arrayUtils.forEach(strjson.operationalLayers, function (ol) { if (ol.id != "basemap") { if (ol.url != null) { ol.url = LocalIP + ":" + ol.url.split(":")[2]; } } }, this); return strjson; }
... View more
08-16-2019
03:22 AM
|
0
|
0
|
483
|
POST
|
Thanks for the suggestion. I've just tried that but it still only looks at the world geocode service. I've also filled in the URL in the geocode helperServices in crowdsource-reporter-master\config\defaults.js line 49 and this had no effect either. I tried stating the URL in crowdsource-reporter-master\js\widgets\locator\locator.js line 230 where the locator is created locator = new Locator(geocoders.url); But this still didnt seem work. I'm still at a loss.
... View more
07-22-2019
03:29 AM
|
0
|
0
|
471
|
POST
|
To intercept, try using the esriConfig.request.interceptors https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#RequestInterceptor Couple ideas to try for CORS issues: 1) esriConfig.request.trustedServers https://developers.arcgis.com/javascript/latest/api-reference/esri-config.html#request Indicates whether cross origin requests made to the associated server should include credentials such as cookies and authorization headers. 2) CORS guide page https://developers.arcgis.com/javascript/latest/guide/cors/index.html 3) Try using a proxy https://developers.arcgis.com/javascript/latest/guide/proxies/#example%3A-server-is-not-enabled-for-cors
... View more
07-19-2019
02:10 PM
|
1
|
0
|
800
|
POST
|
We also have a hosted sample that shows how to work with the Search widget and setting the source to a FeatureLayer: https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-multiplesource/index.html
... View more
07-12-2019
11:09 AM
|
0
|
0
|
959
|
BLOG
|
There are already many people who have returned Update to 4.12 will result in a serious graphic error. Anything about graphic(Widgets , query results , or just add graphic)... not work. Not all devices will have this problem, there are usually two possibilities: (1) Devices cannot use sceneview: (maybe caused by webgl?), those Devices graphic not work in mapview.(almost 100%) (2) Devices can use sceneview: those Devices graphic maybe not work in mapview...,but it work in sceneview(Very surprised) I have four web sites use API 4.12 , The total number of users per day is approximately 4000~5000. I received many user complaints(more and more...) when i update from 4.11 to 4.12... can anyone help me? please don't tell me you will fix it at 4.13...(I have to re-adjusting the relevant code to 4.11..) That will delay too long... Orz
... View more
07-27-2019
04:53 AM
|
0
|
0
|
1246
|
POST
|
Joe, As Noah mentioned all the widget is doing is toggling a layer visibility on or off, just like the sample he provided does for a JS API app.
... View more
06-10-2019
11:48 AM
|
2
|
0
|
474
|
POST
|
I think the issue is related to adding a vector basemap to the list of raster basemaps in the basemap gallery widget. If you just use the list of vector basemaps, the thumbnails look fine. Example: https://codepen.io/noash/pen/NZKZNy -Noah
... View more
06-10-2019
11:08 AM
|
0
|
0
|
1376
|
POST
|
Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.
... View more
05-09-2019
05:45 AM
|
0
|
0
|
2859
|
POST
|
Specifically, I use the dijit / TOC of this example: http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109
... View more
05-08-2019
08:20 AM
|
0
|
0
|
524
|
POST
|
and now if I do that it works: var x = new Promise((resolve) => {
resolve(sublayer.createFeatureLayer())
})
.then((featureLayer) => {
console.log("blah")
return featureLayer.load();
}) My bad.
... View more
04-11-2019
06:57 AM
|
0
|
0
|
1006
|
Title | Kudos | Posted |
---|---|---|
1 | 6 hours ago | |
2 | 4 weeks ago | |
3 | 03-06-2024 01:15 PM | |
1 | 02-27-2024 01:12 PM | |
6 | 02-26-2024 02:08 PM |
Online Status |
Online
|
Date Last Visited |
6 hours ago
|