Commit f42f20b1 authored by Qiu Xiang's avatar Qiu Xiang

移除自定义颜色 marker

parent 6201ae3d
...@@ -43,13 +43,6 @@ export default class MarkerExample extends Component { ...@@ -43,13 +43,6 @@ export default class MarkerExample extends Component {
<Text style={styles.markerText}>{this.state.time.toLocaleTimeString()}</Text> <Text style={styles.markerText}>{this.state.time.toLocaleTimeString()}</Text>
</View> </View>
_renderColoredMarker = () =>
<View style={styles.customIcon}>
<Image
style={[styles.customIcon, styles.coloredImage]}
source={require('../../images/marker.png')}/>
</View>
_renderImageMarker = () => _renderImageMarker = () =>
<View style={styles.customIcon}> <View style={styles.customIcon}>
<Image style={styles.customIcon} source={require('../../images/flag.png')}/> <Image style={styles.customIcon} source={require('../../images/flag.png')}/>
...@@ -90,14 +83,6 @@ export default class MarkerExample extends Component { ...@@ -90,14 +83,6 @@ export default class MarkerExample extends Component {
longitude: 116.397972, longitude: 116.397972,
}} }}
/> />
<Marker
icon={this._renderColoredMarker}
title='自定义颜色'
coordinate={{
latitude: 39.806901,
longitude: 116.457972,
}}
/>
<Marker <Marker
title='Custom View Marker' title='Custom View Marker'
icon={this._renderCustomMarker} icon={this._renderCustomMarker}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment