This file contains 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
var initMap = function() { | |
var template = 'http://{S}tile.openstreetmap.org/{Z}/{X}/{Y}.png'; | |
var subdomains = ['', 'a.', 'b.', 'c.']; | |
var provider = new MM.TemplatedLayer(template, subdomains); | |
var map = new MM.Map('map', provider, null, [ | |
new MM.MouseWheelHandler(null, true) | |
]); | |
map.setCenterZoom(new MM.Location(37.811530, -122.2666097), 9); |