@vaadin/map 23.2.0-alpha6 → 23.2.0-beta3
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/README.md +0 -8
- package/package.json +6 -5
- package/src/vaadin-map.d.ts +0 -1
- package/src/vaadin-map.js +1 -12
- package/web-types.json +2 -2
- package/web-types.lit.json +2 -2
- package/enable.js +0 -3
package/README.md
CHANGED
|
@@ -29,14 +29,6 @@ Once installed, import the component in your application:
|
|
|
29
29
|
import '@vaadin/map';
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Map is currently an experimental feature and must be explicitly enabled through a feature flag.
|
|
33
|
-
To do so, import the enabler module before the map component module itself:
|
|
34
|
-
|
|
35
|
-
```js
|
|
36
|
-
import '@vaadin/map/enable';
|
|
37
|
-
import '@vaadin/map';
|
|
38
|
-
```
|
|
39
|
-
|
|
40
32
|
## Contributing
|
|
41
33
|
|
|
42
34
|
Read the [contributing guide](https://vaadin.com/docs/latest/guide/contributing/overview) to learn about our development process, how to propose bugfixes and improvements, and how to test your changes to Vaadin components.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vaadin/map",
|
|
3
|
-
"version": "23.2.0-
|
|
3
|
+
"version": "23.2.0-beta3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
"module": "vaadin-map.js",
|
|
22
22
|
"type": "module",
|
|
23
23
|
"files": [
|
|
24
|
-
"enable.js",
|
|
25
24
|
"src",
|
|
26
25
|
"theme",
|
|
27
26
|
"vaadin-*.d.ts",
|
|
@@ -38,8 +37,10 @@
|
|
|
38
37
|
],
|
|
39
38
|
"dependencies": {
|
|
40
39
|
"@polymer/polymer": "^3.0.0",
|
|
41
|
-
"@vaadin/component-base": "23.2.0-
|
|
42
|
-
"@vaadin/vaadin-
|
|
40
|
+
"@vaadin/component-base": "23.2.0-beta3",
|
|
41
|
+
"@vaadin/vaadin-lumo-styles": "23.2.0-beta3",
|
|
42
|
+
"@vaadin/vaadin-material-styles": "23.2.0-beta3",
|
|
43
|
+
"@vaadin/vaadin-themable-mixin": "23.2.0-beta3",
|
|
43
44
|
"ol": "6.13.0"
|
|
44
45
|
},
|
|
45
46
|
"devDependencies": {
|
|
@@ -51,5 +52,5 @@
|
|
|
51
52
|
"web-types.json",
|
|
52
53
|
"web-types.lit.json"
|
|
53
54
|
],
|
|
54
|
-
"gitHead": "
|
|
55
|
+
"gitHead": "3389e7d2dd4c94c6354817d4dc8c8d2db48c7137"
|
|
55
56
|
}
|
package/src/vaadin-map.d.ts
CHANGED
|
@@ -23,7 +23,6 @@ import { ThemableMixin } from '@vaadin/vaadin-themable-mixin';
|
|
|
23
23
|
* Then use the exposed OpenLayers API to configure it:
|
|
24
24
|
* ```html
|
|
25
25
|
* <script type="module">
|
|
26
|
-
* import "@vaadin/map/enable";
|
|
27
26
|
* import "@vaadin/map";
|
|
28
27
|
* import TileLayer from "ol/layer/Tile";
|
|
29
28
|
* import OSM from "ol/source/OSM";
|
package/src/vaadin-map.js
CHANGED
|
@@ -12,10 +12,6 @@ import { FocusMixin } from '@vaadin/component-base/src/focus-mixin.js';
|
|
|
12
12
|
import { ResizeMixin } from '@vaadin/component-base/src/resize-mixin.js';
|
|
13
13
|
import { ThemableMixin } from '@vaadin/vaadin-themable-mixin/vaadin-themable-mixin.js';
|
|
14
14
|
|
|
15
|
-
function isEnabled() {
|
|
16
|
-
return window.Vaadin && window.Vaadin.featureFlags && !!window.Vaadin.featureFlags.mapComponent;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
15
|
/**
|
|
20
16
|
* `vaadin-map` is a web component for displaying web maps.
|
|
21
17
|
*
|
|
@@ -32,7 +28,6 @@ function isEnabled() {
|
|
|
32
28
|
* Then use the exposed OpenLayers API to configure it:
|
|
33
29
|
* ```html
|
|
34
30
|
* <script type="module">
|
|
35
|
-
* import "@vaadin/map/enable";
|
|
36
31
|
* import "@vaadin/map";
|
|
37
32
|
* import TileLayer from "ol/layer/Tile";
|
|
38
33
|
* import OSM from "ol/source/OSM";
|
|
@@ -460,12 +455,6 @@ class Map extends ResizeMixin(FocusMixin(ElementMixin(ThemableMixin(PolymerEleme
|
|
|
460
455
|
}
|
|
461
456
|
}
|
|
462
457
|
|
|
463
|
-
|
|
464
|
-
customElements.define(Map.is, Map);
|
|
465
|
-
} else {
|
|
466
|
-
console.warn(
|
|
467
|
-
'WARNING: The map component is currently an experimental feature and needs to be explicitly enabled. To enable the component, `import "@vaadin/map/enable.js"` *before* importing the map module itself.',
|
|
468
|
-
);
|
|
469
|
-
}
|
|
458
|
+
customElements.define(Map.is, Map);
|
|
470
459
|
|
|
471
460
|
export { Map };
|
package/web-types.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/map",
|
|
4
|
-
"version": "23.2.0-
|
|
4
|
+
"version": "23.2.0-beta3",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
8
8
|
"elements": [
|
|
9
9
|
{
|
|
10
10
|
"name": "vaadin-map",
|
|
11
|
-
"description": "`vaadin-map` is a web component for displaying web maps.\n\nThe component is a light-weight wrapper around the OpenLayers mapping library.\n\n### Basic Usage\n\nAdd a `<vaadin-map>` element to your HTML:\n\n```html\n<vaadin-map></vaadin-map>\n```\n\nThen use the exposed OpenLayers API to configure it:\n```html\n<script type=\"module\">\n import \"@vaadin/map
|
|
11
|
+
"description": "`vaadin-map` is a web component for displaying web maps.\n\nThe component is a light-weight wrapper around the OpenLayers mapping library.\n\n### Basic Usage\n\nAdd a `<vaadin-map>` element to your HTML:\n\n```html\n<vaadin-map></vaadin-map>\n```\n\nThen use the exposed OpenLayers API to configure it:\n```html\n<script type=\"module\">\n import \"@vaadin/map\";\n import TileLayer from \"ol/layer/Tile\";\n import OSM from \"ol/source/OSM\";\n import View from \"ol/View\";\n\n const map = document.querySelector(\"vaadin-map\");\n customElements.whenDefined(\"vaadin-map\").then(() => {\n map.configuration.addLayer(new TileLayer({\n source: new OSM()\n }));\n map.configuration.setView(new View({\n center: [0, 0],\n zoom: 3\n }));\n });\n</script>\n```",
|
|
12
12
|
"attributes": [
|
|
13
13
|
{
|
|
14
14
|
"name": "theme",
|
package/web-types.lit.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/web-types",
|
|
3
3
|
"name": "@vaadin/map",
|
|
4
|
-
"version": "23.2.0-
|
|
4
|
+
"version": "23.2.0-beta3",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"framework": "lit",
|
|
7
7
|
"framework-config": {
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"elements": [
|
|
17
17
|
{
|
|
18
18
|
"name": "vaadin-map",
|
|
19
|
-
"description": "`vaadin-map` is a web component for displaying web maps.\n\nThe component is a light-weight wrapper around the OpenLayers mapping library.\n\n### Basic Usage\n\nAdd a `<vaadin-map>` element to your HTML:\n\n```html\n<vaadin-map></vaadin-map>\n```\n\nThen use the exposed OpenLayers API to configure it:\n```html\n<script type=\"module\">\n import \"@vaadin/map
|
|
19
|
+
"description": "`vaadin-map` is a web component for displaying web maps.\n\nThe component is a light-weight wrapper around the OpenLayers mapping library.\n\n### Basic Usage\n\nAdd a `<vaadin-map>` element to your HTML:\n\n```html\n<vaadin-map></vaadin-map>\n```\n\nThen use the exposed OpenLayers API to configure it:\n```html\n<script type=\"module\">\n import \"@vaadin/map\";\n import TileLayer from \"ol/layer/Tile\";\n import OSM from \"ol/source/OSM\";\n import View from \"ol/View\";\n\n const map = document.querySelector(\"vaadin-map\");\n customElements.whenDefined(\"vaadin-map\").then(() => {\n map.configuration.addLayer(new TileLayer({\n source: new OSM()\n }));\n map.configuration.setView(new View({\n center: [0, 0],\n zoom: 3\n }));\n });\n</script>\n```",
|
|
20
20
|
"extension": true,
|
|
21
21
|
"attributes": []
|
|
22
22
|
}
|
package/enable.js
DELETED