Skip to content

Instantly share code, notes, and snippets.

@danvk
Created January 22, 2019 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danvk/fb118b6e0d1475cbe2712af2c750cb3d to your computer and use it in GitHub Desktop.
Save danvk/fb118b6e0d1475cbe2712af2c750cb3d to your computer and use it in GitHub Desktop.
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