Skip to content
This repository has been archived by the owner on Jan 25, 2024. It is now read-only.

Commit

Permalink
Build version 1.2.4
Browse files Browse the repository at this point in the history
  • Loading branch information
Drazair committed Jan 29, 2020
1 parent c7ca436 commit be44cbd
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 15 deletions.
41 changes: 30 additions & 11 deletions dist/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,39 @@
## Usage

### Queries
To use the plugin the data needs to be formatted as a table with either contains `location` in NGSIv2 format:
To use the plugin the data needs to be formatted as a table with either contains simple `lat` and `lon`, or as `location` in NGSIv2 format. Here is a example of how the data from the query should look like using `location`:
```javascript
{
...,
"location": {
"type": "geo:json",
"value": {
"coordinates": [55.96086,9.75394],
"type": "Point"
}
[
{
"columns": [
{
"text": "location"
}
],
"rows": [
[
{
"type": "geo:json",
"value": {
"type": "Point",
"coordinates": [56.171884, 10.189101]
}
}
],
[
{
"type": "geo:json",
"value": {
"type": "Point",
"coordinates": [56.18803, 10.16773]
}
}
]
],
"type": "table"
}
}
]
```
Or simply a `lat` and `lon`.

A example of a query for location against a CrateDB/PostgreSQL:
```sql
Expand Down
2 changes: 1 addition & 1 deletion dist/module.js

Large diffs are not rendered by default.

11 changes: 10 additions & 1 deletion dist/partials/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ <h5 class="section-heading">Map options</h5>
<label class="gf-form-label width-14">
Use min and max coords
<info-popover mode="right-normal" position="top center">
Adds $maxLat, $minLat, $maxLon and $minLon with map bounds as grafana variables.
Adds $maxLat, $minLat, $maxLon and $minLon with map bounds as grafana variables. This options disables the 'Re-center map' option.
</info-popover>
</label>
<gf-form-switch class="gf-form" title="minMaxCoords" checked="ctrl.panel.mapOptions.minMaxCoords" ng-click="ctrl.createMinMaxVariables()"></gf-form-switch>
Expand All @@ -167,5 +167,14 @@ <h5 class="section-heading">Map options</h5>
</label>
<gf-form-switch class="gf-form" title="updateOnMove" checked="ctrl.panel.mapOptions.updateOnMove"></gf-form-switch>
</div>
<div class="gf-form" ng-if="!ctrl.panel.mapOptions.minMaxCoords">
<label class="gf-form-label width-14">
Re-center map
<info-popover mode="right-normal" position="top center">
Automatically center and zoom the map to show all data points. This options doesn't work with 'Use min and max coords' enabled.
</info-popover>
</label>
<gf-form-switch class="gf-form" title="reCenter" checked="ctrl.panel.mapOptions.reCenter"></gf-form-switch>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions dist/plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
{"name": "Project site", "url": "https://github.com/alexandrainst/alexandra-trackmap-panel"},
{"name": "MIT License", "url": "https://github.com/alexandrainst/alexandra-trackmap-panel/blob/master/LICENSE"}
],
"version": "1.2.3",
"updated": "2019-12-19"
"version": "1.2.4",
"updated": "2020-01-29"
},

"dependencies": {
Expand Down

0 comments on commit be44cbd

Please sign in to comment.