Skip to content

Commit

Permalink
Fixing image-layer example
Browse files Browse the repository at this point in the history
  • Loading branch information
ahocevar committed Oct 13, 2012
1 parent 583dc15 commit e38ab01
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
Binary file added examples/data/4_m_citylights_lg.gif
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 8 additions & 7 deletions examples/image-layer.html
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -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());
Expand Down

0 comments on commit e38ab01

Please sign in to comment.