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 all commits
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
61 changes: 60 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 for use with 2x scaled map tiles',
"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 4X Scale',
"description" : 'Global grid in web mercator projection for use with 4x scaled map tiles',
"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 @@ -147,12 +173,45 @@
"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}
"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}",
"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}&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}&scale=4",
"referer": "https://www.google.com/maps"
},

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