X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/e94ba23d2a349c340f97027f2e066f2cc6b43f72..817434a2e6f1510bf805e35f0c879b005ebe11dd:/public/openlayers/OpenLayers.js diff --git a/public/openlayers/OpenLayers.js b/public/openlayers/OpenLayers.js index b9c533eed..8d59c1114 100644 --- a/public/openlayers/OpenLayers.js +++ b/public/openlayers/OpenLayers.js @@ -925,7 +925,18 @@ if(!intersect){for(i=0,len=geometry.components.length;i1)){for(var i=1,len=this.components.length;i2)){OpenLayers.Geometry.Collection.prototype.removeComponent.apply(this,arguments);}},intersects:function(geometry){var intersect=false;var type=geometry.CLASS_NAME;if(type=="OpenLayers.Geometry.LineString"||type=="OpenLayers.Geometry.LinearRing"||type=="OpenLayers.Geometry.Point"){var segs1=this.getSortedSegments();var segs2;if(type=="OpenLayers.Geometry.Point"){segs2=[{x1:geometry.x,y1:geometry.y,x2:geometry.x,y2:geometry.y}];}else{segs2=geometry.getSortedSegments();}