Commit d589f223 authored by Jonas Heinrich's avatar Jonas Heinrich

added custom geojson file for museum building and exhibit objects

parent 842d780d
{
"features": [
{
"type": "Feature",
"properties": {
"level": 1,
"name": "outer-walls",
"base_height": 0,
"height": 40,
"color": "grey"
},
"geometry": {
"coordinates": [
[
[
8.404532,
49.014445
],
[
8.404551,
49.014442
],
[
8.404491,
49.014314
],
[
8.404469,
49.014314
],
[
8.404532,
49.014445
]
]
],
"type": "Polygon"
},
"id": "916d2144d1d0494534b8e2cd0b640e00"
},
{
"type": "Feature",
"properties": {
"level": 1,
"name": "Museum Grundriss",
"height": 0,
"base_height": 0,
"color": "teal"
},
"geometry": {
"coordinates": [
[
[
8.404779,
49.014411
],
[
8.404734,
49.014281
],
[
8.404473,
49.014316
],
[
8.404532,
49.014445
],
[
8.404339,
49.014469
],
[
8.404404,
49.014615
],
[
8.405085,
49.014536
],
[
8.405015,
49.014381
],
[
8.404779,
49.014411
]
]
],
"type": "Polygon"
},
"id": "955a4fcb5a4fa09e8cfc2f23a82a88bb"
}
],
"type": "FeatureCollection"
}
\ No newline at end of file
......@@ -9,7 +9,6 @@ mapboxgl.accessToken = 'pk.eyJ1Ijoib25ueSIsImEiOiJjajhvdnc1eTgwOTM3MnFudG81MXlpZ
var map = new mapboxgl.Map({
container: 'map',
style: 'mapbox://styles/mapbox/light-v9',
//style: 'mapbox://styles/onny/cjbgb2xyfbqwt2sp6qm2vu3yi',
center: [8.404, 49.0150],
zoom: 14,
pitch: 0,
......@@ -51,7 +50,7 @@ map.on('load', function() {
"type": "symbol",
"source": {
"type": "geojson",
"data": "exhibits.json"
"data": "geojson/exhibits.geojson"
},
"layout": {
"icon-image": "{icon}-15",
......
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