|
POST
|
Not sure exactly what your app looks like, but I put together a simple app with vite and the Editor. https://github.com/odoe/vite-jsapi-editor Maybe this can help
... View more
10-23-2021
02:27 PM
|
1
|
3
|
8177
|
|
POST
|
I tested out doing a query in the worker using this sample without errors. https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-custom-workers Look over that sample and see if you can find some tips on how to get it to work in your project.
... View more
10-19-2021
10:47 AM
|
1
|
1
|
1503
|
|
POST
|
selectedItems is a Collection, so you can use ".on()" to listen for events, like this sample. https://codepen.io/odoe/pen/zYzXrEy?editors=0010
... View more
10-18-2021
09:23 AM
|
1
|
2
|
3009
|
|
POST
|
The LayerList has selectedItems Collection you can watch for change events. The Item has a layer property you can reference.
... View more
10-18-2021
08:16 AM
|
1
|
1
|
3044
|
|
POST
|
It looks like you're running this in a node environment with ESM. Check out our node sample. You have a couple of options, but this would work. Add "type": "module" to your package.json Directory imports not allowed in node with esm, so you need `import callIIntoArcgis from '../src/index.js` Add the ".js" extension to all your imports from "@arcgis/core" That will get your tests and everything else working.
... View more
10-18-2021
07:46 AM
|
0
|
1
|
2605
|
|
POST
|
Can you provide a sample app showing this issue? Not reproducible with the information given.
... View more
10-14-2021
08:23 AM
|
0
|
0
|
1103
|
|
POST
|
Do you have the layer to test you are expecting to use? This sample works without defining the fieldConfigs https://codepen.io/odoe/pen/yLoydBb?editors=1000 Autocast means you don't need to new up an instance of the FieldColumnConfig, just pass an object that has the constructor properties. https://developers.arcgis.com/javascript/latest/programming-patterns/#autocasting Does your layer have fields other than the ones it says will not be included automatically?
... View more
10-12-2021
08:20 AM
|
0
|
0
|
1634
|
|
POST
|
Not quite sure, but I've seen this behavior if the arcgis CSS is not loaded, and looking at the network traffic of your app, I don't see it loading. I don't use esri-loader-react, so not sure if it has to manually load it or not, but would try that first.
... View more
10-12-2021
07:52 AM
|
1
|
0
|
1430
|
|
POST
|
In that sample you can just loop through the children and set their visibility too.
... View more
10-02-2021
03:38 PM
|
0
|
0
|
1289
|
|
POST
|
I'm not quite sure what you're trying to do, but each ListItem has a reference to its parent and children you can interact with. This demo does that. https://codepen.io/odoe/pen/ExXJKya?editors=1000
... View more
10-01-2021
08:20 AM
|
1
|
2
|
1308
|
|
POST
|
There is only one popup per View. If you want to try and simulate showing multiple popups, you can use the Feature widget, which displays Popup content and have multiple Feature widgets in your application. Here is a sample showing multiple Feature widgets in a side panel. https://developers.arcgis.com/javascript/latest/sample-code/widgets-feature-multiplelayers/
... View more
09-29-2021
06:36 AM
|
0
|
0
|
889
|
|
POST
|
Are you trying to copy the assets locally? Can you provide a repo app, you might need to play with the config.assetsPath if you want the assets locally. Here is a demo app using vue3, the JSAPI and local assets. https://github.com/odoe/vue-jsapi-calcite I haven't run into MIME type issue with the cli server before, it's usually how the assets are being copied and referencing them correctly.
... View more
09-28-2021
02:34 PM
|
0
|
1
|
1611
|
|
POST
|
I would probably do it like this. class SegmentGraphic extends Graphic {
// so that all props are not required
constructor(params: Partial<SegmentGraphic>) {}
}
... View more
09-23-2021
02:43 PM
|
0
|
0
|
1917
|
|
POST
|
That's right, only one popup at a time. It's a popup on the map, not per feature.
... View more
09-20-2021
03:24 PM
|
0
|
0
|
6304
|
|
POST
|
There are few a steps to something like this. The layer has a fields property https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#fields Looking at the field, it has a domain property https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html Domain could be range or codedValue type https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-Field.html#domain CodedValue has a method called getName that I think will do what you are looking for. https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-support-CodedValueDomain.html#getName Which could end up looking like this. const field = layer.fields.find((field) => field.name === FIELD_NAME);
const domain = field.domain;
const domainValue = field.getName(attributes[FIELD_NAME]); I think, I haven't had to do something like this in a while, but that should get you on the right track.
... View more
09-15-2021
09:16 AM
|
0
|
0
|
1288
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | a week ago | |
| 1 | 4 weeks ago | |
| 2 | 3 weeks ago | |
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|