getCenter method

Mappoint getCenter()

Implementation

Mappoint getCenter() {
  if (_center != null) return _center!;
  double tileSize = MapsforgeSettingsMgr().tileSize;
  _center = Mappoint((tileX * tileSize + tileSize / 2).toDouble(), (tileY * tileSize + tileSize / 2).toDouble());
  return _center!;
}