|
POST
|
When using CDN with AMD and you want to import local packages, it's the same for 3 and 4. The 4x documentation has some information here. https://developers.arcgis.com/javascript/latest/amd-build/#configure-amd-to-load-custom-modules When using ESM, you can import local ESM modules like any other ESM application. You said you want to export Map and View from your module? That could look like this. // Edit, because I don't think this first option would work, since both
// are defaults and aren't named, better to use another option below.
// export * from 'https://js.arcgis.com/4.27/@arcgis/core/Map.js';
// export * from 'https://js.arcgis.com/4.27/@arcgis/core/views/MapView.js';
// another option
import Map from 'https://js.arcgis.com/4.27/@arcgis/core/Map.js';
import MapView from 'https://js.arcgis.com/4.27/@arcgis/core/views/MapView.js';
export Map;
export MapView;
// or
export { Map, MapView }; You just need to remember, the ESM CDN is for testing purposes only, you should not use it for a production application.
... View more
07-26-2023
09:22 AM
|
1
|
1
|
2745
|
|
POST
|
Not quite sure exactly what you are trying to do. Do you have a simple github repo or something to share? You mention CDN and ESM, but they are both very different in how you would build your apps. If using the CDN, you can create local packages you can consume. The 3x documentation has some information about this. https://developers.arcgis.com/javascript/3/jshelp/intro_javascript_classes.html#step2 Maybe that will help.
... View more
07-26-2023
08:30 AM
|
0
|
1
|
2766
|
|
POST
|
All non-Esri packages, including Dojo related packages, are no longer part of the released CDN builds. The old versions are still there though and can be configured for use. See the notes here. https://developers.arcgis.com/javascript/latest/4.25/#removal-of-non-esri-packages-from-cdn
... View more
07-25-2023
03:01 PM
|
1
|
0
|
1247
|
|
POST
|
You can query the objectids on the layer https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#queryObjectIds and then use the result oids in your definitionExpression. Or you can have a result FeatureLayer you use with applyEdits to put the results of the spatial query. Would require you delete the old features on update, but I've seen it done.
... View more
07-21-2023
01:44 PM
|
0
|
0
|
2623
|
|
POST
|
If you don't want to use FeatureFilter, I would use the FeatureLayer (not visible) as the source for queries and place the results in a GraphicsLayer. Then you can quickly removeAll() on the graphics layer and add the results. You lose query/render capabilities which are not available on a GraphicsLayer, but it would work. This scenario is really what the FeatureFilter was designed for though.
... View more
07-21-2023
08:14 AM
|
0
|
2
|
2643
|
|
POST
|
When Features are part of a FeatureLayer, the visibility is handled by the layer, not the features. You can define what is visible based on the definitionExpression. https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html#definitionExpression The visibility of individual features would only work in a GraphicsLayer, since it's just a bag of graphics.
... View more
07-21-2023
07:24 AM
|
0
|
4
|
2645
|
|
POST
|
You can use shallowRef to prevent the aggressive proxy waterfall that vue uses. https://vuejs.org/api/reactivity-advanced.html#shallowref I haven't made a vue app in a while, but you can try this one. https://github.com/odoe/vue-jsapi-calcite Use npm ci to make sure is installs locked versions Found another one. https://github.com/odoe/nearby-app Same thing, use npm ci to use locked versions
... View more
07-19-2023
07:46 AM
|
0
|
0
|
2826
|
|
POST
|
Yes, we have a sample here https://github.com/Esri/jsapi-resources/tree/main/esm-samples/jsapi-vue
... View more
07-10-2023
08:00 AM
|
0
|
0
|
1968
|
|
POST
|
You'd need to add some logic to handle when you click to start moving it and click to stop. Here's an updated demo. https://codepen.io/odoe/pen/VwVrxBJ?editors=0010 if (pause) {
handlers.forEach((a) => a.remove());
handlers.length = 0;
pause = false;
return;
};
... View more
07-10-2023
07:57 AM
|
1
|
0
|
2482
|
|
POST
|
Not for the popup. If you need something slightly different, you might want to look at the Features widget which lets you place popup content anywhere you want. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Features.html
... View more
06-30-2023
06:44 AM
|
0
|
0
|
1067
|
|
POST
|
This works if you remove the custom css you added to modify the popup. You might need to adjust that.
... View more
06-29-2023
07:42 AM
|
0
|
2
|
1096
|
|
POST
|
The Search widget also has a popupEnabled property you can set. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#popupEnabled
... View more
06-28-2023
01:34 PM
|
1
|
1
|
1874
|
|
POST
|
Are you using Angular? What version and what version of the API? There are some issues in older versions of the API and Zonejs in Angular. It looks like it might be a Zonejs issue. https://github.com/Esri/jsapi-resources/tree/main/esm-samples/jsapi-angular-cli
... View more
06-28-2023
01:32 PM
|
0
|
1
|
2673
|
|
POST
|
Do you get the same error if you try adding your key to the customParameters of the layers? It should be available on all layer types. It was designed for a case like this where a token may not come from an ArcGIS identity workflow. https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-MapImageLayer.html#customParameters
... View more
06-28-2023
09:07 AM
|
0
|
1
|
2696
|
|
POST
|
I was never able to get the DLL plugin to work with webpack. It might require scripting out all the files in the package to add, but even then, I don't know if it will work correctly with workers and wasm. Module federation might be an easier route. If you find a way, I'd love to hear about it.
... View more
06-22-2023
11:08 AM
|
0
|
0
|
2082
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 2 weeks ago | |
| 2 | 3 weeks ago | |
| 1 | 02-27-2026 06:31 AM | |
| 1 | 01-13-2026 02:15 PM | |
| 1 | 12-31-2025 09:05 AM |
| Online Status |
Offline
|
| Date Last Visited |
a week ago
|