Browse Source

add OSM copyright

master
Olivier Courtin 4 months ago
parent
commit
947cb93cd3
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      neat_eo/web_ui/leaflet.html

+ 4
- 0
neat_eo/web_ui/leaflet.html View File

@@ -22,9 +22,13 @@ function load_json(url, callback) {
x.send(null);
};
var map = L.map("mapid").setView({{center}}, {{zoom}});
map.attributionControl.setPrefix("&copy; <a href='https://neat-EO.pink'>neat-EO.pink</a> | &copy; <a href='https://www.openstreetmap.org/copyright'>OpenStreetMap</a> contributors");
L.tileLayer("https://cartodb-basemaps-{s}.global.ssl.fastly.net/light_all/{z}/{x}/{y}.png", {maxZoom: {{zoom}}+3, opacity: 0.3}).addTo(map);
L.tileLayer("{{base_url}}/{z}/{x}/{y}.{{ext}}", {maxZoom: {{zoom}}+3, maxNativeZoom: {{zoom}}}).addTo(map);




var grid_style = { sliced: function(properties, zoom) {
return { "color": "deeppink", "opacity": 0.3, "fill": (zoom < {{zoom}}) ? true : false }}};
load_json("{{tiles}}", function(grid){ L.vectorGrid.slicer(grid, {maxZoom: {{zoom}}+3,


Loading…
Cancel
Save