Change the tile in react-native-map

How to change region and urltile of map between Google Roadmap(https://mt0.google.com/vt/lyrs=m&hl=vi&x={x}&y={y}&z={z}) and Google Terrain only (https://mt0.google.com/vt/lyrs=t&hl=vi&x={x}&y={y}&z={z}). I did, but when I clicked, nothing changed. ???

<MapView
style={styles.map}
scrollEnabled={this.state.scrollEnabled}
onPress={event => this.addMarkerMap(event)}
onPanDrag={e => this.onPanDrag(e)}
initialRegion={this.state.region}
mapType={Platform.OS == “android” ? “none” : “standard”}

<UrlTile shouldReplaceMapContent={true} maximumZ={19} flipY={false} urlTemplate={this.state.templateLayer} />

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.