Commit d624b929 authored by Jonas Heinrich's avatar Jonas Heinrich

centered map view to schlossgarten karlsruhe, 3d pitched view and set boundary

parent af4b5dbc
......@@ -68,10 +68,19 @@
</div>
<script>
var bounds = [
[8.40001, 49.01194],
[8.40855, 49.01585]
];
mapboxgl.accessToken = 'pk.eyJ1Ijoib25ueSIsImEiOiJjajhvdnc1eTgwOTM3MnFudG81MXlpZGJrIn0.lDC0PwJDf704okmeI6w61g';
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/light-v9'
style: 'mapbox://styles/mapbox/light-v9',
center: [8.4045, 49.0144],
zoom: 17,
maxBounds: bounds,
pitch: 40,
bearing: 20
});
</script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
......
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