[go: nahoru, domu]

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add additional and higher resolution basemap types to Google Basemaps #688

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add 2x and 4x Google Basemaps
for higher resolution rendering
  • Loading branch information
lemonjesus committed Jul 15, 2022
commit a1a58ce96bd3c6ba115ca74da0e532d235a5fc01
59 changes: 58 additions & 1 deletion core/basemaps/servicesDefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,32 @@
"resFactor" : 2
},

"WM2X" : {
"name" : 'Web Mercator 2X Scale',
"description" : 'Global grid in web mercator projection',
"CRS": 'EPSG:3857',
"bbox": [-180, -cutoff_lat, 180, cutoff_lat], #w,s,e,n
"bboxCRS": 'EPSG:4326',
#"bbox": [-20037508, -20037508, 20037508, 20037508],
#"bboxCRS": 3857,
"tileSize": 512,
"originLoc": "NW", #North West or South West
"resFactor" : 2
},

"WM4X" : {
"name" : 'Web Mercator 2X Scale',
"description" : 'Global grid in web mercator projection',
"CRS": 'EPSG:3857',
"bbox": [-180, -cutoff_lat, 180, cutoff_lat], #w,s,e,n
"bboxCRS": 'EPSG:4326',
#"bbox": [-20037508, -20037508, 20037508, 20037508],
#"bboxCRS": 3857,
"tileSize": 1024,
"originLoc": "NW", #North West or South West
"resFactor" : 2
},


"WGS84" : {
"name" : 'WGS84',
Expand Down Expand Up @@ -151,10 +177,41 @@
"HYB" : {"urlKey" : 'y', "name" : 'Hybrid', "description" : '', "format" : 'jpeg', "zmin" : 0, "zmax" : 22},
"TER" : {"urlKey" : 'p', "name" : 'Terrain', "description" : '', "format" : 'jpeg', "zmin" : 0, "zmax" : 22},
},
"urlTemplate": "http://mt0.google.com/vt/lyrs={LAY}&x={X}&y={Y}&z={Z}",
"urlTemplate": "http://mt0.google.com/vt/lyrs={LAY}&x={X}&y={Y}&z={Z}&hl=en",
"referer": "https://www.google.com/maps"
},

"GOOGLE2X" : {
"name" : 'Google 2X Scale',
"description" : 'Google map with higher resolution',
"service": 'TMS',
"grid": 'WM2X',
"quadTree": False,
"layers" : {
"SAT" : {"urlKey" : 's', "name" : 'Satellite', "description" : '', "format" : 'jpeg', "zmin" : 0, "zmax" : 22},
"MAP" : {"urlKey" : 'm', "name" : 'Map', "description" : '', "format" : 'png', "zmin" : 0, "zmax" : 22},
"HYB" : {"urlKey" : 'y', "name" : 'Hybrid', "description" : '', "format" : 'jpeg', "zmin" : 0, "zmax" : 22},
"TER" : {"urlKey" : 'p', "name" : 'Terrain', "description" : '', "format" : 'jpeg', "zmin" : 0, "zmax" : 22},
},
"urlTemplate": "http://mt0.google.com/vt/lyrs={LAY}&x={X}&y={Y}&z={Z}&hl=en&scale=2",
"referer": "https://www.google.com/maps"
},

"GOOGLE4X" : {
"name" : 'Google 4X Scale',
"description" : 'Google map with the highest resolution',
"service": 'TMS',
"grid": 'WM4X',
"quadTree": False,
"layers" : {
"SAT" : {"urlKey" : 's', "name" : 'Satellite', "description" : '', "format" : 'jpeg', "zmin" : 0, "zmax" : 22},
"MAP" : {"urlKey" : 'm', "name" : 'Map', "description" : '', "format" : 'png', "zmin" : 0, "zmax" : 22},
"HYB" : {"urlKey" : 'y', "name" : 'Hybrid', "description" : '', "format" : 'jpeg', "zmin" : 0, "zmax" : 22},
"TER" : {"urlKey" : 'p', "name" : 'Terrain', "description" : '', "format" : 'jpeg', "zmin" : 0, "zmax" : 22},
},
"urlTemplate": "http://mt0.google.com/vt/lyrs={LAY}&x={X}&y={Y}&z={Z}&hl=en&scale=4",
"referer": "https://www.google.com/maps"
},

"OSM" : {
"name" : 'OSM',
Expand Down