Remove lint
This commit is contained in:
@@ -371,8 +371,6 @@ ol.control.OverviewMap.prototype.updateBox_ = function() {
|
|||||||
|
|
||||||
var ovview = ovmap.getView();
|
var ovview = ovmap.getView();
|
||||||
|
|
||||||
var ovmapSize = ovmap.getSize();
|
|
||||||
|
|
||||||
var rotation = view.getRotation();
|
var rotation = view.getRotation();
|
||||||
|
|
||||||
var overlay = this.boxOverlay_;
|
var overlay = this.boxOverlay_;
|
||||||
|
|||||||
@@ -315,7 +315,9 @@ ol.format.EsriJSON.writeLineStringGeometry_ = function(geometry, opt_options) {
|
|||||||
return /** @type {EsriJSONPolyline} */ ({
|
return /** @type {EsriJSONPolyline} */ ({
|
||||||
hasZ: hasZM.hasZ,
|
hasZ: hasZM.hasZ,
|
||||||
hasM: hasZM.hasM,
|
hasM: hasZM.hasM,
|
||||||
paths: [/** @type {ol.geom.LineString} */ (geometry).getCoordinates()]
|
paths: [
|
||||||
|
/** @type {ol.geom.LineString} */ (geometry).getCoordinates()
|
||||||
|
]
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -911,7 +911,6 @@ ol.format.GML3.prototype.writeRing_ = function(node, ring, objectStack) {
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.GML3.prototype.writeSurfaceOrPolygonMember_ = function(node, polygon, objectStack) {
|
ol.format.GML3.prototype.writeSurfaceOrPolygonMember_ = function(node, polygon, objectStack) {
|
||||||
var context = objectStack[objectStack.length - 1];
|
|
||||||
var child = this.GEOMETRY_NODE_FACTORY_(
|
var child = this.GEOMETRY_NODE_FACTORY_(
|
||||||
polygon, objectStack);
|
polygon, objectStack);
|
||||||
if (child) {
|
if (child) {
|
||||||
@@ -941,7 +940,6 @@ ol.format.GML3.prototype.writePointMember_ = function(node, point, objectStack)
|
|||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
ol.format.GML3.prototype.writeLineStringOrCurveMember_ = function(node, line, objectStack) {
|
ol.format.GML3.prototype.writeLineStringOrCurveMember_ = function(node, line, objectStack) {
|
||||||
var context = objectStack[objectStack.length - 1];
|
|
||||||
var child = this.GEOMETRY_NODE_FACTORY_(line, objectStack);
|
var child = this.GEOMETRY_NODE_FACTORY_(line, objectStack);
|
||||||
if (child) {
|
if (child) {
|
||||||
node.appendChild(child);
|
node.appendChild(child);
|
||||||
|
|||||||
@@ -709,7 +709,6 @@ ol.interaction.Modify.handleEvent = function(mapBrowserEvent) {
|
|||||||
if (this.vertexFeature_ && this.deleteCondition_(mapBrowserEvent)) {
|
if (this.vertexFeature_ && this.deleteCondition_(mapBrowserEvent)) {
|
||||||
if (mapBrowserEvent.type != ol.MapBrowserEvent.EventType.SINGLECLICK ||
|
if (mapBrowserEvent.type != ol.MapBrowserEvent.EventType.SINGLECLICK ||
|
||||||
!this.ignoreNextSingleClick_) {
|
!this.ignoreNextSingleClick_) {
|
||||||
var geometry = /** @type {ol.geom.Point} */ (this.vertexFeature_.getGeometry());
|
|
||||||
handled = this.removePoint();
|
handled = this.removePoint();
|
||||||
} else {
|
} else {
|
||||||
handled = true;
|
handled = true;
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
goog.provide('ol.math');
|
goog.provide('ol.math');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Takes a number and clamps it to within the provided bounds.
|
* Takes a number and clamps it to within the provided bounds.
|
||||||
* @param {number} value The input number.
|
* @param {number} value The input number.
|
||||||
|
|||||||
@@ -103,9 +103,6 @@ ol.renderer.dom.VectorLayer.prototype.clearFrame = function() {
|
|||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
ol.renderer.dom.VectorLayer.prototype.composeFrame = function(frameState, layerState) {
|
ol.renderer.dom.VectorLayer.prototype.composeFrame = function(frameState, layerState) {
|
||||||
|
|
||||||
var vectorLayer = /** @type {ol.layer.Vector} */ (this.getLayer());
|
|
||||||
|
|
||||||
var viewState = frameState.viewState;
|
var viewState = frameState.viewState;
|
||||||
var viewCenter = viewState.center;
|
var viewCenter = viewState.center;
|
||||||
var viewRotation = viewState.rotation;
|
var viewRotation = viewState.rotation;
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{
|
{
|
||||||
"env": {
|
"env": {
|
||||||
"es6": true
|
"es6": true,
|
||||||
|
"mocha": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ const path = require('path');
|
|||||||
|
|
||||||
const src = path.join(__dirname, '..', '..', 'src');
|
const src = path.join(__dirname, '..', '..', 'src');
|
||||||
|
|
||||||
const PROVIDE_RE = /^goog.provide\('(.*)'\);/
|
const PROVIDE_RE = /^goog.provide\('(.*)'\);/;
|
||||||
|
|
||||||
describe('each file', () => {
|
describe('each file', () => {
|
||||||
|
|
||||||
|
|||||||
@@ -672,7 +672,7 @@ describe('ol.format.WFS', function() {
|
|||||||
[-12240318, 6507071],
|
[-12240318, 6507071],
|
||||||
[-12416429, 6604910]
|
[-12416429, 6604910]
|
||||||
]]));
|
]]));
|
||||||
var error = false;
|
|
||||||
expect(function() {
|
expect(function() {
|
||||||
format.writeTransaction(null, [updateFeature], null, {
|
format.writeTransaction(null, [updateFeature], null, {
|
||||||
featureNS: 'http://foo',
|
featureNS: 'http://foo',
|
||||||
|
|||||||
@@ -29,7 +29,7 @@ describe('ol', function() {
|
|||||||
it('has a name', function() {
|
it('has a name', function() {
|
||||||
var error = new ol.AssertionError(42);
|
var error = new ol.AssertionError(42);
|
||||||
expect(error.name).to.be('AssertionError');
|
expect(error.name).to.be('AssertionError');
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ describe('ol.structs.PriorityQueue', function() {
|
|||||||
if (!assertion) {
|
if (!assertion) {
|
||||||
throw new Error(message);
|
throw new Error(message);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
pq = new ol.structs.PriorityQueue(
|
pq = new ol.structs.PriorityQueue(
|
||||||
identity, identity);
|
identity, identity);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user