Hi,
I recently updated agents.jl
→ 5.0.0 and InteractiveDynamics.jl
→ 0.20.1. I am trying to use abmvideo()
and ambplot()
functions to plot an openstreet test map offered by the package. However something seems to be incorrect about the size of the plot. I noticed the same behaviour in the zombie outbreak example shown in the website as well. Any idea why the map with streets are not been plotted?
function initialise(;map_path=OSM.test_map(),num_casualties, num_rescuers, num_pma, num_hospitals, properties)
model = AgentBasedModel(
Union{Casualty, Rescuer,PMA,Hospital},
OpenStreetMapSpace(map_path),
scheduler = Schedulers.fastest;
properties = properties
)
# Add casualties to Model
for i=1:num_casualties
pos = random_position(model)
casualty = Casualty(nextid(model),pos,trauma = rand([1,2,3]))
add_agent_pos!(casualty,model)
end
...
end
properties = Dict(:ticks => 0, :dist_per_step => 100, :stab_cap => NaN, :stab_time => 20)
model = initialise(
num_casualties = 25,
num_rescuers = 10,
num_pma=1,
num_hospitals = 1,
properties = properties
)
fig,_ = abmplot(model; as=agent_size, am=agent_markers, ac=agent_color)