forked from geolba/tethys.backend
Arno Kaimbacher
a744ae7e5b
- add draw.component.vue - only load needed leaflet classes into map.component.vue an Submitter/Create.vue - rename js/store.Map.ts to js/Stores/map.service.ts -
62 lines
2.0 KiB
TypeScript
62 lines
2.0 KiB
TypeScript
import type { LatLngBoundsExpression } from 'leaflet/src/geo/LatLngBounds';
|
|
import type { LatLngExpression } from 'leaflet/src/geo/LatLng';
|
|
import type { Layer } from 'leaflet/src/layer/Layer';
|
|
import type { CRS } from 'leaflet/src/geo/crs/CRS';
|
|
|
|
export interface MapOptions {
|
|
preferCanvas?: boolean | undefined;
|
|
|
|
// Control options
|
|
attributionControl?: boolean | undefined;
|
|
zoomControl?: boolean | undefined;
|
|
|
|
// Interaction options
|
|
closePopupOnClick?: boolean | undefined;
|
|
zoomSnap?: number | undefined;
|
|
zoomDelta?: number | undefined;
|
|
trackResize?: boolean | undefined;
|
|
boxZoom?: boolean | undefined;
|
|
// doubleClickZoom?: Zoom | undefined;
|
|
dragging?: boolean | undefined;
|
|
|
|
// Map state options
|
|
crs?: CRS | undefined;
|
|
center?: LatLngExpression | undefined;
|
|
zoom?: number | undefined;
|
|
minZoom?: number | undefined;
|
|
maxZoom?: number | undefined;
|
|
layers?: Layer[] | undefined;
|
|
maxBounds?: LatLngBoundsExpression | undefined;
|
|
// renderer?: Renderer | undefined;
|
|
|
|
// Animation options
|
|
fadeAnimation?: boolean | undefined;
|
|
markerZoomAnimation?: boolean | undefined;
|
|
transform3DLimit?: number | undefined;
|
|
zoomAnimation?: boolean | undefined;
|
|
zoomAnimationThreshold?: number | undefined;
|
|
|
|
// Panning inertia options
|
|
inertia?: boolean | undefined;
|
|
inertiaDeceleration?: number | undefined;
|
|
inertiaMaxSpeed?: number | undefined;
|
|
easeLinearity?: number | undefined;
|
|
worldCopyJump?: boolean | undefined;
|
|
maxBoundsViscosity?: number | undefined;
|
|
|
|
// Keyboard navigation options
|
|
keyboard?: boolean | undefined;
|
|
keyboardPanDelta?: number | undefined;
|
|
|
|
// Mousewheel options
|
|
// scrollWheelZoom?: Zoom | undefined;
|
|
wheelDebounceTime?: number | undefined;
|
|
wheelPxPerZoomLevel?: number | undefined;
|
|
|
|
// Touch interaction options
|
|
tap?: boolean | undefined;
|
|
tapTolerance?: number | undefined;
|
|
// touchZoom?: Zoom | undefined;
|
|
bounceAtZoomLimits?: boolean | undefined;
|
|
}
|