[OpenLayers-Commits] r2071 - sandbox/vector/examples
commits at openlayers.org
commits at openlayers.org
Fri Dec 15 11:03:19 EST 2006
Author: crschmidt
Date: 2006-12-15 11:03:19 -0500 (Fri, 15 Dec 2006)
New Revision: 2071
Modified:
sandbox/vector/examples/wfs-T.html
Log:
Only setCenter if we don't have one.
Modified: sandbox/vector/examples/wfs-T.html
===================================================================
--- sandbox/vector/examples/wfs-T.html 2006-12-15 16:02:29 UTC (rev 2070)
+++ sandbox/vector/examples/wfs-T.html 2006-12-15 16:03:19 UTC (rev 2071)
@@ -40,9 +40,9 @@
{typename: "line", geometry_column: 'the_geom', maxZoomLevel : 4},
{featureClass: OpenLayers.Feature.WFS, style: new OpenLayers.Style({strokeColor: "red"})});
map.addLayer(line);
-
+ if (!map.getCenter()) {
map.setCenter(new OpenLayers.LonLat(0, 45), 6);
-
+ }
map.addControl(new OpenLayers.Control.MousePosition());
}
More information about the Commits
mailing list