Created
September 27, 2010 23:28
-
-
Save rtanglao/600072 to your computer and use it in GitHub Desktop.
mapWith2100VancouverCameraphonePhotos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
| <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> | |
| <head> | |
| <title>Roland's Vancouver Geotagged Cameraphone Pics</title> | |
| </head> | |
| <body> | |
| <div id="cm-example" style="width: 800px; height: 600px"></div> | |
| <script type="text/javascript" src="http://tile.cloudmade.com/wml/latest/web-maps-lite.js"></script> | |
| <script type="text/javascript" src="vancouver-sample-points.js"></script> | |
| <script type="text/javascript">//<![CDATA[ | |
| var cloudmade = new CM.Tiles.CloudMade.Web({key: 'ccfc587e00ca40458db437d57437f5cf',styleId: 22405}); | |
| var map = new CM.Map('cm-example', cloudmade); | |
| // set centre to be Vancouver Centroid from Flickr: | |
| //http://www.flickr.com/places/info/9807 | |
| map.setCenter(new CM.LatLng(49.2604, -123.1140), 13); | |
| for (var i = 0; i < samplePoints.length; i++) { | |
| var polygon = new CM.Polygon([ | |
| new CM.LatLng(samplePoints[i][0], | |
| samplePoints[i][1]) | |
| ], "#FF0000", 4, 0.5); | |
| map.addOverlay(polygon); | |
| } | |
| //]]></script> | |
| </body> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment