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