Skip to content

Commit

Permalink
fix tms scheme min zoom level
Browse files Browse the repository at this point in the history
Signed-off-by: Grisha Pomadchin <[email protected]>
  • Loading branch information
pomadchin committed Apr 12, 2017
1 parent cf8ad04 commit b1883ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ class ZoomedLayoutScheme(val crs: CRS, val tileSize: Int, resolutionThreshold: D
levelForZoom(crs.worldExtent, id)

def levelForZoom(worldExtent: Extent, id: Int): LayoutLevel = {
if(id < 1)
if(id < 0)
sys.error("TMS Tiling scheme does not have levels below 1")
LayoutLevel(id, LayoutDefinition(worldExtent, TileLayout(layoutColsForZoom(id), layoutRowsForZoom(id), tileSize, tileSize)))
}
Expand Down

0 comments on commit b1883ef

Please sign in to comment.