Remove lint

This commit is contained in:
Andreas Hocevar
2021-06-28 18:10:51 +02:00
parent b5bb9382e2
commit 79f5f46d27
135 changed files with 1040 additions and 2374 deletions

View File

@@ -14,14 +14,12 @@ fetch('data/wmsgetfeatureinfo/osm-restaurant-hotel.xml')
const hotelFeatures = new WMSGetFeatureInfo({
layers: ['hotel'],
}).readFeatures(response);
document.getElementById(
'hotel'
).innerText = hotelFeatures.length.toString();
document.getElementById('hotel').innerText =
hotelFeatures.length.toString();
const restaurantFeatures = new WMSGetFeatureInfo({
layers: ['restaurant'],
}).readFeatures(response);
document.getElementById(
'restaurant'
).innerText = restaurantFeatures.length.toString();
document.getElementById('restaurant').innerText =
restaurantFeatures.length.toString();
});

View File

@@ -183,7 +183,10 @@ document.getElementById('time').addEventListener('input', function () {
const value = parseInt(this.value, 10) / 100;
const m = time.start + time.duration * value;
vectorSource.forEachFeature(function (feature) {
const geometry = /** @type {import("../src/ol/geom/LineString.js").default} */ (feature.getGeometry());
const geometry =
/** @type {import("../src/ol/geom/LineString.js").default} */ (
feature.getGeometry()
);
const coordinate = geometry.getCoordinateAtM(m, true);
let highlight = feature.get('highlight');
if (highlight === undefined) {

View File

@@ -6,9 +6,7 @@ import View from '../src/ol/View.js';
const mdf = 'Library://Samples/Sheboygan/Maps/Sheboygan.MapDefinition';
const agentUrl = 'https://mikenunn.net/mapguide/mapagent/mapagent.fcgi?';
const bounds = [
-87.865114442365922,
43.665065564837931,
-87.595394059497067,
-87.865114442365922, 43.665065564837931, -87.595394059497067,
43.823852564430069,
];
const map = new Map({

View File

@@ -13,8 +13,7 @@ const map = new Map({
layers: [
new TileLayer({
source: new BingMaps({
key:
'ApTJzdkyN1DdFKkRAE6QIDtzihNaf6IWJsT-nQ_2eMoO4PN__0Tzhl2-WgJtXFSp ',
key: 'ApTJzdkyN1DdFKkRAE6QIDtzihNaf6IWJsT-nQ_2eMoO4PN__0Tzhl2-WgJtXFSp ',
imagerySet: 'RoadOnDemand',
}),
}),

View File

@@ -8,9 +8,7 @@ const map = new Map({
controls: defaultControls().extend([
new ZoomToExtent({
extent: [
813079.7791264898,
5929220.284081122,
848966.9639063801,
813079.7791264898, 5929220.284081122, 848966.9639063801,
5936863.986909639,
],
}),

View File

@@ -21,21 +21,18 @@ const sources = {
landcover: new VectorTileSource({
maxZoom: 9,
format: new MVT(),
url:
'https://api.maptiler.com/tiles/landcover/{z}/{x}/{y}.pbf?key=get_your_own_D6rA4zTHduk6KOKTXzGB',
url: 'https://api.maptiler.com/tiles/landcover/{z}/{x}/{y}.pbf?key=get_your_own_D6rA4zTHduk6KOKTXzGB',
}),
contours: new VectorTileSource({
minZoom: 9,
maxZoom: 14,
format: new MVT(),
url:
'https://api.maptiler.com/tiles/contours/{z}/{x}/{y}.pbf?key=get_your_own_D6rA4zTHduk6KOKTXzGB',
url: 'https://api.maptiler.com/tiles/contours/{z}/{x}/{y}.pbf?key=get_your_own_D6rA4zTHduk6KOKTXzGB',
}),
openmaptiles: new VectorTileSource({
format: new MVT(),
maxZoom: 14,
url:
'https://api.maptiler.com/tiles/v3/{z}/{x}/{y}.pbf?key=get_your_own_D6rA4zTHduk6KOKTXzGB',
url: 'https://api.maptiler.com/tiles/v3/{z}/{x}/{y}.pbf?key=get_your_own_D6rA4zTHduk6KOKTXzGB',
}),
};
const layers = [];

View File

@@ -20,9 +20,7 @@ register(proj4);
const sphereMollweideProjection = new Projection({
code: 'ESRI:53009',
extent: [
-18019909.21177587,
-9009954.605703328,
18019909.21177587,
-18019909.21177587, -9009954.605703328, 18019909.21177587,
9009954.605703328,
],
worldExtent: [-179, -89.99, 179, 89.99],

View File

@@ -45,8 +45,7 @@ const style = new Style({
const vectorLayer = new VectorLayer({
source: new VectorSource({
url:
'https://openlayersbook.github.io/openlayers_book_samples/assets/data/countries.geojson',
url: 'https://openlayersbook.github.io/openlayers_book_samples/assets/data/countries.geojson',
format: new GeoJSON(),
}),
style: style,

View File

@@ -114,8 +114,7 @@ const raster = new TileLayer({
const baseVector = new VectorLayer({
source: new VectorSource({
format: new GeoJSON(),
url:
"https://ahocevar.com/geoserver/wfs?service=wfs&request=getfeature&typename=topp:states&cql_filter=STATE_NAME='Idaho'&outputformat=application/json",
url: "https://ahocevar.com/geoserver/wfs?service=wfs&request=getfeature&typename=topp:states&cql_filter=STATE_NAME='Idaho'&outputformat=application/json",
}),
});

View File

@@ -14,8 +14,7 @@ const map = new Map({
new VectorTileLayer({
source: new VectorTileSource({
format: new MVT(),
url:
'https://basemaps.arcgis.com/v1/arcgis/rest/services/World_Basemap/VectorTileServer/tile/{z}/{y}/{x}.pbf',
url: 'https://basemaps.arcgis.com/v1/arcgis/rest/services/World_Basemap/VectorTileServer/tile/{z}/{y}/{x}.pbf',
}),
}),
],

View File

@@ -13,7 +13,8 @@ const baseDir = dirname(fileURLToPath(import.meta.url));
const isCssRegEx = /\.css(\?.*)?$/;
const isJsRegEx = /\.js(\?.*)?$/;
const importRegEx = /^import .* from '(.*)';$/;
const isTemplateJs = /\/(jquery(-\d+\.\d+\.\d+)?|(bootstrap(\.bundle)?))(\.min)?\.js(\?.*)?$/;
const isTemplateJs =
/\/(jquery(-\d+\.\d+\.\d+)?|(bootstrap(\.bundle)?))(\.min)?\.js(\?.*)?$/;
const isTemplateCss = /\/bootstrap(\.min)?\.css(\?.*)?$/;
let cachedPackageInfo = null;