From ba09d5ef50bd336316fd0c30242455a8b6785a1a Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Fri, 9 Jun 2023 17:03:35 +0200 Subject: [PATCH] Cleanup (unused imports) --- src/components/map-tile-provider/MapTileProvider.tsx | 3 --- src/components/overlays/Overlays.tsx | 6 +----- src/components/overlays/overlay-definitions.ts | 1 - 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/components/map-tile-provider/MapTileProvider.tsx b/src/components/map-tile-provider/MapTileProvider.tsx index ad31882..6a293ad 100644 --- a/src/components/map-tile-provider/MapTileProvider.tsx +++ b/src/components/map-tile-provider/MapTileProvider.tsx @@ -2,14 +2,11 @@ import OSM from 'ol/source/OSM'; import XYZ from 'ol/source/XYZ'; import { Component, createEffect, createSignal, For, Show } from 'solid-js'; import { - I18nContext, - createI18nContext, useI18n, } from '@solid-primitives/i18n'; import style from './MapTileProvider.module.css'; import LayersIcon from '@suid/icons-material/Layers'; -import CloseIcon from '@suid/icons-material/Close'; import { FormControlLabel, IconButton, diff --git a/src/components/overlays/Overlays.tsx b/src/components/overlays/Overlays.tsx index 2901c8a..eb9e5ac 100644 --- a/src/components/overlays/Overlays.tsx +++ b/src/components/overlays/Overlays.tsx @@ -1,23 +1,19 @@ import { Component, createEffect, onMount } from 'solid-js'; import OlMap from 'ol/Map'; -import { currentOverlayDefinition, isHighlightedTagType } from '../map-tile-provider'; +import { currentOverlayDefinition } from '../map-tile-provider'; import { Feature } from 'ol'; -import MVT from 'ol/format/MVT'; import { Point } from 'ol/geom'; import VectorLayer from 'ol/layer/Vector'; import VectorTileLayer from 'ol/layer/VectorTile'; import VectorTileSource from 'ol/source/VectorTile.js'; -import WMTSTileGrid from 'ol/tilegrid/WMTS.js'; import Cluster from 'ol/source/Cluster'; import { style } from '../gpx/styles'; import ClusterableVectorTileSourceProxy from '../../lib/ClusterableVectorTileSourceProxy'; import { getMap, getZoomInteger } from '../map/Map'; import { getCenter } from 'ol/extent'; -import { Projection } from 'ol/proj'; import { getVectorTileFeatureType } from './overlay-definitions'; import GeoJSON from 'ol/format/GeoJSON.js'; -import TopoJSON from 'ol/format/TopoJSON.js'; interface Props { map: () => OlMap | null; diff --git a/src/components/overlays/overlay-definitions.ts b/src/components/overlays/overlay-definitions.ts index d1ee7ad..1c0a828 100644 --- a/src/components/overlays/overlay-definitions.ts +++ b/src/components/overlays/overlay-definitions.ts @@ -1,4 +1,3 @@ -import { indexOf } from 'lodash'; import { Feature } from 'ol'; import { getTagType } from '../map-tile-provider/MapTileProvider';