Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slb/ad/cadenza 38410 #74

Merged
merged 9 commits into from
Nov 26, 2024
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
This project uses a version scheme based on the Cadenza main version in the format x.x.y, where x.x is the Cadenza main version and y a functional change or bugfix.

## Unreleased
### Fixed
- Removed duplicate geometry section in `sandbox.html#editGeometry`

### Changed
- Examples in the sandbox are now displayed more compactly

## 10.2.6 - 2024-11-25
### Fixed
Expand Down
72 changes: 42 additions & 30 deletions sandbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,7 @@
</div>
</template>

<template data-action="showMap" data-common="additionalLayers,extentStrategy,map,showWorkbook,disabledUiFeatures,filter,show">
<template data-action="showMap" data-common="geometry,additionalLayers,extentStrategy,map,showWorkbook,disabledUiFeatures,filter,show">
<div>
<label for="embeddingTargetId">Embedding target ID of the map view *</label>
<input name="embeddingTargetId" id="embeddingTargetId" required>
Expand Down Expand Up @@ -523,10 +523,10 @@
{
"coordinates":[
[
[9.598504509838506,52.70992820638244],
[8.899110702389294,51.72257425885121],
[10.906499617840836,51.725944168909365],
[9.598504509838506,52.70992820638244]
[9.59,52.70],
[8.89,51.72],
[10.90,51.72],
[9.59,52.70]
]
],
"type":"Polygon"
Expand Down Expand Up @@ -617,7 +617,7 @@

<template id="common-additionalLayers">
<div>
<label for="geometry">Additional layers (GeoJSON)</label>
<label for="additionalLayers">Additional layers (GeoJSON)</label>
<textarea name="additionalLayers" id="additionalLayers" rows="10"></textarea>
<small>
<strong>Example:</strong>
Expand All @@ -635,10 +635,10 @@
"geometry":{
"coordinates":[
[
[7.965977481550681,47.93787211649922],
[7.903787681150362,47.64741821336713],
[8.310793134690243,47.70344757260733],
[7.965977481550681,47.93787211649922]
[7.96,47.93],
[7.90,47.64],
[8.31,47.70],
[7.96,47.93]
]
],
"type":"Polygon"
Expand All @@ -651,19 +651,22 @@
</pre>
</small>
</div>
</template>

<template id="common-geometry">
<div>
<label for="geometry">Geometry (GeoJSON)</label>
<label for="geometry">Geometry (GeoJSON) *</label>
<textarea name="geometry" id="geometry" rows="5"></textarea>
<small>
<strong>Example:</strong>
<pre>
{
"coordinates":[
[
[9.598504509838506,52.70992820638244],
[8.899110702389294,51.72257425885121],
[10.906499617840836,51.725944168909365],
[9.598504509838506,52.70992820638244]
[9.59,52.70],
[8.89,51.72],
[10.90,51.72],
[9.59,52.70]
]
],
"type":"Polygon"
Expand All @@ -690,28 +693,37 @@
Supported extent strategies as examples to use:
<ul>
<li><pre>{
"type": "geometry",
"geometry": {
"coordinates":[[
[9.598504509838506,52.70992820638244],
[8.899110702389294,51.72257425885121],
[10.906499617840836,51.725944168909365],
[9.598504509838506,52.70992820638244]]],
"type":"Polygon"
"type":"geometry",
"geometry":{
"coordinates":[
[
[7.96,47.93],
[7.90,47.64],
[8.31,47.70],
[7.96,47.93]
]
],
"type":"Polygon"
}
}</pre></li>
<li><pre>{
"type": "locationFinder",
"query": "Hamburg"
"type":"locationFinder",
"query":"Hamburg"
}</pre></li>
<li><pre>{
"type": "static",
"extent": [9.585571,53.38169,10.483704,53.859007]
"type":"static",
"extent":[9.5,53.3,10.4,53.8]
}</pre></li>
<li><pre>{"type": "layerData"}</pre></li>
<li><pre>{"type":"layerData"}</pre></li>
<li><pre>{
"type": "layerData",
"layers": ["Messstellen", ["Gewässer", "Gewässername"]]
"type":"layerData",
"layers":[
"Messstellen",
[
"Gewässer",
"Gewässername"
]
]
}</pre></li>
</ul>
</p>
Expand Down