Created
February 17, 2019 02:09
-
-
Save EvanBacon/a57ea16c5687fdf0d7d875f9d9bd50e1 to your computer and use it in GitHub Desktop.
A custom map renderer to spice things up π
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 React from 'react'; | |
// import | |
import { MapView } from 'expo'; | |
export default BaseMap = ({ children, ...props }) => ( | |
<MapView | |
{...props} | |
> | |
<MapView.UrlTile | |
/** | |
* The url template of the tile server. The patterns {x} {y} {z} will be replaced at runtime | |
* For example, http://c.tile.openstreetmap.org/{z}/{x}/{y}.png | |
*/ | |
urlTemplate="http://10.basemaps.cartocdn.com/light_all/{z}/{x}/{y}.png" | |
/> | |
{children} | |
</MapView> | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment