Fixing image-layer example
This commit is contained in:
BIN
examples/data/4_m_citylights_lg.gif
Normal file
BIN
examples/data/4_m_citylights_lg.gif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
@@ -19,14 +19,12 @@
|
||||
function init(){
|
||||
map = new OpenLayers.Map('map');
|
||||
|
||||
var options = {numZoomLevels: 3};
|
||||
|
||||
var graphic = new OpenLayers.Layer.Image(
|
||||
'City Lights',
|
||||
'http://earthtrends.wri.org/images/maps/4_m_citylights_lg.gif',
|
||||
'data/4_m_citylights_lg.gif',
|
||||
new OpenLayers.Bounds(-180, -88.759, 180, 88.759),
|
||||
new OpenLayers.Size(580, 288),
|
||||
options
|
||||
{numZoomLevels: 3}
|
||||
);
|
||||
|
||||
graphic.events.on({
|
||||
@@ -38,9 +36,12 @@
|
||||
}
|
||||
});
|
||||
|
||||
var jpl_wms = new OpenLayers.Layer.WMS( "NASA Global Mosaic",
|
||||
"http://t1.hypercube.telascience.org/cgi-bin/landsat7",
|
||||
{layers: "landsat7"}, options);
|
||||
var jpl_wms = new OpenLayers.Layer.WMS(
|
||||
"Global Imagery",
|
||||
"http://demo.opengeo.org/geoserver/wms",
|
||||
{layers: "bluemarble"},
|
||||
{maxExtent: [-160, -88.759, 160, 88.759], numZoomLevels: 3}
|
||||
);
|
||||
|
||||
map.addLayers([graphic, jpl_wms]);
|
||||
map.addControl(new OpenLayers.Control.LayerSwitcher());
|
||||
|
||||
Reference in New Issue
Block a user