Instantly share code, notes, and snippets.

Embed
What would you like to do?

3D Indoor Floor Map - Mapbox GL JS Example

  • This gist contains the geoJSON data for 3D Indoor Map example on the Mapbox GL JS docs
  • Each GeoJSON feature has a color, height, and base_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.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@donBigote

This comment has been minimized.

Show comment
Hide comment
@donBigote

donBigote Oct 29, 2016

Did you create this geojson with the Dataset Editor or did you use another source and tool to create the geojson?

donBigote commented Oct 29, 2016

Did you create this geojson with the Dataset Editor or did you use another source and tool to create the geojson?

@ryanbaumann

This comment has been minimized.

Show comment
Hide comment
@ryanbaumann

ryanbaumann Jan 15, 2017

@donBigote yes, I used the Mapbox Dataset Editor to create these geojson polygons.

Owner

ryanbaumann commented Jan 15, 2017

@donBigote yes, I used the Mapbox Dataset Editor to create these geojson polygons.

@annette74

This comment has been minimized.

Show comment
Hide comment
@annette74

annette74 Sep 10, 2018

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.

annette74 commented Sep 10, 2018

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment