tillnagel / unfolding

A library to create interactive maps and geovisualizations in Processing and Java
http://unfoldingmaps.org
Other
477 stars 245 forks source link

Rotation event #138

Closed driesdl closed 7 years ago

driesdl commented 7 years ago

Is there a way to add a rotation event like how you added the other two events (pan and zoom)? And with the rotation, rotate your map and update the Compass direction?

eventDispatcher.register(map, "zoom"); eventDispatcher.register(map, "??rotation/rotate??");

tillnagel commented 7 years ago

No, that is not possible. You either provide multitouch interaction (see MultitouchMapApp example), or do it programmatically (via map.rotate(..)). After registering a CompassUI to a map, it updates automatically.