Skip to content

Commit

Permalink
remove omniscale
Browse files Browse the repository at this point in the history
  • Loading branch information
karussell committed Jun 5, 2024
1 parent 0560b9f commit 6701117
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions js/demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -643,18 +643,12 @@ function setupIsochrone(map, ghIsochrone) {
function createMap(divId) {
let osmAttr = '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors';

let omniscale = L.tileLayer.wms('https://maps.omniscale.net/v1/ghexamples-3646a190/tile', {
layers: 'osm',
attribution: osmAttr + ', &copy; <a href="http://maps.omniscale.com/">Omniscale</a>'
});

let osm = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
attribution: osmAttr
});

let map = L.map(divId, {layers: [omniscale]});
let map = L.map(divId, {layers: [osm]});
L.control.layers({
"Omniscale": omniscale,
"OpenStreetMap": osm
}).addTo(map);
return map;
Expand Down

0 comments on commit 6701117

Please sign in to comment.