Skip to content

Commit

Permalink
use empty!
Browse files Browse the repository at this point in the history
  • Loading branch information
rafaqz committed Dec 23, 2024
1 parent 7a80285 commit c0e374c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tile-fetching.jl
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ function update_tiles!(m::Map, arealike)
tiles = get_tiles_for_area(m, m.fetching_scheme, arealike)
if length(tiles.foreground) > m.max_plots
@warn "Too many tiles to plot, which means zoom level is not supported. Plotting no tiles for this zoomlevel." maxlog = 1
tiles.foreground = OrderedSet{Tile}()
empty!(tiles.foreground)
empty!(tiles.background)
empty!(tiles.offscreen)
end
queued_or_plotted = values(m.should_get_plotted)
# Queue tiles to be downloaded & displayed
Expand Down

0 comments on commit c0e374c

Please sign in to comment.