Very strange! Everything works, but even the alert does not pop up on the event. And no errors either in the code, or in the debug, or in the console
What's wrong?
Example Code:
const map = new Map({
basemap: "satellite"
});
const view = new SceneView({
container: "viewDiv",
map: map
});
const basemapGallery = new BasemapGallery({
view: view,
container: document.createElement("div")
});
basemapGallery.on("selection-change", function (event) {
alert("basemapGallery selection change");
console.log("event ", event);
});