{"id":887,"date":"2005-08-09T15:18:00","date_gmt":"2005-08-09T19:18:00","guid":{"rendered":"http:\/\/www.markbaker.ca\/wp\/2005\/08\/09\/microformats-by-any-name\/"},"modified":"2005-08-09T15:18:00","modified_gmt":"2005-08-09T19:18:00","slug":"microformats-by-any-name","status":"publish","type":"post","link":"http:\/\/www.markbaker.ca\/blog\/2005\/08\/microformats-by-any-name\/","title":{"rendered":"Microformats by any name"},"content":{"rendered":"<p>I can&#8217;t recall where I found this, but here&#8217;s a really brain-dead simple\n<a href=\"http:\/\/bluweb.com\/us\/chouser\/gmapez\/\">interface to Google Maps<\/a>\n(details <a href=\"http:\/\/bluweb.com\/us\/chouser\/gmapez\/docs.html\">here<\/a>).<\/p>\n\n<p>What this is, is a microformat-style, HTML-based declarative front-end onto\nGoogle Maps.  Check out this sample code for placing labelled markers;<\/p>\n\n<pre>\n&lt;div class=\"GMapEZ GSmallMapControl GSmallMapTypeControl\"\n    style=\"width: 300px; height: 300px;\"&gt;\n  &lt;a href=\"http:\/\/maps.google.com\/maps?ll=41.092104,-85.144740&amp;spn=0.006130,0.009795&amp;t=k&amp;hl=en\"&gt;\n    <b>A<\/b>\n\n  &lt;\/a&gt;\n  &lt;a href=\"http:\/\/maps.google.com\/maps?ll=40.755580,-73.937988&amp;spn=6.276505,5.552490&amp;hl=en\"&gt;\n    <b>B<\/b>\n  &lt;\/a&gt;\n  &lt;a href=\"http:\/\/maps.google.com\/maps?ll=41.877741,-87.637939&amp;spn=6.169597,5.552490&amp;hl=en\"&gt;\n\n    <b>C<\/b>\n  &lt;\/a&gt;\n  &lt;a href=\"http:\/\/maps.google.com\/maps?ll=33.916013,-118.179932&amp;spn=6.874500,5.552490&amp;hl=en\"&gt;\n    <b>D<\/b>\n  &lt;\/a&gt;\n\n&lt;\/div&gt;\n<\/pre>\n\n<p>So the labels become the content of the anchor element.  Neat.  A better\n<a href=\"http:\/\/www.microformats.com\">microformat<\/a>\ndesign might have been to use &#8220;ol&#8221; (ordered list) with some styling\n(&#8220;list-style-type: upper-alpha&#8221;) to get the incrementing-letter result\n(at least for that simple case).\nAnd I&#8217;m not sure the G* &#8220;controls&#8221; really fit best in &#8220;class&#8221; (though nothing\nbetter comes to mind &#8211; hmm, what&#8217;s good for annotation-like semantics?).  But\nthis is definitely in the spirit of microformats (even if the word isn&#8217;t mentioned),\nand very well done.<\/p>\n\n<p>This approach is going to be huge.<\/p>","protected":false},"excerpt":{"rendered":"I can&#8217;t recall where I found this, but here&#8217;s a really brain-dead simple interface to Google Maps (details here). What this is, is a microformat-style, HTML-based declarative front-end onto Google Maps. Check out this sample code for placing labelled markers; &lt;div class=&#8221;GMapEZ GSmallMapControl GSmallMapTypeControl&#8221; style=&#8221;width: 300px; height: 300px;&#8221;&gt; &lt;a href=&#8221;http:\/\/maps.google.com\/maps?ll=41.092104,-85.144740&amp;spn=0.006130,0.009795&amp;t=k&amp;hl=en&#8221;&gt; A &lt;\/a&gt; &lt;a href=&#8221;http:\/\/maps.google.com\/maps?ll=40.755580,-73.937988&amp;spn=6.276505,5.552490&amp;hl=en&#8221;&gt; B [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-887","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts\/887","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/comments?post=887"}],"version-history":[{"count":0,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/posts\/887\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/media?parent=887"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/categories?post=887"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.markbaker.ca\/blog\/wp-json\/wp\/v2\/tags?post=887"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}