From cd1ccf99b7f1d7052403f336766be926ffab0f4b Mon Sep 17 00:00:00 2001 From: Dennis Sen Date: Fri, 9 Feb 2024 12:18:27 +0100 Subject: [PATCH 1/3] add noscript advisory --- packages/clients/afm/API.md | 5 ++++- packages/clients/afm/example/index.html | 4 +++- packages/clients/afm/example/prod-example.html | 4 +++- packages/clients/dish/src/index.html | 4 +++- packages/clients/generic/API.md | 16 ++++++++++++++++ packages/clients/meldemichel/API.md | 5 ++++- packages/clients/meldemichel/src/html/index.html | 4 +++- packages/clients/meldemichel/src/index.html | 4 +++- packages/clients/snowbox/src/index.html | 4 +++- 9 files changed, 42 insertions(+), 8 deletions(-) diff --git a/packages/clients/afm/API.md b/packages/clients/afm/API.md index bbba2c2c0..f88fe6303 100644 --- a/packages/clients/afm/API.md +++ b/packages/clients/afm/API.md @@ -38,7 +38,10 @@ In your HTML, a div with unique ID is required that holds the following style pr position: relative; " id="polarstern" -/> +> + + + ``` ```js diff --git a/packages/clients/afm/example/index.html b/packages/clients/afm/example/index.html index f850c8359..44d587904 100644 --- a/packages/clients/afm/example/index.html +++ b/packages/clients/afm/example/index.html @@ -34,7 +34,9 @@

Karte

box-shadow: 0px 0px 5px 3px rgba(255, 255, 255, 0.5); " id="polarstern" - > + > + +

Beispiel für programmatische Informationsbindung

Aktuelle Zoomstufe:

Featureinformationen:

diff --git a/packages/clients/afm/example/prod-example.html b/packages/clients/afm/example/prod-example.html index 4aa71fa0e..c13e670b6 100644 --- a/packages/clients/afm/example/prod-example.html +++ b/packages/clients/afm/example/prod-example.html @@ -34,7 +34,9 @@

Karte

box-shadow: 0px 0px 5px 3px rgba(255, 255, 255, 0.5); " id="polarstern" - > + > + +

Beispiel für programmatische Informationsbindung

Aktuelle Zoomstufe:

Featureinformationen:

diff --git a/packages/clients/dish/src/index.html b/packages/clients/dish/src/index.html index ffeee8b66..4bf5504c5 100644 --- a/packages/clients/dish/src/index.html +++ b/packages/clients/dish/src/index.html @@ -20,7 +20,9 @@
-
+
+ +
diff --git a/packages/clients/generic/API.md b/packages/clients/generic/API.md index ffebf99ec..a38a34c97 100644 --- a/packages/clients/generic/API.md +++ b/packages/clients/generic/API.md @@ -20,6 +20,22 @@ The method expects a single object with the following parameters. | 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. | | 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. | +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. + +```html +
+ + +
+``` + `createMap` returns a Promise of a map instance. This returned instance is required to retrieve information from the map. 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: diff --git a/packages/clients/meldemichel/API.md b/packages/clients/meldemichel/API.md index 3ca5bf9f3..a9bdf144d 100644 --- a/packages/clients/meldemichel/API.md +++ b/packages/clients/meldemichel/API.md @@ -67,7 +67,10 @@ A document rendering the map client could e.g. look like this: -
+
+ + +