Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
web-ausstellung-virtuell.de
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
14
Issues
14
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
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
Show 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
...
@@ -9,7 +9,6 @@ mapboxgl.accessToken = 'pk.eyJ1Ijoib25ueSIsImEiOiJjajhvdnc1eTgwOTM3MnFudG81MXlpZ
var
map
=
new
mapboxgl
.
Map
({
var
map
=
new
mapboxgl
.
Map
({
container
:
'
map
'
,
container
:
'
map
'
,
style
:
'
mapbox://styles/mapbox/light-v9
'
,
style
:
'
mapbox://styles/mapbox/light-v9
'
,
//style: 'mapbox://styles/onny/cjbgb2xyfbqwt2sp6qm2vu3yi',
center
:
[
8.404
,
49.0150
],
center
:
[
8.404
,
49.0150
],
zoom
:
14
,
zoom
:
14
,
pitch
:
0
,
pitch
:
0
,
...
@@ -51,7 +50,7 @@ map.on('load', function() {
...
@@ -51,7 +50,7 @@ map.on('load', function() {
"
type
"
:
"
symbol
"
,
"
type
"
:
"
symbol
"
,
"
source
"
:
{
"
source
"
:
{
"
type
"
:
"
geojson
"
,
"
type
"
:
"
geojson
"
,
"
data
"
:
"
exhibits.
json
"
"
data
"
:
"
geojson/exhibits.geo
json
"
},
},
"
layout
"
:
{
"
layout
"
:
{
"
icon-image
"
:
"
{icon}-15
"
,
"
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