Skip to content

Commit

Permalink
Remove show statements
Browse files Browse the repository at this point in the history
  • Loading branch information
felixcremer committed Apr 8, 2024
1 parent cd0b7fc commit 5db9357
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Tyler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -344,15 +343,15 @@ 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.
depth = tyler.depth

# Calculate the zoom level
zoom = get_zoom(tyler, area)
@show zoom
zoom
tyler.zoom[] = zoom

# And the z layers we will plot
Expand Down

0 comments on commit 5db9357

Please sign in to comment.