|
POST
|
This is a great question, and I hope to see some others comment here (might also be a nice question to pose on The Spatial Community slack channel). https://developers.arcgis.com/javascript/support/ My 2 cents: A lot of this will depend on your project requirements. With regards to JavaScript frameworks, we have this outlined in a Guide topic here: https://developers.arcgis.com/javascript/latest/guide/using-frameworks/ One commonality that I see is TypeScript. There seems to be a significant increase in interest in this language, and we use it quite a bit internally (~90% of the JS API is written in TypeScript, and all widget development requires TypeScript). Also, since you can compile to specific versions of JavaScript, it seems like a good bet. https://developers.arcgis.com/javascript/latest/guide/typescript-setup/ Since we still support IE11, we have some specific requirements regarding the version of ECMAScript that we use in our samples. Hope this helps!
... View more
08-05-2019
03:21 PM
|
4
|
0
|
4950
|
|
POST
|
This looks like a duplicate of https://community.esri.com/thread/237767-how-to-change-rest-service-url-in-printtasks-json
... View more
08-02-2019
03:36 PM
|
2
|
0
|
706
|
|
POST
|
Something like this should work. You'll need to supply your own logic to swap out the MapService URL. esriConfig.request.interceptors.push({
// set the `urls` property to the URL of the FeatureLayer so that this
// interceptor only applies to requests made to the FeatureLayer URL
urls: "https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task/execute",
before: function(params) {
const paramsURL = printService;
const options = {
query: {
f: "json"
},
responseType: "json"
};
return esriRequest(paramsURL, options).then(function(response) {
const old = old_webmap_as_json;
const new = new_webmap_as_json;
params.requestOptions.query.Web_Map_as_JSON = new;
}
}
});
... View more
08-02-2019
03:36 PM
|
2
|
0
|
1505
|
|
POST
|
I'd recommend reviewing our guide page about working with secure resources: https://developers.arcgis.com/javascript/3/jshelp/ags_secureservices.html And if that doesn't help, consider using the resource proxy: https://developers.arcgis.com/javascript/3/jshelp/ags_proxy.html
... View more
08-02-2019
03:22 PM
|
0
|
0
|
1387
|
|
POST
|
Hi David, great questions. The current behavior you are experiencing is the default behavior, and is by design. We are considering making this a configurable property at a later release. For now, you can place additional widgets manually using css. doc https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-UI.html#add sample in action (using the "manual" position) https://developers.arcgis.com/javascript/latest/sample-code/timeslider-filter/index.html
... View more
08-02-2019
02:43 PM
|
1
|
1
|
3423
|
|
POST
|
Hi Sai. So just to be clear, the layer in question is hosted in ArcGIS Online? And the custom print service is hosted in ArcGIS Server? And where did you increase the token expiration date? In ArcGIS Server or ArcGIS Online? Also, can you verify that the token is being passed to the print service? If so, is there any other information as part of the error message about the token? Does clearing the cache change any behavior?
... View more
08-02-2019
12:30 PM
|
1
|
1
|
2964
|
|
POST
|
4x example https://developers.arcgis.com/javascript/latest/sample-code/layers-wms/index.html 3x example https://developers.arcgis.com/javascript/3/jssamples/layers_wmsresourceinfo.html
... View more
07-24-2019
09:27 AM
|
0
|
0
|
1470
|
|
POST
|
This might be related to the breaking changes here: https://developers.arcgis.com/javascript/latest/guide/release-notes/#breaking-changes The DateString , DateFormat , and NumberFormat formatter functions are no longer supported when used with a PopupTemplate's content and/or title . Instead, set it via the FieldInfo's fieldInfoFormat. Use the new esri/intl module and its respective methods in places referencing the esri/core/lang.substitute() , dojo/number.format() , and dojo/date.format() methods.
... View more
07-24-2019
09:24 AM
|
0
|
0
|
1497
|
|
POST
|
You could try using `DefaultValue`, which is a logical expression in Arcade. DefaultValue DefaultValue( value, defaultValue? ) -> returns: * Replaces an empty value with a provided default value. Name Type Description value * The input value to compare against null or '' . This may be a value of any type. However, if this value is an empty array, then the empty array will be returned. defaultValue * optional Return this value if the provided value is empty. This may be a value of any type. Doc https://developers.arcgis.com/arcade/function-reference/logical_functions/ Using DefaultValue in a 4x sample for labeling https://developers.arcgis.com/javascript/latest/sample-code/sandbox/index.html?sample=symbols-points-3d
... View more
07-23-2019
11:34 AM
|
0
|
0
|
1136
|
|
POST
|
I would recommend trying the Esri Resource Proxy for this use case: https://developers.arcgis.com/javascript/latest/guide/proxies/
... View more
07-23-2019
11:30 AM
|
2
|
1
|
1523
|
|
POST
|
Thanks Dean. There were two other things I was hoping you could test. I'll re-word the second to make it more clear: 1) If you try the AGO print service, do you get the same result? printUrl = "https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"; 2) Do you see the TextSymbols in the printout if you just add the GraphicsLayer (or each Graphic) to the map instead of adding them to a FeatureLayer first?
... View more
07-23-2019
11:23 AM
|
0
|
1
|
4161
|
|
POST
|
Right, so you are seeing the expected behavior. It sounds like in 3x you are bringing in all the layers as a ArcGISDynamicMapServiceLayer (which will take the MapServer as input, and thus all the layers), and in 4x you only bring in one layer as a FeatureLayer (which takes one layer from the MapServer as input). So if you used a MapImageLayer in 4x (which will take the MapServer as input, and thus all the layers) then you will see the exact same behavior in 3x and 4x. Does that make more sense?
... View more
07-22-2019
11:11 AM
|
1
|
3
|
3420
|
|
POST
|
I did a quick sanity check and I am able to print TextSymbols with 3.29. Couple questions for you: 1) What (ArcGIS Server) version of the print service are you using? If you try the AGO print service, do you get the same result? printUrl = "https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"; 2) Are you adding those TextSymbols as a GraphicsLayer to a FeatureLayer through the applyEdits() method? Do you see the TextSymbols in the printout if you just add the GraphicsLayer (or each Graphic) to the map?
... View more
07-19-2019
03:44 PM
|
0
|
3
|
4161
|
|
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
|
1995
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Wednesday | |
| 1 | 04-14-2026 11:59 AM | |
| 1 | 05-13-2026 10:29 AM | |
| 1 | 04-10-2026 09:11 AM | |
| 1 | 03-24-2026 11:39 AM |
| Online Status |
Online
|
| Date Last Visited |
Wednesday
|