Skip to content

Commit c02a44d

Browse files
committed
website
1 parent b9ce661 commit c02a44d

File tree

3 files changed

+21
-6
lines changed

3 files changed

+21
-6
lines changed

website/assets/map_howto.js

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,15 +40,22 @@ mapDiv.onclick = function () {
4040

4141
// initMap()
4242

43+
let movedTo2d = false
44+
4345
function selectStyle(event, style) {
4446
initMap()
4547
toggleButtonSelection(event.target)
4648

4749
const styleUrl = 'https://tiles.openfreemap.org/styles/' + style
4850
map.setStyle(styleUrl)
49-
map.setPitch(0)
50-
map.setBearing(0)
51-
map.setZoom(12.5)
51+
52+
if (!movedTo2d) {
53+
map.setCenter({ lng: 13.388, lat: 52.517 })
54+
map.setPitch(0)
55+
map.setBearing(0)
56+
map.setZoom(9.5)
57+
movedTo2d = true
58+
}
5259

5360
document.getElementById('style-url-code').innerText = styleUrl
5461
}

website/assets/style.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ hr {
321321

322322
@media (max-width: 550px) {
323323
body {
324-
padding: 0 20px 40px;
324+
padding: 0 0 40px;
325325
}
326326

327327
.static,
@@ -332,7 +332,15 @@ hr {
332332
h5,
333333
h6,
334334
.col-lbl,
335-
p {
335+
p,
336+
.button-container,
337+
#support-plans-slider {
336338
max-width: 100%;
339+
margin-left: 20px;
340+
margin-right: 20px;
341+
}
342+
343+
#map-container {
344+
height: 300px;
337345
}
338346
}

website/blocks/main.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ There is no tile server running; only Btrfs partition images with 300 million ha
6666

6767
There is no cloud, just dedicated servers. The HTTPS server is nginx on Ubuntu.
6868

69-
Special thanks go to [Michael Barry](https://github.com/msbarry) for developing [Planetiler](https://github.com/onthegomap/planetiler). It made it possible to generate the tiles in 5 hours instead of 5 weeks. The map schema is [OpenMapTiles](https://github.com/openmaptiles/openmaptiles).
69+
Special thanks go to [Michael Barry](https://github.com/msbarry) for developing [Planetiler](https://github.com/onthegomap/planetiler). It made it possible to generate the tiles in 5 hours instead of 5 weeks. The map schema is [OpenMapTiles](https://github.com/openmaptiles/openmaptiles).
7070

7171
The [styles](https://github.com/hyperknot/openfreemap-styles) are forked and heavily modified.
7272

0 commit comments

Comments
 (0)