|
POST
|
Have not seen anything reported as of yet that could lead to this. Does it look correct in the MapViewer? Is this a WebMap you can share? I assume this is a WebMap, idk. Can't tell. API version? Online or Enterprise (version)? If we can't help you here, you can submit a support ticket with the application to them to get get it into the support pipeline.
... View more
07-19-2022
08:31 PM
|
0
|
0
|
650
|
|
POST
|
Depending on what your print service is expecting, you can send them as extraParameters in the PrintParameters. https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintParameters.html#extraParameters
... View more
07-19-2022
10:51 AM
|
0
|
0
|
1594
|
|
POST
|
I have a sample that moves a graphic on the "hold" event. You can tweak it to use applyEdits too. https://codepen.io/odoe/pen/bLEroK
... View more
07-19-2022
10:29 AM
|
0
|
0
|
1000
|
|
POST
|
Is miseservice an array? Too tough to tell from a screenshot, but sounds like that property is not an array you can map over
... View more
07-19-2022
10:23 AM
|
0
|
0
|
1321
|
|
POST
|
Custom Search sources are going to vary based on what third-party API you are using. So you need to be familiar with the parameters that API needs. The samples are using the esriRequest to make the queries, but you don't have to. You can use native fetch, or axios, or any other request style library you are comfortable with. https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html The ?q= is created by esriRequest, because that is how the sample API needs to be parsed. Your API is different. The %2F comes from url encoding. Without going into detail, this is how URL requests get encoded to escape special characters. This is standard. This was specific to the sample API being used, your API will require different parameters. Your API doesn't need the lat/lon parameters, so you can omit them. The sourceIndex is the index of the search source being referenced. This is given to you in the parameters of the getSuggestions method. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html#GetSuggestionsParameters The power of using custom search sources is that you can transform any searchable third-party API into something that be used by the Search widget, meaning each API will need to handled on a case by case basis. The API parameters will differ, the results will differ, but as long as you transform those results into something the ArcGIS JSAPI expects, you can make it work. This Swiss search API can return GeoJSON results, so that makes it a little easier to work with, but you need to specify the spatial reference as well. Here is an update to your app that uses the parameters as described in that search API doc and seems to work correctly. https://codepen.io/odoe/pen/QWmpVdQ?editors=0011
... View more
07-19-2022
10:03 AM
|
1
|
0
|
3374
|
|
POST
|
The main things you need to write are a getSuggestions and getResults method. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search-SearchSource.html That API looks like it takes a searchText and limit, so you can use that for the suggestions. You need to transform those into a SuggestResult, with key, text, and sourceIndex. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SuggestResult The getResults should return an array of SearchResults https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Search.html#SearchResult
... View more
07-18-2022
01:33 PM
|
0
|
2
|
3387
|
|
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
|
4142
|
|
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
|
833
|
|
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
|
4757
|
|
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
|
1695
|
|
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
|
4357
|
|
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
|
2131
|
|
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
|
3222
|
|
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
|
3225
|
|
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
|
3239
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | Wednesday | |
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM | |
| 2 | 04-21-2026 07:06 AM | |
| 1 | 02-27-2026 06:31 AM |
| Online Status |
Offline
|
| Date Last Visited |
Friday
|