added map boundaries based on municipality center
This commit is contained in:
@@ -48,7 +48,12 @@ map = L.map('map', {
|
|||||||
center: MUNICIPALITY.center,
|
center: MUNICIPALITY.center,
|
||||||
zoom: MUNICIPALITY.zoom,
|
zoom: MUNICIPALITY.zoom,
|
||||||
minZoom: 10,
|
minZoom: 10,
|
||||||
zoomControl: false, // Added manually for Position Control
|
maxBounds: [
|
||||||
|
[MUNICIPALITY.center[0] - 0.25, MUNICIPALITY.center[1] - 0.25],
|
||||||
|
[MUNICIPALITY.center[0] + 0.25, MUNICIPALITY.center[1] + 0.25]
|
||||||
|
],
|
||||||
|
maxBoundsViscosity: 0.8,
|
||||||
|
zoomControl: false,
|
||||||
attributionControl: true
|
attributionControl: true
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user