Created
January 22, 2019 20:18
-
-
Save danvk/474270b87bce00d4a251d644c7d5fc59 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
const INIT_VIEW: Partial<Props> = { | |
center: [-73.991284, 40.741263], | |
zoom: [14.5], | |
pitch: [45], | |
bearing: [-17.6], | |
}; | |
export function render(): JSX.Element { | |
return ( | |
<Map | |
style="mapbox://styles/mapbox/streets-v9" | |
{...INIT_VIEW} // ok | |
> | |
{ /* ... */ } | |
</Map> | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment