@opensystemslab/map 0.5.9 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opensystemslab/map",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.6.1",
|
4
4
|
"license": "OGL-UK-3.0",
|
5
5
|
"private": false,
|
6
6
|
"repository": {
|
@@ -42,7 +42,7 @@
|
|
42
42
|
"@testing-library/user-event": "^14.4.3",
|
43
43
|
"@types/node": "^18.6.3",
|
44
44
|
"@types/proj4": "^2.5.2",
|
45
|
-
"@vitest/ui": "^0.
|
45
|
+
"@vitest/ui": "^0.23.2",
|
46
46
|
"happy-dom": "^6.0.4",
|
47
47
|
"husky": "^8.0.1",
|
48
48
|
"lint-staged": "^13.0.3",
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import { Control, ScaleLine } from "ol/control";
|
2
|
+
import "ol/ol.css";
|
3
|
+
export declare function scaleControl(useScaleBarStyle: boolean): ScaleLine;
|
4
|
+
export declare function northArrowControl(): Control;
|
5
|
+
export declare function resetControl(listener: any, icon: string): Control;
|
@@ -4,6 +4,7 @@ import { DrawPointerEnum } from "./drawing";
|
|
4
4
|
import { ProjectionEnum } from "./projections";
|
5
5
|
import { AreaUnitEnum } from "./utils";
|
6
6
|
declare type MarkerImageEnum = "circle" | "pin";
|
7
|
+
declare type ResetControlImageEnum = "unicode" | "reset" | "trash" | "erase";
|
7
8
|
export declare class MyMap extends LitElement {
|
8
9
|
static styles: import("lit").CSSResult;
|
9
10
|
id: string;
|
@@ -27,6 +28,7 @@ export declare class MyMap extends LitElement {
|
|
27
28
|
featureBorderNone: boolean;
|
28
29
|
featureBuffer: number;
|
29
30
|
showMarker: boolean;
|
31
|
+
markerImage: MarkerImageEnum;
|
30
32
|
markerLatitude: number;
|
31
33
|
markerLongitude: number;
|
32
34
|
markerColor: string;
|
@@ -42,11 +44,12 @@ export declare class MyMap extends LitElement {
|
|
42
44
|
osFeaturesApiKey: string;
|
43
45
|
osCopyright: string;
|
44
46
|
hideResetControl: boolean;
|
47
|
+
resetControlImage: ResetControlImageEnum;
|
45
48
|
staticMode: boolean;
|
46
49
|
areaUnit: AreaUnitEnum;
|
47
50
|
showScale: boolean;
|
48
51
|
useScaleBarStyle: boolean;
|
49
|
-
|
52
|
+
showNorthArrow: boolean;
|
50
53
|
map?: Map;
|
51
54
|
constructor();
|
52
55
|
firstUpdated(): void;
|