[OpenLayers-Commits] r11622 - trunk/openlayers/examples
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Sun Mar 6 05:08:38 EST 2011
Author: bartvde
Date: 2011-03-06 02:08:35 -0800 (Sun, 06 Mar 2011)
New Revision: 11622
Modified:
trunk/openlayers/examples/geolocation.js
Log:
Geolocation Examples: JSLINT + IE Fixes, p=cmoullet, r=me (closes #3150)
Modified: trunk/openlayers/examples/geolocation.js
===================================================================
--- trunk/openlayers/examples/geolocation.js 2011-03-06 06:54:19 UTC (rev 11621)
+++ trunk/openlayers/examples/geolocation.js 2011-03-06 10:08:35 UTC (rev 11622)
@@ -2,7 +2,7 @@
fillColor: '#000',
fillOpacity: 0.1,
strokeWidth: 0
-}
+};
var map = new OpenLayers.Map('map');
var layer = new OpenLayers.Layer.OSM( "Simple OSM Map");
@@ -24,7 +24,9 @@
grow = 'up';
var resize = function(){
- if (count>16) clearInterval(window.resizeInterval);
+ if (count>16) {
+ clearInterval(window.resizeInterval);
+ }
var interval = radius * 0.03;
var ratio = interval/radius;
switch(count) {
@@ -40,7 +42,7 @@
feature.geometry.resize(1+ratio, point);
vector.drawFeature(feature);
count++;
- }
+ };
window.resizeInterval = window.setInterval(resize, 50, point, radius);
};
More information about the Commits
mailing list