kopia lustrzana https://github.com/FacilMap/facilmap
Clean up type imports
rodzic
ad1901f8a0
commit
4cf3e2817d
|
@ -1,6 +1,6 @@
|
|||
<script setup lang="ts">
|
||||
import { getLayers } from "facilmap-leaflet";
|
||||
import { Layer, Util } from "leaflet";
|
||||
import { type Layer, Util } from "leaflet";
|
||||
import { computed } from "vue";
|
||||
import ModalDialog from "./ui/modal-dialog.vue";
|
||||
import { injectContextRequired, requireMapContext } from "./facil-map-context-provider/facil-map-context-provider.vue";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<script setup lang="ts">
|
||||
import { typeValidator, type Field, type ID, type Type, CRU } from "facilmap-types";
|
||||
import { typeValidator, type Field, type ID, type Type, type CRU } from "facilmap-types";
|
||||
import { canControl } from "facilmap-utils";
|
||||
import { getUniqueId, validateRequired } from "../../utils/utils";
|
||||
import { mergeTypeObject } from "./edit-type-utils";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import { type Ref, ref, watch, markRaw, reactive, watchEffect, shallowRef, shallowReadonly, type Raw } from "vue";
|
||||
import L, { latLng, latLngBounds, Map, map as leafletMap, DomUtil, control } from "leaflet";
|
||||
import { type Control, latLng, latLngBounds, type Map, map as leafletMap, DomUtil, control } from "leaflet";
|
||||
import "leaflet/dist/leaflet.css";
|
||||
import { BboxHandler, getSymbolHtml, getVisibleLayers, HashHandler, LinesLayer, MarkersLayer, SearchResultsLayer, OverpassLayer, OverpassLoadStatus, displayView, getInitialView } from "facilmap-leaflet";
|
||||
import "leaflet.locatecontrol";
|
||||
|
@ -125,7 +125,7 @@ function useLinesLayer(map: Ref<Map>, client: Ref<ClientContext>): Ref<Raw<Lines
|
|||
);
|
||||
}
|
||||
|
||||
function useLocateControl(map: Ref<Map>): Ref<Raw<L.Control.Locate>> {
|
||||
function useLocateControl(map: Ref<Map>): Ref<Raw<Control.Locate>> {
|
||||
return useMapComponent(
|
||||
map,
|
||||
() => markRaw(control.locate({ flyTo: true, icon: "a", iconLoading: "a", markerStyle: { pane: "fm-raised-marker", zIndexOffset: 10000 } })),
|
||||
|
@ -152,7 +152,7 @@ function useMarkersLayer(map: Ref<Map>, client: Ref<ClientContext>): Ref<Raw<Mar
|
|||
);
|
||||
}
|
||||
|
||||
function useMousePosition(map: Ref<Map>): Ref<Raw<L.Control.MousePosition>> {
|
||||
function useMousePosition(map: Ref<Map>): Ref<Raw<Control.MousePosition>> {
|
||||
return useMapComponent(
|
||||
map,
|
||||
() => markRaw(control.mousePosition({ emptyString: "0, 0", separator: ", ", position: "bottomright" })),
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
import type { ExportFormat, FindOnMapResult, SearchResult } from "facilmap-types";
|
||||
import { getMarkerIcon, type HashQuery, MarkerLayer, RouteLayer } from "facilmap-leaflet";
|
||||
import { getZoomDestinationForRoute, flyTo, normalizeZoomDestination } from "../../utils/zoom";
|
||||
import { latLng, LatLng } from "leaflet";
|
||||
import { latLng, type LatLng } from "leaflet";
|
||||
import Draggable from "vuedraggable";
|
||||
import RouteMode from "../ui/route-mode.vue";
|
||||
import DraggableLines from "leaflet-draggable-lines";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import "leaflet.heightgraph";
|
||||
import { Control, Map, Polyline } from "leaflet";
|
||||
import { Control, type Map, Polyline } from "leaflet";
|
||||
import "leaflet.heightgraph/src/L.Control.Heightgraph.css";
|
||||
import "./heightgraph.scss";
|
||||
import type { TrackPoints } from "facilmap-client";
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import type { ID, SearchResult } from "facilmap-types";
|
||||
import { DomEvent, Evented, Handler, LatLngBounds, type LeafletEvent, Map, Point, Polyline, Util } from "leaflet";
|
||||
import { DomEvent, Evented, Handler, type LatLngBounds, type LeafletEvent, type Map, type Point, Polyline, Util } from "leaflet";
|
||||
import { LinesLayer, MarkerLayer, MarkersLayer, type OverpassElement, OverpassLayer, SearchResultsLayer } from "facilmap-leaflet";
|
||||
import BoxSelection from "./box-selection";
|
||||
import type { DeepReadonly } from "vue";
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { LatLng, latLng, LatLngBounds, latLngBounds, Map } from "leaflet";
|
||||
import { type LatLng, latLng, type LatLngBounds, latLngBounds, type Map } from "leaflet";
|
||||
import { fmToLeafletBbox, type HashQuery, type OverpassElement } from "facilmap-leaflet";
|
||||
import type { RouteWithTrackPoints } from "facilmap-client";
|
||||
import type { SelectedItem } from "./selection";
|
||||
|
|
Ładowanie…
Reference in New Issue