Skip to content

Commit

Permalink
Merge pull request #75 from mtmail/leaflet-1-dot-9
Browse files Browse the repository at this point in the history
leaflet 0.7.7 -> 1.9.4
  • Loading branch information
Zverik authored Jun 17, 2024
2 parents 66a099f + 120ffb0 commit 8e32eb4
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 8e32eb4

Please sign in to comment.