Skip to content

iOS overlays drawing issues (cropped image, disappearing on zoom in/out) #2801

@Slympp

Description

@Slympp

Is this a bug report?

Yes

Have you read the Installation Instructions?

Yes

Environment

react-native: 0.59.3
react: 16.8.3
react-native-maps: 0.23.0

iOS - 12.2 Simulator/iPhone 6, AppleMaps

Steps to Reproduce

  1. Add an Overlay to the map
  2. Zoom in/zoom out

Expected Behavior

Overlay in Maps should be visible all the time without any changes based on zoom.

Actual Behavior

Zoom in/out : https://www.youtube.com/watch?v=A3wf40oubeA

Cropped overlay :
Cropped overlay

Reproducible Demo

https://snack.expo.io/rJyS_AOYN

I tried to dig a bit in the implementation but my Objective-C knowledges are close to none. Despite, I think from my tests that the drawMapRect() delegate function in lib/ios/AirMaps/AIRMapOverlayRenderer.m is not called when it should be.

Could it be a MapKit issue ? I successfully did a small repro on an empty native project with MapKit's Swift version and it was working great, but it doesn't really mean anything.
Could it come from a lack of implementation of the zoomScale:(MKZoomScale) parameter in the Air component ?

Sorry for the possibly duplicate, I tried many fixes suggested in related issues (#2135, #2776, ...) and none of them worked 😞

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions