更新 'worldmap/worldmap.js'
This commit is contained in:
parent
195f9228ac
commit
436c2f0dbb
@ -931,7 +931,7 @@ layercontrol = L.control.layers(basemaps, overlays);
|
||||
// Add all the base layer maps if we are online.
|
||||
var addBaseMaps = function(maplist,first) {
|
||||
// console.log("MAPS",first,maplist)
|
||||
var layerlookup = { OSMG:"OSM grey", OSMC:"OSM", OSMH:"OSM Humanitarian", EsriC:"Esri", EsriS:"Esri Satellite",
|
||||
var layerlookup = { OSMG:"OSM 灰度", OSMC:"OSM 标准", OSMH:"OSM 淡雅",OSMT:"地形", EsriC:"Esri", EsriS:"Esri Satellite",
|
||||
EsriR:"Esri Relief", EsriT:"Esri Topography", EsriO:"Esri Ocean", EsriDG:"Esri Dark Grey", NatGeo: "National Geographic",
|
||||
UKOS:"UK OS OpenData", OpTop:"Open Topo Map",
|
||||
HB:"Hike Bike OSM", ST:"Stamen Topography", SW:"Stamen Watercolor", AN:"AutoNavi (Chinese)"
|
||||
@ -966,8 +966,16 @@ var addBaseMaps = function(maplist,first) {
|
||||
});
|
||||
}
|
||||
if (maplist.indexOf("OSMH")!==-1) {
|
||||
basemaps[layerlookup["OSMH"]] = new L.TileLayer("https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png", {
|
||||
attribution:"Map data © OpenStreetMap Contributors. Courtesy of Humanitarian OpenStreetMap Team",
|
||||
basemaps[layerlookup["OSMH"]] = new L.TileLayer("https://maps.jingweiht.com/blossom/{z}/{x}/{y}.png", {
|
||||
attribution:"jingweiht",
|
||||
maxNativeZoom:19,
|
||||
maxZoom:20,
|
||||
subdomains: ['a','b']
|
||||
});
|
||||
}
|
||||
if (maplist.indexOf("OSMT")!==-1) {
|
||||
basemaps[layerlookup["OSMH"]] = new L.TileLayer("https://maps.jingweiht.com/opentopo/{z}/{x}/{y}.png", {
|
||||
attribution:"jingweiht",
|
||||
maxNativeZoom:19,
|
||||
maxZoom:20,
|
||||
subdomains: ['a','b']
|
||||
|
Loading…
Reference in New Issue
Block a user