Created
January 22, 2019 20:16
-
-
Save danvk/fb118b6e0d1475cbe2712af2c750cb3d to your computer and use it in GitHub Desktop.
This file contains 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
import * as React from 'react'; | |
import ReactMapboxGl from 'react-mapbox-gl'; | |
const Map = ReactMapboxGl({ | |
accessToken: '....', | |
}); | |
export function render(): JSX.Element { | |
return ( | |
<Map | |
style="mapbox://styles/mapbox/streets-v9" | |
center={[-73.991284, 40.741263]} | |
zoom={[14.5]} | |
pitch={[45]} | |
bearing={[-17.6]} | |
> | |
{ /* ... */ } | |
</Map> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment