Focusable Maps
✓ Published0🌍 Public
Mmbostock
Last edited Feb 8, 2016
Created on Nov 2, 2010
Two interactive maps sit side-by-side, each in its own `div` element, and each can be focused independently via the `tabindex` attribute. Using the Polymaps library, each map renders a CloudMade tile layer (styles 998 and 999) served from OpenStreetMap data, with the `org.polymaps` API handling map display and `po.interact()` enabling pan and zoom. The `tabindex` on the containing `div` elements makes each map a separate focusable region, so keyboard navigation can target one map without affecting the other.
AI-generated descriptionThese two maps are independently focusable, thanks to the tabindex attribute on a containing div element.
gpl-3.0 Licensed