[OpenLayers-Commits] r7472 - trunk/openlayers/examples
commits at openlayers.org
commits at openlayers.org
Mon Jul 7 12:49:17 EDT 2008
Author: tschaub
Date: 2008-07-07 12:49:17 -0400 (Mon, 07 Jul 2008)
New Revision: 7472
Removed:
trunk/openlayers/examples/smoothDragging.html
Modified:
trunk/openlayers/examples/editingtoolbar-outside.html
trunk/openlayers/examples/intersects.html
trunk/openlayers/examples/sld.html
Log:
Adding a few example descriptions, removing a redundant example.
Modified: trunk/openlayers/examples/editingtoolbar-outside.html
===================================================================
--- trunk/openlayers/examples/editingtoolbar-outside.html 2008-07-07 14:34:07 UTC (rev 7471)
+++ trunk/openlayers/examples/editingtoolbar-outside.html 2008-07-07 16:49:17 UTC (rev 7472)
@@ -42,6 +42,9 @@
</head>
<body onload="init()">
<h1 id="title">OpenLayers EditingToolbar Outside Viewport</h1>
+ <p id="shortdesc">
+ Display an editing toolbar panel outside the map viewport.
+ </p>
<div id="map" class="smallmap"></div>
<div id="panel" class="olControlEditingToolbar"></div>
</body>
Modified: trunk/openlayers/examples/intersects.html
===================================================================
--- trunk/openlayers/examples/intersects.html 2008-07-07 14:34:07 UTC (rev 7471)
+++ trunk/openlayers/examples/intersects.html 2008-07-07 16:49:17 UTC (rev 7472)
@@ -161,6 +161,9 @@
<body onload="init()">
<div id="leftcol">
<h1 id="title">OpenLayers Geometry Intersection Example</h1>
+ <p id="shortdesc">
+ Use of geometry.intersects method for testing geometry intersections.
+ </p>
<div id="map" class="smallmap"></div>
<div id="input">
<textarea id="text"></textarea>
Modified: trunk/openlayers/examples/sld.html
===================================================================
--- trunk/openlayers/examples/sld.html 2008-07-07 14:34:07 UTC (rev 7471)
+++ trunk/openlayers/examples/sld.html 2008-07-07 16:49:17 UTC (rev 7472)
@@ -91,8 +91,11 @@
</head>
<body onload="init()">
<h1 id="title">Styled Layer Descriptor (SLD) Example</h1>
+ <p id="shortdesc">
+ Parsing SLD and applying styles to a vector layer.
+ </p>
<div id="map" class="smallmap"></div>
- <p>This example uses a <a target="_blank" href="tasmania/sld-tasmania.xml">SLD
+ <p id="docs">This example uses a <a target="_blank" href="tasmania/sld-tasmania.xml">SLD
file</a> to style the vector features. To construct layers that use styles
from SLD, create a StyleMap for the layer that uses one of the userStyles in the
namedLayers object of the return from format.read().</p>
Deleted: trunk/openlayers/examples/smoothDragging.html
===================================================================
--- trunk/openlayers/examples/smoothDragging.html 2008-07-07 14:34:07 UTC (rev 7471)
+++ trunk/openlayers/examples/smoothDragging.html 2008-07-07 16:49:17 UTC (rev 7472)
@@ -1,75 +0,0 @@
-<html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <link rel="stylesheet" href="../theme/default/style.css" type="text/css" />
- <link rel="stylesheet" href="style.css" type="text/css" />
- <script src='http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'></script>
- <script src='http://dev.virtualearth.net/mapcontrol/v3/mapcontrol.js'></script>
- <script src="http://api.maps.yahoo.com/ajaxymap?v=3.0&appid=euzuro-openlayers"></script>
-
- <script src="../lib/OpenLayers.js"></script>
- <script type="text/javascript">
-
- // make map available for easy debugging
- var map;
-
- // avoid pink tiles
- OpenLayers.IMAGE_RELOAD_ATTEMPTS = 3;
- OpenLayers.Util.onImageLoadErrorColor = "transparent";
-
- function init(){
- var options = {
- projection: "EPSG:900913",
- units: "m",
- maxResolution: 156543.0339,
- maxExtent: new OpenLayers.Bounds(-20037508, -20037508,
- 20037508, 20037508.34)
- };
- map = new OpenLayers.Map('map', options);
-
- // create Google Mercator layers
- var gmap = new OpenLayers.Layer.Google(
- "Google Streets",
- {'sphericalMercator': true}
- );
-
- // create Virtual Earth layers
- var ve = new OpenLayers.Layer.VirtualEarth(
- "Virtual Earth Raods",
- {'type': VEMapStyle.Road, 'sphericalMercator': true}
- );
-
- // create Virtual Earth layers
- var ve = new OpenLayers.Layer.VirtualEarth(
- "Virtual Earth Raods",
- {'type': VEMapStyle.Road, 'sphericalMercator': true}
- );
-
- // create Yahoo layer
- var yahoo = new OpenLayers.Layer.Yahoo(
- "Yahoo Street",
- {'sphericalMercator': true}
- );
-
- // create WMS layer
- var wms = new OpenLayers.Layer.WMS(
- "World Map",
- "http://world.freemap.in/tiles/",
- {'layers': 'factbook-overlay', 'format':'png'},
- {
- 'opacity': 0.4,
- 'isBaseLayer': false,'wrapDateLine': true
- }
- );
-
- map.addLayers([gmap, wms, ve, yahoo]);
- map.addControl(new OpenLayers.Control.LayerSwitcher());
- map.zoomToMaxExtent()
- }
-
- </script>
- </head>
- <body onload="init()">
- <h1 id="title">OpenLayers With Responsive Dragging</h1>
- <div id="map" class="smallmap"></div>
- </body>
-</html>
More information about the Commits
mailing list