Right now, interactions between the UI and the map are really under-specified. I'd like interactions with the Map to go through the URL bar, allowing us to modify the map using <a> elements rather than through complicated Javascript nonsense.
The Map API should support the following query fields:
Field
Description
focus={x},{y}
Pans the camera to focus on a particular set of coordinates
zoom={x}
Zooms in or out on the coordinates provided by focus based on the value provided. If no focus is provided, zooms in on the coordinate at the center of the viewport.
node={path}
Selects a node to select on the Map. If focus and zoom aren't passed, the Map will redirect to a URL with appropriate focus and zoom parameters
project={path}
Highlights the nodes in the provided project sequence. If focus and zoom are not provided, pans to the center of the project sequence and zooms out to fit the sequence within the viewport.
Right now, interactions between the UI and the map are really under-specified. I'd like interactions with the Map to go through the URL bar, allowing us to modify the map using
<a>
elements rather than through complicated Javascript nonsense.The Map API should support the following query fields:
focus={x},{y}
zoom={x}
focus
based on the value provided. If nofocus
is provided, zooms in on the coordinate at the center of the viewport.node={path}
focus
andzoom
aren't passed, the Map will redirect to a URL with appropriatefocus
andzoom
parametersproject={path}
focus
andzoom
are not provided, pans to the center of the project sequence and zooms out to fit the sequence within the viewport.