Permalink
Browse files

updated all examples except 'touch'

- removing way out of date broken webkit example
- make the chaining example us MM core
- update doctype and namespaces on cloudmade examples
- fix flickr example
- doctype for getbbox
- great circle doctype, style and callback cleanup
- cleanup hello oakland
- remove broken dojo stuff, add hurricane doctype
- cleanup keyboard example
- cleanup marker demo
- cleanup MS example
- cleanup up navwindow example
- DOCTYPE for simple examples
- cleanup templated form example
- DOCTYPE and uppercase MM for tilecache example
- DOCTYPE and cleanup for twomaps example
- zoombox example cleanup (DOCTYPE, MM namespace)
- DOCTYPE and MM for zoompan example
  • Loading branch information...
1 parent 611deb3 commit 74c8fb7fd0e1c26f570b0133a7b0d3f3f385c30f @RandomEtc RandomEtc committed Jun 3, 2011
@@ -1,46 +0,0 @@
-<html>
-<head>
-<title>Modest Maps JS</title>
-<script type="text/javascript" src="modestmaps-webkit.js"></script>
-<script type="text/javascript">
- var map;
- function initMap() {
- var provider = new MapProvider(function(coord) {
- var img = parseInt(coord.zoom) +'-r'+ parseInt(coord.row) +'-c'+ parseInt(coord.column) + '.png';
- return 'http://osm-bayarea.s3.amazonaws.com/' + img;
- });
- map = new Map('map', provider, new Point(640,480))
- map.setCenterZoom(new Location(37.804656, -122.263606), 14);
- map.draw();
- }
-</script>
-<style type="text/css" media="all">
-img.tile {
- -webkit-transition: opacity 1s ease;
- opacity: 0;
-}
-img.loaded {
- opacity: 1;
-}
-</style>
-</head>
-<body onload="initMap()">
-<h1>Modest Maps JS</h1>
-<p>The following div is a map initialized like so:</p>
-<pre>
- var provider = new MapProvider(function(coord) {
- var img = parseInt(coord.zoom) +'-r'+ parseInt(coord.row) +'-c'+ parseInt(coord.column) + '.png';
- return 'http://osm-bayarea.s3.amazonaws.com/' + img;
- });
- var map = new Map('map', provider, new Point(640,480))
- map.setCenterZoom(new Location(37.804656, -122.263606), 14);
- map.draw();
-</pre>
-<p><a href="javascript:map.zoomIn()">zoom in</a> | <a href="javascript:map.zoomOut()">zoom out</a>
-<br><a href="javascript:map.panLeft()">pan left</a> | <a href="javascript:map.panRight()">pan right</a> | <a href="javascript:map.panDown()">pan down</a> | <a href="javascript:map.panUp()">pan up</a></p>
-<div id="map">
-</div>
-<p>Hands up who wants overlays?</p>
-<div id="log"></div>
-</body>
-</html>
Oops, something went wrong.

2 comments on commit 74c8fb7

@pixelfreak

The hurricane example along with some other examples don't work anymore :(

@tmcw
Member
tmcw commented on 74c8fb7 Feb 9, 2012

@pixelfreak please open an issue.

Please sign in to comment.