function agentmapFactory(map) {
  return new Agentmap(map);
}
Generates an agentmap for the given map.

@name agentmap
@param {object} map - A Leaflet Map instance.
@returns {object} - An Agentmap instance.