-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdiffStyle.js
27 lines (24 loc) · 1.17 KB
/
diffStyle.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
var geeMapStyle = [
// {featureType: 'all', stylers: [{invert_lightness: true}]},
{featureType: 'road', elementType: 'all', stylers: [{visibility: 'off'}]},
{featureType: 'poi', elementType: 'all', stylers: [{visibility: 'off'}]},
{featureType: 'landscape', elementType: 'all', stylers: [{color: '#FFFFE0', visibility: 'off'}]},
{elementType: 'labels', stylers: [{visibility: 'off'}]},
{featureType: 'water', elementType: 'labels.text', stylers: [{visibility: 'off'}]},
// steel blue
{featureType: 'water', elementType: 'geometry.fill', stylers: [{color: '#6495ED' /*'#6495ED'*/}]},
{featureType: 'administrative', elementType: 'all', stylers: [{visibility: 'off'}]},
{featureType: 'administrative.country', elementType: 'geometry.stroke', stylers: [{visibility: 'on'}]}
];
function initMap() {
Map.setOptions('Irrigation', {'Irrigation': geeMapStyle});
Map.drawingTools().setShown(false);
Map.setCenter(0, 30, 3); // lon, lat, scale
}
exports.initMap = initMap;
function initOneMap(map) {
map.setOptions('Irrigation', {'Irrigation': geeMapStyle});
map.drawingTools().setShown(false);
map.setCenter(0, 30, 3); // lon, lat, scale
}
exports.initOneMap = initOneMap;