react native maps UrlTile is not working with openstreetmap url on Android

Viewed 1240

this code works great with IOS, but not working with Android (emulator/real device)

<MapView region={this.state.region}>
  <UrlTile
    urlTemplate="http://c.tile.openstreetmap.org/{z}/{x}/{y}.png"
    maximumZ={19}
    zIndex={99}
  />
</MapView>

can't understand where is problem

UrlTile works fine with this url http://tile.stamen.com/terrain/{z}/{x}/{y}.jpg but not working with osm url http://c.tile.openstreetmap.org/{z}/{x}/{y}.png although osm url works in browser

Android: Android IOS: IOS

1 Answers
Related