alexandrainst / alexandra-trackmap-panel

Grafana map plugin to visualise coordinates as markers, hexbin, ant path, or heatmap.
MIT License
78 stars 26 forks source link

Dark theme #38

Closed DmitrySidorow closed 3 years ago

DmitrySidorow commented 3 years ago

Missing a dark theme (or satellite) like in the original world map plugin

Screenshot_3

tpachmann commented 3 years ago

Hi guys,

first of all thank you for the great plugin!

For my personal usecase, I wanted to use a dark/satellite style for the map - so I added a configuration option to set the URL for the map tiles that are loaded from the map.

This allows you to use the Mapbox Static Tile API for example - but also other, publicly available tile servers can be used this way:

map-tiles-config

I think this feature could also be of interest for other users of the plugin (e.g. this issue), so I wanted to create pull request for my feature branch. Sadly, I have no permission to push my branch - is there any chance you could help me with this (@Alkarex)?

Thanks in advance & best regards! Tim

Alkarex commented 3 years ago

@tpachmann Thanks for reaching out, that looks good. Permissions should not be a problem if using the normal procedure: first fork the project (top right button in GitHub - it will then appear in https://github.com/tpachmann?tab=repositories ), then push your feature branch to your own repository, then send us a pull request, which we will test and merge. If you already have your local branch but only our own git remote, you can easily add your git remote with something like:

git remote add tpachmann https://github.com/tpachmann/alexandra-trackmap-panel.git
git fetch --all
git push tpachmann your-feature # adapt as needed