static uint getTopLod(QuadMap qmap, MapLayer map_layer) { int bottom_lod = qmap.getBestLodForCellsOfSize(map_layer.getCellWidth(), map_layer.getCellHeight()); uint max_depth = map_layer.getMaxDepth(); long top_lod = Math.Max(0, bottom_lod - max_depth); return((uint)top_lod); }
static uint getTopLod(QuadMap qmap, MapLayer map_layer) { int bottom_lod = qmap.getBestLodForCellsOfSize(map_layer.getCellWidth(), map_layer.getCellHeight()); uint max_depth = map_layer.getMaxDepth(); long top_lod = Math.Max(0, bottom_lod - max_depth); return (uint)top_lod; }