start map
This commit is contained in:
@@ -285,25 +285,10 @@ function dragcanvas() {
|
||||
$reseau.draggable({
|
||||
scroll: false
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function map() {
|
||||
var mymap = L.map('mapid').setView([51.505, -0.09], 13);
|
||||
|
||||
L.tileLayer('https://api.tiles.mapbox.com/v4/{id}/{z}/{x}/{y}.png?access_token=pk.eyJ1IjoibWFwYm94IiwiYSI6ImNpejY4NXVycTA2emYycXBndHRqcmZ3N3gifQ.rJcFIG214AriISLbB6B5aw', {
|
||||
maxZoom: 18,
|
||||
attribution: 'Map data © <a href="https://www.openstreetmap.org/">OpenStreetMap</a> contributors, ' +
|
||||
'<a href="https://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
|
||||
'Imagery © <a href="https://www.mapbox.com/">Mapbox</a>',
|
||||
id: 'mapbox.streets'
|
||||
}).addTo(mymap);
|
||||
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
clickhand();
|
||||
map();
|
||||
drag();
|
||||
dragcanvas();
|
||||
// scrollbar();
|
||||
|
||||
Reference in New Issue
Block a user