|
@@ -243,25 +243,10 @@ L.Control.Pinpoint = L.Control.extend({
|
|
|
})
|
|
|
|
|
|
function init_map() {
|
|
|
- var mapquest=L.tileLayer('https://otile{s}-s.mqcdn.com/tiles/1.0.0/map/{z}/{x}/{y}.jpg', {
|
|
|
- attribution: '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, '+
|
|
|
- 'Tiles courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a>',
|
|
|
- subdomains: '1234'
|
|
|
- });
|
|
|
- var mapquestsat=L.tileLayer('https://otile{s}-s.mqcdn.com/tiles/1.0.0/sat/{z}/{x}/{y}.jpg', {
|
|
|
- attribution: '© Tiles courtesy of <a href="http://www.mapquest.com/" target="_blank">MapQuest</a>, '+
|
|
|
- 'Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency',
|
|
|
- subdomains: '1234',
|
|
|
- maxZoom: 11
|
|
|
- });
|
|
|
- var osm=L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
|
+ var osm=L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
|
|
attribution: '© <a href="http://openstreetmap.org">OpenStreetMap</a> contributors',
|
|
|
subdomains: 'ab'
|
|
|
});
|
|
|
- var hyb=L.tileLayer('https://otile{s}-s.mqcdn.com/tiles/1.0.0/hyb/{z}/{x}/{y}.jpg', {
|
|
|
- subdomains: '1234',
|
|
|
- maxZoom: 11
|
|
|
- });
|
|
|
|
|
|
if(!$('#map').length)
|
|
|
return;
|
|
@@ -286,24 +271,13 @@ function init_map() {
|
|
|
center: new L.LatLng(46.603354, 10),
|
|
|
zoom: 4,
|
|
|
minZoom: 2,
|
|
|
- layers: [mapquest],
|
|
|
+ layers: [osm],
|
|
|
worldCopyJump: true
|
|
|
});
|
|
|
map.attributionControl.setPrefix('');
|
|
|
map.addControl(new L.Control.Pinpoint);
|
|
|
map.addControl(legend);
|
|
|
|
|
|
- L.control.layers({'MapQuest': mapquest, 'OSM Mapnik': osm, 'MapQuest Aerial': mapquestsat}).addTo(map);
|
|
|
- map.on('baselayerchange', function(a) {
|
|
|
- if(a.name == 'MapQuest Aerial') {
|
|
|
- map.addLayer(hyb);
|
|
|
- hyb.bringToFront();
|
|
|
- } else {
|
|
|
- map.removeLayer(hyb);
|
|
|
- }
|
|
|
- });
|
|
|
-
|
|
|
-
|
|
|
var icon_nothing = L.icon({
|
|
|
iconUrl: '../static/img/marker_nothing.png',
|
|
|
|