WMSTileLayerOptions constructor

WMSTileLayerOptions({
  1. required String baseUrl,
  2. List<String> layers = const [],
  3. List<String> styles = const [],
  4. String format = 'image/png',
  5. String version = '1.1.1',
  6. bool transparent = true,
  7. Crs crs = const Epsg3857(),
  8. Map<String, String> otherParameters = const {},
})

Implementation

WMSTileLayerOptions({
  required this.baseUrl,
  this.layers = const [],
  this.styles = const [],
  this.format = 'image/png',
  this.version = '1.1.1',
  this.transparent = true,
  this.crs = const Epsg3857(),
  this.otherParameters = const {},
}) {
  _versionNumber = double.tryParse(version.split('.').take(2).join('.')) ?? 0;
  _encodedBaseUrl = _buildEncodedBaseUrl();
}