Skip to content

Adding tileSize props for iOS.#2627

Merged
christopherdro merged 2 commits intoreact-native-maps:masterfrom
kaiterra:patch-tileSize-props
Jan 7, 2019
Merged

Adding tileSize props for iOS.#2627
christopherdro merged 2 commits intoreact-native-maps:masterfrom
kaiterra:patch-tileSize-props

Conversation

@fozhao
Copy link
Contributor

@fozhao fozhao commented Dec 14, 2018

Does any other open PR do the same thing?

There are some related open issues talking about tile size. And there is one issue asking for PR of tile size props. So here it is this PR trying to resolve these issue.

What issue is this PR fixing?

Support for tileSize in UrlTile props #2567

How did you test this PR?

On iOS, use the sample code to initialize a map view with URL tile on it. And the tile's size should be other than 256 to trigger the issue that on iOS default tile size (256 * 256) is always used.

Then in your UrlTile component, add a tileSize prop with the expected tile size number and run your app again. Now you should see the tile being correctly rendered according to your tile size prop.

@christopherdro christopherdro merged commit 5a718a2 into react-native-maps:master Jan 7, 2019
pinpong pushed a commit to pinpong/react-native-maps that referenced this pull request Feb 28, 2025
* Adding tileSize props for iOS.

* Fixing error for travic CI
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