API Docs for: 0.1.1
Show:

flatworld.mapEvents Class

This module handles map events. Like informing map movement, object selection and other changes. Not that ALL the eventlisteners and their callbacks will throw one event! But that event will have no extra parameters, so when you do special things, like selecting objects on the map, you should throw another event when that happens and you can pass on the objects that were selected from the map. This uses https://github.com/primus/eventemitter3 and follows the nodeJS event conventions: https://nodejs.org/api/events.html Events atm:

  • mapdrag
  • mapzoomed
  • objectsSelected (in hexagon extension units.js)
  • mapMoved
  • mapResize

Item Index