|
POST
|
Do you have a repo? I tried this out looking at the doc to let the plugin copy the assets and this work. new ArcGISPlugin({
locales: ['en', 'es']
}),
... View more
02-23-2022
09:01 AM
|
0
|
6
|
3601
|
|
POST
|
You can do this a couple of ways. Most convenient is to use whenFalseOnce() https://developers.arcgis.com/javascript/latest/api-reference/esri-core-watchUtils.html#whenFalseOnce The other is to ruse the WatchHandle remove method when done https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Accessor.html#WatchHandle const handle = layerView.watch("updating", (value) => {
// do your thing
handle.remove()
})
... View more
02-21-2022
09:12 AM
|
2
|
1
|
1514
|
|
POST
|
This should be fixed in our "next" build. https://github.com/Esri/feedback-js-api-next/ Please test with one of these two methods. // CDN
<script src="https://js.arcgis.com/next/"></script> // npm
npm install @arcgis/core@next
... View more
02-18-2022
09:52 AM
|
0
|
0
|
1225
|
|
POST
|
This will depend on your build environment. We have a webpack-plugin that will simplify this for you. https://github.com/Esri/arcgis-webpack-plugin // webpack.config.js
module.exports = {
...
plugins: [
new ArcGISPlugin({
locales: ['en', 'es']
})
]
...
} If you're not using webpack, or don't want to use the plugin (the asset copy/filter functionality is all it really offers in most cases) you can mimic what the plugin does in your own application. This is how it will filter the the locale files in the copy operation. https://github.com/Esri/arcgis-webpack-plugin/blob/master/lib/requiredPlugins.js#L50-L73
... View more
02-15-2022
07:06 AM
|
1
|
8
|
3628
|
|
POST
|
You may have to wait for the view or layer to be finished. Also make sure it's an image, and not svg, depending on how it was created. This sample works grabs the layer and iterates the uniqueValueInfos https://codepen.io/odoe/pen/rNYGjVg?editors=1000
... View more
02-14-2022
02:04 PM
|
0
|
0
|
1522
|
|
POST
|
Yeah, these methods will most likely not be implemented in 4x. If I were to change one thing, is save the extent on watchUtils.whenFalse(view, "updating", method) This way you don't need to check for the small extent changes. You can also utilize the spatialReference.equals(sr) method to make sure they are different https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-SpatialReference.html#equals This is clever, though, nice work
... View more
02-14-2022
10:48 AM
|
1
|
1
|
5401
|
|
POST
|
Looks like a bug in 4.22. We'll get this fixed for the next release.
... View more
02-10-2022
09:12 AM
|
1
|
0
|
1256
|
|
POST
|
You can use symbolUtils.renderPreviewHTML for something like this. https://developers.arcgis.com/javascript/latest/api-reference/esri-symbols-support-symbolUtils.html#renderPreviewHTML
... View more
02-09-2022
10:58 AM
|
0
|
2
|
1547
|
|
POST
|
I am going to guess that your basemap is a different spatial reference than your service. When you query against the service, the SR will be the original SR of the service. You can. request the geometries to be converted to match your map like this. function zoomToLayer(layer) {
// create query from layer
const query = layer.createQuery();
// ask for SR to match the View
query.outSpatialReference = view.spatialReference;
return layer.queryExtent(query).then((response) => {
view.goTo(response.extent)
});
}
... View more
02-09-2022
08:05 AM
|
2
|
0
|
1639
|
|
POST
|
Do you have a sample GP service to test against? I was able to test this against our HotSpot GP Service and get the features. https://codepen.io/odoe/pen/ExbWxRR?editors=1000 Another way to test is against the GeoprocessorTask in 4.19, that was before we updated to the rest modules. It would be odd if it was different though, that underlying parsing logic wasn't changed, so curious to see the result of that.
... View more
02-08-2022
08:44 AM
|
1
|
0
|
3405
|
|
POST
|
Sorry, we don't patch released versions (beyond browser security fixes). If you are seeing an issue with layer requests, you can submit it to support for better tracking and it will make its way to the devs.
... View more
02-03-2022
03:07 PM
|
0
|
1
|
2739
|
|
POST
|
For 3d points, you'll want to use an ObjectSymbol3DLayer. Here is a sample showing how it works.
... View more
02-03-2022
07:44 AM
|
0
|
1
|
1064
|
|
POST
|
Do you have a sample we can look at? I assume points? Does this happen on a particular browser or all browsers? Nothing stands out, we have samples using more data than that.
... View more
02-02-2022
08:17 AM
|
0
|
0
|
798
|
|
POST
|
You'll want to look at the samples linked in the doc page. https://github.com/Esri/jsapi-resources/tree/master/esm-samples The API is meant to be built with some sort of build tool, webpack, vite, rollup, etc. Those build tools take the relative paths into consideration. That's why you get that weird error. We don't have a minimum node version, but would assume minimum Node ESM support, which is 12+. But that really comes into play moreso with build tooling. I was trying to find the blog post from ESM release, but while looking, found this cool story map on. AMD to ESM migration that might be useful. https://storymaps.arcgis.com/stories/5eb1c08d87fc437bb6d4d263a8cd9476
... View more
02-02-2022
08:07 AM
|
0
|
3
|
11812
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Tuesday | |
| 1 | 4 weeks ago | |
| 2 | a month ago | |
| 1 | 02-27-2026 06:31 AM | |
| 1 | 01-13-2026 02:15 PM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|