Skip to content

Commit

Permalink
leaflet 0.7.7 -> 1.9.4
Browse files Browse the repository at this point in the history
  • Loading branch information
mtmail committed Jun 17, 2024
1 parent 42491e2 commit 120ffb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions www/page.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<title><?=_('Level0 OpenStreetMap Editor') ?></title>
<meta charset="utf-8">
<meta name="generator" content="<?=GENERATOR ?>">
<link rel="stylesheet" href="https://unpkg.com/leaflet@0.7.7/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet@0.7.7/dist/leaflet.js"></script>
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css" integrity="sha256-p4NxAoJBhIIN+hmNHrzRCf9tD/miZyoHS5obTRR9BMY=" crossorigin="" />
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js" integrity="sha256-20nQCchB9co0qIjJZRGuk2/Z9VM+kNiyxNV1lvTlZBo=" crossorigin=""></script>
<style>body { font-family: sans-serif; font-size: 11pt; }</style>
</head>
<body>
Expand Down
5 changes: 3 additions & 2 deletions www/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@ document.addEventListener('DOMContentLoaded', () => {
};
L.Map.include(RestoreViewMixin);

var map = L.map('map');
var map = L.map('map', { attributionControl: false });
if (init_l0_map.force || !map.restoreView()) {
map.setView(init_l0_map.center, init_l0_map.zoom);
}

L.tileLayer('https://tile.openstreetmap.org/{z}/{x}/{y}.png',
{ attribution: 'Map &copy; <a href="https://www.openstreetmap.org">OpenStreetMap contributors</a>' }).addTo(map);
{ attribution: 'Map © <a href="https://www.openstreetmap.org">OpenStreetMap contributors</a>' }).addTo(map);
L.control.attribution({ prefix: null }).addTo(map);
var marker = L.marker(map.getCenter(), { draggable: true }).addTo(map);
var ways = L.layerGroup().addTo(map);

Expand Down

0 comments on commit 120ffb0

Please sign in to comment.