From 5db93578d612dae5bbb864297863f70c2bf1a7a1 Mon Sep 17 00:00:00 2001 From: Felix Cremer Date: Mon, 8 Apr 2024 10:42:23 +0200 Subject: [PATCH] Remove show statements --- src/Tyler.jl | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Tyler.jl b/src/Tyler.jl index f5028d76..52e2898d 100644 --- a/src/Tyler.jl +++ b/src/Tyler.jl @@ -152,9 +152,8 @@ function Map(extent, extent_crs=wgs84; X = ext_target.X Y = ext_target.Y axis.autolimitaspect = 1 - @show X[1], X[2] Makie.limits!(axis, (X[1], X[2]), (Y[1], Y[2])) - + scale plots = Dict{Tile,Any}() tyler = Map( provider, crs, @@ -203,11 +202,11 @@ function Map(extent, extent_crs=wgs84; end # Queue tiles to be downloaded & displayed - @show ext_target + ext_target update_tiles!(tyler, ext_target) on(axis.scene, axis.finallimits) do extent - @show extent + extent stopped_displaying(figure) && return update_tiles!(tyler, extent) return @@ -287,7 +286,7 @@ end function fetch_tile(tyler::Map, tile::Tile) #println("Fetching Tile") - #@show tile + # tile return get!(tyler.fetched_tiles, tile) do fetch_tile(tyler.provider, tile) end @@ -344,7 +343,7 @@ function get_zoom(tyler::Map, area) end function update_tiles!(tyler::Map, area::Union{Rect,Extent}) - @show area + area area = typeof(area) <: Rect ? Extents.extent(area) : area # `depth` determines the number of layers below the current # layer to load. Tiles are downloaded in order from lowest to highest zoom. @@ -352,7 +351,7 @@ function update_tiles!(tyler::Map, area::Union{Rect,Extent}) # Calculate the zoom level zoom = get_zoom(tyler, area) - @show zoom + zoom tyler.zoom[] = zoom # And the z layers we will plot