Skip to content

Instantly share code, notes, and snippets.

View shaunakv1's full-sized avatar
๐Ÿ––
Keep Calm and Code On

Shaunak Vairagare shaunakv1

๐Ÿ––
Keep Calm and Code On
View GitHub Profile
@shaunakv1
shaunakv1 / gist:4549044
Created January 16, 2013 17:36
JavaScript: Openlayers Map Starting Template
function loadMap()
{
//create map object
map = new OpenLayers.Map({
div: "map",
projection: "EPSG:900913"
});
map.addLayer(
new OpenLayers.Layer.XYZ("esri", 'http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/${z}/${y}/${x}', {