Skip to content

Instantly share code, notes, and snippets.

@wboykinm
Created June 29, 2012 16:24
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 wboykinm/3018959 to your computer and use it in GitHub Desktop.
Save wboykinm/3018959 to your computer and use it in GitHub Desktop.
ol_sudan_baselayers
//After line ???, add:
var base = new OpenLayers.Layer.XYZ(
"MapBox Streets",
[
"http://a.tiles.mapbox.com/v3/landplanner.sudan1/${z}/${x}/${y}.png",
"http://b.tiles.mapbox.com/v3/landplanner.sudan1/${z}/${x}/${y}.png",
"http://c.tiles.mapbox.com/v3/landplanner.sudan1/${z}/${x}/${y}.png",
"http://d.tiles.mapbox.com/v3/landplanner.sudan1/${z}/${x}/${y}.png"
], {
attribution: "Tiles &copy; <a href='http://mapbox.com/'>MapBox</a> | " +
"Data &copy; <a href='http://www.openstreetmap.org/'>OpenStreetMap</a> " +
"and contributors, CC-BY-SA",
sphericalMercator: true,
wrapDateLine: true,
transitionEffect: "resize",
buffer: 1,
numZoomLevels: 13
}
);
//On line ???, add:
layers: [base],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment