BMFTile.withMap constructor

BMFTile.withMap(
  1. Map map
)

Implementation

BMFTile.withMap(Map map) {
  if (null == map) {
    return;
  }

  super.fromMap(map);

  this.maxZoom = map['maxZoom'];
  this.minZoom = map['minZoom'];
  this.visibleMapBounds =
      BMFCoordinateBounds.coordinateBounds().fromMap(map['visibleMapBounds']);
  this.maxTileTmp = map['maxTileTmp'];

  int tileLoadType = map['tileLoadType'] as int;

  if (null != tileLoadType &&
      tileLoadType >= 0 &&
      tileLoadType < BMFTileLoadType.values.length) {
    this.tileLoadType = BMFTileLoadType.values[tileLoadType];
  }

  this.url = map['url'];
}