We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8088397 commit 2374293Copy full SHA for 2374293
1 file changed
examples/spin-globe/main.ts
@@ -27,12 +27,20 @@ const map = new maplibregl.Map({
27
pitch: -45,
28
bearing: -15,
29
maxPitch: 85,
30
+ attributionControl: false,
31
});
32
33
map.on("style.load", () => {
34
map.setProjection({ type: "globe" });
35
36
37
+map.addControl(new maplibregl.AttributionControl({ compact: true }));
38
+map.on("load", () => {
39
+ map
40
+ .getContainer()
41
+ .querySelector(".maplibregl-ctrl-attrib")
42
+ ?.classList.remove("maplibregl-compact-show");
43
+});
44
map.addControl(new maplibregl.GlobeControl());
45
46
const spinControl = new SpinGlobeControl({
0 commit comments