This document illustrates including MapML features directly into the HTML document as child content of the <layer-> element. The use case is to make it 'easy' for HTML authors to include content such as placemarks on a map. They might not 'own' a map service but they would be able to provide location for stuff like images, buildings, areas, linear features etc., *and* be able to style those representations with CSS.
This leverages default values for, for example, projection (WGS84). Further, we need to think about how an HTML author would be required to mark up extent information in order to control the scales at which a layer should be enabled. We've opted for allowing the <meta> element for this purpose; it's as though it was a server-side MapML document with no server smarts (no extent element), just manually marked up with the <meta> element.
There's lots left to do here, here's my list:
<map is="web-map" zoom="16" lat="45.399627" lon="-75.706143" width="400" height="300" controls projection="CBMTILE"> <layer- label="cbmt_en" src="http://geogratis.gc.ca/mapml/en/cbmtile/cbmt/" checked HIDDEN> <layer- label="Point" > <!-- in HTML the meta element is void (no closing tag), and since this is being parsed by the HTML parser, we should be able to get away with that when including features in "HTML" content --> <meta name="zoom" content="min=14,max=18"> <meta name="extent" content="xmin=-76,ymin=45,xmax=-73,ymax=46"> <feature><properties><name>Canada Centre for Mapping and Earth Observation</name></properties><geometry><Point><coordinates>-75.705961 45.398511</coordinates></Point></geometry></feature> </layer-> <-- ommitting line and polygon markup for brevity. Note that you get a nasty FOUC (Flash Of Unstyled Content) in IE --> <-- very easy to get carried away with all this GIS-y stuff, so awaiting your comments :-) --> </map>