|
POST
|
How are using the registerToken? Not exactly secure, but you could pass the token via URL to your sub-app, create a new credential with the token and register it. You'd need the serverInfo, maybe the expiration too in case the app stays open for days/weeks. I thought the tokens were stored at the root domain level, but maybe url specific.
... View more
05-12-2021
09:24 AM
|
1
|
0
|
3730
|
|
POST
|
As much as I'm a fan of AOP, you don't really need it in this case. It looks like you are updating the titles in the legend. You can wait until the query is done, watch the layer or watch for changes in the activeLayerInfos collection, if that will be updated. Change the title of the layer and it will be reflected in the legend. You should avoid modifying the DOM of widgets as there's no guarantee the changes will stick. That's why you're waiting for the scheduleRender method to fire, but I think you can change your workflow to avoid that use case.
... View more
05-12-2021
09:15 AM
|
0
|
3
|
3510
|
|
POST
|
If you add a .catch() to the promise chain will you get the error that a token is required?
... View more
05-12-2021
09:08 AM
|
0
|
3
|
2980
|
|
POST
|
You can set the PopupTemplate overWriteActions to true and don't provide an actions array. https://developers.arcgis.com/javascript/latest/api-reference/esri-PopupTemplate.html#overwriteActions This will remove it.
... View more
05-12-2021
09:06 AM
|
1
|
0
|
1722
|
|
POST
|
Everything you need for DOM navigation in native to JavaScript these days. https://developer.mozilla.org/en-US/docs/Web/API/Document/querySelector
... View more
05-12-2021
08:41 AM
|
0
|
1
|
1495
|
|
POST
|
I don't know if this was available when this post was made, maybe, and I missed it, happens. But the layers have a property called customParameters you can use to add tokens like this. https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#customParameters In this case, you can avoid using an interceptor to add url params.
... View more
05-10-2021
11:18 AM
|
2
|
0
|
4277
|
|
POST
|
Yes, you will still get about 300 js files in a built app with rollup. You won't use them all, but because of dynamic module loading and the way rollup chunks files, you get a good amount of them. This because depending on your data, you could use them. This is completely expected. You'd maybe use a dozen or so at runtime.
... View more
05-06-2021
09:29 AM
|
1
|
0
|
3506
|
|
POST
|
You can apply a renderer to a polygon layer to display them as points. const polygonAsPointRenderer = {
type: "simple",
symbol: { type: "simple-marker", color: [247, 53, 53, 1] }
} You can apply visual variables or use unique value renderer to meet your visualization needs too.
... View more
05-06-2021
08:31 AM
|
2
|
0
|
1352
|
|
POST
|
If you're using 4.19, you don't need to copy the assets anymore, you can remove that script from your package.json. https://developers.arcgis.com/javascript/latest/release-notes/#assets-for-local-builds That will cut down on all those extra files.
... View more
05-06-2021
08:16 AM
|
0
|
0
|
3547
|
|
POST
|
On the version mismatch, we a couple of patches, and it just lets you know. Since it's still 4.19, you should be ok. Warnings won't break anything. You can point to the correct version of 4.19 using jsdelivr as described here. https://community.esri.com/t5/arcgis-api-for-javascript/warning-version-mismatch-detected-between-arcgis-api-for/m-p/1054757#M72938
... View more
05-05-2021
01:34 PM
|
0
|
1
|
6393
|
|
POST
|
You could point the assets to the specific version you want to match using jsdelivr https://www.jsdelivr.com/ Typically, these warnings don't have much impact at the patch level. For production, if you want to be completely bullet-proof, you can use jsdelivr or copy the assets. And we don't typically patch the CDN post-release, just something came up. NPM would only get patched if I messed something up, which has happened before... my bad.
... View more
05-05-2021
10:06 AM
|
0
|
1
|
5464
|
|
POST
|
I can add to this that I have tested a single file bundle. using webpack and you pretty much end up with a 7mb js file with tons of code you probably won't use at runtime.
... View more
05-05-2021
08:28 AM
|
1
|
0
|
3937
|
|
POST
|
You could use various methods of the geometryEngine to validate that geometries intersect or that a vertex matches a point https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-geometryEngine.html It might require breaking up polygons -> polylines -> points, but should be doable.
... View more
05-04-2021
10:39 AM
|
0
|
1
|
1751
|
|
POST
|
If you want to use node packages, you'll need to use some sort of build tooling. That demo just compiles the TS to JS, but does no bundling of any sort. Tools like rollup and webpack can do that for you. https://github.com/Esri/jsapi-resources/tree/master/esm-samples https://github.com/Esri/jsapi-resources/tree/master/4.x/webpack/demo If you are just getting started, the cli might be useful to try. https://github.com/Esri/arcgis-js-cli
... View more
05-04-2021
10:35 AM
|
0
|
1
|
1630
|
|
POST
|
Hi there! Can you update the dojo-util to use our fork please. "devDependencies": {
"dojo-util": "git+https://github.com/Esri/dojo-util.git#1.16.3-esri",
}, We use an updated version of the closure compiler that will fix this issue for dojo builds. Thanks!
... View more
05-04-2021
09:44 AM
|
2
|
1
|
2069
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 2 weeks ago | |
| 1 | 07-17-2026 10:17 AM | |
| 2 | a month ago | |
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|