You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/clients/meldemichel/API.md
+56-1Lines changed: 56 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,7 @@ The method expects a single object with the following parameters.
16
16
| - | - | - |
17
17
| containerId | string | ID of the container the map is supposed to render itself to. |
18
18
| mode | enum["REPORT", "SINGLE", "COMPLETE"]| See chapters below for an overview of the modes. |
19
+
| stadtwaldActive | boolean? | This layer only works in 'SINGLE' mode and should not be activated in the others. If not set, any existing previous state is kept; off by default. |
19
20
| afmUrl | string? |`COMPLETE` mode only. The URL used here is the URL of the AfM service to open to create a new damage report. |
20
21
| reportServiceId | string? |`COMPLETE` mode only. ID of the report layer to display. Both the Filter and the Feature List will work with this layer. The client will also provide tooltips and cluster the features. |
21
22
| configOverride | object? | This can be used to override the configuration of any installed plugin; see full documentation. It is also used to set initial pins in `SINGLE` mode. See documentation of `SINGLE` further below. |
@@ -77,6 +78,8 @@ A document rendering the map client could e.g. look like this:
POLAR will rebuild the given div to contain a ShadowDOM that hosts the map. The outer div will change to have the id `meldemichel-map-client-wrapper` (resp. `${yourId}-wrapper`) and can be used to style the map's height and width with, for example:
179
+
180
+
```css
181
+
#meldemichel-map-client-wrapper {
182
+
/* "position: relative;" is the minimum required styling */
183
+
position: relative;
184
+
height: 400px;
185
+
width: 100%;
186
+
}
187
+
```
188
+
189
+
To also serve users with JS disabled some content, this fragment is common:
190
+
191
+
```html
192
+
<divid="meldemichel-map-client">
193
+
<!-- Optional, if your page does not have its own <noscript> information -->
194
+
<noscript>Please use a browser with active JavaScript to use the map client.</noscript>
195
+
</div>
196
+
```
197
+
198
+
For a complete example, you may also check [the running embedded scenario](https://dataport.github.io/polar/docs/meldemichel/example/complete_embedded.html) or its [source file](https://github.com/Dataport/polar/blob/main/packages/clients/meldemichel/example/complete_embedded.html).
Copy file name to clipboardExpand all lines: packages/clients/meldemichel/CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
## unpublished
4
4
5
+
- Feature: Add `stadtwaldActive` as startup parameter for `createMap` object and `meldemichel/setMapState` action. Refer to the API.md regarding further details.
5
6
- Fix: Import type `MpApiParameters` from correct position.
6
7
- Chore: Change value of `pins.movable` configuration to `'drag'` as using a boolean has been deprecated in a future release.
7
8
- Chore: Update `@polar`-dependencies to the latest versions.
/* div with this id is created on `createMap` call to host shadow DOM */
16
+
#polarstern-wrapper {
17
+
position: relative;
18
+
height:400px;
19
+
width:100%;
20
+
}
21
+
22
+
/* the following styling is purely for surrounding example content */
23
+
html,body {
24
+
margin:0;
25
+
padding:0;
26
+
font-family: sans-serif;
27
+
}
28
+
29
+
header {
30
+
padding:02em;
31
+
}
32
+
33
+
#hh-bug {
34
+
height:35px;
35
+
width:400px;
36
+
margin-left:-280px;
37
+
transform:skew(-35deg);
38
+
background:#e10019;
39
+
border-bottom-right-radius:6px;
40
+
margin-bottom:1em;
41
+
}
42
+
43
+
main {
44
+
display: flex;
45
+
flex-direction: column;
46
+
gap:2em;
47
+
}
48
+
49
+
.blue-content {
50
+
color: white;
51
+
background:#1a4573;
52
+
}
53
+
54
+
.padded-x {
55
+
padding-right:10vw;
56
+
padding-left:10vw;
57
+
}
58
+
59
+
.padded-y {
60
+
padding-top:4em;
61
+
padding-bottom:4em;
62
+
}
63
+
64
+
h2 {
65
+
font-size:38pt;
66
+
}
67
+
68
+
p {
69
+
font-size:32px;
70
+
}
71
+
72
+
footer {
73
+
color: white;
74
+
background:#003063;
75
+
padding:1em5vw;
76
+
}
77
+
</style>
78
+
</head>
79
+
<body>
80
+
<nav></nav>
81
+
<header>
82
+
<h1>Meldemichel-Einbindesimulation</h1>
83
+
</header>
84
+
<divid="hh-bug"></div>
85
+
<main>
86
+
<sectionclass="blue-content padded-x padded-y">
87
+
<h2>Blindtext</h2>
88
+
<p>Li Europan lingues es membres del sam familie. Lor separat existentie es un myth. Por scientie, musica, sport etc, litot Europa usa li sam vocabular.</p>
<!-- ID can be anything as long as it's used in .createMap, too -->
93
+
<divid="polarstern"></div>
94
+
</section>
95
+
<sectionclass="padded-x padded-y">
96
+
<h2>Blindtext II.</h2>
97
+
<p>Li lingues differe solmen in li grammatica, li pronunciation e li plu commun vocabules. Omnicos directe al desirabilite de un nov lingua franca: On refusa continuar payar custosi traductores.</p>
98
+
</section>
99
+
</main>
100
+
<footer>At solmen va esser necessi far uniform grammatica, pronunciation e plu sommun paroles.</footer>
'Kartografie Stadtplan: <a target="_blank" href="https://www.hamburg.de/bsw/landesbetrieb-geoinformation-und-vermessung/">Landesbetrieb Geoinformation und Vermessung</a>',
57
+
stadtwald:
58
+
'Kartografie Stadtwald: <a target="_blank" href="https://www.hamburg.de/politik-und-verwaltung/behoerden/bukea">Freie und Hansestadt Hamburg, Behörde für Umwelt, Klima, Energie und Agrarwirtschaft (BUKEA)</a>',
57
59
luftbilder:
58
60
'Kartografie Luftbilder: <a target="_blank" href="https://www.hamburg.de/bsw/landesbetrieb-geoinformation-und-vermessung/">Landesbetrieb Geoinformation und Vermessung</a>',
0 commit comments