From 5a355f37605b7b6f1e5fb97a451c058e2beb85a5 Mon Sep 17 00:00:00 2001 From: tschaub Date: Thu, 1 Mar 2012 16:33:50 -0700 Subject: [PATCH] Attribution update. --- examples/mapbox.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/examples/mapbox.js b/examples/mapbox.js index 0be24970f5..c22116d126 100644 --- a/examples/mapbox.js +++ b/examples/mapbox.js @@ -6,9 +6,12 @@ var streets = new OpenLayers.Layer.XYZ( "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" ], { - attribution: "MapBox | Terms of Service", + attribution: "Tiles © MapBox | " + + "Data © OpenStreetMap " + + "and contributors, CC-BY-SA", sphericalMercator: true, transitionEffect: "resize", + buffer: 1, numZoomLevels: 16 } ); @@ -19,13 +22,14 @@ var map = new OpenLayers.Map({ layers: [streets], controls: [ new OpenLayers.Control.Attribution(), - new OpenLayers.Control.TouchNavigation({ + new OpenLayers.Control.Navigation({ dragPanOptions: { enableKinetic: true } }), new OpenLayers.Control.ZoomPanel(), new OpenLayers.Control.Permalink({anchor: true}) - ] + ], + center: [0, 0], + zoom: 1 }); -map.setCenter([0, 0], 1);