Attribution update.

This commit is contained in:
tschaub
2012-03-01 16:33:50 -07:00
parent 485317567e
commit 5a355f3760

View File

@@ -6,9 +6,12 @@ var streets = new OpenLayers.Layer.XYZ(
"http://c.tiles.mapbox.com/v3/mapbox.mapbox-streets/${z}/${x}/${y}.png", "http://c.tiles.mapbox.com/v3/mapbox.mapbox-streets/${z}/${x}/${y}.png",
"http://d.tiles.mapbox.com/v3/mapbox.mapbox-streets/${z}/${x}/${y}.png" "http://d.tiles.mapbox.com/v3/mapbox.mapbox-streets/${z}/${x}/${y}.png"
], { ], {
attribution: "<a href='http://mapbox.com'>MapBox</a> | <a href='http://mapbox.com/tos/'>Terms of Service</a>", attribution: "Tiles © <a href='http://mapbox.com/'>MapBox</a> | " +
"Data © <a href='http://www.openstreetmap.org/'>OpenStreetMap</a> " +
"and contributors, CC-BY-SA",
sphericalMercator: true, sphericalMercator: true,
transitionEffect: "resize", transitionEffect: "resize",
buffer: 1,
numZoomLevels: 16 numZoomLevels: 16
} }
); );
@@ -19,13 +22,14 @@ var map = new OpenLayers.Map({
layers: [streets], layers: [streets],
controls: [ controls: [
new OpenLayers.Control.Attribution(), new OpenLayers.Control.Attribution(),
new OpenLayers.Control.TouchNavigation({ new OpenLayers.Control.Navigation({
dragPanOptions: { dragPanOptions: {
enableKinetic: true enableKinetic: true
} }
}), }),
new OpenLayers.Control.ZoomPanel(), new OpenLayers.Control.ZoomPanel(),
new OpenLayers.Control.Permalink({anchor: true}) new OpenLayers.Control.Permalink({anchor: true})
] ],
center: [0, 0],
zoom: 1
}); });
map.setCenter([0, 0], 1);