diff --git a/examples/data/4_m_citylights_lg.gif b/examples/data/4_m_citylights_lg.gif new file mode 100644 index 0000000000..4bf9b87f69 Binary files /dev/null and b/examples/data/4_m_citylights_lg.gif differ diff --git a/examples/image-layer.html b/examples/image-layer.html index 3d9bbf2aa0..235f9fc8c9 100644 --- a/examples/image-layer.html +++ b/examples/image-layer.html @@ -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());