Replace tabs with spaces.
This commit is contained in:
@@ -111,7 +111,7 @@ OpenLayers.Format.GeoRSS = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
var box = this.getElementsByTagNameNS(item,
|
var box = this.getElementsByTagNameNS(item,
|
||||||
this.georssns,
|
this.georssns,
|
||||||
"box");
|
"box");
|
||||||
|
|
||||||
if (point.length > 0 || (lat.length > 0 && lon.length > 0)) {
|
if (point.length > 0 || (lat.length > 0 && lon.length > 0)) {
|
||||||
var location;
|
var location;
|
||||||
if (point.length > 0) {
|
if (point.length > 0) {
|
||||||
@@ -168,7 +168,7 @@ OpenLayers.Format.GeoRSS = OpenLayers.Class(OpenLayers.Format.XML, {
|
|||||||
point = new OpenLayers.Geometry.Point(coords[1], coords[0]);
|
point = new OpenLayers.Geometry.Point(coords[1], coords[0]);
|
||||||
components.push(point);
|
components.push(point);
|
||||||
}
|
}
|
||||||
geometry = new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing(components)]);
|
geometry = new OpenLayers.Geometry.Polygon([new OpenLayers.Geometry.LinearRing(components)]);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (geometry && this.internalProjection && this.externalProjection) {
|
if (geometry && this.internalProjection && this.externalProjection) {
|
||||||
|
|||||||
@@ -64,7 +64,7 @@ OpenLayers.Format.OWSCommon.v1_1_0 = OpenLayers.Class(OpenLayers.Format.OWSCommo
|
|||||||
range.maxValue = this.getChildValue(node);
|
range.maxValue = this.getChildValue(node);
|
||||||
},
|
},
|
||||||
"Identifier": function(node, obj) {
|
"Identifier": function(node, obj) {
|
||||||
obj.identifier = this.getChildValue(node);
|
obj.identifier = this.getChildValue(node);
|
||||||
},
|
},
|
||||||
"SupportedCRS": function(node, obj) {
|
"SupportedCRS": function(node, obj) {
|
||||||
obj.supportedCRS = this.getChildValue(node);
|
obj.supportedCRS = this.getChildValue(node);
|
||||||
|
|||||||
+11
-12
@@ -513,10 +513,9 @@ OpenLayers.Popup = OpenLayers.Class({
|
|||||||
this.contentDiv.innerHTML +
|
this.contentDiv.innerHTML +
|
||||||
"</div>";
|
"</div>";
|
||||||
|
|
||||||
var containerElement = (this.map) ? this.map.div
|
var containerElement = (this.map) ? this.map.div : document.body;
|
||||||
: document.body;
|
|
||||||
var realSize = OpenLayers.Util.getRenderedDimensions(
|
var realSize = OpenLayers.Util.getRenderedDimensions(
|
||||||
preparedHTML, null, {
|
preparedHTML, null, {
|
||||||
displayClass: this.displayClass,
|
displayClass: this.displayClass,
|
||||||
containerElement: containerElement
|
containerElement: containerElement
|
||||||
}
|
}
|
||||||
@@ -839,12 +838,12 @@ OpenLayers.Popup = OpenLayers.Class({
|
|||||||
var contentDivPadding = this._contentDivPadding;
|
var contentDivPadding = this._contentDivPadding;
|
||||||
if (!contentDivPadding) {
|
if (!contentDivPadding) {
|
||||||
|
|
||||||
if (this.div.parentNode == null) {
|
if (this.div.parentNode == null) {
|
||||||
//make the div invisible and add it to the page
|
//make the div invisible and add it to the page
|
||||||
this.div.style.display = "none";
|
this.div.style.display = "none";
|
||||||
document.body.appendChild(this.div);
|
document.body.appendChild(this.div);
|
||||||
}
|
}
|
||||||
|
|
||||||
//read the padding settings from css, put them in an OL.Bounds
|
//read the padding settings from css, put them in an OL.Bounds
|
||||||
contentDivPadding = new OpenLayers.Bounds(
|
contentDivPadding = new OpenLayers.Bounds(
|
||||||
OpenLayers.Element.getStyle(this.contentDiv, "padding-left"),
|
OpenLayers.Element.getStyle(this.contentDiv, "padding-left"),
|
||||||
@@ -857,9 +856,9 @@ OpenLayers.Popup = OpenLayers.Class({
|
|||||||
this._contentDivPadding = contentDivPadding;
|
this._contentDivPadding = contentDivPadding;
|
||||||
|
|
||||||
if (this.div.parentNode == document.body) {
|
if (this.div.parentNode == document.body) {
|
||||||
//remove the div from the page and make it visible again
|
//remove the div from the page and make it visible again
|
||||||
document.body.removeChild(this.div);
|
document.body.removeChild(this.div);
|
||||||
this.div.style.display = "";
|
this.div.style.display = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return contentDivPadding;
|
return contentDivPadding;
|
||||||
|
|||||||
Reference in New Issue
Block a user