Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
ubezi
web-ausstellung-virtuell.de
Commits
d589f223
Commit
d589f223
authored
Jan 21, 2018
by
Jonas Heinrich
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added custom geojson file for museum building and exhibit objects
parent
842d780d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
98 additions
and
2 deletions
+98
-2
geojson/exhibits.geojson
geojson/exhibits.geojson
+0
-0
geojson/museum.geojson
geojson/museum.geojson
+97
-0
js/map.js
js/map.js
+1
-2
No files found.
exhibits.json
→
geojson/
exhibits.
geo
json
View file @
d589f223
File moved
geojson/museum.geojson
0 → 100644
View file @
d589f223
{
"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
js/map.js
View file @
d589f223
...
...
@@ -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.
geo
json
"
},
"
layout
"
:
{
"
icon-image
"
:
"
{icon}-15
"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment