mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-03 14:27:04 +00:00
Merge pull request #24212 from osechet/openlayers/clean-lint
[openlayers] Clean remaining lint issues
This commit is contained in:
Vendored
+304
-298
File diff suppressed because it is too large
Load Diff
@@ -9,7 +9,7 @@ const fn: () => void = () => {};
|
||||
const image: HTMLImageElement = new HTMLImageElement();
|
||||
let jsonValue: JSON;
|
||||
const listener: ol.EventsListenerFunctionType = (evt) => {};
|
||||
const numberArray: number[] = [];
|
||||
let numberArray: number[] = [];
|
||||
let numberValue: number;
|
||||
let object: { [key: string]: any };
|
||||
let stringArray: string[];
|
||||
@@ -61,6 +61,7 @@ let map: ol.Map;
|
||||
let multiLineString: ol.geom.MultiLineString;
|
||||
let multiPoint: ol.geom.MultiPoint;
|
||||
let multiPolygon: ol.geom.MultiPolygon;
|
||||
let numberCollection: ol.Collection<number>;
|
||||
const olEvent = new ol.events.Event(stringValue);
|
||||
const pixel: ol.Pixel = [numberValue, numberValue];
|
||||
let point: ol.geom.Point;
|
||||
@@ -90,6 +91,24 @@ attribution = new ol.Attribution({
|
||||
html: stringValue,
|
||||
});
|
||||
|
||||
//
|
||||
// ol.Collection
|
||||
//
|
||||
let collection = new ol.Collection<number>();
|
||||
collection = new ol.Collection<number>([]);
|
||||
collection.clear();
|
||||
numberCollection = collection.extend(numberArray);
|
||||
collection.forEach((item, index, array) => {});
|
||||
numberArray = collection.getArray();
|
||||
numberValue = collection.item(numberValue);
|
||||
numberValue = collection.getLength();
|
||||
collection.insertAt(numberValue, numberValue);
|
||||
numberValue = collection.pop();
|
||||
numberValue = collection.push(numberValue);
|
||||
numberValue = collection.remove(numberValue);
|
||||
numberValue = collection.removeAt(numberValue);
|
||||
collection.setAt(numberValue, numberValue);
|
||||
|
||||
//
|
||||
// ol.color
|
||||
//
|
||||
@@ -626,6 +645,7 @@ map = new ol.Map({
|
||||
layers: [tileLayer],
|
||||
target: stringValue
|
||||
});
|
||||
numberValue = map.forEachLayerAtPixel(coordinate, (layer, color) => numberValue, anyValue, (layer) => booleanValue, anyValue);
|
||||
|
||||
//
|
||||
// ol.source.ImageWMS
|
||||
@@ -643,6 +663,19 @@ const imageWMS: ol.source.ImageWMS = new ol.source.ImageWMS({
|
||||
const source = imageWMS as ol.source.Source;
|
||||
projection = source.getProjection();
|
||||
|
||||
//
|
||||
// ol.source.TileUTFGrid
|
||||
//
|
||||
const tileJSONValue = JSON;
|
||||
let tileUTFGrid = new ol.source.TileUTFGrid({});
|
||||
tileUTFGrid = new ol.source.TileUTFGrid({
|
||||
jsonp: booleanValue,
|
||||
preemptive: booleanValue,
|
||||
tileJSON: tileJSONValue,
|
||||
url: stringValue,
|
||||
});
|
||||
tileUTFGrid.forDataAtCoordinateAndResolution(coordinate, numberValue, (d) => anyValue, anyValue, booleanValue);
|
||||
|
||||
//
|
||||
// ol.source.TileWMS
|
||||
//
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"no-unnecessary-class": false,
|
||||
"no-unnecessary-generics": false,
|
||||
"no-unnecessary-qualifier": false,
|
||||
"strict-export-declare-modifiers": false
|
||||
}
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user