Replace map initial center/zoom config with auto fitting

Closes #23
This commit is contained in:
Linus Groh
2020-03-01 20:28:15 +00:00
parent bb81daaea4
commit 3b18ab58ed
4 changed files with 13 additions and 32 deletions
-25
View File
@@ -29,9 +29,6 @@ window.owntracks.config = {};
- [`locale`](#locale)
- `map`
- [`attribution`](#mapattribution)
- `center`
- [`lat`](#mapcenterlat)
- [`lng`](#mapcenterlng)
- [`circle`](#mapcircle)
- [`circleMarker`](#mapcirclemarker)
- `controls`
@@ -59,7 +56,6 @@ window.owntracks.config = {};
- [`maxZoom`](#mapmaxzoom)
- [`polyline`](#mappolyline)
- [`url`](#mapurl)
- [`zoom`](#mapzoom)
- `onLocationChange`
- [`reloadHistory`](#onlocationchangereloadhistory)
- [`primaryColor`](#primarycolor)
@@ -154,20 +150,6 @@ Attribution for map tiles.
};
```
### `map.center.lat`
Initial map center latitude.
- Type: [`Number`]
- Default: `0`
### `map.center.lng`
Initial map center longitude.
- Type: [`Number`]
- Default: `0`
### `map.circle`
Location accuracy indicator configuation. `color` and `fillColor` default to
@@ -378,13 +360,6 @@ and [this Wikipedia article](https://en.wikipedia.org/wiki/Tiled_web_map).
};
```
### `map.zoom`
Initial map zoom level.
- Type: [`Number`]
- Default: `19`
### `onLocationChange.reloadHistory`
Whether to reload the location history (of selected date range) or not when a location