[TASK] Add nodeZoom level
This commit is contained in:
parent
b72d0ad30b
commit
05dd4bbc32
@ -4,6 +4,7 @@
|
||||
#### Some features are maybe merged
|
||||
|
||||
- Updates selected node or list (incl. image stats cache-breaker) - not only overview tables
|
||||
- Zoom level for nodes (`nodeZoom`)
|
||||
- Formatted Code
|
||||
- Grunt inline for some css and js - less requests
|
||||
- Icon font with only needed icons
|
||||
@ -88,6 +89,11 @@ Setting this to `false` will hide contact information for nodes.
|
||||
Nodes being online for less than maxAge days are considered "new". Likewise,
|
||||
nodes being offline for more than than maxAge days are considered "lost".
|
||||
|
||||
## nodeZoom (integer)
|
||||
|
||||
Max level to be applied by clicking a node or open a node. With value `18` near by buildings and streets should be visible.
|
||||
Interesting if one of configured map provider has zoom-level under `18`.
|
||||
|
||||
## mapLayers (List)
|
||||
|
||||
A list of objects describing map layers. Each object has at least `name`
|
||||
|
@ -28,6 +28,7 @@
|
||||
"siteName": "Freifunk Regensburg",
|
||||
"showContact": false,
|
||||
"maxAge": 14,
|
||||
"nodeZoom": 18,
|
||||
"mapLayers": [
|
||||
{
|
||||
"name": "OpenStreetMap.HOT",
|
||||
|
@ -301,7 +301,7 @@ define(["map/clientlayer", "map/labelslayer",
|
||||
}
|
||||
|
||||
function setView(bounds) {
|
||||
map.fitBounds(bounds, {paddingTopLeft: [sidebar(), 0]});
|
||||
map.fitBounds(bounds, {paddingTopLeft: [sidebar(), 0], maxZoom: config.nodeZoom});
|
||||
}
|
||||
|
||||
function resetZoom() {
|
||||
|
Loading…
Reference in New Issue
Block a user