Skip to content

Commit

Permalink
minor fixes + use namedtuple as default
Browse files Browse the repository at this point in the history
  • Loading branch information
asinghvi17 committed Dec 23, 2024
1 parent bb89b69 commit 312a8a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/map.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function setup_figure_and_axis!(figure::GridPosition, axis, ext_target, crs)
""")
end

function setup_figure_and_axis!(gridposition::GridPosition, axis::NamedTuple, ext_target, crs)
function setup_figure_and_axis!(gridposition::GridPosition, axis_kws_nt::NamedTuple, ext_target, crs)
figure = _get_parent_figure(gridposition)

axis_kws = Dict(pairs(axis_kws_nt))
Expand Down Expand Up @@ -173,7 +173,7 @@ end
function Map(extent, extent_crs=wgs84;
size=(1000, 1000),
figure=Makie.Figure(; size=size),
axis=Makie.Axis(figure[1, 1]; aspect=Makie.DataAspect()),
axis=(; type = Axis, aspect = DataAspect()),
plot_config=PlotConfig(),
provider=TileProviders.OpenStreetMap(:Mapnik),
crs=MapTiles.web_mercator,
Expand Down

0 comments on commit 312a8a0

Please sign in to comment.