Skip to content

Commit 0629de3

Browse files
committed
Merge branch 'feature/address-search-title-i18n' of https://github.com/Dataport/polar into client/text-locator
2 parents 8cb3493 + da91743 commit 0629de3

File tree

16 files changed

+60
-10
lines changed

16 files changed

+60
-10
lines changed

packages/clients/afm/API.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,10 @@ In your HTML, a div with unique ID is required that holds the following style pr
3838
position: relative;
3939
"
4040
id="polarstern"
41-
/>
41+
>
42+
<!-- Optional, may use if your page does not have its own <noscript> information -->
43+
<noscript>Please use a browser with active JavaScript to use the map client.</noscript>
44+
</div>
4245
```
4346

4447
```js

packages/clients/afm/example/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ <h2>Karte</h2>
3434
box-shadow: 0px 0px 5px 3px rgba(255, 255, 255, 0.5);
3535
"
3636
id="polarstern"
37-
></div>
37+
>
38+
<noscript>Bitte benutzen Sie einen Browser mit aktiviertem JavaScript, um den Kartenklienten zu nutzen.</noscript>
39+
</div>
3840
<h2>Beispiel für programmatische Informationsbindung</h2>
3941
<p>Aktuelle Zoomstufe: <span id="vuex-target-zoom" /></p>
4042
<p>Featureinformationen: <span id="vuex-target-gfi" /></p>

packages/clients/afm/example/prod-example.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,9 @@ <h2>Karte</h2>
3434
box-shadow: 0px 0px 5px 3px rgba(255, 255, 255, 0.5);
3535
"
3636
id="polarstern"
37-
></div>
37+
>
38+
<noscript>Bitte benutzen Sie einen Browser mit aktiviertem JavaScript, um den Kartenklienten zu nutzen.</noscript>
39+
</div>
3840
<h2>Beispiel für programmatische Informationsbindung</h2>
3941
<p>Aktuelle Zoomstufe: <span id="vuex-target-zoom" /></p>
4042
<p>Featureinformationen: <span id="vuex-target-gfi" /></p>

packages/clients/dish/src/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
</head>
2121
<body style="width: 100%; height: 100%; overscroll-behavior: contain">
2222
<div style="width: 100%; height: 100%">
23-
<div id="polarstern"></div>
23+
<div id="polarstern">
24+
<noscript>Bitte benutzen Sie einen Browser mit aktiviertem JavaScript, um den Kartenklienten zu nutzen.</noscript>
25+
</div>
2426
</div>
2527
<script type="module" src="./polar-client.ts"></script>
2628
</body>

packages/clients/generic/API.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,22 @@ The method expects a single object with the following parameters.
2020
| enabledPlugins | string[]? | This is a client-specific field. Since the `@polar/client-generic` client contains all existing plugins, they are activated by strings. The strings match their package names: `'address-search' \| 'attributions' \| 'draw'* \| 'export' \| 'filter'* \| 'fullscreen'* \| 'geo-location'* \| 'gfi'* \| 'icon-menu' \| 'layer-chooser'* \| 'legend' \| 'loading-indicator' \| 'pins' \| 'reverse-geocoder' \| 'scale' \| 'toast' \| 'zoom'*`. The plugins marked with * are nested in the `'icon-menu'` in this pre-layouting, hence they depend upon it being active, too. |
2121
| modifyLayerConfiguration | ((layerConf: object[]) => object[])? | Defaults to identity function. This function is applied to the loaded layer configuration before usage. That is, the `services` can be modified by this to e.g. set parameters not supported by the service register, add additional layers, and so on. |
2222

23+
In your HTML, a div with unique ID (`containerId` from above) is required that holds the following style properties. Width and height can be changed as you need, but are required to be defined.
24+
25+
```html
26+
<div
27+
style="
28+
width: 680px;
29+
height: 420px;
30+
position: relative;
31+
"
32+
id="polarstern"
33+
>
34+
<!-- Optional, may use if your page does not have its own <noscript> information -->
35+
<noscript>Please use a browser with active JavaScript to use the map client.</noscript>
36+
</div>
37+
```
38+
2339
`createMap` returns a Promise of a map instance. This returned instance is required to retrieve information from the map.
2440

2541
The package also includes a `style.css` and an `index.html` file. The `style.css`'s relative path must, if it isn't the default value `'./style.css'`, be included in the `mapConfiguration` as follows:

packages/clients/meldemichel/API.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,10 @@ A document rendering the map client could e.g. look like this:
6767
</style>
6868
</head>
6969
<body>
70-
<div id="meldemichel-map-client"></div>
70+
<div id="meldemichel-map-client">
71+
<!-- Optional, may use if your page does not have its own <noscript> information -->
72+
<noscript>Please use a browser with active JavaScript to use the map client.</noscript>
73+
</div>
7174
<script type="module">
7275
import meldemichelMapClient from './client-meldemichel.js'
7376

packages/clients/meldemichel/src/html/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@
2020
</head>
2121
<body style="width: 100%; height: 100%; overscroll-behavior: contain">
2222
<div style="width: 100%; height: 100%">
23-
<div id="polarstern"></div>
23+
<div id="polarstern">
24+
<noscript>Bitte benutzen Sie einen Browser mit aktiviertem JavaScript, um den Kartenklienten zu nutzen.</noscript>
25+
</div>
2426
</div>
2527
<script type="module">
2628
import client from './client-meldemichel.js'

packages/clients/meldemichel/src/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,9 @@
2121
</head>
2222
<body style="width: 100%; height: 100%; overscroll-behavior: contain">
2323
<div style="width: 100%; height: 100%">
24-
<div id="polarstern"></div>
24+
<div id="polarstern">
25+
<noscript>Bitte benutzen Sie einen Browser mit aktiviertem JavaScript, um den Kartenklienten zu nutzen.</noscript>
26+
</div>
2527
</div>
2628
<script type="module">
2729
import client from './polar-client.ts'

packages/clients/snowbox/src/index.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@ <h2>🗺️ Map</h2>
8484
<option value="de">German</option>
8585
</select>
8686
</label>
87-
<div id="polarstern" class="polarstern"></div>
87+
<div id="polarstern" class="polarstern">
88+
<noscript>Please use a browser with active JavaScript to use the map client.</noscript>
89+
</div>
8890
<h2>Example for programmatic information binding</h2>
8991
<p>
9092
This illustrates which kind of data can be retrieved from the map client.

packages/plugins/AddressSearch/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+
- Feature: Add title internationalization; i.e. features may now contain locale keys as titles.
6+
37
## 1.2.1
48

59
- Fix: Keyboard navigation of results to work on all browsers.

0 commit comments

Comments
 (0)