-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathindex.ts
More file actions
114 lines (100 loc) · 4.75 KB
/
Copy pathindex.ts
File metadata and controls
114 lines (100 loc) · 4.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
// Public entry point for @aerius/vue-geo-components.
// Keep this list curated: everything exported here is part of the public API.
export { default as MapView } from "./components/MapView.vue";
// SimpleFoldout, ToggleIcon and VerticalCollapse stay internal on purpose: they
// are the chrome LayerItemTemplate is built from, not map components. Keeping
// them unexported means no product depends on them, so we stay free to change
// them and this library does not become a catch-all component library.
export { default as LayerItemTemplate } from "./components/LayerItemTemplate.vue";
export { default as LayerItemsLegend } from "./components/LayerItemsLegend.vue";
export { toLegendDisplay } from "./components/legendDisplay";
export type { LegendDisplay, LegendItem, LegendTranslator } from "./components/legendDisplay";
export { useMap, provideMap, mapInjectionKey } from "./composables/useMap";
export { RD, RD_EXTENT, RD_PROJ4_DEFINITION, registerRdProjection, isRdRegistered } from "./projections/rd";
export { registerProjection, isProjectionRegistered } from "./projections/registerProjection";
// Shared map layer model.
export { LayerType, LegendType, ColorRangeIconType, LegendIconType } from "./layers/types";
export type {
GeoInformation,
LayerProps,
LayerBaseProps,
EmptyVectorLayerProps,
WMSLayerProps,
WMTSLayerProps,
WFSLayerProps,
RESTLayerProps,
VectorTileLayerProps,
LayerStyleType,
LegendProps,
TextLegendProps,
ColorRange,
ColorRangesLegendProps,
ExtendedLegendProps,
Datum,
} from "./layers/types";
export { CombinedLayers } from "./layers/combinedLayers";
export { isLayerGroupVisible, layerGroupOpacity, setLayerGroupOpacity, setLayerGroupVisible } from "./layers/layerGroup";
export type { LayerGroup } from "./layers/layerGroup";
export { createLayer } from "./layers/createLayer";
export { toLegendStyleValues, toStylesMap, findStyleKey } from "./layers/layerStyle";
export { useMapViewStore } from "./stores/mapView";
// The AERIUS receptor grid: a fixed hexagonal lattice anchored to RD, in which
// every hexagon has a stable id. Shared so no two products can disagree about
// where a given receptor is.
export {
centerFromHexagon,
centerPointOnReceptor,
centerPointOnReceptorAtZoom,
createHexagonFeature,
isReceptorAtZoomLevel,
pointFromReceptorId,
receptorIdFromPoint,
} from "./receptors/hexagonGrid";
export type { HexagonOffsets } from "./receptors/hexagonGrid";
export { createSelectedReceptorLayer, createReceptorLabelStyle, renderSelectedReceptor, selectedReceptorStyle } from "./receptors/selectedReceptor";
// Dutch public map services.
export {
BASE_LAYER_GROUP,
PdokBackgroundVariant,
createPdokAerialLayer,
createPdokBackgroundLayer,
createPdokProvinceBoundaryLayer,
} from "./layers/pdok";
// Natura 2000 sites as point features.
export { NATURE_AREA_EXTENT, NATURE_AREA_NAME, natureAreasToFeatures } from "./layers/natureAreas";
export type { NatureArea } from "./layers/natureAreas";
// Layer plumbing.
export { getMatrixLimitsForLayer } from "./layers/wmtsCapabilities";
export type { WmtsCapabilitiesJson } from "./layers/wmtsCapabilities";
export { createHandleFeatureClicked } from "./layers/featureInteraction";
export { scaleDenominatorToResolution } from "./layers/resolution";
// Smooth camera movement.
export { createMapFlyTo } from "./map/flyTo";
export type { FlyController, FlyOptions, FlyTarget } from "./map/flyTo";
export { zoomToExtent } from "./map/zoomToExtent";
export { labelPoint, placeLabels, LABEL_SHAPE } from "./map/labelPlacement";
export {
createNatureAreaLayers,
natureAreaViewParams,
NATURE_AREAS_GROUP,
directiveAreaLegend,
directiveAreaStyle,
directiveAreaStyleValues,
fetchNatureAreas,
wrapLabel,
NATURE_AREA_LABEL_FONT,
UNDETERMINED,
} from "./layers/fameNatureAreas";
export type { NatureAreaLayers, NatureAreaLayersOptions } from "./layers/fameNatureAreas";
export type { LabelPlacement } from "./map/labelPlacement";
// Handing a detailed background over to an overview as the map zooms out.
// What fades in, and how it looks, stays with the product.
export { applyBackgroundFade, backgroundFadeProgress, maxResolution } from "./map/backgroundFade";
// Map search: a panel over the AERIUS search service, and the headless state
// and map actions around it. The panel takes your i18n translator so the
// library takes on no i18n dependency.
export { default as MapSearchPanel } from "./components/MapSearchPanel.vue";
export { applySearchSuggestion } from "./search/searchActions";
export { createSearchService, type SearchService } from "./search/searchService";
export { useMapSearch, type MapSearch, type MapSearchOptions } from "./search/useMapSearch";
export type { SearchCapability, SearchConfig, SearchFetcher, SearchResult, SearchSuggestion } from "./search/searchTypes";