diff --git a/index.html b/index.html index 5ef0e16..09a3c69 100644 --- a/index.html +++ b/index.html @@ -5193,12 +5193,97 @@
Conclusion

Pan, zoom, or re-centre a map

-Description to follow +Developers expect to be able to control a map by changing its centre and/or zoom level, +and may also wish to support the capability of resetting a map to its view as originally presented. +If the map view cannot be dynamically modified by an application, +as opposed to changes by direct user interaction with the map, +then it offers fewer advantages over a static map view. +

+

+It is usually also desirable that such changes can be accomplished in a manner that gives sufficient +visual feedback to the user that a change is occurring, +for example by animating the transition rather than simply redrawing the map with the new view, +which may not be immediately noticeable to the user. +

+

+Accessibility is an important consideration when the state of a map is altered dynamically. +Thought should be given to how the change can be made known to assistive technologies so that the user +is fully informed and thus cognisant of the current state of the map at all times.

Discuss this section on GitHub.

+
Existing implementations
+

+All the reviewed JavaScript API implementations support changing the bounds, centre, and zoom level of a map, +and allow such transitions to be animated. +

+
+ +
google-maps-api
+
bing-maps-api
+
apple-mapkit-js-api
+
mapbox-gl-api
+
leaflet-api
+
open-layers-api
+
d3-geographies-api
+
full support: + +

+Animated transitions are supported by calling specific methods with names such as flyTo +or via a Boolean parameter to a more general method such as setView. +

+
+
+ +
Supported use cases
+ + +
Uses beyond mapping
+

+ToDo +

+ +
Related web specifications
+

+ +

+ +
Conclusion
+ +

+As this is capability is required for any dynamic update of a map view such as would be expected of a map-based application, +it is a requirement for embedded web maps. +

+ +
+ +
+

Zoom a map in or out

+

+Description to follow +

+

+Discuss this section on GitHub. +

+
Existing implementations

Existing implementation support: