Awesome Open Source
Awesome Open Source

AgentMaps - Social Simulations on Interactive Maps

AgentMaps is a JS library for building and visualizing simulations on maps. It is based on the Leaflet interactive mapping library. Provided a neighborhood, AgentMaps lets you quickly and easily:

  • Build houses along the streets.
  • Put agents on the map.
  • Schedule them to move between places.
  • Change their appearance and internal properties.

AgentMaps lets you turn a map like this:

into something like this:

You can install it via npm (npm install agentmaps) and bundle it yourself, or you can get a premade bundle here to include directly in a webpage. You'll need to include Leaflet separately.


Docs for people who want to use AgentMaps are available here.

Docs for people who want to understand its internals are here.

A basic walkthrough for creating an AgentMaps simulation can be found here.


Simple: Shows all the different ways agents can travel around a map.

Contagion: Agents commute between different parts of a neighborhood while an infection spreads between them.

You can find the corresponding code under /demos in the gh-pages branch here.


IconAgents: Lets you depict agents with custom icons instead of circles.

Thank you to anyone who somehow benefits from this.

AgentMaps: Geospatial Agent-based Modeling and Simulation for JavaScript.

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
javascript (69,965
maps (173
gis (169
geospatial (136
leaflet (101