Skip to content

Instantly share code, notes, and snippets.

@gagan-bansal
Created September 9, 2013 13:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gagan-bansal/6495476 to your computer and use it in GitHub Desktop.
Save gagan-bansal/6495476 to your computer and use it in GitHub Desktop.
express with browserify-middleware main.js
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