Permalink
Browse files

Fix examples: bubble, cabs, cloudmade, flickr, navwindow

  • Loading branch information...
1 parent 044b192 commit 2fd9c67b21e78f934118fb0e9ee591fcfa6a47b9 @tmcw tmcw committed Feb 15, 2012
File renamed without changes.
File renamed without changes.
@@ -6,11 +6,10 @@
<script type="text/javascript">
window.onload = function() {
- var MM = com.modestmaps;
var provider = new MM.TemplatedLayer('http://tile.openstreetmap.org/{Z}/{X}/{Y}.png');
var map = new MM.Map(document.body, provider)
- .setCenter(new MM.Location(51.5001524, -0.1262362))
- .setZoom(11);
+ .setCenter(new MM.Location(51.5001524, -0.1262362))
+ .setZoom(11);
};
</script>
@@ -24,7 +24,7 @@ <h1>Modest Maps JS</h1>
var provider = new MM.CloudMadeProvider('1a914755a77758e49e19a26e799268b7','998');
-map = new MM.Map('map', provider, new MM.Point(640,480))
+map = new MM.Map('map', new MM.Layer(provider), new MM.Point(640,480))
map.setCenterZoom(new MM.Location(37.804656, -122.263606), 14);
</pre>
File renamed without changes.
@@ -10,7 +10,7 @@
window.onload = function() {
var provider = new MM.TemplatedLayer('http://tile.openstreetmap.org/{Z}/{X}/{Y}.png');
- map = new MM.Map('map', provider);
+ map = new MM.Map('map', provider);
nav = new MM.Map('nav', provider);
var changingMap = null;

0 comments on commit 2fd9c67

Please sign in to comment.