Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
civitas-digitalis
platform
Commits
02e651dd
Commit
02e651dd
authored
May 04, 2018
by
Elias Englmeier
Browse files
better map bounds
parent
6156b9ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/MapModule/bin/META-INF/resources/view.jsp
View file @
02e651dd
...
@@ -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
,{
...
...
modules/MapModule/src/main/resources/META-INF/resources/view.jsp
View file @
02e651dd
...
@@ -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
,{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment