forked from geolonia/embed
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
44 lines (42 loc) · 1014 Bytes
/
Copy pathtypes.ts
File metadata and controls
44 lines (42 loc) · 1014 Bytes
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
import type GeoloniaMap from './lib/geolonia-map';
export type EmbedAttributes = {
lat: string | number;
lng: string | number;
zoom: string | number;
bearing: string | number;
pitch: string | number;
hash: string;
marker: string;
markerColor: string;
openPopup: string;
customMarker: string;
customMarkerOffset: string;
gestureHandling: string;
navigationControl: string;
geolocateControl: string;
fullscreenControl: string;
scaleControl: string;
geoloniaControl: string;
geojson: string;
cluster: string;
clusterColor: string;
style: string;
lang: string;
plugin: string;
key: string;
apiUrl: string;
loader: string;
minZoom: string | number;
maxZoom: string | number;
'3d': string;
[otherKey: string]: string | number;
};
export type EmbedPlugin<
PluginAttributes extends { [otherKey: string]: string } = {
[otherKey: string]: string;
},
> = (
map: GeoloniaMap,
target: HTMLElement,
atts: EmbedAttributes & PluginAttributes,
) => void;