Consistent curly brace style
This commit is contained in:
@@ -238,16 +238,14 @@ ol.control.Attribution.prototype.updateElement_ = function(frameState) {
|
|||||||
this.attributionElementRenderedVisible_[attributionKey] = true;
|
this.attributionElementRenderedVisible_[attributionKey] = true;
|
||||||
}
|
}
|
||||||
delete visibleAttributions[attributionKey];
|
delete visibleAttributions[attributionKey];
|
||||||
}
|
} else if (attributionKey in hiddenAttributions) {
|
||||||
else if (attributionKey in hiddenAttributions) {
|
|
||||||
if (this.attributionElementRenderedVisible_[attributionKey]) {
|
if (this.attributionElementRenderedVisible_[attributionKey]) {
|
||||||
goog.style.setElementShown(
|
goog.style.setElementShown(
|
||||||
this.attributionElements_[attributionKey], false);
|
this.attributionElements_[attributionKey], false);
|
||||||
delete this.attributionElementRenderedVisible_[attributionKey];
|
delete this.attributionElementRenderedVisible_[attributionKey];
|
||||||
}
|
}
|
||||||
delete hiddenAttributions[attributionKey];
|
delete hiddenAttributions[attributionKey];
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
goog.dom.removeNode(this.attributionElements_[attributionKey]);
|
goog.dom.removeNode(this.attributionElements_[attributionKey]);
|
||||||
delete this.attributionElements_[attributionKey];
|
delete this.attributionElements_[attributionKey];
|
||||||
delete this.attributionElementRenderedVisible_[attributionKey];
|
delete this.attributionElementRenderedVisible_[attributionKey];
|
||||||
|
|||||||
@@ -195,8 +195,7 @@ ol.interaction.Translate.handleDragEvent_ = function(event) {
|
|||||||
* @this {ol.interaction.Translate}
|
* @this {ol.interaction.Translate}
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.interaction.Translate.handleMoveEvent_ = function(event)
|
ol.interaction.Translate.handleMoveEvent_ = function(event) {
|
||||||
{
|
|
||||||
var elem = event.map.getTargetElement();
|
var elem = event.map.getTargetElement();
|
||||||
var intersectingFeature = event.map.forEachFeatureAtPixel(event.pixel,
|
var intersectingFeature = event.map.forEachFeatureAtPixel(event.pixel,
|
||||||
function(feature) {
|
function(feature) {
|
||||||
|
|||||||
@@ -2081,7 +2081,9 @@ ol.render.canvas.ReplayGroup.prototype.replayHitDetection_ = function(
|
|||||||
featureCallback, opt_hitExtent) {
|
featureCallback, opt_hitExtent) {
|
||||||
/** @type {Array.<number>} */
|
/** @type {Array.<number>} */
|
||||||
var zs = Object.keys(this.replaysByZIndex_).map(Number);
|
var zs = Object.keys(this.replaysByZIndex_).map(Number);
|
||||||
zs.sort(function(a, b) { return b - a; });
|
zs.sort(function(a, b) {
|
||||||
|
return b - a;
|
||||||
|
});
|
||||||
|
|
||||||
var i, ii, j, replays, replay, result;
|
var i, ii, j, replays, replay, result;
|
||||||
for (i = 0, ii = zs.length; i < ii; ++i) {
|
for (i = 0, ii = zs.length; i < ii; ++i) {
|
||||||
|
|||||||
@@ -78,7 +78,9 @@ ol.source.Raster = function(options) {
|
|||||||
* @type {ol.TileQueue}
|
* @type {ol.TileQueue}
|
||||||
*/
|
*/
|
||||||
this.tileQueue_ = new ol.TileQueue(
|
this.tileQueue_ = new ol.TileQueue(
|
||||||
function() { return 1; },
|
function() {
|
||||||
|
return 1;
|
||||||
|
},
|
||||||
goog.bind(this.changed, this));
|
goog.bind(this.changed, this));
|
||||||
|
|
||||||
var layerStatesArray = ol.source.Raster.getLayerStatesArray_(this.renderers_);
|
var layerStatesArray = ol.source.Raster.getLayerStatesArray_(this.renderers_);
|
||||||
|
|||||||
@@ -121,11 +121,9 @@ ol.source.TileArcGISRest.prototype.getRequestUrl_ =
|
|||||||
// If a MapServer, use export. If an ImageServer, use exportImage.
|
// If a MapServer, use export. If an ImageServer, use exportImage.
|
||||||
if (goog.string.endsWith(url, 'MapServer/')) {
|
if (goog.string.endsWith(url, 'MapServer/')) {
|
||||||
url = url + 'export';
|
url = url + 'export';
|
||||||
}
|
} else if (goog.string.endsWith(url, 'ImageServer/')) {
|
||||||
else if (goog.string.endsWith(url, 'ImageServer/')) {
|
|
||||||
url = url + 'exportImage';
|
url = url + 'exportImage';
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
goog.asserts.fail('Unknown Rest Service', url);
|
goog.asserts.fail('Unknown Rest Service', url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user