- This gist contains the geoJSON data for 3D Indoor Map example on the Mapbox GL JS docs
- Each GeoJSON feature has a
color
,height
, andbase_height
property. These property values are used with the identity function type to style the GL JS 3D indoor map example. - Want to create your own 3D indoor map data? Create features with the Mapbox Dataset Editor.
-
-
Save ryanbaumann/a7d970386ce59d11c16278b90dde094d to your computer and use it in GitHub Desktop.
@donbigote yes, I used the Mapbox Dataset Editor to create these geojson polygons.
Hello I have downloaded the 3D Indoor Mapbox html file on my computer. :
I would like to replace the geojson location by a local geojson location (on my computer to run it "locally")
'data': 'https://www.mapbox.com/mapbox-gl-js/assets/indoor-3d-map.geojson'
I have put a local path 'data': 'file:///C:/GEOJSON/indoor-3d-map.geojson' but it doesn't work.
(When it will be ok I have to adapt the html file to my local project)
Thanks for your help.
Dataset Editor link is broken, returns 404.
Just updating, more info here https://docs.mapbox.com/studio-manual/reference/datasets/ and Dataset Editor
located here https://studio.mapbox.com/datasets/
@donbigote yes, I used the Mapbox Dataset Editor to create these geojson polygons.
Hello ryan, can we as well use a converted 3D building BIM(.IFC) data in geojson and load it into mapbox GL ?
Thanks !
Hello ryan, can we as well use a converted 3D building BIM(.IFC) data in geojson and load it into mapbox GL ?
Thanks !
Absolutely. Just ensure that your geojson is is in the WGS84 (long/lat) coordinate system.
Hi, im looking to add some 3D shapes using a method similar to this to a map. Is there a application that is good for designing these buildings? Im finding it hard to get a good shape using the dataset editor. Cheers
Hi, I've been playing around with this dataset editor, I don't see any option to set the altitude or elevation
I see in the example there are some values specifying hight
"height": 40,
"base_height": 30
did you add them manually ?
Did you create this geojson with the Dataset Editor or did you use another source and tool to create the geojson?