|
POST
|
Not in 4x, no. The workflow for that is the view click, like you showed with view hitTest.
... View more
05-12-2022
06:03 PM
|
0
|
0
|
764
|
|
POST
|
Here you go, I made a fork of your codepen showing where to add it. https://codepen.io/odoe/pen/RwQGxbP?editors=0010
... View more
05-12-2022
09:14 AM
|
0
|
9
|
1985
|
|
POST
|
You can check the length of the graphics layer collection. if (!view.graphics.length) {
view.graphics.removeAll();
view.graphics.add(graphic);
}
... View more
05-12-2022
07:45 AM
|
0
|
11
|
1996
|
|
POST
|
You can use StatisticDefinition with the query.outStatistics to get the min/max values. https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-StatisticDefinition.html You can search for "statistics" in the Sample Code page and find a number of samples including this one. https://developers.arcgis.com/javascript/latest/sample-code/popup-customcontent/
... View more
05-11-2022
11:17 AM
|
1
|
0
|
1595
|
|
POST
|
Ah, you can't fix this via your server then. The origin server has deliberately disabled CORS or only has certain allows. You can try to write a proxy server for this. The crossorigin.me dev site publishes their source code and you can try to use that as a base for your own. https://github.com/corihudson/crossorigin.me
... View more
05-11-2022
07:11 AM
|
0
|
0
|
8284
|
|
POST
|
You can try a custom theme using the source SASS files. This utility might be able to help with that https://github.com/Esri/arcgis-js-cli#author-a-custom-theme
... View more
05-10-2022
11:53 AM
|
0
|
2
|
1474
|
|
POST
|
Ok, I think you can simplify this rather try to grab the style like that. All Basemaps are published in LivingAtlas. https://livingatlas.arcgis.com/en/browse All Basemaps are published as WebMaps, but we have a Basemap class in the API you can use for it. https://developers.arcgis.com/javascript/latest/api-reference/esri-Basemap.html You can create the Basemap from the LivingAtlas item you found, then add your hillshade into the baseLayers. The add() method takes an index as the second argument. https://developers.arcgis.com/javascript/latest/api-reference/esri-core-Collection.html#add Then you can get a map like this. https://codepen.io/pen?editors=0010 That might be easier so you don't need to manually load the style file, and create the VT layers. async function load() {
const basemap = new Basemap({
portalItem: {
id: "358ec1e175ea41c3bf5c68f0da11ae2b"
}
});
const hillshade = new TileLayer({
portalItem: {
id: "1b243539f4514b6ba35e7d995890db1d"
}
});
await basemap.load();
basemap.baseLayers.forEach((layer) => {
layer.effect = "opacity(80%) brightness(90%)";
});
basemap.baseLayers.add(hillshade, 0);
const map = new ArcGISMap({
basemap
});
const view = new MapView({
container: "viewDiv",
map,
center: [-118, 34],
zoom: 4
});
}
... View more
05-10-2022
11:40 AM
|
2
|
1
|
2568
|
|
POST
|
edit - Is this on the server you are trying to get the WMS from?
... View more
05-10-2022
07:25 AM
|
0
|
2
|
8330
|
|
POST
|
This is updated in our "next" version of the API, so it will be 4.24 @UndralBatsukh put together a sample here https://codepen.io/U_B_U/pen/abEMrzq?editors=1000
... View more
05-10-2022
07:22 AM
|
0
|
0
|
834
|
|
POST
|
That json is just an item that lives in ArcGIS Online. That won't change, and I think style updates are done as new items, so yes it's constant. Can you accomplish the same thing with the VT Style Editor? You can create your own style to use in your apps, and if you need to finetune it, you can edit the JSON in the editor. https://developers.arcgis.com/vector-tile-style-editor
... View more
05-09-2022
06:32 PM
|
1
|
3
|
2597
|
|
POST
|
It looks like you're tying to initialize a layer with the query endpoint of a URL. You don't need to do that. Pass the URL with the index and define your query in the definitionExpression instead. This tutorial might be helpful as it shows how to apply SQL expressions to the deinfitionExpression of a layer. https://developers.arcgis.com/javascript/latest/filter-a-feature-layer-with-sql/
... View more
05-05-2022
10:40 AM
|
0
|
0
|
1550
|
|
POST
|
The JSAPI doesn't have anything other than Expand for something like this. This is more of an app level utility. I don't think calcite components have a close button either, but you can put some together with them. https://developers.arcgis.com/calcite-design-system/
... View more
05-04-2022
12:30 PM
|
0
|
0
|
1032
|
|
POST
|
Is something like this what you're looking for? https://developers.arcgis.com/javascript/latest/sample-code/view-disable-zoom/ StoryMaps uses this.
... View more
05-03-2022
07:19 AM
|
0
|
0
|
1314
|
|
POST
|
You might need to update your browser list as described here. https://github.com/Esri/jsapi-resources/tree/master/esm-samples/jsapi-create-react-app#misc Edit 1: Nevermind, looking at your project, I see you did. I can look at this later today. Edit 2: I don't know, your repro app works fine. I tried with yarn and npm, no issues. Does this happen on a particular browser/os? I tested on Mac with Chrome, FF, and Safari.
... View more
05-03-2022
05:12 AM
|
1
|
2
|
2512
|
|
POST
|
When you use your built component in your application (the npm package) are you also using the ArcGIS JSAPI in your app? If so, you can't mix JSAPI instances in your app with your component. You'll see errors regarding the Accessor. This is equivalent to trying to create a MapView using @arcgis/core and loading a Map created with the CDN. It won't work. You can publish your component without including the JSAPI in your build, and let the build tools handle it in your app. I do something similar with this published utility library (https://github.com/odoe/explode).
... View more
05-02-2022
08:59 AM
|
1
|
1
|
1875
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 4 weeks ago | |
| 2 | a month 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 |
yesterday
|