-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.js.sample
24 lines (21 loc) · 1.15 KB
/
settings.js.sample
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// INFO: Following variables have be modified when this page is deployed on a server
var start_latitude = 53.5; // initial latitude of the center of the map
var start_longitude = 9.95; // initial longitude of the center of the map
var start_zoom = 10; // initial zoom level
var defaultLayerName = 'local';
var maxZoom = 19; // maximum zoom level the tile server offers
// define both base maps
var baseLayers = {
'local' : L.tileLayer('http://localhost/tiles/osm/{z}/{x}/{y}.png', {maxZoom: maxZoom, attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors'}),
'osm.org' : L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {maxZoom: 19, attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, imagery CC-BY-SA'})
};
var overlays = {
// add overlay styles here, similar to baseLayers
};
/// Enable or disable layer switcher
var enableLayerSwitcher = true;
/// Enable or disable contextmenu
var enableContextmenu = true;
/// Enable or disable "add marker" control
var enableMarkerControl = true;
// End of the variables which might be modified if deployed on a server