Skip to content

[IOS] Some markers appear on top left of mapview when moving the map #678

@keung725

Description

@keung725

Some markers appear on top left of mapview when moving the map but these markers have already rendered in specific coordinate correctly

var makers = annotations.map((annotation, i) => {
      return(
        <MapView.Marker
          key={i}
          coordinate={{
            longitude: annotation.longitude,
            latitude: annotation.latitude,
          }}
          image={annotation.image}
        />
      )
    });

<MapView
              ref={ref => { this.map = ref; }}
              initialRegion={this.state.region}
              followUserLocation={false}
              showsMyLocationButton={false}
              style={{
                width: screenWidth * 0.8,
                height: screenHeight / 9 * 7,
              }}
              maxDelta={0.01}
              showsUserLocation={true}
            >
              {makers}
            </MapView>

IOS
react-native-maps 0.10.1
RN 0.33

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions