|
POST
|
> Does this use the GPS compass heading or the device orientation? The widget just uses the heading value.
... View more
05-12-2023
08:01 AM
|
0
|
3
|
3484
|
|
POST
|
The widget simply passes through all Geolocation API results provided by the browser. Be sure to set the high-accuracy property in the geolocation options. Browser Geolocation API implementations haven't been improved in years, so they can be very flaky. You can monitor what's being returned using something like this: // https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#event-track
track.on("track", (data) => {
const { longitude, latitude, altitude, heading, speed, accuracy } = data.position.coords;
geolocationResultsDiv.innerText = `
Latitude: ${latitude?.toFixed(4)}
Longitude: ${longitude?.toFixed(4)}
Altitude: ${altitude?.toFixed(1)}
Heading: ${heading?.toFixed(0)}
Speed: ${speed?.toFixed(2)}
Accuracy: ${accuracy?.toFixed(0)}m`;
})
... View more
05-12-2023
07:59 AM
|
0
|
4
|
3484
|
|
POST
|
@BobCowling2 you can try out the new 2D heading graphic for the Track widget using the 4.27 'next' build: https://github.com/Esri/feedback-js-api-next/. The heading symbol will automatically display when the speed is greater than 0 and heading values are provided by the browser's Geolocation API.
... View more
05-11-2023
12:00 PM
|
0
|
6
|
3487
|
|
POST
|
We are only aware of the SDKs legacy TS decorator issue mentioned in the link I pasted above. Angular 16 just released a few days ago: https://blog.angular.io/angular-v16-is-here-4d7a28ec680d. We did limited testing on the beta and didn't find any issues.
... View more
05-08-2023
03:55 PM
|
1
|
1
|
2839
|
|
POST
|
Hi @PeteVitt, are you using the AMD CDN or "@arcgis/core"? https://github.com/Esri/jsapi-resources/tree/main/esm-samples/jsapi-angular-cli#known-issues
... View more
05-08-2023
03:20 PM
|
0
|
3
|
2850
|
|
POST
|
Hi @ShaneBuscher the size increase is because AMD modules are only being loaded at runtime, and they are not included in the app bundles. The ES modules (@arcgis/core) are being included and bundled along with the app. Here's a bit more info on bundle size: https://github.com/Esri/jsapi-resources/tree/main/esm-samples#bundle-size-and-performance. The app will only use the modules that it needs at runtime.
... View more
05-03-2023
12:38 PM
|
0
|
1
|
2298
|
|
POST
|
@MichailMarinakis1 correct, you can extend the ViewModel. And, creating fully custom widgets means building your own functionality either by extending the Widget base class, or building from scratch using a UI library. And, correct, we no longer provide the out-of-the-box widgets View files. There was little-to-no abstraction with the core internals, and that made for a very brittle approach, lots of breaking changes and limited our ability to upgrade capabilities. Here's a ViewModel example: https://developers.arcgis.com/javascript/latest/sample-code/sketch-viewmodel-styler/.
... View more
04-28-2023
08:54 AM
|
1
|
1
|
3659
|
|
POST
|
@BobCowling2 if the enhancements make it in, 4.27 is scheduled for early summer (2023).
... View more
04-26-2023
04:54 PM
|
1
|
7
|
3529
|
|
POST
|
Hi @BobCowling2 we are working on similar functionality for the Track widget that is tentatively scheduled for the 4.27 release. I can post an update when that is available for testing on the 'next' build, or do you need something sooner than that?
... View more
04-26-2023
03:25 PM
|
0
|
9
|
3540
|
|
POST
|
Hi @RussellMGreen unfortunately we don't currently have a way to export interfaces and other types. You will still need to use the __esri namespace for gaining access to most items that are not classes. We do have an issue open for improving this in the future.
... View more
04-18-2023
01:48 PM
|
1
|
0
|
1875
|
|
POST
|
Hi @GIS_Weasel we are going to clarify the deprecation wording and sync that up with any SDK documentation pages. The good news is only the custom widget sample, itself, is being deprecated. You can continue to use Vite, you can extend the capabilities of the 4.x esri/widgets/Widget class, and you can continue to use the SDK's viewModels. Note that the React and Vue samples are using Vite, and so are the downloadable ESM-based SDK samples. Our goal is for the SDK to be compatible with all the major frameworks and module bundlers. With regards to migrating custom 3.x content to 4.x, building custom UI within frameworks such as React, Angular or Vue is best done using their respective UI patterns and practices. Of course, you can also continue to use 4.x OOB SDK widgets within the MapView/SceneView. And, you can also incorporate the Calcite Design System: https://developers.arcgis.com/calcite-design-system/.
... View more
04-11-2023
02:08 PM
|
1
|
1
|
3693
|
|
POST
|
Hi @Lzy, for an overview of our ESM bundle size and performance here's a link: https://github.com/Esri/jsapi-resources/tree/main/esm-samples#bundle-size-and-performance. If you require further assistance, please provide a simple, reproducible sample using github, stackblitz, or codesandbox. We recommend using our ESM examples as a starting point for building a test sample: https://github.com/Esri/jsapi-resources/tree/main/esm-samples/jsapi-vue.
... View more
04-06-2023
01:19 PM
|
0
|
0
|
957
|
|
POST
|
Hi @RazvanVxMt take a look at this discussion: https://github.com/Esri/jsapi-resources/issues/437#issuecomment-1235628447. It's about React, but the concept for managing the View and just removing the container is the same for Angular or any other framework. If you still need further assistance, you'll need to provide a simple, working github repo, codesandbox or stackblitz example.
... View more
03-30-2023
11:09 AM
|
0
|
2
|
2834
|
|
POST
|
@agauch the download has been fixed. Give it another try and let us know if there are any more issues.
... View more
03-23-2023
11:46 AM
|
0
|
0
|
1478
|
|
POST
|
Hi @Blakearc most likely the View isn't ready (view.ready === false) when you try to initialize the Locate widget. If you are still having issues after looking into that, you'll need to provide a focused, working github repo, stackblitz or codesandbox example of your React project. Here a basic troubleshooting guide: https://github.com/Esri/jsapi-resources/blob/main/TROUBLESHOOTING.md#four-triage-steps.
... View more
03-23-2023
07:30 AM
|
2
|
1
|
1640
|
| Title | Kudos | Posted |
|---|---|---|
| 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 | |
| 1 | 05-27-2025 12:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|