|
POST
|
Hi @FM1 the Locate widget uses the browser's native Geolocation API. You can listen for the specific geolocation error messages using the widget's "locate-error" event to confirm the information being returned by the browser. Here's the MDN article that describes those errors: https://developer.mozilla.org/en-US/docs/Web/API/GeolocationPositionError. Also, in the Electron documentation: "Geolocation support in Electron requires the use of Google Cloud Platform's geolocation webservice." Have you enabled that webservice?
... View more
03-12-2024
08:48 AM
|
0
|
0
|
1374
|
|
POST
|
Hi @2spatial have you tried to repro this in a vanilla JS app? That will help sort out the basic JS Maps SDK coding flow and potentially identify if/where React might be tripping things up. And even though you didn't get any errors, here's our Troubleshooting guide for local builds. If you did try vanilla JS, then you'll need to provide a simple Stackblitz, codesandbox or github repo. If you can get this working in its simplest form in a basic React app, then it's easier to migrate the code to more advanced React patterns. Our ESM samples are a great starting point to provide a repro case because they have minimal dependencies.
... View more
03-08-2024
09:44 AM
|
0
|
0
|
2872
|
|
POST
|
Hi @GaryLSheppardJr can you repro in a codepen outside of Angular? On surface this doesn't look like an Angular issue. If not, can you provide a personal github repo or StackBlitz using this sample as your base template=> https://github.com/Esri/jsapi-resources/tree/main/esm-samples/jsapi-angular-cli ?
... View more
03-01-2024
03:54 PM
|
0
|
1
|
1986
|
|
POST
|
Adding on to Sage's comments, this looks like an issue with Express and not related to the ArcGIS JS SDK. Here's a link to their documentation: https://expressjs.com/en/resources/middleware/cors.html. They specify a number of different CORS options that might fix the issue.
... View more
12-22-2023
02:59 PM
|
0
|
1
|
8141
|
|
POST
|
Hi@BryanMc can you reproduce this outside of Vite in a vanilla JS app using the ArcGIS ESM CDN? Also, we'll need a github repo or stackblitz so we can try to reproduce the issue. Reference: https://github.com/Esri/jsapi-resources/blob/main/TROUBLESHOOTING.md
... View more
12-04-2023
04:37 PM
|
0
|
3
|
5989
|
|
POST
|
I have a TODO to clarify these steps on the jsapi-resources repo. Here they are in case you missed something. Note, I verified these steps on Angular 17, since we only test against the latest production version of frameworks. Create src/zone-flags.ts file, and then add this: (window as any).__zone_symbol__UNPATCHED_EVENTS = ['click']; In angular.json, make this adjustment: "polyfills": [
"src/zone-flags",
"zone.js"
], In tsconfig.app.json make this adjustment: "files": [
"src/zone-flags.ts",
"src/main.ts"
],
... View more
12-04-2023
09:16 AM
|
1
|
1
|
2882
|
|
POST
|
This appears to be related to a known issue with Calcite: https://github.com/Esri/jsapi-resources/tree/main/esm-samples/jsapi-angular-cli#known-issues. Try disabling the zone.js monkey patching for click events. Here's a diff that shows what you need to do https://github.com/Esri/jsapi-resources/issues/481#issuecomment-1687048980.
... View more
12-01-2023
10:48 AM
|
1
|
3
|
2911
|
|
POST
|
Thanks for reporting, I am able to repro on 4.28 and 4.29-next. We'll take a closer look.
... View more
12-01-2023
08:55 AM
|
1
|
4
|
2918
|
|
POST
|
@Wittawatwe fixed the Compass widget's icon property, and it can now be overridden as expected. The fix is available on the 'next' build, if you want to try it out. This pattern is now valid: const compassWidget = new Compass({
view: view,
icon: "arrow-up" // Calcite icon
});
... View more
11-30-2023
08:23 AM
|
0
|
1
|
6434
|
|
POST
|
Hi @Wittawat thanks for reporting, I've opened an issue for us to take a closer look. As @Justin_Greco mentions, the Compass widget does take into account spatial references. It's different from the Track and Locate widgets because it has two default icons, one for Web Mercator/WGS 84 (compass needle) and one for all other spatial references (arrow).
... View more
11-20-2023
11:13 AM
|
0
|
1
|
6497
|
|
POST
|
Ah okay, I clearly didn't look deep enough. Yep, that ignore pattern isn't working correctly. This isn't a problem with "@arcgis/core". The error "Cannot use import statement outside a module" is a well known JavaScript configuration issue. I changed this in your app and it worked: "transformIgnorePatterns": [
"node_modules/(?!(@angular|@arcgis|@esri|@stencil|@popperjs)/)"
],
... View more
11-16-2023
03:20 PM
|
1
|
0
|
3588
|
|
POST
|
It's been a while since I used Jest with Angular and no guarantee that it will work, but you may need to do something like this in your Jest config: "transformIgnorePatterns": [ "node_modules/(?!(@angular|@arcgis|@esri|@stencil/)" ], And, you might also need: https://www.npmjs.com/package/jest-preset-angular.
... View more
11-16-2023
01:05 PM
|
0
|
0
|
3603
|
|
POST
|
Hi @hectorsalamanca you might try using esriRequest instead, it uses native fetch: https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#esriRequest. Here's a working example that uses the pattern: https://github.com/Esri/jsapi-resources/blob/main/esm-samples/jsapi-node/src/request.mjs.
... View more
11-15-2023
08:33 AM
|
0
|
0
|
1751
|
|
POST
|
Hi @mbussey, that's correct - if you install 4.23.7, then it will include watchUtils.
... View more
11-14-2023
08:08 AM
|
0
|
0
|
1249
|
|
POST
|
@JonathanTiuI I verified in Charles while using Chrome that the SDK's wasm requests are being correctly cached. Chrome 119 dev tools appear to be incorrectly reporting cached file requests as HTTP 200s. Here's a screenshot: Also, the wasm scripts are being loaded correctly (synchronously). This is the pattern defined by the WorkerGlobalScope of the browser's Web Workers API,. More information is available on MDN here: https://developer.mozilla.org/en-US/docs/Web/API/WorkerGlobalScope/importScripts. As you may know, when stalls are reported in the network tab of the dev console, they can be the result of many different factors. Taking that into account, I didn't see anything unusual after multiple tests. We will continue to investigate the size of the workers.
... View more
11-13-2023
01:23 PM
|
1
|
3
|
3671
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | a month ago | |
| 1 | 04-10-2026 08:29 AM | |
| 1 | 03-26-2026 03:12 PM | |
| 2 | 02-21-2026 10:23 AM | |
| 2 | 08-01-2025 06:20 AM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|