@openremote/or-map 1.30.0 → 1.30.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{custom-elements.json → build/custom-elements.json} +32 -0
- package/build/dist/umd/index.bundle.js +3845 -0
- package/build/dist/umd/index.js +3845 -0
- package/build/dist/umd/index.orbundle.js +3915 -0
- package/{lib → build/lib}/asset-map.d.ts +6 -0
- package/build/lib/asset-map.d.ts.map +1 -0
- package/build/lib/asset-map.js +1 -0
- package/build/lib/asset-map.js.map +1 -0
- package/build/lib/base-map.d.ts.map +1 -0
- package/{lib → build/lib}/base-map.js +1 -1
- package/build/lib/base-map.js.map +1 -0
- package/build/lib/controls/base.d.ts.map +1 -0
- package/build/lib/controls/base.js.map +1 -0
- package/build/lib/controls/center.d.ts.map +1 -0
- package/build/lib/controls/center.js.map +1 -0
- package/build/lib/controls/coordinates.d.ts.map +1 -0
- package/build/lib/controls/coordinates.js.map +1 -0
- package/{lib → build/lib}/controls/geocoder.d.ts +1 -1
- package/build/lib/controls/geocoder.d.ts.map +1 -0
- package/build/lib/controls/geocoder.js +58 -0
- package/build/lib/controls/geocoder.js.map +1 -0
- package/build/lib/controls/geolocate.d.ts.map +1 -0
- package/build/lib/controls/geolocate.js.map +1 -0
- package/build/lib/controls/legend.d.ts.map +1 -0
- package/build/lib/controls/legend.js.map +1 -0
- package/build/lib/controls/logo.d.ts.map +1 -0
- package/build/lib/controls/logo.js.map +1 -0
- package/build/lib/controls/navigation.d.ts.map +1 -0
- package/build/lib/controls/navigation.js.map +1 -0
- package/build/lib/controls/preset-filter.d.ts.map +1 -0
- package/build/lib/controls/preset-filter.js.map +1 -0
- package/build/lib/controls/styles.d.ts.map +1 -0
- package/build/lib/controls/styles.js.map +1 -0
- package/build/lib/index.d.ts.map +1 -0
- package/build/lib/index.js.map +1 -0
- package/{lib → build/lib}/markers/or-cluster-marker.d.ts +2 -5
- package/build/lib/markers/or-cluster-marker.d.ts.map +1 -0
- package/build/lib/markers/or-cluster-marker.js +23 -0
- package/build/lib/markers/or-cluster-marker.js.map +1 -0
- package/build/lib/markers/or-map-marker-asset.d.ts.map +1 -0
- package/build/lib/markers/or-map-marker-asset.js.map +1 -0
- package/build/lib/markers/or-map-marker.d.ts.map +1 -0
- package/build/lib/markers/or-map-marker.js.map +1 -0
- package/build/lib/or-map-asset-card.d.ts.map +1 -0
- package/build/lib/or-map-asset-card.js.map +1 -0
- package/build/lib/style.d.ts.map +1 -0
- package/build/lib/style.js.map +1 -0
- package/build/lib/types.d.ts.map +1 -0
- package/build/lib/types.js.map +1 -0
- package/{lib → build/lib}/util/index.d.ts +0 -1
- package/build/lib/util/index.d.ts.map +1 -0
- package/{lib → build/lib}/util/index.js +1 -1
- package/build/lib/util/index.js.map +1 -0
- package/{lib → build/lib}/util/mapbox-url.d.ts +1 -2
- package/build/lib/util/mapbox-url.d.ts.map +1 -0
- package/build/lib/util/mapbox-url.js.map +1 -0
- package/package.json +23 -17
- package/dist/umd/index.bundle.js +0 -3076
- package/dist/umd/index.js +0 -3024
- package/dist/umd/index.orbundle.js +0 -3146
- package/lib/asset-map.d.ts.map +0 -1
- package/lib/asset-map.js +0 -1
- package/lib/asset-map.js.map +0 -1
- package/lib/base-map.d.ts.map +0 -1
- package/lib/base-map.js.map +0 -1
- package/lib/controls/base.d.ts.map +0 -1
- package/lib/controls/base.js.map +0 -1
- package/lib/controls/center.d.ts.map +0 -1
- package/lib/controls/center.js.map +0 -1
- package/lib/controls/coordinates.d.ts.map +0 -1
- package/lib/controls/coordinates.js.map +0 -1
- package/lib/controls/geocoder.d.ts.map +0 -1
- package/lib/controls/geocoder.js +0 -58
- package/lib/controls/geocoder.js.map +0 -1
- package/lib/controls/geolocate.d.ts.map +0 -1
- package/lib/controls/geolocate.js.map +0 -1
- package/lib/controls/legend.d.ts.map +0 -1
- package/lib/controls/legend.js.map +0 -1
- package/lib/controls/logo.d.ts.map +0 -1
- package/lib/controls/logo.js.map +0 -1
- package/lib/controls/navigation.d.ts.map +0 -1
- package/lib/controls/navigation.js.map +0 -1
- package/lib/controls/preset-filter.d.ts.map +0 -1
- package/lib/controls/preset-filter.js.map +0 -1
- package/lib/controls/styles.d.ts.map +0 -1
- package/lib/controls/styles.js.map +0 -1
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js.map +0 -1
- package/lib/markers/or-cluster-marker.d.ts.map +0 -1
- package/lib/markers/or-cluster-marker.js +0 -23
- package/lib/markers/or-cluster-marker.js.map +0 -1
- package/lib/markers/or-map-marker-asset.d.ts.map +0 -1
- package/lib/markers/or-map-marker-asset.js.map +0 -1
- package/lib/markers/or-map-marker.d.ts.map +0 -1
- package/lib/markers/or-map-marker.js.map +0 -1
- package/lib/or-map-asset-card.d.ts.map +0 -1
- package/lib/or-map-asset-card.js.map +0 -1
- package/lib/style.d.ts.map +0 -1
- package/lib/style.js.map +0 -1
- package/lib/types.d.ts.map +0 -1
- package/lib/types.js.map +0 -1
- package/lib/util/index.d.ts.map +0 -1
- package/lib/util/index.js.map +0 -1
- package/lib/util/mapbox-url.d.ts.map +0 -1
- package/lib/util/mapbox-url.js.map +0 -1
- package/playwright.config.ts +0 -21
- package/stories/map.stories.ts +0 -127
- /package/{custom-elements-jsx.d.ts → build/custom-elements-jsx.d.ts} +0 -0
- /package/{lib → build/lib}/base-map.d.ts +0 -0
- /package/{lib → build/lib}/controls/base.d.ts +0 -0
- /package/{lib → build/lib}/controls/base.js +0 -0
- /package/{lib → build/lib}/controls/center.d.ts +0 -0
- /package/{lib → build/lib}/controls/center.js +0 -0
- /package/{lib → build/lib}/controls/coordinates.d.ts +0 -0
- /package/{lib → build/lib}/controls/coordinates.js +0 -0
- /package/{lib → build/lib}/controls/geolocate.d.ts +0 -0
- /package/{lib → build/lib}/controls/geolocate.js +0 -0
- /package/{lib → build/lib}/controls/legend.d.ts +0 -0
- /package/{lib → build/lib}/controls/legend.js +0 -0
- /package/{lib → build/lib}/controls/logo.d.ts +0 -0
- /package/{lib → build/lib}/controls/logo.js +0 -0
- /package/{lib → build/lib}/controls/navigation.d.ts +0 -0
- /package/{lib → build/lib}/controls/navigation.js +0 -0
- /package/{lib → build/lib}/controls/preset-filter.d.ts +0 -0
- /package/{lib → build/lib}/controls/preset-filter.js +0 -0
- /package/{lib → build/lib}/controls/styles.d.ts +0 -0
- /package/{lib → build/lib}/controls/styles.js +0 -0
- /package/{lib → build/lib}/index.d.ts +0 -0
- /package/{lib → build/lib}/index.js +0 -0
- /package/{lib → build/lib}/markers/or-map-marker-asset.d.ts +0 -0
- /package/{lib → build/lib}/markers/or-map-marker-asset.js +0 -0
- /package/{lib → build/lib}/markers/or-map-marker.d.ts +0 -0
- /package/{lib → build/lib}/markers/or-map-marker.js +0 -0
- /package/{lib → build/lib}/or-map-asset-card.d.ts +0 -0
- /package/{lib → build/lib}/or-map-asset-card.js +0 -0
- /package/{lib → build/lib}/style.d.ts +0 -0
- /package/{lib → build/lib}/style.js +0 -0
- /package/{lib → build/lib}/types.d.ts +0 -0
- /package/{lib → build/lib}/types.js +0 -0
- /package/{lib → build/lib}/util/mapbox-url.js +0 -0
package/playwright.config.ts
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2026, OpenRemote Inc.
|
|
3
|
-
*
|
|
4
|
-
* This program is free software: you can redistribute it and/or modify
|
|
5
|
-
* it under the terms of the GNU Affero General Public License as
|
|
6
|
-
* published by the Free Software Foundation, either version 3 of the
|
|
7
|
-
* License, or (at your option) any later version.
|
|
8
|
-
*
|
|
9
|
-
* This program is distributed in the hope that it will be useful,
|
|
10
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
* GNU Affero General Public License for more details.
|
|
13
|
-
*
|
|
14
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
15
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
16
|
-
*
|
|
17
|
-
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
18
|
-
*/
|
|
19
|
-
import { defineCtConfig } from "@openremote/test/component.config";
|
|
20
|
-
|
|
21
|
-
export default defineCtConfig(__dirname);
|
package/stories/map.stories.ts
DELETED
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2025, OpenRemote Inc.
|
|
3
|
-
*
|
|
4
|
-
* This program is free software: you can redistribute it and/or modify
|
|
5
|
-
* it under the terms of the GNU Affero General Public License as
|
|
6
|
-
* published by the Free Software Foundation, either version 3 of the
|
|
7
|
-
* License, or (at your option) any later version.
|
|
8
|
-
*
|
|
9
|
-
* This program is distributed in the hope that it will be useful,
|
|
10
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
11
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
12
|
-
* GNU Affero General Public License for more details.
|
|
13
|
-
*
|
|
14
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
15
|
-
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
16
|
-
*
|
|
17
|
-
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
18
|
-
*/
|
|
19
|
-
import { type Meta, setCustomElementsManifest, type StoryObj } from "@storybook/web-components";
|
|
20
|
-
import { getORStorybookHelpers } from "../../storybook-utils";
|
|
21
|
-
import manager from "@openremote/core";
|
|
22
|
-
import { html } from "lit";
|
|
23
|
-
import customElements from "../custom-elements.json" with { type: "json" };
|
|
24
|
-
import packageJson from "../package.json" with { type: "json" };
|
|
25
|
-
import "../src/index";
|
|
26
|
-
import "../src/markers/or-map-marker";
|
|
27
|
-
|
|
28
|
-
const tagName = "or-map";
|
|
29
|
-
type Story = StoryObj;
|
|
30
|
-
setCustomElementsManifest(customElements);
|
|
31
|
-
|
|
32
|
-
const { events, args, argTypes, template } = getORStorybookHelpers(tagName);
|
|
33
|
-
|
|
34
|
-
const meta: Meta = {
|
|
35
|
-
title: "Playground/or-map",
|
|
36
|
-
component: tagName,
|
|
37
|
-
args,
|
|
38
|
-
argTypes,
|
|
39
|
-
render: (storyArgs) => template(storyArgs),
|
|
40
|
-
excludeStories: /^[a-z].*/,
|
|
41
|
-
parameters: {
|
|
42
|
-
actions: {
|
|
43
|
-
handles: events,
|
|
44
|
-
},
|
|
45
|
-
docs: {
|
|
46
|
-
subtitle: `<${tagName}>`,
|
|
47
|
-
description: "Map is a component for displaying geographical maps, with support for custom layers.",
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
};
|
|
51
|
-
|
|
52
|
-
const parameters = {
|
|
53
|
-
docs: {
|
|
54
|
-
story: {
|
|
55
|
-
height: "360px",
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
const loaders = [
|
|
61
|
-
async (storyArgs) => ({
|
|
62
|
-
orManager: await loadOrManager(),
|
|
63
|
-
}),
|
|
64
|
-
];
|
|
65
|
-
|
|
66
|
-
export const Primary: Story = {
|
|
67
|
-
loaders,
|
|
68
|
-
parameters,
|
|
69
|
-
render: (args) =>
|
|
70
|
-
template(
|
|
71
|
-
args,
|
|
72
|
-
html`
|
|
73
|
-
<or-map-marker
|
|
74
|
-
colour="#FF0000"
|
|
75
|
-
icon="information"
|
|
76
|
-
lat="51.915767"
|
|
77
|
-
lng="4.483118"
|
|
78
|
-
title="Marker"
|
|
79
|
-
></or-map-marker>
|
|
80
|
-
`
|
|
81
|
-
),
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
export const WithRadius: Story = {
|
|
85
|
-
loaders,
|
|
86
|
-
name: "Radius example",
|
|
87
|
-
parameters: {
|
|
88
|
-
...parameters,
|
|
89
|
-
title: "Applying a marker radius",
|
|
90
|
-
summary:
|
|
91
|
-
"Using the `radius` HTML attribute, you can surround your marker with a circle. For example a radius of 100 meters:",
|
|
92
|
-
},
|
|
93
|
-
render: (args) =>
|
|
94
|
-
template(
|
|
95
|
-
args,
|
|
96
|
-
html`
|
|
97
|
-
<or-map-marker
|
|
98
|
-
colour="#FF0000"
|
|
99
|
-
icon="information"
|
|
100
|
-
lat="51.915767"
|
|
101
|
-
lng="4.483118"
|
|
102
|
-
radius="100"
|
|
103
|
-
title="Radius"
|
|
104
|
-
></or-map-marker>
|
|
105
|
-
`
|
|
106
|
-
),
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
export const examples = [WithRadius];
|
|
110
|
-
|
|
111
|
-
export { customElements, packageJson };
|
|
112
|
-
|
|
113
|
-
/* ------------------------------------------------------- */
|
|
114
|
-
/* UTILITY FUNCTIONS */
|
|
115
|
-
/* ------------------------------------------------------- */
|
|
116
|
-
|
|
117
|
-
async function loadOrManager() {
|
|
118
|
-
if (await manager.init({ managerUrl: "http://127.0.0.1:8080", realm: "smartcity" })) {
|
|
119
|
-
if (!manager.authenticated) {
|
|
120
|
-
manager.login();
|
|
121
|
-
}
|
|
122
|
-
return manager;
|
|
123
|
-
}
|
|
124
|
-
throw new Error("Manager could not be initialized");
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export default meta;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|