grafana/public/app/plugins/panel/geomap
Drew Slobodnjak 6e85dfa25a
Geomap: Add dynamic initial view options (#54419)
* Geomap: Add dynamic initial view options

* Add control options for dynamic initial view

* Add handling for last only scope

* Remove stale todos

* Only reinitialize map view during data if fit

* Add options for data fit

In map init, remove dependency on layers input.

Add a boolean to map view config to handle all layers, with default
set to true. Also, add layer string to handle currently selected layer.

Change some verbage.

In map view editor, add controls for data extent options. Only display
layer selection when all layers is not selected.

Update layer extent function to handle all options permutations. When
all layers is selected, return all data for extent calculation. When
last only is selected, only return last data point in matching layer for
extent calculation. Otherwise, return all data points in matching layer
for extent calculation.

* Change padding tooltip and hide for last only

* Simplify getLayersExtent call

* Add enums for data scope options

* Update GeomapPanel for refactor merge

* Move view init functions back into geomap class

Re-apply data change handling and extent calculation handling.

* Update padding tooltip verbage

* Ensure geomap panel options layers are initialized

* Clean up GeomapPanel file (betterer)

* refactors / clean up

* more cleanup

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2022-09-21 13:11:44 -07:00
..
components Geomap: Map control options e2e (#54809) 2022-09-09 15:56:35 -04:00
editor Geomap: Add dynamic initial view options (#54419) 2022-09-21 13:11:44 -07:00
img Geomap: add initial openlayers alpha panel (#36188) 2021-07-09 17:53:07 +02:00
layers Geomap: Support ability to color markers based on label value (#47476) 2022-07-26 10:26:29 -05:00
style Geomap: Cleanup GeomapPanel component (#54538) 2022-09-06 21:22:34 -04:00
utils Geomap: Add dynamic initial view options (#54419) 2022-09-21 13:11:44 -07:00
event.ts Chore: ESlint import order (#44959) 2022-04-22 14:33:13 +01:00
GeomapOverlay.tsx Geomap: Add measuring tools (#51608) 2022-08-03 16:19:30 -07:00
GeomapPanel.tsx Geomap: Add dynamic initial view options (#54419) 2022-09-21 13:11:44 -07:00
GeomapTooltip.tsx Geomap: Fix tooltip display (#54245) 2022-08-29 09:29:54 -05:00
globalStyles.ts Geomap: Add measuring tools (#51608) 2022-08-03 16:19:30 -07:00
migrations.test.ts Geomap: Support showing tooltip content on click (not just hover) (#50985) 2022-06-16 22:08:42 +02:00
migrations.ts Geomap: Support showing tooltip content on click (not just hover) (#50985) 2022-06-16 22:08:42 +02:00
module.tsx Geomap: Cleanup GeomapPanel component (#54538) 2022-09-06 21:22:34 -04:00
plugin.json Geomap: Update language to match documentation and remove beta (#53703) 2022-08-12 21:33:30 -04:00
README.md Plugins: Add Hide OAuth Forward config option (#36306) 2021-08-20 15:53:54 +02:00
types.ts Geomap: Add dynamic initial view options (#54419) 2022-09-21 13:11:44 -07:00
view.ts Geomap: Add dynamic initial view options (#54419) 2022-09-21 13:11:44 -07:00

Geomap Panel - Native Plugin

The Geomap is included with Grafana.