From 5a216f11d33f6858668a9754bac559e49466e494 Mon Sep 17 00:00:00 2001 From: Nic Chan Date: Sun, 29 Mar 2020 12:53:42 +0800 Subject: [PATCH 1/2] Continue to fill out supplementary sections for client side capabilities --- index.html | 98 +++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 86 insertions(+), 12 deletions(-) diff --git a/index.html b/index.html index 53e0da6..a1e1989 100644 --- a/index.html +++ b/index.html @@ -2932,8 +2932,19 @@
Uses beyond mapping
Related web specifications

- +SVG contains a number of elements that are positioned on a coordinate system. +The coordinates and dimensions of the element are defined in markup, +as attributes on the element. +

+

+The HTML Canvas2D API also offers the ability to draw points on a coordinate system, +but images are drawn by passing coordinates into a JavaScript method, +instead of an element such as in SVG. +This method of drawing features is more similar to existing mapping libraries, +which are also reliant on JavaScript. +However, the Canvas API offers a very low level of abstraction in comparison to mapping libraries. +Depending on the complexity of the marker, +the code to draw it may be very verbose.

Conclusion
@@ -3005,8 +3016,14 @@
Uses beyond mapping
Related web specifications

- +SVG contains both a polyline and a polygon element. +A comma separated list of coordinates is assigned to the points HTML attribute to generate the shape. +

+

+The way that polylines and polygons are created in the HTML Canvas2D API is much more manual, +requiring a sequence of calls to the moveTo and lineTo methods. +Like other aspects of the Canvas API, +this syntax can be quite verbose.

Conclusion
@@ -3071,13 +3088,26 @@
Supported use cases
Uses beyond mapping

- +This functionality can be used to provide hyperlink support for diagrams. +Any case where an image map may have been appropriate can also benefit from this capability.

Related web specifications

- +HTML Image Maps consist of a large graphic with various subregions, +which serve as links. +A subregion is defined by passing a shape, coordinates, a link target and alt text to an area element. +A significant limitation of Image Maps is that they are not responsive by default, +and this limits its usage in modern web development. +

+

+The SVG2 specification supports href attributes on a elements within SVGs, +previously, the SVG 1.1 specification required href attributes to be specified within the XLink namespace. +

+

+Though it is not visible, +Canvas elements can include keyboard focusable links as a part of a navigable sub DOM. +In order to make links within the canvas work on click, JavaScript is still neccessary.

Conclusion
@@ -3138,6 +3168,25 @@
Existing implementations
supported, with limitations: attribution is automatically generated, but it is not keyboard accessible.
+ +
Supported use cases
+ + +
Uses beyond mapping
+

+

+ +
Related web specifications
+

+Website authors can use Microdata and other related formats to provide attribution data in a standardized format. +How and whether or not this content is displayed is up to the website author, +but the goal is to provide a machine-readable format for important document content. +

+

+The cite element is for describing references to a cited creative work. +As for other elements, the blockquote element has a cite attribute where you can pass a URL as the source of a quote, +but browsers currently do not display this information to the end user. +

@@ -3191,11 +3240,6 @@
Existing implementations
Supported use cases
-
Uses beyond mapping
-

-… -

-
Related web specifications

The Geolocation API @@ -3262,6 +3306,36 @@

Existing implementations
bing-maps-embed
partial support: does not support markers for a single location, but it is possible to display a map centered around a particular street address with no marker
+ + +
Uses beyond mapping
+

+There are many cases where a website may expect an address from a user. +An input type specifically for addresses has a wide variety applications other than displaying a map, +such as reducing user error when facilitating e-commerce and delivery services. +

+ +
Conclusion
+ +

+Based on the limited data, we are undecided about whether this should be a requirement. +

+
From f95006f479202e26a3e142983201ce6c839ae863 Mon Sep 17 00:00:00 2001 From: Amelia Bellamy-Royds Date: Tue, 12 May 2020 11:51:48 -0600 Subject: [PATCH 2/2] Apply suggestions from code review Some clean-up & ToDo notes for further details to be added later. --- index.html | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index a1e1989..71d6aff 100644 --- a/index.html +++ b/index.html @@ -3017,7 +3017,7 @@
Uses beyond mapping
Related web specifications

SVG contains both a polyline and a polygon element. -A comma separated list of coordinates is assigned to the points HTML attribute to generate the shape. +A comma separated list of coordinates is assigned to the points attribute to generate the shape.

The way that polylines and polygons are created in the HTML Canvas2D API is much more manual, @@ -3025,6 +3025,12 @@

Related web specifications
Like other aspects of the Canvas API, this syntax can be quite verbose.

+

+TODO: Mention HTML area and CSS polygon() function. +

+

+TODO: describe how polyline/polygon are represented in the important geospatial specs. +

Conclusion