getSubdomain method

String getSubdomain(
  1. Coords<num> coords,
  2. TileLayerOptions options
)

Implementation

String getSubdomain(Coords coords, TileLayerOptions options) {
  if (options.subdomains.isEmpty) {
    return '';
  }
  var index = (coords.x + coords.y).round() % options.subdomains.length;
  return options.subdomains[index];
}