Commit 02e651dd authored by Elias Englmeier's avatar Elias Englmeier
Browse files

better map bounds

parent 6156b9ea
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function(){ $(document).ready(function(){
//init the map //init the map
var map = L.map('map').setView([0.0, 0.0], 12); var map = L.map('map').setView([51.312066, 9.492901],12);
map.setMaxBounds(map.getBounds());
map.options.minZoom = 11; map.options.minZoom = 11;
var wmsUrl = 'https://geoportal.stadt-kassel.de/arcgis/services/Raster/Geoportal_WebMaps_WGS84/MapServer/WMSServer?'; var wmsUrl = 'https://geoportal.stadt-kassel.de/arcgis/services/Raster/Geoportal_WebMaps_WGS84/MapServer/WMSServer?';
L.tileLayer.wms(wmsUrl,{ L.tileLayer.wms(wmsUrl,{
......
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function(){ $(document).ready(function(){
//init the map //init the map
var map = L.map('map').setView([0.0, 0.0], 12); var map = L.map('map').setView([51.312066, 9.492901],12);
map.setMaxBounds(map.getBounds());
map.options.minZoom = 11; map.options.minZoom = 11;
var wmsUrl = 'https://geoportal.stadt-kassel.de/arcgis/services/Raster/Geoportal_WebMaps_WGS84/MapServer/WMSServer?'; var wmsUrl = 'https://geoportal.stadt-kassel.de/arcgis/services/Raster/Geoportal_WebMaps_WGS84/MapServer/WMSServer?';
L.tileLayer.wms(wmsUrl,{ L.tileLayer.wms(wmsUrl,{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment