Skip to content

Instantly share code, notes, and snippets.

@mamezito-zz
Created April 25, 2018 10:55
Show Gist options
  • Save mamezito-zz/0a34c80655ea2793cd1bc10659f91f23 to your computer and use it in GitHub Desktop.
Save mamezito-zz/0a34c80655ea2793cd1bc10659f91f23 to your computer and use it in GitHub Desktop.
3D map in Framer Mapbox
# use build3D method on mapobject load, mind that bearing, hash and pitch should be set at mapbox initialization
myMap = new MapboxJS
accessToken: mapboxToken
style: styles.light
zoom: 12
center: originPoint
pitch: 45,
bearing: -17.6,
hash: true
myMap.mapbox.on 'load', ->
myMap.build3d()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment