Skip to content

Commit

Permalink
Addresses OpenHistoricalMap/issues#355 simply, by never adding the OS…
Browse files Browse the repository at this point in the history
…M layer to ide.map. Also corrects the instantiation of the attribution control, which does not work and is inherited upstream. Will submit an issue/PR there.
  • Loading branch information
erictheise committed Jul 6, 2024
1 parent b173693 commit a7fc639
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions js/ide.ts
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ class IDE {

// init leaflet
ide.map = new L.Map("map", {
attributionControl: true,
attributionControl: false,
minZoom: 0,
maxZoom: configs.maxMapZoom,
worldCopyJump: false
Expand All @@ -490,8 +490,9 @@ class IDE {
maxNativeZoom: 19,
maxZoom: ide.map.options.maxZoom
});
ide.attribControl = new L.Control.Attribution({prefix: false});
ide.attribControl.addAttribution(tilesAttrib);
const attribControl = new L.Control.Attribution({position: "bottomright"});
attribControl.addAttribution(tilesAttrib);
attribControl.addTo(ide.map);
const pos = new L.LatLng(settings.coords_lat, settings.coords_lon);
ide.map.setView(pos, settings.coords_zoom);
// .addLayer(tiles);
Expand Down

0 comments on commit a7fc639

Please sign in to comment.