coding standards - getting rid of these tabs all at once
git-svn-id: http://svn.openlayers.org/trunk/openlayers@3686 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -436,7 +436,7 @@ OpenLayers.Bounds.prototype = {
|
||||
|
||||
//shift right?
|
||||
while ( newBounds.left < maxExtent.left &&
|
||||
(newBounds.right - rightTolerance) <= maxExtent.left ) {
|
||||
(newBounds.right - rightTolerance) <= maxExtent.left ) {
|
||||
newBounds = newBounds.add(maxExtent.getWidth(), 0);
|
||||
}
|
||||
|
||||
|
||||
@@ -15,46 +15,46 @@ OpenLayers.Feature = OpenLayers.Class.create();
|
||||
OpenLayers.Feature.prototype= {
|
||||
|
||||
/**
|
||||
* Property: events
|
||||
* {<OpenLayers.Events>}
|
||||
*/
|
||||
events: null,
|
||||
* Property: events
|
||||
* {<OpenLayers.Events>}
|
||||
*/
|
||||
events: null,
|
||||
|
||||
/**
|
||||
* Property: layer
|
||||
* {<OpenLayers.Layer>}
|
||||
*/
|
||||
layer: null,
|
||||
* Property: layer
|
||||
* {<OpenLayers.Layer>}
|
||||
*/
|
||||
layer: null,
|
||||
|
||||
/**
|
||||
* Property: id
|
||||
* {String}
|
||||
*/
|
||||
id: null,
|
||||
* Property: id
|
||||
* {String}
|
||||
*/
|
||||
id: null,
|
||||
|
||||
/**
|
||||
* Property: lonlat
|
||||
* {<OpenLayers.LonLat>}
|
||||
*/
|
||||
lonlat: null,
|
||||
* Property: lonlat
|
||||
* {<OpenLayers.LonLat>}
|
||||
*/
|
||||
lonlat: null,
|
||||
|
||||
/**
|
||||
* Property: data
|
||||
* {Object}
|
||||
*/
|
||||
data: null,
|
||||
* Property: data
|
||||
* {Object}
|
||||
*/
|
||||
data: null,
|
||||
|
||||
/**
|
||||
* Property: marker
|
||||
* {<OpenLayers.Marker>}
|
||||
*/
|
||||
marker: null,
|
||||
* Property: marker
|
||||
* {<OpenLayers.Marker>}
|
||||
*/
|
||||
marker: null,
|
||||
|
||||
/**
|
||||
* Property: popup
|
||||
* {<OpenLayers.Popup>}
|
||||
*/
|
||||
popup: null,
|
||||
* Property: popup
|
||||
* {<OpenLayers.Popup>}
|
||||
*/
|
||||
popup: null,
|
||||
|
||||
/**
|
||||
* Constructor: OpenLayers.Feature
|
||||
|
||||
@@ -29,34 +29,34 @@ OpenLayers.Feature.Vector.prototype =
|
||||
OpenLayers.Class.inherit( OpenLayers.Feature, {
|
||||
|
||||
/**
|
||||
* Property: fid
|
||||
* {String}
|
||||
*/
|
||||
fid: null,
|
||||
* Property: fid
|
||||
* {String}
|
||||
*/
|
||||
fid: null,
|
||||
|
||||
/**
|
||||
* Property: geometry
|
||||
* {<OpenLayers.Geometry>}
|
||||
*/
|
||||
geometry: null,
|
||||
* Property: geometry
|
||||
* {<OpenLayers.Geometry>}
|
||||
*/
|
||||
geometry: null,
|
||||
|
||||
/**
|
||||
* Property: attributes
|
||||
* {Object}
|
||||
*/
|
||||
attributes: null,
|
||||
* Property: attributes
|
||||
* {Object}
|
||||
*/
|
||||
attributes: null,
|
||||
|
||||
/**
|
||||
* Property: state
|
||||
* {String}
|
||||
*/
|
||||
state: null,
|
||||
* Property: state
|
||||
* {String}
|
||||
*/
|
||||
state: null,
|
||||
|
||||
/**
|
||||
* Property: style
|
||||
* {Object}
|
||||
*/
|
||||
style: null,
|
||||
* Property: style
|
||||
* {Object}
|
||||
*/
|
||||
style: null,
|
||||
|
||||
/**
|
||||
* Constructor: OpenLayers.Feature.Vector
|
||||
|
||||
@@ -59,8 +59,8 @@ OpenLayers.Format.WFS.prototype =
|
||||
write: function(features) {
|
||||
|
||||
var transaction = document.createElementNS('http://www.opengis.net/wfs', 'wfs:Transaction');
|
||||
transaction.setAttribute("version","1.0.0");
|
||||
transaction.setAttribute("service","WFS");
|
||||
transaction.setAttribute("version","1.0.0");
|
||||
transaction.setAttribute("service","WFS");
|
||||
for (var i=0; i < features.length; i++) {
|
||||
switch (features[i].state) {
|
||||
case OpenLayers.State.INSERT:
|
||||
|
||||
@@ -16,10 +16,10 @@
|
||||
OpenLayers.Handler.Box = OpenLayers.Class.create();
|
||||
OpenLayers.Handler.Box.prototype = OpenLayers.Class.inherit( OpenLayers.Handler, {
|
||||
/**
|
||||
* Property: dragHandler
|
||||
* {<OpenLayers.Handler.Drag>}
|
||||
*/
|
||||
dragHandler: null,
|
||||
* Property: dragHandler
|
||||
* {<OpenLayers.Handler.Drag>}
|
||||
*/
|
||||
dragHandler: null,
|
||||
|
||||
/**
|
||||
* Constructor: OpenLayers.Handler.Box
|
||||
|
||||
@@ -233,7 +233,7 @@ OpenLayers.Handler.Point.prototype =
|
||||
* Return:
|
||||
* {Boolean} Allow event propagation
|
||||
*/
|
||||
mousemove: function (evt) {
|
||||
mousemove: function (evt) {
|
||||
if(this.drawing) {
|
||||
var lonlat = this.map.getLonLatFromPixel(evt.xy);
|
||||
this.point.geometry.x = lonlat.lon;
|
||||
@@ -254,7 +254,7 @@ OpenLayers.Handler.Point.prototype =
|
||||
* Return:
|
||||
* {Boolean} Allow event propagation
|
||||
*/
|
||||
mouseup: function (evt) {
|
||||
mouseup: function (evt) {
|
||||
if(this.drawing) {
|
||||
this.finalize();
|
||||
return false;
|
||||
|
||||
@@ -10,40 +10,40 @@ OpenLayers.Icon = OpenLayers.Class.create();
|
||||
OpenLayers.Icon.prototype = {
|
||||
|
||||
/**
|
||||
* Property: url
|
||||
* {String} image url
|
||||
*/
|
||||
url: null,
|
||||
* Property: url
|
||||
* {String} image url
|
||||
*/
|
||||
url: null,
|
||||
|
||||
/**
|
||||
* Property: size
|
||||
* {<OpenLayers.Size>}
|
||||
*/
|
||||
size: null,
|
||||
* Property: size
|
||||
* {<OpenLayers.Size>}
|
||||
*/
|
||||
size: null,
|
||||
|
||||
/**
|
||||
* Property: offset
|
||||
* {<OpenLayers.Pixel>} distance in pixels to offset the image when being rendered
|
||||
*/
|
||||
offset: null,
|
||||
* Property: offset
|
||||
* {<OpenLayers.Pixel>} distance in pixels to offset the image when being rendered
|
||||
*/
|
||||
offset: null,
|
||||
|
||||
/**
|
||||
* Property: calculateOffset
|
||||
* {<OpenLayers.Pixel>} Function to calculate the offset (based on the size)
|
||||
*/
|
||||
calculateOffset: null,
|
||||
* Property: calculateOffset
|
||||
* {<OpenLayers.Pixel>} Function to calculate the offset (based on the size)
|
||||
*/
|
||||
calculateOffset: null,
|
||||
|
||||
/**
|
||||
* Property: imageDiv
|
||||
* {DOMElement}
|
||||
*/
|
||||
imageDiv: null,
|
||||
* Property: imageDiv
|
||||
* {DOMElement}
|
||||
*/
|
||||
imageDiv: null,
|
||||
|
||||
/**
|
||||
* Property: px
|
||||
* {<OpenLayers.Pixel>}
|
||||
*/
|
||||
px: null,
|
||||
* Property: px
|
||||
* {<OpenLayers.Pixel>}
|
||||
*/
|
||||
px: null,
|
||||
|
||||
/**
|
||||
* Constructor: OpenLayers.Icon
|
||||
|
||||
@@ -19,29 +19,29 @@ OpenLayers.Layer.GeoRSS.prototype =
|
||||
OpenLayers.Class.inherit( OpenLayers.Layer.Markers, {
|
||||
|
||||
/**
|
||||
* Property: location
|
||||
* {String} store url of text file
|
||||
*/
|
||||
location: null,
|
||||
* Property: location
|
||||
* {String} store url of text file
|
||||
*/
|
||||
location: null,
|
||||
|
||||
/**
|
||||
* Property: features
|
||||
* Array({<OpenLayers.Feature>})
|
||||
*/
|
||||
features: null,
|
||||
* Property: features
|
||||
* Array({<OpenLayers.Feature>})
|
||||
*/
|
||||
features: null,
|
||||
|
||||
/**
|
||||
* Property: selectedFeature
|
||||
* {<OpenLayers.Feature>}
|
||||
*/
|
||||
selectedFeature: null,
|
||||
* Property: selectedFeature
|
||||
* {<OpenLayers.Feature>}
|
||||
*/
|
||||
selectedFeature: null,
|
||||
|
||||
/**
|
||||
* Property: icon
|
||||
* {<OpenLayers.Icon>}
|
||||
*/
|
||||
icon: null,
|
||||
|
||||
/**
|
||||
* Property: icon
|
||||
* {<OpenLayers.Icon>}
|
||||
*/
|
||||
icon: null,
|
||||
|
||||
/**
|
||||
* Constructor: OpenLayers.Layer.GeoRSS
|
||||
* Create a GeoRSS Layer.
|
||||
|
||||
@@ -16,26 +16,26 @@ OpenLayers.Layer.Markers.prototype =
|
||||
OpenLayers.Class.inherit( OpenLayers.Layer, {
|
||||
|
||||
/**
|
||||
* APIProperty: isBaseLayer
|
||||
* {Boolean} Markers layer is never a base layer.
|
||||
*/
|
||||
isBaseLayer: false,
|
||||
* APIProperty: isBaseLayer
|
||||
* {Boolean} Markers layer is never a base layer.
|
||||
*/
|
||||
isBaseLayer: false,
|
||||
|
||||
/**
|
||||
* Property: markers
|
||||
* Array({<OpenLayers.Marker>}) internal marker list
|
||||
*/
|
||||
markers: null,
|
||||
* Property: markers
|
||||
* Array({<OpenLayers.Marker>}) internal marker list
|
||||
*/
|
||||
markers: null,
|
||||
|
||||
|
||||
/**
|
||||
* Property: drawn
|
||||
* Property: drawn
|
||||
* {Boolean} internal state of drawing. This is a workaround for the fact
|
||||
* that the map does not call moveTo with a zoomChanged when the map is
|
||||
* first starting up. This lets us catch the case where we have *never*
|
||||
* drawn the layer, and draw it even if the zoom hasn't changed.
|
||||
*/
|
||||
drawn: false,
|
||||
*/
|
||||
drawn: false,
|
||||
|
||||
/**
|
||||
* Constructor: OpenLayers.Layer.Markers
|
||||
|
||||
@@ -15,28 +15,28 @@ OpenLayers.Marker = OpenLayers.Class.create();
|
||||
OpenLayers.Marker.prototype = {
|
||||
|
||||
/**
|
||||
* Property: icon
|
||||
* {<OpenLayers.Icon>}
|
||||
*/
|
||||
icon: null,
|
||||
* Property: icon
|
||||
* {<OpenLayers.Icon>}
|
||||
*/
|
||||
icon: null,
|
||||
|
||||
/**
|
||||
* Property: lonlat
|
||||
* {<OpenLayers.LonLat>} location of object
|
||||
*/
|
||||
lonlat: null,
|
||||
* Property: lonlat
|
||||
* {<OpenLayers.LonLat>} location of object
|
||||
*/
|
||||
lonlat: null,
|
||||
|
||||
/**
|
||||
* Property: events
|
||||
* {<OpenLayers.Events>}
|
||||
*/
|
||||
events: null,
|
||||
* Property: events
|
||||
* {<OpenLayers.Events>}
|
||||
*/
|
||||
events: null,
|
||||
|
||||
/**
|
||||
* Property: map
|
||||
* {<OpenLayers.Map>}
|
||||
*/
|
||||
map: null,
|
||||
* Property: map
|
||||
* {<OpenLayers.Map>}
|
||||
*/
|
||||
map: null,
|
||||
|
||||
/**
|
||||
* Constructor: OpenLayers.Marker
|
||||
|
||||
@@ -16,16 +16,16 @@ OpenLayers.Marker.Box.prototype =
|
||||
OpenLayers.Class.inherit( OpenLayers.Marker, {
|
||||
|
||||
/**
|
||||
* Property: bounds
|
||||
* {<OpenLayers.Bounds>}
|
||||
*/
|
||||
bounds: null,
|
||||
* Property: bounds
|
||||
* {<OpenLayers.Bounds>}
|
||||
*/
|
||||
bounds: null,
|
||||
|
||||
/**
|
||||
* Property: div
|
||||
* {DOMElement}
|
||||
*/
|
||||
div: null,
|
||||
* Property: div
|
||||
* {DOMElement}
|
||||
*/
|
||||
div: null,
|
||||
|
||||
/**
|
||||
* Constructor: OpenLayers.Marker.Box
|
||||
|
||||
@@ -17,10 +17,10 @@ OpenLayers.Popup.BORDER = "0px";
|
||||
OpenLayers.Popup.prototype = {
|
||||
|
||||
/**
|
||||
* Property: events
|
||||
* {<OpenLayers.Events>}
|
||||
*/
|
||||
events: null,
|
||||
* Property: events
|
||||
* {<OpenLayers.Events>}
|
||||
*/
|
||||
events: null,
|
||||
|
||||
/** Property: id
|
||||
* {String}
|
||||
@@ -28,71 +28,71 @@ OpenLayers.Popup.prototype = {
|
||||
id: "",
|
||||
|
||||
/**
|
||||
* Property: lonlat
|
||||
* {<OpenLayers.LonLat>}
|
||||
*/
|
||||
lonlat: null,
|
||||
* Property: lonlat
|
||||
* {<OpenLayers.LonLat>}
|
||||
*/
|
||||
lonlat: null,
|
||||
|
||||
/**
|
||||
* Property: div
|
||||
* {DOMElement}
|
||||
*/
|
||||
div: null,
|
||||
* Property: div
|
||||
* {DOMElement}
|
||||
*/
|
||||
div: null,
|
||||
|
||||
/**
|
||||
* Property: size
|
||||
* {<OpenLayers.Size>}
|
||||
*/
|
||||
size: null,
|
||||
* Property: size
|
||||
* {<OpenLayers.Size>}
|
||||
*/
|
||||
size: null,
|
||||
|
||||
/**
|
||||
* Property: contentHTML
|
||||
* {String}
|
||||
*/
|
||||
contentHTML: "",
|
||||
* Property: contentHTML
|
||||
* {String}
|
||||
*/
|
||||
contentHTML: "",
|
||||
|
||||
/**
|
||||
* Property: backgroundColor
|
||||
* {String}
|
||||
*/
|
||||
backgroundColor: "",
|
||||
* Property: backgroundColor
|
||||
* {String}
|
||||
*/
|
||||
backgroundColor: "",
|
||||
|
||||
/**
|
||||
* Property: opacity
|
||||
* {float}
|
||||
*/
|
||||
opacity: "",
|
||||
* Property: opacity
|
||||
* {float}
|
||||
*/
|
||||
opacity: "",
|
||||
|
||||
/**
|
||||
* Property: border
|
||||
* {String}
|
||||
*/
|
||||
border: "",
|
||||
* Property: border
|
||||
* {String}
|
||||
*/
|
||||
border: "",
|
||||
|
||||
/**
|
||||
* Property: contentDiv
|
||||
* {DOMElement}
|
||||
*/
|
||||
contentDiv: null,
|
||||
* Property: contentDiv
|
||||
* {DOMElement}
|
||||
*/
|
||||
contentDiv: null,
|
||||
|
||||
/**
|
||||
* Property: groupDiv
|
||||
* {DOMElement}
|
||||
*/
|
||||
groupDiv: null,
|
||||
* Property: groupDiv
|
||||
* {DOMElement}
|
||||
*/
|
||||
groupDiv: null,
|
||||
|
||||
/**
|
||||
* Property: padding
|
||||
* {int}
|
||||
*/
|
||||
padding: 5,
|
||||
* Property: padding
|
||||
* {int}
|
||||
*/
|
||||
padding: 5,
|
||||
|
||||
|
||||
/**
|
||||
* Property: map
|
||||
* {<OpenLayers.Map>} this gets set in Map.js when the popup is added to the map
|
||||
*/
|
||||
map: null,
|
||||
* Property: map
|
||||
* {<OpenLayers.Map>} this gets set in Map.js when the popup is added to the map
|
||||
*/
|
||||
map: null,
|
||||
|
||||
/**
|
||||
* Constructor: OpenLayers.Popup
|
||||
|
||||
@@ -21,16 +21,16 @@ OpenLayers.Tile = OpenLayers.Class.create();
|
||||
OpenLayers.Tile.prototype = {
|
||||
|
||||
/**
|
||||
* Property: id
|
||||
* {String} null
|
||||
*/
|
||||
id: null,
|
||||
* Property: id
|
||||
* {String} null
|
||||
*/
|
||||
id: null,
|
||||
|
||||
/**
|
||||
* Property: layer
|
||||
* {<OpenLayers.Layer>} layer the tile is attached to
|
||||
*/
|
||||
layer: null,
|
||||
* Property: layer
|
||||
* {<OpenLayers.Layer>} layer the tile is attached to
|
||||
*/
|
||||
layer: null,
|
||||
|
||||
/**
|
||||
* Property: url
|
||||
@@ -43,28 +43,28 @@ OpenLayers.Tile.prototype = {
|
||||
url: null,
|
||||
|
||||
/**
|
||||
* APIProperty: bounds
|
||||
* {<OpenLayers.Bounds>} null
|
||||
*/
|
||||
bounds: null,
|
||||
* APIProperty: bounds
|
||||
* {<OpenLayers.Bounds>} null
|
||||
*/
|
||||
bounds: null,
|
||||
|
||||
/**
|
||||
* Property: size
|
||||
* {<OpenLayers.Size>} null
|
||||
*/
|
||||
size: null,
|
||||
* Property: size
|
||||
* {<OpenLayers.Size>} null
|
||||
*/
|
||||
size: null,
|
||||
|
||||
/**
|
||||
* Property: position
|
||||
* {<OpenLayers.Pixel>} Top Left pixel of the tile
|
||||
*/
|
||||
* Property: position
|
||||
* {<OpenLayers.Pixel>} Top Left pixel of the tile
|
||||
*/
|
||||
position: null,
|
||||
|
||||
/**
|
||||
* Property: drawn
|
||||
* {Boolean} false
|
||||
*/
|
||||
drawn: false,
|
||||
* Property: drawn
|
||||
* {Boolean} false
|
||||
*/
|
||||
drawn: false,
|
||||
|
||||
/** TBD 3.0 -- remove 'url' from the list of parameters to the constructor.
|
||||
* there is no need for the base tile class to have a url.
|
||||
|
||||
@@ -157,7 +157,7 @@ OpenLayers.Tile.Image.prototype =
|
||||
|
||||
var offset = this.layer.imageOffset;
|
||||
var size = this.layer.getImageSize();
|
||||
|
||||
|
||||
if (this.layer.alpha) {
|
||||
this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null,
|
||||
offset,
|
||||
|
||||
@@ -19,16 +19,16 @@ OpenLayers.Tile.WFS.prototype =
|
||||
OpenLayers.Class.inherit( OpenLayers.Tile, {
|
||||
|
||||
/**
|
||||
* Property: features
|
||||
* {Array(<OpenLayers.Feature>)} list of features in this tile
|
||||
*/
|
||||
features: null,
|
||||
* Property: features
|
||||
* {Array(<OpenLayers.Feature>)} list of features in this tile
|
||||
*/
|
||||
features: null,
|
||||
|
||||
/**
|
||||
* Property: url
|
||||
* {String}
|
||||
*/
|
||||
url: null,
|
||||
* Property: url
|
||||
* {String}
|
||||
*/
|
||||
url: null,
|
||||
|
||||
/** TBD 3.0 - reorder the parameters to the init function to put URL
|
||||
* as last, so we can continue to call tile.initialize()
|
||||
|
||||
Reference in New Issue
Block a user