Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

Pan

Public visualization

Viewing a saved revision (read-only)

48ec83f66a3f4fe99af9ed489486fc00

Pan

0 stars1🌍 Public
OOleJRask
Last edited Nov 27, 2021
Created on Nov 27, 2021
Forked from Hello HTML

This example demonstrates a basic panning interaction within a bounded viewport. A draggable map area, containing an SVG red circle, can be moved by clicking and dragging with the mouse. The implementation uses plain JavaScript event handlers, specifically `onmousedown`, `onmousemove`, and `onmouseup`, to track cursor movement and update the map's absolute `left` and `top` CSS properties. The map's movement is constrained to a 400-pixel range in both axes, and it uses a Google logo image as its background.

AI-generated description

A bare minimum HTML page.