From 6f0c4c7f823efd64083a3eb69ff647611a2ab1f8 Mon Sep 17 00:00:00 2001 From: matt abrams <37156449+zuchka@users.noreply.github.com> Date: Wed, 14 Sep 2022 08:38:35 -1000 Subject: [PATCH] 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 --- public/app/plugins/panel/geomap/view.ts | 48 +++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 3 deletions(-) diff --git a/public/app/plugins/panel/geomap/view.ts b/public/app/plugins/panel/geomap/view.ts index e73a7efbeec..06dc175af3f 100644 --- a/public/app/plugins/panel/geomap/view.ts +++ b/public/app/plugins/panel/geomap/view.ts @@ -24,6 +24,10 @@ export const centerPointRegistry = new Registry(() => [ 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(() => [ 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(() => [ 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(() => [ 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, }, ]);