You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to see it: Open the html file and check the error in the console. Expected behavior: Bounding box should come first in the documentation. More details: N/A
In the agent.moveIt() line, agent is not bounded. The console throws Uncaught ReferenceError: agent is not defined. Also there is a missing closing round bracket three lines above. Just a typo.
How to reproduce it: Continuing from the last HTML, add to the last script tag
// continue from the HTML above
agentmap.buildingify(bounding_points, map_data); // This line is fixed.
agentmap.agentify(50, agentmap.seqUnitAgentMaker)
agentmap.controller = function() {
if (agentmap.state.ticks % 300 == 0) {
agentmap.agents.eachLayer(function(agent) {
let random_index = Math.floor(agentmap.units.count() * Math.random()),
random_unit = agentmap.units.getLayers()[random_index],
random_unit_id = agentmap.units.getLayerId(random_unit),
random_unit_center = random_unit.getBounds().getCenter()
agent.scheduleTrip(random_unit_center, { type: "unit", id: random_unit_id }, 1, false, true)
}) // adds a closed round bracket here
}
agent.moveIt()
}
agentmap.run()
How to see it: Open the HTML file and check the error in the console. Expected behavior: agent.moveIt() should be
Hi Andrew,
Thank you for the amazing work on building simulation systems on real-world maps.
I would like to report two minor issues regarding the documentation.
Issue 1
In the documentation, under the section Generating buildings (and also the devdocs version), the bounding box is listed as the second argument
but in the implementation, it seems to be the first argument
AgentMaps/src/buildings.js
Line 28 in 5f0686e
The same issue also appears in the quick start guide.
As a result, the console throws an error
Uncaught TypeError: OSM_data.features is undefined
when the example is ran.How to reproduce it: Here is the relevant HTML file.
How to see it: Open the html file and check the error in the console.
Expected behavior: Bounding box should come first in the documentation.
More details: N/A
Issue 2
In the quick start guide, near the bottom,
In the
agent.moveIt()
line,agent
is not bounded. The console throwsUncaught ReferenceError: agent is not defined
. Also there is a missing closing round bracket three lines above. Just a typo.How to reproduce it: Continuing from the last HTML, add to the last script tag
How to see it: Open the HTML file and check the error in the console.
Expected behavior:
agent.moveIt()
should beMore details: N/A
Thank you again for your work. Your doc explains the library so well. It is among the best I have seen.
The text was updated successfully, but these errors were encountered: