From 8c7263f16e1b594d133504a3e4800a34ee644388 Mon Sep 17 00:00:00 2001 From: Frederic Junod Date: Tue, 27 Mar 2012 14:34:19 +0200 Subject: [PATCH] update mapbox example. * use Zoom control instead of ZoomPanel * wrap date line * attribution control already at the bottom of the map * use html entities for the copyright symbol * layer has 17 levels, update numZoomLevels --- examples/mapbox.html | 43 ------------------------------------------- examples/mapbox.js | 9 +++++---- 2 files changed, 5 insertions(+), 47 deletions(-) diff --git a/examples/mapbox.html b/examples/mapbox.html index 3ccbffe776..4ccac1434e 100644 --- a/examples/mapbox.html +++ b/examples/mapbox.html @@ -7,49 +7,6 @@ OpenLayers MapBox Example -

Basic MapBox OSM Example

diff --git a/examples/mapbox.js b/examples/mapbox.js index ee57d66e0c..134d0d865e 100644 --- a/examples/mapbox.js +++ b/examples/mapbox.js @@ -6,13 +6,14 @@ 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: "Tiles © MapBox | " + - "Data © OpenStreetMap " + + attribution: "Tiles © MapBox | " + + "Data © OpenStreetMap " + "and contributors, CC-BY-SA", sphericalMercator: true, + wrapDateLine: true, transitionEffect: "resize", buffer: 1, - numZoomLevels: 16 + numZoomLevels: 17 } ); @@ -26,7 +27,7 @@ var map = new OpenLayers.Map({ enableKinetic: true } }), - new OpenLayers.Control.ZoomPanel(), + new OpenLayers.Control.Zoom(), new OpenLayers.Control.Permalink({anchor: true}) ], center: [0, 0],