source: sipes/libraries/openlayers/examples/mapbox.js @ 92f109b

stableversion-3.0
Last change on this file since 92f109b was 307d09d, checked in by José Gregorio Puentes <jpuentes@…>, 8 años ago

se agregaron las librerias

  • Propiedad mode establecida a 100644
File size: 718 octetos
Línea 
1var earth = new OpenLayers.Layer.XYZ(
2    "Natural Earth",
3    [
4        "http://a.tiles.mapbox.com/v3/mapbox.natural-earth-hypso-bathy/${z}/${x}/${y}.png",
5        "http://b.tiles.mapbox.com/v3/mapbox.natural-earth-hypso-bathy/${z}/${x}/${y}.png",
6        "http://c.tiles.mapbox.com/v3/mapbox.natural-earth-hypso-bathy/${z}/${x}/${y}.png",
7        "http://d.tiles.mapbox.com/v3/mapbox.natural-earth-hypso-bathy/${z}/${x}/${y}.png"
8    ], {
9        attribution: "Tiles &copy; <a href='http://mapbox.com/'>MapBox</a>",
10        sphericalMercator: true,
11        wrapDateLine: true,
12        numZoomLevels: 5
13    }
14);
15
16var map = new OpenLayers.Map({
17    div: "map",
18    layers: [earth],
19    center: [0, 0],
20    zoom: 1
21});
Nota: Vea TracBrowser para ayuda de uso del navegador del repositorio.