Skip to content

Don't fit to elements if no positions added#567

Merged
spikebrehm merged 1 commit intoreact-native-maps:masterfrom
ryankask:fit-to-elements-fix
Sep 12, 2016
Merged

Don't fit to elements if no positions added#567
spikebrehm merged 1 commit intoreact-native-maps:masterfrom
ryankask:fit-to-elements-fix

Conversation

@ryankask
Copy link
Copy Markdown
Contributor

@ryankask ryankask commented Sep 11, 2016

This commit prevents the crash mentioned in #180. It is identical to the implementation in AirMapView#fitToSuppliedMarkers().

This doesn't actually fix the issue mentioned in #180 because while the app no longer crashes, the elements aren't zoomed unless you use a setTimeout hack or something similar. @igrayson has written about this there.

It would be great to figure out why that isn't working, however.

@spikebrehm
Copy link
Copy Markdown

LGTM, thanks.

@spikebrehm spikebrehm merged commit d854912 into react-native-maps:master Sep 12, 2016
pinpong pushed a commit to pinpong/react-native-maps that referenced this pull request Feb 28, 2025
…s-fix

Don't fit to elements if no positions added
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants