From 5a216f11d33f6858668a9754bac559e49466e494 Mon Sep 17 00:00:00 2001
From: Nic Chan
-
+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.
-
+SVG contains both a
+The way that polylines and polygons are created in the HTML Canvas2D API is much more manual,
+requiring a sequence of calls to the
-
+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.
-
+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
+The SVG2 specification supports
+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.
+
+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
-…
-
The Geolocation API
@@ -3262,6 +3306,36 @@
+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.
+
+Based on the limited data, we are undecided about whether this should be a requirement.
+
SVG contains both a
The way that polylines and polygons are created in the HTML Canvas2D API is much more manual,
@@ -3025,6 +3025,12 @@ Uses beyond mapping
Related web specifications
Conclusion
@@ -3005,8 +3016,14 @@ Uses beyond mapping
Related web specifications
polyline
and a polygon
element.
+A comma separated list of coordinates is assigned to the points
HTML attribute to generate the shape.
+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
Related web specifications
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.
+href
attributes on a
elements within SVGs,
+previously, the SVG 1.1 specification required href
attributes to be specified within the XLink namespace.
+Conclusion
@@ -3138,6 +3168,25 @@ Existing implementations
Supported use cases
+
+
+
Uses beyond mapping
+Related web specifications
+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.
+Existing implementations
Supported use cases
-
Uses beyond mapping
-Related web specifications
Existing implementations
Uses beyond mapping
+Conclusion
+
+
+
Uses beyond mapping
Related web specifications
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.
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. +