]> git.openstreetmap.org Git - chef.git/blob - cookbooks/gps-tile/files/default/html/map.js
Update to leaflet 1.3.0
[chef.git] / cookbooks / gps-tile / files / default / html / map.js
1 $(document).ready(function () {
2   // Create a map
3   var map = L.map("map");
4
5   // Add GPS tile layer
6   L.tileLayer("//gps-{s}.tile.openstreetmap.org/gps-lines/tile/{z}/{x}/{y}.png", {
7     attribution: "© <a target=\"_parent\" href=\"https://www.openstreetmap.org\">OpenStreetMap</a> and contributors, under an <a target=\"_parent\" href=\"https://www.openstreetmap.org/copyright\">open license</a>",
8     maxZoom: 18
9   }).addTo(map);
10
11   // SHow the whole world
12   map.fitWorld();
13 });