First draft of poi edit page

This commit is contained in:
leosw
2020-05-16 20:42:19 +04:00
parent 4fe1200ef3
commit 660488e5b6
9 changed files with 497 additions and 25 deletions

View File

@@ -4,7 +4,7 @@ $( document ).ready(function() {
// Differents layers for the map
var osmfr = L.tileLayer('//{s}.tile.openstreetmap.fr/osmfr/{z}/{x}/{y}.png', {tms: true, maxZoom: 20, attribution: 'Maps © <a href="http://www.openstreetmap.fr">OpenSreetMap France</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'});
var wikimedia = L.tileLayer('//maps.wikimedia.org/osm-intl/{z}/{x}/{y}.png', {tms: true, maxZoom: 18, attribution: 'Maps © <a href="http://wikimedia.org">Wikimedia</a>, Data © <a href="http://www.openstreetmap.org/copyright">OpenStreetMap contributors</a>'});
var crozet = L.tileLayer('/_maps/osm_cro/{z}/{x}/{y}.png', {tms: true, maxZoom: 18, attribution: 'For dev purpose only'});
var crozet = L.tileLayer('/_maps/sat_cro/{z}/{x}/{y}.png', {tms: true, maxZoom: 18, attribution: 'For dev purpose only'});
// Base layers
var baseLayers = {
@@ -16,7 +16,7 @@ $( document ).ready(function() {
mymap = L.map('mapid', {
zoomControl: false,
layers: [crozet],
}).setView([-46.407, 51.766], 12);
}).setView([-46.407, 51.766], 13);
$("#map-credits").html(crozet.getAttribution());
L.control.scale({