kopia lustrzana https://github.com/magicbug/Cloudlog
Merge pull request #2418 from int2001/mapZoom
Changed MaxZoom from 9 to 12 - so 6-character-grids are visiblepull/2420/head
commit
014e8cafe7
|
@ -583,7 +583,7 @@ function newpath(latlng1, latlng2, locator1, locator2) {
|
||||||
|
|
||||||
var osmUrl='<?php echo $this->optionslib->get_option('option_map_tile_server');?>';
|
var osmUrl='<?php echo $this->optionslib->get_option('option_map_tile_server');?>';
|
||||||
var osmAttrib='Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
|
var osmAttrib='Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
|
||||||
var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 9, attribution: osmAttrib});
|
var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 12, attribution: osmAttrib});
|
||||||
|
|
||||||
var redIcon = L.icon({
|
var redIcon = L.icon({
|
||||||
iconUrl: icon_dot_url,
|
iconUrl: icon_dot_url,
|
||||||
|
@ -637,7 +637,7 @@ function showActivatorsMap(call, count, grids) {
|
||||||
|
|
||||||
var osmUrl='<?php echo $this->optionslib->get_option('option_map_tile_server');?>';
|
var osmUrl='<?php echo $this->optionslib->get_option('option_map_tile_server');?>';
|
||||||
var osmAttrib='Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
|
var osmAttrib='Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
|
||||||
var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 9, attribution: osmAttrib});
|
var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 12, attribution: osmAttrib});
|
||||||
|
|
||||||
map.addLayer(osm);
|
map.addLayer(osm);
|
||||||
}
|
}
|
||||||
|
|
|
@ -25,7 +25,7 @@ function initmap(ShowGrid = 'No', MapTag = 'map') {
|
||||||
|
|
||||||
// create the tile layer with correct attribution
|
// create the tile layer with correct attribution
|
||||||
var osmAttrib='Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
|
var osmAttrib='Map data © <a href="https://openstreetmap.org">OpenStreetMap</a> contributors';
|
||||||
var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 9, attribution: osmAttrib});
|
var osm = new L.TileLayer(osmUrl, {minZoom: 1, maxZoom: 12, attribution: osmAttrib});
|
||||||
|
|
||||||
var printer = L.easyPrint({
|
var printer = L.easyPrint({
|
||||||
tileLayer: osm,
|
tileLayer: osm,
|
||||||
|
|
|
@ -51,7 +51,7 @@ function gridPlot(form) {
|
||||||
grid_four_confirmed = data.grid_4char_confirmed;
|
grid_four_confirmed = data.grid_4char_confirmed;
|
||||||
grid_six_confirmed = data.grid_6char_confirmed;
|
grid_six_confirmed = data.grid_6char_confirmed;
|
||||||
var layer = L.tileLayer(jslayer, {
|
var layer = L.tileLayer(jslayer, {
|
||||||
maxZoom: 9,
|
maxZoom: 12,
|
||||||
attribution: jsattribution,
|
attribution: jsattribution,
|
||||||
id: 'mapbox.streets'
|
id: 'mapbox.streets'
|
||||||
});
|
});
|
||||||
|
|
Ładowanie…
Reference in New Issue