|
POST
|
You don't need the second argument for createElement unless you are creating a custom element web component. https://developer.mozilla.org/en-US/docs/Web/API/Document/createElement That's a DOM typing issue, remove the second argument and should be fine.
... View more
04-23-2021
02:10 PM
|
0
|
0
|
1791
|
|
POST
|
ah, the TypeScript typing wants an `address` field, but that's not actually required for that method. We can update the typings for 4.20, for now you can work around by casting the param object as any, or maybe adding address: null, to the param.
... View more
04-23-2021
09:41 AM
|
0
|
1
|
1806
|
|
POST
|
What browser version are you using? Promise.allSettled is not supported in older browsers. https://caniuse.com/?search=Promise.allSettled Edited as I noticed your screenshot is Chromium dev tools. Might need to update the browser.
... View more
04-23-2021
08:46 AM
|
0
|
1
|
2613
|
|
POST
|
You could search by geometry type if that's what you're looking for. // by geometry
const result = results.find(a => a.graphic.geometry.type === "polygon");
// by layer type, vector tiles are included in hitTest
// so this will rule that result out
const result = results.find(a => a.graphic.layer.type === "2d");
... View more
04-22-2021
12:51 PM
|
1
|
1
|
1430
|
|
POST
|
The @arcgis/core package already comes with the typings, no need for extra installs. You can continue to use the __esri namespace or alias it in your own d.ts file like this to use it in a short esri namespace.
... View more
04-22-2021
12:41 PM
|
0
|
2
|
3288
|
|
POST
|
You'll need to covert the GeoJSON result to an ArcGIS geometry. https://developers.arcgis.com/javascript/latest/api-reference/esri-geometry-Point.html Point takes a latitude and longitude you can use. I have no samples for this.
... View more
04-21-2021
01:21 PM
|
0
|
0
|
2558
|
|
POST
|
Turf isn't an Esri product. You can get support on the github page for turf https://github.com/Turfjs/turf/
... View more
04-21-2021
12:51 PM
|
0
|
2
|
2567
|
|
POST
|
This isn't exposed in the JavaScript API, but you might be able to use the GP Server jobs query endpoint as described here https://developers.arcgis.com/rest/enterprise-administration/server/query-jobs.htm You'd need to manually check that using esri/request or fetch in your workflow.
... View more
04-21-2021
11:37 AM
|
1
|
0
|
2487
|
|
POST
|
Routing and directions are premium services. You can use an API key with your free developer account. https://developers.arcgis.com/documentation/mapping-apis-and-services/security/api-keys/
... View more
04-20-2021
08:29 AM
|
0
|
0
|
4931
|
|
POST
|
This is right up Arcades alley. Here is a sample that does something similar. https://developers.arcgis.com/javascript/latest/sample-code/visualization-arcade/ Some doc on Arcade for visualization. https://developers.arcgis.com/javascript/latest/arcade/#visualization It will allow you do some field calcs and return a result that can be used by your renderer to determine how to visualize it.
... View more
04-19-2021
08:34 AM
|
0
|
1
|
1694
|
|
POST
|
That demo is really old. The concepts from that blog post still apply. I don't recommend mixing JSAPI imports in React components, but using some sort of layer between the API and your components. Whether that is Context or some other state management. Here is a more up-to-date demo of using the latest ESM build of the JSAPI with React. It includes a way to add graphics to the map. https://github.com/odoe/jsapi-esm-react
... View more
04-16-2021
12:50 PM
|
1
|
0
|
4972
|
|
POST
|
The "Map" from the API is not a React component, you can't use it as one. Here is a working sandbox using the API and React. https://codesandbox.io/s/esri-react-test1-forked-bdpsy
... View more
04-16-2021
08:44 AM
|
0
|
1
|
6369
|
|
POST
|
There's a number of ways to use the JSAPI with React. Do you have a sample project to look at? Is it class based? Hooks? Importing API in the Component? In Context? Could be a number of issues related to component state or hooks loops.
... View more
04-16-2021
08:07 AM
|
0
|
0
|
4987
|
|
POST
|
The vanilla JS project for codesandbox uses parcel, and there is currently an open issue with parcel-bundler about errors loading the API with Parcel. So it's probably not going to work with that template. If you just want to do some testing, you can use ESM via the CDN as described here. https://developers.arcgis.com/javascript/latest/install-and-set-up/#es-modules-via-cdn
... View more
04-15-2021
11:41 AM
|
3
|
7
|
6417
|
|
POST
|
It's a pretty unique request, and we don't doc this, don't really support it, so it could change at any point in the future without notice. This will also break any other legitimate OAuth you might have in your app, when tokens expire or other similar issues. Pretty much voids your warranty. You didn't get this from me. IdentityManager.on("dialog-create", () => {
IdentityManager.dialog.open = false;
}); https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#event-dialog-create https://developers.arcgis.com/javascript/latest/api-reference/esri-identity-IdentityManager.html#dialog
... View more
04-15-2021
09:01 AM
|
2
|
1
|
2337
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 2 weeks ago | |
| 1 | 07-17-2026 10:17 AM | |
| 2 | 07-22-2026 11:24 AM | |
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|