Hello,
In the example below, the plotted area (including roadways) is outside of the bounds defined in area. Why is this happening?
using GLMakie
using LightOSM
using OSMMakie
file_name = "woodstock_illinois_park.osm"
# define area boundaries
area = (
minlat = 42.314096, minlon = -88.449010, # bottom left corner
maxlat = 42.315750, maxlon = -88.445807 # top right corner
)
if !isfile(file_name)
download_osm_network(:bbox;
area...,
network_type = :none,
download_format = :osm,
save_to_file_location = "woodstock_illinois_park.osm");
end
# load as OSMGraph
osm = graph_from_file("woodstock_illinois_park.osm";
graph_type = :light, # SimpleDiGraph
weight_type = :distance
)
# use min and max latitude to calculate approximate aspect ratio for map projection
autolimitaspect = map_aspect(area.minlat, area.maxlat)
# plot it
fig, ax, plot = osmplot(osm; axis = (; autolimitaspect), inspect_nodes = true)
fig
