|
POST
|
You can do this by listening for the sources collection to change. https://codepen.io/odoe/pen/gbOqrXv?editors=1000 const searchElement = document.querySelector("arcgis-search");
// component loaded, might still be loading data
await searchElement.componentOnReady();
searchElement.allSources.on("change", () => {
searchElement.allSources.forEach((source) => {
source.zoomScale = 100000;
});
});
... View more
04-02-2025
03:43 PM
|
1
|
0
|
1166
|
|
POST
|
This is currently a known limitation with the "position" that we are looking to fix for next release. In later releases we will be adding slots to better manage this. For now, you can use the arcgis-placement component and your own container styled how you like to accomplish this. https://codepen.io/odoe/pen/yyLGdXa?editors=1000 <arcgis-map item-id="45725ba7d9fb47a0925398919b13d1fa">
<arcgis-placement position="bottom-left">
<div class="tool-container">
<arcgis-zoom layout="horizontal"></arcgis-zoom>
<arcgis-expand expand-icon="esri-icon-layers" expand-tooltip="Layers" collapse-icon="chevrons-down" collapse-tooltip="Layers" label="Layers" placement="top-leading" close-on-esc>
<arcgis-layer-list label="Current layers" show-heading></arcgis-layer-list>
</arcgis-expand>
<arcgis-expand expand-icon="measure" expand-tooltip="Measure distance" collapse-icon="chevrons-down" collapse-tooltip="Measure distance" label="Measure distance" placement="top-leading" close-on-esc>
<arcgis-distance-measurement-2d unit="meters"></arcgis-distance-measurement-2d>
</arcgis-expand>
<arcgis-scale-bar bar-style="ruler" unit="metric"></arcgis-scale-bar>
</div>
</arcgis-placement>
</arcgis-map>
... View more
04-02-2025
08:51 AM
|
2
|
0
|
858
|
|
POST
|
Do you have a github repo or similar to review? You only need the wrappers for React 18 and I don't have an app on hand to test with.
... View more
03-31-2025
03:29 PM
|
0
|
0
|
613
|
|
POST
|
There's a couple of ways you could do this. Create a custom basemap and assign it to element.map.basemap. Create a map with custom basemap and assign the map the element.map Here is a demo with second option. It's really a preference on your part. https://codepen.io/odoe/pen/emYPBBB?editors=1000 const ArcGISMap = await $arcgis.import("@arcgis/core/Map.js");
const VectorTileLayer = await $arcgis.import("@arcgis/core/layers/VectorTileLayer.js");
const Basemap = await $arcgis.import("@arcgis/core/Basemap.js");
const mapBaseLayer = new VectorTileLayer({
url: "https://arcgis.com/sharing/rest/content/items/b5676525747f499687f12746441101ef/resources/styles/root.json"
});
const customBasemap = new Basemap({
baseLayers: [mapBaseLayer],
title: "Terrain",
id: "terrain",
thumbnailUrl: "https://arcgis.com/sharing/rest/content/items/b5676525747f499687f12746441101ef/info/thumbnail/ago_downloaded.png"
});
const sceneElement = document.querySelector("arcgis-scene");
await sceneElement.componentOnReady();
sceneElement.map.basemap = customBasemap;
... View more
03-28-2025
02:55 PM
|
1
|
1
|
843
|
|
POST
|
The layer name comes from the "layer.title", so you can add your own title when you create the layer.
... View more
03-28-2025
11:54 AM
|
3
|
0
|
989
|
|
POST
|
If you could provide a repro to look at, would be easier to see the problem. If I had to guess, your `<app-esri-map>` element needs a height and width in css. The `<arcgis-map>` component will grow to the size of it's container, so the container probably doesn't have them.
... View more
03-27-2025
01:34 PM
|
1
|
1
|
915
|
|
POST
|
I don't think you'll be able to target individual expands like that... yet. Right now the arcgis-expand creates an element with the class ".esri-expand" and places that element in the view.ui. So the actual arcgis-expand element you created is not in the view.ui. I don't think there is an easy way with css to target multiples of these same type of elements. In a future release we will be using slots to position these elements which will make it easier.
... View more
03-20-2025
08:16 AM
|
1
|
0
|
1808
|
|
POST
|
If you can provide a github repo showing the issue, might be able to help. From your snippet, I'm not sure why you're creating a new MapView and using components, it should be one or the other. If you use React 19, you don't need the map-components-react package. Here is a React 19 sample https://github.com/Esri/jsapi-resources/tree/main/component-samples/map-components/samples/react
... View more
03-20-2025
07:50 AM
|
1
|
0
|
903
|
|
POST
|
Do you have a reproducible sample? This looks like you may need to update your calcite version as well. 4.32 uses 3.0.3 of calcite https://developers.arcgis.com/javascript/latest/release-notes/#additional-packages
... View more
03-06-2025
10:57 AM
|
0
|
0
|
695
|
|
POST
|
Do you have a code sample, codepen, or github of what you are trying to do? Custom Content is defined on the PopupTemplate and Feature displays that info.
... View more
03-05-2025
07:20 AM
|
0
|
1
|
1467
|
|
POST
|
Short answer, no, but it's under consideration. https://community.esri.com/t5/arcgis-javascript-maps-sdk-blog/arcgis-maps-sdk-for-javascript-version-4-32/bc-p/1589690/highlight/true#M244
... View more
03-05-2025
07:04 AM
|
0
|
0
|
700
|
|
POST
|
All of the components have a referenceElement property and reference-element attribute so it does not need to be inside a map component. https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-basemap-gallery/#referenceElement That can be the id to the arcgis-map component. Here is a blog post that might be useful. https://www.esri.com/arcgis-blog/products/js-api-arcgis/developers/build-gis-web-apps-with-javascript-maps-sdk-components/
... View more
02-26-2025
11:47 AM
|
1
|
1
|
1550
|
|
POST
|
I suppose there's a couple of ways you can do this. You can update the source on the BasemapGallery element https://developers.arcgis.com/javascript/latest/references/map-components/arcgis-basemap-gallery/ <arcgis-map item-id="06ca49d0ddb447e7817cfc343ca30df9">
<arcgis-basemap-gallery position="top-right"></arcgis-basemap-gallery>
</arcgis-map> // in your app somewhere
import LocalBasemapsSource from "@arcgis/core/widgets/BasemapGallery/support/LocalBasemapsSource.js";
const bmgElement = document.querySelector('arcgis-basemap-gallery');
bmgElement.source = new LocalBasemapsSource({
basemaps
}); If you want to do it all via JS import LocalBasemapsSource from "@arcgis/core/widgets/BasemapGallery/support/LocalBasemapsSource.js";
const bmgElement = document.createElement('arcgis-basemap-gallery');
bmgElement.position = "top-right";
bmgElement.source = new LocalBasemapsSource({
basemaps
});
document.querySelector('arcgis-map').appendChild(bmgElement);
... View more
02-26-2025
09:27 AM
|
1
|
3
|
1591
|
|
POST
|
Can you verify that the versions of calcite being referenced are the same? Calcite 3.0.2, the t9n files are named message.ko.json, not message_ko.json. The CDN asset may not be the same version used by ExB. I'm not familiar with the versions being used, but sounds like the issue.
... View more
02-18-2025
08:16 AM
|
1
|
0
|
812
|
|
POST
|
There's a goTo method on the map component. You can use a useRef to access the component and it's methods.
... View more
02-07-2025
12:35 PM
|
0
|
1
|
1754
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | a week ago | |
| 2 | 2 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 |
yesterday
|