[OpenLayers-Commits] r12331 - sandbox/camptocamp/clientzoom/examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Mon Sep 5 15:59:49 EDT 2011
Author: erilem
Date: 2011-09-05 12:59:48 -0700 (Mon, 05 Sep 2011)
New Revision: 12331
Modified:
sandbox/camptocamp/clientzoom/examples/clientzoom.html
sandbox/camptocamp/clientzoom/examples/clientzoom.js
Log:
better formatting in the clientzoom example
Modified: sandbox/camptocamp/clientzoom/examples/clientzoom.html
===================================================================
--- sandbox/camptocamp/clientzoom/examples/clientzoom.html 2011-09-05 19:29:39 UTC (rev 12330)
+++ sandbox/camptocamp/clientzoom/examples/clientzoom.html 2011-09-05 19:59:48 UTC (rev 12331)
@@ -27,7 +27,7 @@
<h1 id="title">Client Zoom</h1>
<div id="tags">
client zoom continuous zooming
- </div>
+ </div>
<p id="shortdesc">
This example demonstrates the <strong>"client zoom"</strong>
@@ -35,7 +35,7 @@
current resolution isn't supported by that layer's tile server.
</p>
-
+
<div id="map"></div>
<div id="docs">
Modified: sandbox/camptocamp/clientzoom/examples/clientzoom.js
===================================================================
--- sandbox/camptocamp/clientzoom/examples/clientzoom.js 2011-09-05 19:29:39 UTC (rev 12330)
+++ sandbox/camptocamp/clientzoom/examples/clientzoom.js 2011-09-05 19:59:48 UTC (rev 12331)
@@ -1,7 +1,7 @@
var map;
function init() {
-
+
map = new OpenLayers.Map({
div: "map",
projection: "EPSG:900913",
@@ -11,11 +11,25 @@
),
controls: [],
fractionalZoom: true
- });
-
+ });
+
var osm = new OpenLayers.Layer.OSM(null, null, {
- resolutions: [156543.03390625, 78271.516953125, 39135.7584765625, 19567.87923828125, 9783.939619140625, 4891.9698095703125, 2445.9849047851562, 1222.9924523925781, 611.4962261962891, 305.74811309814453, 152.87405654907226, 76.43702827453613, 38.218514137268066, 19.109257068634033, 9.554628534317017, 4.777314267158508, 2.388657133579254, 1.194328566789627, 0.5971642833948135, 0.25, 0.1, 0.05],
- serverResolutions: [156543.03390625, 78271.516953125, 39135.7584765625, 19567.87923828125, 9783.939619140625, 4891.9698095703125, 2445.9849047851562, 1222.9924523925781, 611.4962261962891, 305.74811309814453, 152.87405654907226, 76.43702827453613, 38.218514137268066, 19.109257068634033, 9.554628534317017, 4.777314267158508, 2.388657133579254, 1.194328566789627, 0.5971642833948135]
+ resolutions: [156543.03390625, 78271.516953125, 39135.7584765625,
+ 19567.87923828125, 9783.939619140625, 4891.9698095703125,
+ 2445.9849047851562, 1222.9924523925781, 611.4962261962891,
+ 305.74811309814453, 152.87405654907226, 76.43702827453613,
+ 38.218514137268066, 19.109257068634033, 9.554628534317017,
+ 4.777314267158508, 2.388657133579254, 1.194328566789627,
+ 0.5971642833948135, 0.25, 0.1, 0.05],
+ serverResolutions: [156543.03390625, 78271.516953125, 39135.7584765625,
+ 19567.87923828125, 9783.939619140625,
+ 4891.9698095703125, 2445.9849047851562,
+ 1222.9924523925781, 611.4962261962891,
+ 305.74811309814453, 152.87405654907226,
+ 76.43702827453613, 38.218514137268066,
+ 19.109257068634033, 9.554628534317017,
+ 4.777314267158508, 2.388657133579254,
+ 1.194328566789627, 0.5971642833948135]
});
map.addLayers([osm]);
More information about the Commits
mailing list