diff --git a/src/resources/template/app/map.js b/src/resources/template/app/map.js index e2e1da6..e8adfb7 100644 --- a/src/resources/template/app/map.js +++ b/src/resources/template/app/map.js @@ -17,10 +17,12 @@ WurmMapGen.map = { // Set up the map var map = WurmMapGen.map.map = L.map('map', { maxBounds: [xy(0,0), xy(config.actualMapSize,config.actualMapSize)], + maxBoundsViscosity: 1.0, maxZoom: config.mapMaxZoom, minZoom: config.mapMinZoom, crs: L.CRS.Simple, - zoomControl: false + zoomControl: false, + attributionControl: false }); new L.Control.Zoom({position: 'bottomright'}).addTo(map); @@ -41,7 +43,6 @@ WurmMapGen.map = { maxBounds: mapBounds, maxBoundsViscosity: 1.0, inertia: false, - attribution: 'Rendered with WurmMapGen', noWrap: true, tms: false }).addTo(map); diff --git a/src/resources/template/css/style.css b/src/resources/template/css/style.css index 65b33cf..0b64a6d 100644 --- a/src/resources/template/css/style.css +++ b/src/resources/template/css/style.css @@ -25,6 +25,9 @@ h1 { font-size:14px; font-weight:700; } #playercount { font-size:12px; color:#888; } label { display:block; padding:10px 0; cursor:pointer; } +.attribution { font-size:11px; color:#888; } +.attribution p { padding:2px 0; } + /* Map labels */ .icon-textlabel { width:0px; height:1px; border:5px solid transparent; border-top-color:rgba(0,0,0,0.6); white-space:nowrap; text-align:center; font-size:10px; } @@ -33,7 +36,7 @@ label { display:block; padding:10px 0; cursor:pointer; } background:rgba(0,0,0,0.6); color:white; border-radius:3px; } /* Basic GUI elements */ -#sidebar { height:100vh; width:240px; left:-240px; background:white; } +#sidebar { height:100vh; width:240px; left:-240px; background:white; overflow-y:auto; } #sidebar-toggle { left:0; top:10px; width:40px; height:44px; line-height:43px; background:white; border-radius:0 3px 3px 0; box-shadow:0 0 5px rgba(0,0,0,0.1); font-size:20px; text-align:center; cursor:pointer; } diff --git a/src/resources/template/index.html b/src/resources/template/index.html index c07e92b..d8c4012 100644 --- a/src/resources/template/index.html +++ b/src/resources/template/index.html @@ -68,6 +68,17 @@

{{serverName}}

{{/showStructures}} +
+

+ WurmMapGen + powered by + Leaflet +

+ +

Developed and maintained by woubuc

+

Based on code by Garrett92

+
+