[OpenLayers-Commits] r2269 - sandbox/emanuel/animatedZooming_1.3
commits at openlayers.org
commits at openlayers.org
Thu Feb 22 11:39:09 EST 2007
Author: emanuel
Date: 2007-02-22 11:39:08 -0500 (Thu, 22 Feb 2007)
New Revision: 2269
Added:
sandbox/emanuel/animatedZooming_1.3/demo.html
Log:
Added: sandbox/emanuel/animatedZooming_1.3/demo.html
===================================================================
--- sandbox/emanuel/animatedZooming_1.3/demo.html (rev 0)
+++ sandbox/emanuel/animatedZooming_1.3/demo.html 2007-02-22 16:39:08 UTC (rev 2269)
@@ -0,0 +1,69 @@
+<html xmlns="http://www.w3.org/1999/xhtml">
+ <head>
+ <style type="text/css">
+ #map {
+ width: 100%;
+ height: 512px;
+ border: 1px solid black;
+ }
+ </style>
+ <title>Animated Zooming Demo</title>
+
+ <!-- this gmaps key generated for http://openlayers.org/dev/ -->
+ <!-- <script src='http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'></script>-->
+
+ <script src="./lib/OpenLayers.js"></script>
+ <script type="text/javascript">
+ <!--
+ function init(){
+ var map = new OpenLayers.Map('map',
+ {controls: [],
+ 'maxResolution': 1.40625,
+ tileSize: new OpenLayers.Size(256,256)});
+ map.addControl(new OpenLayers.Control.PanZoomBar());
+ map.addControl(new OpenLayers.Control.MouseToolbar());
+ map.addControl(new OpenLayers.Control.LayerSwitcher({'ascending':false}));
+ map.addControl(new OpenLayers.Control.MousePosition());
+ map.addControl(new OpenLayers.Control.OverviewMap());
+
+ var ol_wms = new OpenLayers.Layer.WMS(
+ "OpenLayers (WMS)",
+ "http://labs.metacarta.com/wms/vmap0",
+ {layers: 'basic'} );
+
+ var ol_wms_untiled = new OpenLayers.Layer.WMS.Untiled(
+ "OpenLayers (WMS untiled)",
+ "http://labs.metacarta.com/wms/vmap0",
+ {layers: 'basic'} );
+
+ var imglayer = new OpenLayers.Layer.Image(
+ "City Lights (Image)",
+ "http://earthtrends.wri.org/images/maps/4_m_citylights_lg.gif",
+ new OpenLayers.Bounds(-180, -90, 180, 90),
+ new OpenLayers.Size(580, 288),
+ {maxResolution: 'auto', numZoomLevels: 5});
+ /*
+ var satellite_google = new OpenLayers.Layer.Google(
+ "Google Satellite",
+ {type: G_SATELLITE_MAP, 'maxZoomLevel':18} );*/
+
+ var dm_wms = new OpenLayers.Layer.WMS( "DM Solutions Demo",
+ "http://www2.dmsolutions.ca/cgi-bin/mswms_gmap",
+ {layers: "bathymetry,land_fn,park,drain_fn,drainage," +
+ "prov_bound,fedlimit,rail,road,popplace",
+ transparent: "true", format: "image/png" });
+
+ dm_wms.setVisibility(false);
+
+ map.addLayers([ol_wms, ol_wms_untiled, imglayer, dm_wms]);
+
+ if (!map.getCenter())
+ map.zoomToMaxExtent();
+ }
+ // -->
+ </script>
+ </head>
+ <body onload="init()">
+ <div id="map"></div>
+ </body>
+</html>
More information about the Commits
mailing list