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:
806 octetos
|
Línea | |
---|
1 | // API key for http://openlayers.org. Please get your own at |
---|
2 | // http://bingmapsportal.com/ and use that instead. |
---|
3 | var apiKey = "AqTGBsziZHIJYYxgivLBf0hVdrAk9mWO5cQcb8Yux8sW5M8c8opEC2lZqKR1ZZXf"; |
---|
4 | |
---|
5 | var hybrid = new OpenLayers.Layer.Bing({ |
---|
6 | key: apiKey, |
---|
7 | type: "AerialWithLabels", |
---|
8 | name: "Bing Aerial With Labels" |
---|
9 | }); |
---|
10 | |
---|
11 | var vector = new OpenLayers.Layer.Vector("GeoJSON", { |
---|
12 | projection: "EPSG:4326", |
---|
13 | strategies: [new OpenLayers.Strategy.Fixed()], |
---|
14 | protocol: new OpenLayers.Protocol.HTTP({ |
---|
15 | url: "geojson-reprojected.json", |
---|
16 | format: new OpenLayers.Format.GeoJSON() |
---|
17 | }) |
---|
18 | }); |
---|
19 | |
---|
20 | var center = new OpenLayers.LonLat(-109.6, 46.7).transform("EPSG:4326", "EPSG:900913"); |
---|
21 | |
---|
22 | var map = new OpenLayers.Map({ |
---|
23 | div: "map", |
---|
24 | layers: [hybrid, vector], |
---|
25 | center: center, |
---|
26 | zoom: 4 |
---|
27 | }); |
---|
Nota: Vea
TracBrowser
para ayuda de uso del navegador del repositorio.