getTileUrl method

String getTileUrl(
  1. Coords<num> coords,
  2. TileLayer options
)

Generate a valid URL for a tile, based on it's coordinates and the current TileLayerOptions

Implementation

String getTileUrl(Coords coords, TileLayer options) {
  final urlTemplate = (options.wmsOptions != null)
      ? options.wmsOptions!
          .getUrl(coords, options.tileSize.toInt(), options.retinaMode)
      : options.urlTemplate;

  return _getTileUrl(urlTemplate!, coords, options);
}