Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rename plugin to "panodata-map-panel" #324

Closed
wants to merge 203 commits into from

Conversation

amotl
Copy link

@amotl amotl commented Jul 20, 2021

Hi there,

this patch renames the plugin to panodata-map-panel in order to support grafana-toolbox#112.

With kind regards,
Andreas.

amotl and others added 30 commits April 20, 2019 00:19
location information from JSON endpoint, even for table data.
The lookup key is the value from the obtained "labelField".
- locationData: “table+json(p)”
- showZoomControl
- showAttribution
- legendContainerSelector
This is a simple implementation of a panel option being used to
navigate to a new URL on click.
…a#190

Add basic variable interpolation based on keys from `dataPoint`.
Saying that, all metric values have been added to the dataPoint
beforehand by prefixing them with `point_` to allow for setting
things like `clickthroughURL: /url/to/$point_station_id` if
there’s a field called `station_id` in the current datapoint.
into clickthrough links, thus interpolating dashboard **and** dataPoint 
variables now.
This enables the interpolation of dashboard variables into each 
of the panel control settings. An example would be to have a
variable called “countrycode” which gets populated by a 
database query defined by an SQL statement like:

SELECT
  country_code AS __value,
  country_name AS __text
FROM
  stations
ORDER BY
  country_code

Then, assigning a value like that to the JSON endpoint URL panel
control setting, the machinery would interpolate the selected
value assigned to the $countrycode variable appropriately:

  jsonUrl=/api/json/stations.json?country=$countrycode
interpolation dictionary, prefixed by `request_`.

This enables to use request variables in all panel control options. 
So, when invoking the dashboard with an url query parameter like 
`map_center_latitude=42.42`, you would be able to interpolate it to 
a panel control options by i.e. assigning 
`mapCenterLatitude: $request_map_center_latitude`.
to open clickthrough target in designated window.
Both options provide a more convenient way to determine the dimensions 
of the map section/frame. Both features are using Leaflet’s `getBounds()`
method. `mapFitData` will choose an optimal center and zoom level for
covering the displayed data while `mapZoomByRadius` will use the
bounding box of a respective circle with the designated radius
around the chosen center.
amotl and others added 26 commits November 1, 2020 19:50
Helped find/remove extra close div
This allows the format/mapping to be wider and avoid truncation.
Add image overlay feature, with tests and documentation.
This allows us to inspect the `__field_` info and display it if we have data
beyond what's used in creating the circle size/color.

This is elasticsearch-centric for the moment. We can add support for
other data sources once we have them available.
Apparently, this service component will have to be addressed differently
on Grafana 8. By now, this update will just ignore / skip anything
related to that, so we only lack a minor feature about disabling
any keyboard navigation.
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@amotl
Copy link
Author

amotl commented Jul 20, 2021

This PR has been completely misguided, the correct one is grafana-toolbox#113. Apologies!

@amotl amotl closed this Jul 20, 2021
@amotl amotl deleted the amo/rename branch July 20, 2021 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet