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:
1.8 KB
|
Línea | |
---|
1 | var map = new OpenLayers.Map({ |
---|
2 | div: "map", |
---|
3 | projection: "EPSG:900913", |
---|
4 | layers: [ |
---|
5 | new OpenLayers.Layer.XYZ( |
---|
6 | "OpenStreetMap", |
---|
7 | [ |
---|
8 | "http://otile1.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.png", |
---|
9 | "http://otile2.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.png", |
---|
10 | "http://otile3.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.png", |
---|
11 | "http://otile4.mqcdn.com/tiles/1.0.0/map/${z}/${x}/${y}.png" |
---|
12 | ], |
---|
13 | { |
---|
14 | attribution: "Data, imagery and map information provided by <a href='http://www.mapquest.com/' target='_blank'>MapQuest</a>, <a href='http://www.openstreetmap.org/' target='_blank'>Open Street Map</a> and contributors, <a href='http://creativecommons.org/licenses/by-sa/2.0/' target='_blank'>CC-BY-SA</a> <img src='http://developer.mapquest.com/content/osm/mq_logo.png' border='0'>", |
---|
15 | transitionEffect: "resize" |
---|
16 | } |
---|
17 | ), |
---|
18 | new OpenLayers.Layer.XYZ( |
---|
19 | "Imagery", |
---|
20 | [ |
---|
21 | "http://otile1.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.png", |
---|
22 | "http://otile2.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.png", |
---|
23 | "http://otile3.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.png", |
---|
24 | "http://otile4.mqcdn.com/tiles/1.0.0/sat/${z}/${x}/${y}.png" |
---|
25 | ], |
---|
26 | { |
---|
27 | attribution: "Tiles Courtesy of <a href='http://open.mapquest.co.uk/' target='_blank'>MapQuest</a>. Portions Courtesy NASA/JPL-Caltech and U.S. Depart. of Agriculture, Farm Service Agency. <img src='http://developer.mapquest.com/content/osm/mq_logo.png' border='0'>", |
---|
28 | transitionEffect: "resize" |
---|
29 | } |
---|
30 | ) |
---|
31 | ], |
---|
32 | center: [0, 0], |
---|
33 | zoom: 1 |
---|
34 | }); |
---|
35 | |
---|
36 | map.addControl(new OpenLayers.Control.LayerSwitcher()); |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.