Created
April 25, 2018 10:55
-
-
Save mamezito-zz/0a34c80655ea2793cd1bc10659f91f23 to your computer and use it in GitHub Desktop.
3D map in Framer Mapbox
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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