Skip to main content
100%

Modest Maps JS - Throwable Test

✓ Published0🌍 Public
RRandomEtc
Last edited Jun 21, 2013
Created on Aug 29, 2011

A throwable map interface demonstrates inertial panning and zooming with Modest Maps JS. Users can drag to fling the map across the view, use arrow keys to accelerate movement, and scroll to zoom with momentum. Custom `MM.ThrowableHandler` extends the library to manage animation frames, track keyboard input, mouse position, and velocity, applying drag and acceleration in each `animate` tick. The example uses the rendered tile map and handles DOM events for key, mouse, and wheel interactions.

AI-generated description

Similar vizzes