Geolocation Examples: JSLINT + IE Fixes, p=cmoullet, r=me (closes #3150)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11622 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -2,7 +2,7 @@ var style = {
|
|||||||
fillColor: '#000',
|
fillColor: '#000',
|
||||||
fillOpacity: 0.1,
|
fillOpacity: 0.1,
|
||||||
strokeWidth: 0
|
strokeWidth: 0
|
||||||
}
|
};
|
||||||
|
|
||||||
var map = new OpenLayers.Map('map');
|
var map = new OpenLayers.Map('map');
|
||||||
var layer = new OpenLayers.Layer.OSM( "Simple OSM Map");
|
var layer = new OpenLayers.Layer.OSM( "Simple OSM Map");
|
||||||
@@ -24,7 +24,9 @@ var pulsate = function(feature) {
|
|||||||
grow = 'up';
|
grow = 'up';
|
||||||
|
|
||||||
var resize = function(){
|
var resize = function(){
|
||||||
if (count>16) clearInterval(window.resizeInterval);
|
if (count>16) {
|
||||||
|
clearInterval(window.resizeInterval);
|
||||||
|
}
|
||||||
var interval = radius * 0.03;
|
var interval = radius * 0.03;
|
||||||
var ratio = interval/radius;
|
var ratio = interval/radius;
|
||||||
switch(count) {
|
switch(count) {
|
||||||
@@ -40,7 +42,7 @@ var pulsate = function(feature) {
|
|||||||
feature.geometry.resize(1+ratio, point);
|
feature.geometry.resize(1+ratio, point);
|
||||||
vector.drawFeature(feature);
|
vector.drawFeature(feature);
|
||||||
count++;
|
count++;
|
||||||
}
|
};
|
||||||
window.resizeInterval = window.setInterval(resize, 50, point, radius);
|
window.resizeInterval = window.setInterval(resize, 50, point, radius);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user