Skip to content

Commit 731c347

Browse files
Merge branch 'main' into feature/add-new-mode-for-attributions
2 parents 2f50771 + 68c761d commit 731c347

File tree

28 files changed

+244
-234
lines changed

28 files changed

+244
-234
lines changed

package-lock.json

Lines changed: 20 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"@types/node": "^17.0.8",
5353
"@types/ol": "^6.5.3",
5454
"@types/proj4": "^2.5.2",
55-
"@types/sass": "^1.43.1",
5655
"@typescript-eslint/eslint-plugin": "^5.9.0",
5756
"@typescript-eslint/parser": "^5.9.0",
5857
"@vitejs/plugin-vue2": "^2.2.0",

packages/clients/afm/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Feature: This client now supports the `@polar/core`'s field `stylePath`. The usage is documented in the API.md file.
66
- Feature: Update icon of `layerChooser` in `iconMenu` to `fa-layer-group` to clear-up the content hidden behind the menu button.
7+
- Chore: Change value of `pins.movable` configuration to `'drag'` as using a boolean has been deprecated in a future release.
78

89
## 1.0.1
910

packages/clients/afm/example/polar-example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const mapConfiguration = {
6767
},
6868
pins: {
6969
toZoomLevel: 9,
70-
movable: true,
70+
movable: 'drag',
7171
appearOnClick: {
7272
show: true,
7373
atZoomLevel: 3,

packages/clients/dish/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
## unpublished
44

55
- Feature: If a user is geolocated outside of the map's extent, the client will inform the user of why geolocation did not take effect via a textbox.
6+
- Chore: Change value of `pins.movable` configuration to `'drag'` as using a boolean has been deprecated in a future release.
67

78
## 1.1.1
89

packages/clients/dish/src/mapConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ export const mapConfiguration = {
208208
},
209209
pins: {
210210
toZoomLevel: 7,
211-
movable: true,
211+
movable: 'drag',
212212
style: {
213213
fill: shBlue,
214214
},

packages/clients/meldemichel/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# CHANGELOG
22

3+
## unpublished
4+
5+
- Chore: Change value of `pins.movable` configuration to `'drag'` as using a boolean has been deprecated in a future release.
6+
37
## 1.1.2
48

59
- Chore: Fix bugs via dependency updates.

packages/clients/meldemichel/src/mapConfigurations.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ const addressSearch: AddressSearchConfiguration = {
104104

105105
const commonPins: Partial<PinsConfiguration> = {
106106
toZoomLevel: 7,
107-
movable: true,
107+
movable: 'drag',
108108
style: {
109109
fill: hamburgRed,
110110
},

packages/clients/snowbox/src/mapConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ export const mapConfiguration = {
179179
pins: {
180180
boundaryLayerId: hamburgBorder,
181181
toZoomLevel: 9,
182-
movable: true,
182+
movable: 'drag',
183183
appearOnClick: {
184184
show: true,
185185
atZoomLevel: 0,

packages/core/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
- Feature: Add new state parameter `mapHasDimensions` to let plugins have a "hook" to react on when the map is ready.
66
- Feature: Add `deviceIsHorizontal` as a getter to have a more central place to check if the device is in landscape mode.
77
- Fix: Adjust documentation to properly describe optionality of configuration parameters.
8+
- Fix: Add package `events` as a dependency to fix issue with `xml2js`. See https://github.com/Leonidas-from-XIV/node-xml2js/issues/697 for more information.
89
- Chore: Update dependencies to latest versions.
910

1011
## 1.4.1

packages/core/README.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ MapClient.createMap({
6969

7070
The mapConfiguration allows controlling many client instance details.
7171

72-
| fieldName | type | description |
73-
| --------------------------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
74-
| layerConf | LayerConf | Layer configuration as required by masterportalAPI. |
75-
| language | enum["de", "en"] | Initial language. |
76-
| <...masterportalAPI.fields> | various | The object is also used to initialize the masterportalAPI. Please refer to their documentation for options. |
77-
| <plugin.fields> | various? | Many plugins added with `addPlugin` may respect additional configuration. Please see the respective plugin documentations. Global plugin parameters are described below. |
72+
| fieldName | type | description |
73+
| - | - | - |
74+
| layerConf | LayerConf | Layer configuration as required by masterportalAPI. |
75+
| language | enum["de", "en"] | Initial language. |
76+
| <...masterportalAPI.fields> | various | The object is also used to initialize the masterportalAPI. Please refer to their documentation for options. |
77+
| <plugin.fields> | various? | Many plugins added with `addPlugin` may respect additional configuration. Please see the respective plugin documentations. Global plugin parameters are described below. |
7878
| locales | LanguageOption[]? | All locales in POLAR's plugins can be overridden to fit your needs.|
79-
| vuetify | object? | You may add vuetify configuration here. |
79+
| vuetify | object? | You may add vuetify configuration here. |
8080
| extendedMasterportalapiMarkers | extendedMasterportalapiMarkers? | Optional. If set, all configured visible vector layers' features can be hovered and selected by mouseover and click respectively. They are available as features in the store. Layers with `clusterDistance` will be clustered to a multi-marker that supports the same features. Please mind that this only works properly if you configure nothing but point marker vector layers styled by the masterportalAPI. |
8181
| stylePath | string? | If no link tag with `data-polar="true"` is found in the document, this path will be used to create the link node in the client itself. It defaults to `'./style.css'`. Please mind that `data-polar="true"` is deprecated since it potentially led to flashes of misstyled content. stylePath will replace that solution in the next major release. |
8282
| renderFaToLightDom | boolean? | POLAR requires FontAwesome in the Light/Root DOM due to an [unfixed bug in many browsers](https://bugs.chromium.org/p/chromium/issues/detail?id=336876). This value defaults to `true`. POLAR will, by default, just add the required CSS by itself. Should you have a version of Fontawesome already included, you can try to set this to `false` to check whether the versions are interoperable. |
@@ -138,7 +138,7 @@ To figure out the name of the locales to override, inspect the matching plugin i
138138
A full documentation of the masterportalapiPolygonFillHatch is available at the Masterportal's documentation file [style.json.md](https://bitbucket.org/geowerkstatt-hamburg/masterportal/src/dev/doc/style.json.md), chapter 'Polygon.polygonFillHatch'. The basic usage is quoted below for quick lookup. For more details, visual examples, and expert features, see there.
139139

140140
>|Name|Required|Type|Default|Description|
141-
>|----|--------|----|-------|-----------|
141+
>| - | - | - | - | - |
142142
>|pattern|no|enum["diagonal", "diagonal-right", "zig-line", "zig-line-horizontal", "circle", "rectangle", "triangle", "diamond"]/Object|`"diagonal"`|Draw pattern. You may either use a pre-defined pattern from the enum or specify one yourself.|
143143
>|size|no|Number|`30`|Edge length of a singular repeated pattern element.|
144144
>|lineWidth|no|Number|`10`|Line width of drawn pattern. To achieve an even distribution in diagonal and zig-line pattern, choose lineWidth as (1/3 * size). For triangle and diamond, a lineWidth of 1 must be chosen. For rectangle, a lineWidth of at most (1/4 * size) should be chosen. Deviating from these rules is not harmful, but patterns may seem off.|
@@ -188,14 +188,14 @@ Since this is the base for many functions, the service ID set in this is used to
188188

189189
The `<...masterportalAPI.fields>` means that any masterportalAPI field may also be used here _directly_. The most common fields are the following ones; for more, see masterportalAPI.
190190

191-
| fieldName | type | description |
192-
| ---------------- | -------- | ------------------------------------------------------------------------------------------------------------------------- |
193-
| startResolution | number | Initial resolution; must be in options. See below. |
194-
| startCenter | number[] | Initial center coordinate. |
195-
| extent | number[] | Map movement will be restricted to this rectangle. |
196-
| epsg | string | Leading coordinate system, e.g. `"EPSG:25832"`. |
197-
| options | Array | Defines all available zoomLevels. Entries define `resolution`, `scale`, and `zoomLevel`. See masterportalAPI for details. |
198-
| namedProjections | Array | Array of usable projections by proj4 string. |
191+
| fieldName | type | description |
192+
| - | - | - |
193+
| startResolution | number | Initial resolution; must be in options. See below. |
194+
| startCenter | number[] | Initial center coordinate. |
195+
| extent | number[] | Map movement will be restricted to this rectangle. |
196+
| epsg | string | Leading coordinate system, e.g. `"EPSG:25832"`. |
197+
| options | Array | Defines all available zoomLevels. Entries define `resolution`, `scale`, and `zoomLevel`. See masterportalAPI for details. |
198+
| namedProjections | Array | Array of usable projections by proj4 string. |
199199

200200
##### <plugin.fields>
201201

@@ -211,8 +211,8 @@ On how to configure a plugin, see the respective plugin. The configuration is gi
211211

212212
Most plugins honor this additional field.
213213

214-
| fieldName | type | description |
215-
| ---------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
214+
| fieldName | type | description |
215+
| - | - | - |
216216
| displayComponent | boolean? | Optional field that allows hiding UI elements from the user. The store will still be initialized, allowing you to add your own UI elements and control the plugin's functionality via the Store. This may or may not make sense, depending on the plugin. Defaults to `false` , meaning the default UI is hidden. |
217217

218218
##### mapConfiguration.vuetify

packages/core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@polar/lib-invisible-style": "^1.0.0",
2121
"@repositoryname/noop": "^1.0.6",
2222
"@repositoryname/vuex-generators": "^1.1.2",
23+
"events": "^3.3.0",
2324
"hammerjs": "2.0.8",
2425
"i18next": "^23.11.5",
2526
"i18next-browser-languagedetector": "^8.0.0",

0 commit comments

Comments
 (0)