Commit c5bd8873 authored by Jonas Heinrich's avatar Jonas Heinrich

fix mobile css logo

parent 4045f66b
......@@ -9,6 +9,7 @@
Et est veniam temporibus quia ipsa repudiandae autem quo. Sed harum assumenda accusantium mollitia.
</p>
<p>LINK ZUM PRESSEMATERIAL</p>
<p>LINK ZUM SOURCECODE</p>
</div>
<section class="grid">
......
......@@ -208,11 +208,6 @@ h3 {
;
}
img.logo{
width: 250px;
cursor: pointer;
}
content {
overflow-y: inherit;
}
......
......@@ -35,7 +35,6 @@ function camera_fly_to_object(url) {
episode_nr = episode_nr[1];
$.getJSON( "/geojson/camera.json", function( data ) {
var camera_data = data[episode_nr];
console.log(camera_data["center"]);
map.flyTo({
center: camera_data["center"],
zoom: camera_data["zoom"],
......
......@@ -19,25 +19,6 @@ map.addControl(new mapboxgl.NavigationControl());
map.on('load', function() {
if (window.location.pathname === "/" ||
window.location.pathname === "/about" ||
window.location.pathname === "/overview") {
map.flyTo({
center: [8.4045457, 49.014564],
zoom: 19.13,
pitch: 60,
bearing: 64.01,
speed: 0.5,
easing: function (t) {
return t;
}
});
}
map.on('moveend', function(e){
map.setMaxBounds(bounds);
});
map.addLayer({
'id': '3d-buildings',
'source': 'composite',
......@@ -76,17 +57,6 @@ map.on('load', function() {
"filter": ["==", "$type", "Point"],
});
// Insert the layer beneath any symbol layer.
var layers = map.getStyle().layers;
var labelLayerId;
for (var i = 0; i < layers.length; i++) {
if (layers[i].type === 'symbol' && layers[i].layout['text-field']) {
labelLayerId = layers[i].id;
break;
}
}
map.addLayer({
'id': 'museum-building',
'type': 'fill-extrusion',
......@@ -98,6 +68,36 @@ map.on('load', function() {
'fill-extrusion-opacity': 0.5
}
});
if (window.location.pathname === "/" ||
window.location.pathname === "/about" ||
window.location.pathname === "/overview") {
map.flyTo({
center: [8.4045457, 49.014564],
zoom: 19.13,
pitch: 60,
bearing: 64.01,
speed: 0.5,
easing: function (t) {
return t;
}
});
}
map.on('moveend', function(e){
map.setMaxBounds(bounds);
});
// Insert the layer beneath any symbol layer.
var layers = map.getStyle().layers;
var labelLayerId;
for (var i = 0; i < layers.length; i++) {
if (layers[i].type === 'symbol' && layers[i].layout['text-field']) {
labelLayerId = layers[i].id;
break;
}
}
var popup = new mapboxgl.Popup({
closeButton: false,
......
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