Skip to content

Commit

Permalink
Restores attribution.
Browse files Browse the repository at this point in the history
  • Loading branch information
erictheise committed Jan 2, 2024
1 parent 23fc82e commit 2712f71
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/ide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import jQuery from "jquery";
import html2canvas from "html2canvas";
import {Canvg} from "canvg";
import L from "leaflet";
import "maplibre-gl";
import "@maplibre/maplibre-gl-leaflet";
import "codemirror/lib/codemirror";
import tokml from "tokml";
Expand Down Expand Up @@ -480,7 +481,7 @@ class IDE {
// init leaflet
// the default basemap/tilelayer is nothing at all, and we always add OHM vector style above the basemap
ide.map = new L.Map("map", {
attributionControl: false,
attributionControl: true,
minZoom: 0,
maxZoom: configs.maxMapZoom,
worldCopyJump: false
Expand All @@ -502,7 +503,7 @@ class IDE {
ide.map.createPane("vectiles");
ide.map.getPane("vectiles").style.zIndex = 210; // slightly > tilePane 200
ide.map.getPane("vectiles").style.pointerEvents = "none";
ide.map.vectortiles = new L.MaplibreGL({
ide.map.vectortiles = L.maplibreGL({
style: configs.vectorTileStyleUrl,
pane: "vectiles"
}).addTo(ide.map);
Expand Down

0 comments on commit 2712f71

Please sign in to comment.