mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Geomap: Add Africa, Australia, Oceania, South Asia, and East Asia as initial view options (#55142)
* add remaining continents + Asian regions * capitalize South-East Asia * Limit max zoom to 4 for view regions Co-authored-by: drew08t <drew08@gmail.com>
This commit is contained in:
parent
82708df287
commit
6f0c4c7f82
@ -24,6 +24,10 @@ export const centerPointRegistry = new Registry<MapCenterItems>(() => [
|
||||
lat: 0,
|
||||
lon: 0,
|
||||
},
|
||||
{
|
||||
id: MapCenterID.Coordinates as string,
|
||||
name: 'Coordinates',
|
||||
},
|
||||
{
|
||||
id: 'north-america',
|
||||
name: 'North America',
|
||||
@ -31,6 +35,13 @@ export const centerPointRegistry = new Registry<MapCenterItems>(() => [
|
||||
lon: -100,
|
||||
zoom: 4,
|
||||
},
|
||||
{
|
||||
id: 'south-america',
|
||||
name: 'South America',
|
||||
lat: -20,
|
||||
lon: -60,
|
||||
zoom: 3,
|
||||
},
|
||||
{
|
||||
id: 'europe',
|
||||
name: 'Europe',
|
||||
@ -38,6 +49,13 @@ export const centerPointRegistry = new Registry<MapCenterItems>(() => [
|
||||
lon: 14,
|
||||
zoom: 4,
|
||||
},
|
||||
{
|
||||
id: 'africa',
|
||||
name: 'Africa',
|
||||
lat: 0,
|
||||
lon: 30,
|
||||
zoom: 3,
|
||||
},
|
||||
{
|
||||
id: 'west-asia',
|
||||
name: 'West Asia',
|
||||
@ -45,15 +63,39 @@ export const centerPointRegistry = new Registry<MapCenterItems>(() => [
|
||||
lon: 53,
|
||||
zoom: 4,
|
||||
},
|
||||
{
|
||||
id: 's-asia',
|
||||
name: 'South Asia',
|
||||
lat: 19.5,
|
||||
lon: 80,
|
||||
zoom: 4,
|
||||
},
|
||||
{
|
||||
id: 'se-asia',
|
||||
name: 'South-east Asia',
|
||||
name: 'South-East Asia',
|
||||
lat: 10,
|
||||
lon: 106,
|
||||
zoom: 4,
|
||||
},
|
||||
{
|
||||
id: MapCenterID.Coordinates as string,
|
||||
name: 'Coordinates',
|
||||
id: 'e-asia',
|
||||
name: 'East Asia',
|
||||
lat: 33,
|
||||
lon: 120,
|
||||
zoom: 4,
|
||||
},
|
||||
{
|
||||
id: 'australia',
|
||||
name: 'Australia',
|
||||
lat: -25,
|
||||
lon: 135,
|
||||
zoom: 4,
|
||||
},
|
||||
{
|
||||
id: 'oceania',
|
||||
name: 'Oceania',
|
||||
lat: -10,
|
||||
lon: -140,
|
||||
zoom: 3,
|
||||
},
|
||||
]);
|
||||
|
Loading…
Reference in New Issue
Block a user