|
POST
|
This worked for me, but with a caveat. directions.setDirectionsLanguage("fr"); According to the doc, this doesn't change the localization of the widget itself, just the language of the directions results coming from the REST API. Specify the language used for the directions. The supported languages can be requested from either the Route Service REST API, or from the widget itself
... View more
11-17-2021
08:17 AM
|
0
|
3
|
2320
|
|
POST
|
Ok, I see. That doc is for building a pure TypeScript project using the CDN. For create-react-app, you don't need to install the typings. Check out this sample here. It's not in TS, but same rules apply, you can use the default tsconfig from create-react-app and still be ok. https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app
... View more
11-17-2021
07:27 AM
|
1
|
0
|
7037
|
|
POST
|
Are you using the AMD package arcgis-js-api or the ESM package @arcgis/core? You don't need the typings installed separately in either case, they’ll come with the packages. I'm curious what your package.json and project looks like that you need the typings?
... View more
11-16-2021
02:37 PM
|
0
|
0
|
7063
|
|
POST
|
Does this work outside .NET environment? I haven't used .NET to build web apps in years, it could be a file copy issue, not sure.
... View more
11-16-2021
12:52 PM
|
0
|
2
|
1207
|
|
POST
|
Not really a simple way to change this, but you can add your own button and use the FullscreenViewModel to do the same thing. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Fullscreen-FullscreenViewModel.html
... View more
11-15-2021
11:37 AM
|
0
|
2
|
1905
|
|
POST
|
This type of thing has bit users before. When you define the sublayers upfront like in your snippet, you override the layers default settings. So since you don't define the popupTemplate, it's no longer available. If you want to modify some properties of the sublayer, but keep others, you can load the layer and it's sublayers up front, then modify them. Something like this. layer.load().then(() => {
Promise.all(layer.sublayers.map((sublayer) => sublayer.load())).then(() => {
const sub = layer.sublayers.find(x => x.id === 1);
console.log(sub)
sub.popupTemplate = {
title: "{route}",
content: "{type}"
}
})
}); Here is a demo. https://codepen.io/odoe/pen/MWvqWGm?editors=1000
... View more
11-11-2021
10:32 AM
|
2
|
1
|
1397
|
|
POST
|
Can't tell with this little info, can you provide a repro to take a closer look.
... View more
11-11-2021
07:23 AM
|
1
|
6
|
5315
|
|
POST
|
It sound like you might be running into webgl contexts issues. There is a max number of webgl contexts (instances of Maps/Scenes) in a browser and this is shared across tabs in the browsers. This limit can vary from browser to browser, machine to machine. This was briefly discussed here.
... View more
11-10-2021
07:13 AM
|
3
|
0
|
7276
|
|
POST
|
Is there a particular error with this sample? Are you using your API key from developers.arcgis.com? Here's a video that walks through the steps.
... View more
11-08-2021
02:10 PM
|
1
|
1
|
5066
|
|
POST
|
This isn't specific to the ArcGIS JSAPI. I think it might be part of how Stencil does it's builds and adds the ignore comments for webpack builds, but doesn't for vite. Understandable, it doesn't have the userbase that webpack does. This warning can be safely ignored, there is no fix we can provide. If you really want to suppress the warnings, this issue has some recommendations.
... View more
11-08-2021
11:02 AM
|
0
|
0
|
11169
|
|
POST
|
You can try providing a requestOptions object as the second arg of the execute command that sets the timeout to 0. https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html#RequestOptions
... View more
10-27-2021
07:23 AM
|
0
|
1
|
2222
|
|
POST
|
You can update the searchProperties of the Directions widget. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#searchProperties Like the Search widget, you can turn off the default Search source and add your own. https://developers.arcgis.com/javascript/latest/api-reference/esri-widgets-Directions.html#SearchProperties You can look at the search sample for more details on adding a new source. https://developers.arcgis.com/javascript/latest/sample-code/widgets-search-multiplesource/
... View more
10-27-2021
06:45 AM
|
1
|
1
|
1776
|
|
POST
|
Ah, ok. this is something that can be done via CIMSymbol and primitive overrides. Here's a sample. https://codepen.io/kekenes/pen/VwpKMvg?editors=1000 primitiveOverrides: [
{
type: "CIMPrimitiveOverride",
primitiveName: "colorOverride",
propertyName: "Color",
valueExpressionInfo: {
type: "CIMExpressionInfo",
title: "Arcade color override",
expression: `
// return "rgb(0,255,0)"
return $feature.NAIP_rgb;
`,
returnType: "Default"
}
}
]
... View more
10-26-2021
01:14 PM
|
1
|
0
|
2633
|
|
POST
|
You can use the color visual variables to accomplish this. Check out this guide page. https://developers.arcgis.com/javascript/latest/visualization/data-driven-styles/visual-variables/#color
... View more
10-26-2021
09:01 AM
|
0
|
2
|
2643
|
|
POST
|
You can update the geometry of the graphic directly like in this demo. https://codepen.io/odoe/pen/NWvjbKo?editors=0010 view.on("click", ({ mapPoint }) => {
graphic.geometry = mapPoint;
});
... View more
10-26-2021
08:58 AM
|
0
|
0
|
1825
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | Wednesday | |
| 1 | 3 weeks ago | |
| 2 | 3 weeks ago | |
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
yesterday
|