74 Commits

Author SHA1 Message Date
e8ca3c0409 Chore: More typescript improvements 💪 (#68699)
* fix some anys

* some canvas/geomap improvements

* some more panel type fixes

* just omit the type in TagOption
2023-05-22 11:53:58 +01:00
854d497f94 Schema: Fix dimension schemas (#67935) 2023-05-05 12:16:31 -07:00
b24ba7b7ae FieldValues: Use plain arrays instead of Vector (part 3 of 2) (#66612)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-04-20 17:59:18 +03:00
09f03e92bf FieldValues: Use simple array in panel visualizations (#66706)
Co-authored-by: Leon Sorokin <leeoniya@gmail.com>
2023-04-17 14:46:29 -07:00
18e3e0ca8d FieldMatchers: Add match by value (reducer) (#64477)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2023-03-10 17:17:29 -06:00
1aadafe7d8 Geomap: Fix route layer zoom behavior (#63409)
* Geomap: Fix Zoom Bug

* Add handling for case where no segments created

* Simplify segment checks and pull logic into utils

* Rename pixel variables

* Roll back change to raw data response json
2023-03-03 16:06:14 -08:00
3949706182 Geomap: Release night / day layer (#63435) 2023-02-22 07:39:39 +02:00
2240484935 Geomap: Fix default opacity for layers (#63426) 2023-02-21 20:55:07 +02:00
3006a457f2 Geomap panel: Generate types (#61636) 2023-01-23 15:12:56 -08:00
5c7f77e402 Geomap: Add color gradients to route layer (#59062)
* Geomap: Add color gradients to route layer

* Add support for all color schemes

* Address PR feedback: remove ! from verified object

* Add arrow support and simplify color functions

* Simplify and clean-up code

* Remove line width slider and drive width by size

* Drive arrow size based on size

* Allow arrows for fixed color

* Add gdev dashboard

* Use square line caps only when arrows are active

* Apply size to width for fixed color and size

* Handle arrows when size and color are fixed

* Add tags to gdev dashboard

* Fix null error in backend test for gdev dashboard

Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2022-12-15 09:54:08 -08:00
94d9baa9ff Geomap: Add photo layer (#57307)
* Geomap: Add photo layer

* Remove unrelated changes

* Add todos for follow up

* Geomap: simplify photos layer (#57320)

* photos layer

* Remove unused import

Co-authored-by: drew08t <drew08@gmail.com>

* Add field selector for image source

* Add radius slider

* Fix rendering issue

* Only update vector layer after image load

* Add border color selection

* Update question mark source

* Add gdev dashboard for photo layer

* Add panel title to gdev dashboard

* Add photo validation

* Update geomap gdev dashboard to remove null value for threshold

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
Co-authored-by: nmarrs <nathanielmarrs@gmail.com>
2022-11-02 16:50:59 -07:00
e3c2859e83 Geomap: Upgrade to openlayers 7.x (#57317) 2022-10-19 17:03:44 -07:00
c1d6df4eb7 Fix issue 55626 (#55636)
Reset the mapping table for Dynamic Geojson
2022-10-06 08:30:03 -07:00
817837a532 Geomap: Support ability to color markers based on label value (#47476)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-07-26 10:26:29 -05:00
238d761450 Geomap: refactor and cleanup structures (#52760)
Co-authored-by: Adela Almasan <adela.almasan@grafana.com>
2022-07-25 20:12:20 -04:00
21591be469 Geomap: Support shared crosshair for route layer (#51495) 2022-07-06 10:08:55 +03:00
0e1f0dd8f5 Geomap: Route/path visualization (#43554)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-06-27 09:45:09 -07:00
c2aee2b6da Geomap: Add alpha day/night layer (#50201)
Co-authored-by: drew08t <drew08@gmail.com>
2022-06-20 19:35:03 +02:00
58e7769158 OptionsUI: Move internal options editors out of @grafana/ui (#50739) 2022-06-14 08:05:11 -07:00
07aa2bbbba GeomapPanel: Add base types to data layer options (#50053)
* GeomapPanel: Add base types to data layer options

Removed isBaseMap check from data layer filter, which used to remove
base layer types from data layer options. For layer editor, slider to
control opacity is added.

* GeomapPanel: Reorder data layer options

For data layer selection, present user with data layer types first,
before base map layer types. Refactored to consolidate layer options
into a single exported function in registry with a base map boolean.

* GeomapPanel: Add descriptions to base map types

* GeomapPanel: add hideOpacity and apply to markers

* GeomapPanel: update descriptions for map types

Closes #47812
2022-06-13 14:07:20 -07:00
1284c596fe Geomap: Add ability to select a data query filter for each layer (#49966)
* Fix random typo I found

* add 'useDataFrame' boolean to each layer type to determine whether the layer queues off of query data

* Add data frame picker to options layout depending on layer type

* change layer update logic to render features from a specific data frame. Lift data frame selection up a level in order to add some more complex error handling.

* add a todo to the MapLayerRegistryItem interface

* update optional arg in function signature for consistency

* move dataframe filtering to paneldata, revert layers to prior state

* commit refactor, need to clean up still

* pull copy-pasted code into its own function

* clean up comments

* Update layer.ts

* remove unused types

* fix spacing

* improve dropdown

* need to add dependency to this callback function, otherwise it will always use the context of the last layer

* add data query recovery logic to handle query renames

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-06-09 11:54:57 -04:00
14c2f4f3da Geomap: Legend threshold style update (#49020) 2022-05-16 19:54:10 -07:00
0b5ffcfcf0 Geomap: Legend style update (#48641)
Legend style update
2022-05-03 15:03:41 -05:00
3c6e0e8ef8 Chore: ESlint import order (#44959)
* Add and configure eslint-plugin-import

* Fix the lint:ts npm command

* Autofix + prettier all the files

* Manually fix remaining files

* Move jquery code in jest-setup to external file to safely reorder imports

* Resolve issue caused by circular dependencies within Prometheus

* Update .betterer.results

* Fix missing // @ts-ignore

* ignore iconBundle.ts

* Fix missing // @ts-ignore
2022-04-22 14:33:13 +01:00
858a1bd24e Geomap: Add color scale in legend (#47803)
Added color scale in geomap legend
2022-04-18 09:19:20 -05:00
118b87ee8f Geomap: Display legend (#46886)
* Display legend for fixed colors and field; Hide tooltip on base layer;
2022-03-30 09:41:13 -05:00
9b5a42845d Chore: Remove prettier-plugin from ESLint (#45910)
* chore(eslint): remove prettier-plugin

* chore(eslint): test changes by using grafana/eslint 3.0.0-alpha

* chore(prettier): add js,ts,tsx when checking / writing

* chore(prettier): dont check js files

* chore(linting): align prettier and eslint ignore files

* style: run prettier:write on FE codebase

* chore(eslint): use grafana/eslint-config@3.0.0
2022-03-04 10:49:50 +01:00
52568c7af1 Update dependency ol to v6.13.0 (#45949)
* Update dependency ol to v6.13.0

* fix types

Co-authored-by: Renovate Bot <bot@renovateapp.com>
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2022-03-03 09:45:33 +01:00
ac90c8d68d Geomap: initialization fixes (#44745) 2022-02-01 22:08:07 -08:00
d8df08ce5d Geomap: clear features when no-data is returned (#44748) 2022-02-01 22:02:43 -08:00
21796c61ba Geomap: fix casing for panel options (#44688)
* fix casing for panel options

* remove hardcoded label values
2022-02-01 15:09:19 -08:00
fd8baf5f7d Gazetteer: reactor so the source is a DataFrame (#43783) 2022-01-13 17:15:31 -08:00
4c95abb269 Geomap: Update markers layer styles (#43446)
* update markerslayer styles

* use static style when possible

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2021-12-22 13:50:02 -08:00
c53e384cb5 Geomap: Geojson layer initial dynamic styling (#43308)
* support dynamic values in geojson

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2021-12-22 13:06:33 -08:00
fde26b0bd9 Geomap: Add tooltip check to display tooltip by layer (#43131)
* Add tooltip check to display tooltip by layer
2021-12-15 13:51:39 -08:00
d0c9564e1a Bug: Add checks to Geomap StyleEditor (#42266) 2021-11-25 11:57:21 +01:00
92e1883845 Geomap: Add rotation option for markers layer (#41992)
* add rotation option for markers layer

* add ScalerDimensionEditor
2021-11-23 08:23:43 -08:00
541d1543db Geomap: Improve geojson style editor (#41926) 2021-11-18 17:39:13 -08:00
7a3b52783c Geomap: Add Property and values to GeoJSON style rule (#41845)
Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2021-11-18 09:29:40 +01:00
837e268395 Geomap: use same style config for makers and geojson (#41846) 2021-11-17 22:13:27 -08:00
bf85ae44a2 Geomap: simplify styles (#41842) 2021-11-18 01:05:10 +01:00
40d3072df2 Geomap: Refactor marker style options into reusable component (#41716) 2021-11-17 13:59:41 -08:00
306f0785e1 Geomap: Combine Text layer with Markers Layer and add text options (#41768)
* add text to markers

* add textConfig

* remove separate text layer

* update test

* Update public/app/plugins/panel/geomap/style/markers.ts

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>

* Update public/app/plugins/panel/geomap/style/markers.ts

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>

* update textConfig naming

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2021-11-16 13:22:57 -08:00
466eaeb4f0 Geomap: use name as UID (#41668) 2021-11-15 11:18:08 -08:00
862054918d Geomap: styleConfig cleanup and symbol caching (#41622)
Co-authored-by: nikki-kiga <42276368+nikki-kiga@users.noreply.github.com>
2021-11-12 11:24:35 -08:00
4281c5afc1 Geomap: Add opacity and prepare svg (#41170) 2021-11-11 21:27:57 +01:00
45e1765733 Geomap: support multiple layers (#40906) 2021-10-27 14:49:11 -07:00
5449bd9ae7 Geomap: Add text labels layer (#40778)
* Geomap: add initial text labels layer

* add fontsize to text labels layer

* refactor feature styles in marker and text layers

* hide template and pick default field

Co-authored-by: Ryan McKinley <ryantxu@gmail.com>
2021-10-27 08:46:32 -07:00
dfeb69dc17 Geomap: Add style rules UI for geoJSON map layer (#40735)
* Geomap: Show multiple layers in ui

Co-authored-by: Ryan McKinley <ryantxu@users.noreply.github.com>

* Geomap: Add geojson style rules ui

* add style rule editor component

* update and change to two row styles

Co-authored-by: Ryan McKinley <ryantxu@users.noreply.github.com>
2021-10-21 15:56:41 -07:00
43878ff05f Geomap: Avoid exceptions when missing data and values (heatmap and zoom settings) 2021-10-19 19:31:33 -07:00