-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmap.js
34 lines (31 loc) · 1.32 KB
/
map.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
28
29
30
31
32
33
34
/**
* @fileoverview Funções relacionadas ao mapa.
*/
var style = require('users/irtharles/gpw-view-tool:style.js');
// Regiões de exemplo
exports.core_regions = {
'Cocalinho, Mato Grosso, Brazil': [-51.27693984464683, -14.072734440523552, 13],
'Osorno, Los Lagos, Chile': [-72.9630983253247, -40.61221002719209, 14],
'Las Guasduitas, Apure, Venezuela': [-68.9075311624308, 7.318736035405456, 13],
'Alto Alegre, Roraima, Brazil': [-61.33973562607987, 3.0356217005968626, 13],
'Vitória do Xingu, Pará, Brazil': [-52.30386472689355, -3.0251300859699426, 13],
'Quaraí, Rio Grande do Sul, Brazil': [-56.43055670552016, -30.305082428057972, 13],
'Zona La Patria, Paraguay': [-61.16688959983465, -20.80885387383086, 11],
'Sorriso, Mato Grosso, Brazil': [-55.96, -12.8, 14],
'Buenos Aires province, Argentina': [-59.8572, -36.7928, 14],
'PN das Emas, Goiás, Brazil': [-52.9254395476717, -18.17677670132077, 15],
'Jalapão, Tocantins, Brazil': [-46.6717, -10.0359, 14],
};
/**
* Cria e configura o mapa.
* @return {ui.Map} O mapa configurado.
*/
exports.createMap = function() {
var map = ui.Map();
map.setOptions('SHADES OF GREY', style.MAP_STYLES);
map.setCenter(5, 13, 2.4);
map.setControlVisibility({all: true});
map.style().set('cursor', 'crosshair');
map.style().set('height', '60vh');
return map;
};