Created
September 9, 2013 13:18
-
-
Save gagan-bansal/6495476 to your computer and use it in GitHub Desktop.
express with browserify-middleware main.js
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
window.OpenLayers = require('./OpenLayers.js'); | |
window.init = function() { | |
var osm = new OpenLayers.Layer.OSM(); | |
osm.wrapDateLine = false; | |
var map = new OpenLayers.Map("map",{projection:'EPSG:900913',numZoomLevels:18}); | |
map.addLayers([osm]); | |
map.setCenter(new OpenLayers.LonLat(8126483.8753499,2162623.286343),15); | |
console.log('init function called'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment