|
POST
|
Here's how you can make this work. Don't call graphicsLayer.removeAll(), this is the layer used SketchViewModel and you should let it handle deletion. I was incorrect here Add the polylineGraphic to the view.graphics, it's not actually part of the sketch workflow. Or add it in the update method, but this graphic is causing your error in your delete methods. Those two things will fix the error (Update, this is not a correct sample). https://codepen.io/odoe/pen/OJvpVKL?editors=1000 Still get the two vertices there, not sure how to clean that up. I think you need some more logic around starting the sketch workflow and finishing it.
... View more
07-18-2022
09:00 AM
|
1
|
1
|
3666
|
|
POST
|
Is this on your own network using IWA or PKI? This page discusses the various ArcGIS security scenarios. https://developers.arcgis.com/documentation/mapping-apis-and-services/security/arcgis-identity/ If it's a public app, but the data is protected via sharing to your ArcGIS Online org, you need to use OAuth, so they have to log in at some point, but the credentials would be saved in the browser so they don't have to log in again until it expires.
... View more
07-15-2022
12:45 PM
|
0
|
0
|
735
|
|
POST
|
The Locate widget uses the geolocation api of the browser, so it's completely device dependent at that point. You can pass geolocation options to modify the max age and timeout if you like. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#geolocationOptions We don't have an example on hand showing the heading, but you can update the graphic of the Track widget to show an arrow based on the heading, you can even change it based on other results of the geolocation api like speed and altitude. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Track.html#graphic
... View more
07-15-2022
08:35 AM
|
1
|
1
|
4125
|
|
POST
|
That is odd, I can't repro. The sample does everything you are. Does this also happen with 4.24? I don't think there have been any changes there for a couple of releases.
... View more
07-13-2022
10:17 AM
|
0
|
1
|
1478
|
|
POST
|
I'm often asked about authentication in the ArcGIS API for JavaScript, so felt like I would put together a video on how you can use the IdentityManager to create an authentication workflow for your applications!
... View more
07-12-2022
02:46 PM
|
2
|
2
|
4092
|
|
POST
|
Not sure. Looks like vscode isn't scanning all the d.ts files. Not much we can do to force it to work. Maybe a way to configure this in the jsconfig for vscode, but not something I've looked into. Relying on module names for autoimports is a little iffy because default imports aren't named, so you can call SceneView, ArcGISSceneView, or SV, so not sure how vscode handles that.
... View more
07-12-2022
08:59 AM
|
0
|
0
|
1956
|
|
POST
|
Well, not specific to FeatureTable, but any widget and View, is to use the useEffect cleanup return method to set container null values as needed. https://reactjs.org/docs/hooks-effect.html#example-using-hooks-1 But if your instantiation logic is a little different, could vary, clean up on route change or some other action.
... View more
07-11-2022
12:56 PM
|
0
|
0
|
2902
|
|
POST
|
It all depends on how you are managing your components. Can't really tell without a repro.
... View more
07-11-2022
12:41 PM
|
0
|
2
|
2905
|
|
POST
|
Not sure how you are loading the FeatureTable, but you can use the return function of the useEffect and set featureTable.container = null, to remove the reference and set it when it loads Something like this useEffect(() => {
if (table) {
table.container = tableRef.current;
}
else {
table = new FeatureTable({
container: tableRef.current
});
}
return () => table.container = null;
}, [tableRef]);
... View more
07-11-2022
11:36 AM
|
0
|
0
|
2919
|
|
POST
|
That endpoint is a FeatureService, but the utility endpoint is different. Assuming you have a FeatureService, you can use a FeatureLayer and add it to the Map. Here is the doc https://developers.arcgis.com/javascript/latest/api-reference/esri-layers-FeatureLayer.html Here's a tutorial on the subject as well. https://developers.arcgis.com/javascript/latest/add-a-feature-layer/
... View more
07-11-2022
10:51 AM
|
0
|
0
|
2373
|
|
POST
|
4x does use the geolocation api, we just don't have the accuracy symbology. You can add it though with the info from the widget. Here's a sample. https://codepen.io/odoe/pen/zYpmEMB?editors=1000 You can even add a line or polygon for the heading from the widget info.
... View more
07-11-2022
10:48 AM
|
0
|
1
|
4167
|
|
POST
|
Sorry, I'm not sure. CSS is not my expertise. Could be you there are some additional classes on certain widgets on small screen sizes. Might need some inspection and trial and error.
... View more
07-01-2022
09:07 AM
|
0
|
0
|
1377
|
|
POST
|
are you getting errors in the console? I'd imagine if it was the api key you would get a login prompt. What are you build tools? How are you referencing the API key env variables in your app? Maybe a repro project? Could be the browserlist? Could be something else, tough to tell. There are some sample projects here you can look at too. https://github.com/Esri/jsapi-resources/tree/master/esm-samples I've seen this issue with default browserlist in some frameworks, check our note here with the react sample https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app#misc
... View more
06-30-2022
10:25 AM
|
1
|
1
|
1560
|
|
POST
|
I prefer to isolate references to the JSAPI in the store or utility modules, but components not to import things like the Map or MapView directly.
... View more
06-28-2022
06:36 AM
|
0
|
0
|
3488
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 3 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 |
9 hours ago
|