[OpenLayers-Commits] r11639 - sandbox/sbrunner/headers/examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Mon Mar 7 04:25:08 EST 2011
Author: sbrunner
Date: 2011-03-07 01:25:07 -0800 (Mon, 07 Mar 2011)
New Revision: 11639
Added:
sandbox/sbrunner/headers/examples/controls-xhtml-transitional.html
Log:
xhtml -> transitional, strict
Added: sandbox/sbrunner/headers/examples/controls-xhtml-transitional.html
===================================================================
--- sandbox/sbrunner/headers/examples/controls-xhtml-transitional.html (rev 0)
+++ sandbox/sbrunner/headers/examples/controls-xhtml-transitional.html 2011-03-07 09:25:07 UTC (rev 11639)
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" />
+ <meta name="apple-mobile-web-app-capable" content="yes" />
+ <title>OpenLayers Map Controls Example</title>
+
+ <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
+ <link rel="stylesheet" href="style.css" type="text/css" />
+ <script src="../lib/OpenLayers.js"></script>
+ <script type="text/javascript">
+ var map;
+ function init(){
+ map = new OpenLayers.Map('map', {
+ controls: [
+ new OpenLayers.Control.Navigation(),
+ new OpenLayers.Control.PanZoomBar(),
+ new OpenLayers.Control.LayerSwitcher({'ascending':false}),
+ new OpenLayers.Control.Permalink(),
+ new OpenLayers.Control.ScaleLine(),
+ new OpenLayers.Control.Permalink('permalink'),
+ new OpenLayers.Control.MousePosition(),
+ new OpenLayers.Control.OverviewMap(),
+ new OpenLayers.Control.KeyboardDefaults()
+ ],
+ numZoomLevels: 6
+
+ });
+
+ var ol_wms = new OpenLayers.Layer.WMS(
+ "OpenLayers WMS",
+ "http://vmap0.tiles.osgeo.org/wms/vmap0",
+ {layers: 'basic'}
+ );
+
+ var gwc = new OpenLayers.Layer.WMS(
+ "Global Imagery",
+ "http://maps.opengeo.org/geowebcache/service/wms",
+ {layers: "bluemarble"},
+ {tileOrigin: new OpenLayers.LonLat(-180, -90)}
+ );
+ 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"},
+ {visibility: false}
+ );
+
+ map.addLayers([ol_wms, gwc, dm_wms]);
+
+ if (!map.getCenter()) {
+ map.zoomToMaxExtent();
+ }
+ }
+ </script>
+ </head>
+ <body onload="init()">
+ <h1 id="title">Map Controls Example</h1>
+
+ <div id="tags">
+ control, basic
+ </div>
+
+ <p id="shortdesc">
+ Attach zooming, panning, layer switcher, overview map, and permalink map controls to an OpenLayers window.
+ </p>
+
+ <div id="map" class="smallmap"></div>
+ <a href="#" id="permalink">Permalink</a>
+
+ <div id="docs"></div>
+ </body>
+</html>
More information about the Commits
mailing list