Replace TileOverlay.tileProvider: Function by TileOverlay.tileUrlPattern: String.