DisplayModel constructor

DisplayModel({
  1. int maxZoomLevel = 25,
  2. double deviceScaleFactor = 1.0,
  3. double userScaleFactor = 1.0,
  4. double maxTextWidthFactor = 0.7,
  5. double fontScaleFactor = 1.0,
  6. int backgroundColor = 0xffeeeeee,
})

Implementation

DisplayModel({
  this.maxZoomLevel = 25,
  //this.tileSize = DEFAULT_TILE_SIZE,
  this.deviceScaleFactor = 1.0,
  this.userScaleFactor = 1.0,
  this.maxTextWidthFactor = 0.7,
  this.fontScaleFactor = 1.0,
  this.backgroundColor = 0xffeeeeee,
})  : assert(maxZoomLevel <= 30 && maxZoomLevel > 0),
      assert(maxTextWidthFactor > 0) {
  this._setTileSize();
  _setMaxTextWidth();
}