diff --git a/CHANGELOG.md b/CHANGELOG.md index 5aff67e7..237739d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,9 @@ 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 +### Added +- `additionalLayers` option for `CadenzaClient#showMap` +- Improved sandbox additionalLayers and geometry coordinates examples ## 10.2.3 - 2024-11-08 ### Added diff --git a/sandbox.html b/sandbox.html index 7769cd9b..c04c337d 100644 --- a/sandbox.html +++ b/sandbox.html @@ -474,9 +474,60 @@ +
+ + + + Example: +
+[
+  {
+    "type":"geojson",
+    "name":"freiburg",
+    "content":{
+      "type":"FeatureCollection",
+      "features":[
+        {
+          "type":"Feature",
+          "properties":{},
+          "geometry":{
+            "coordinates":[
+              [
+                [7.965977481550681,47.93787211649922],
+                [7.903787681150362,47.64741821336713],
+                [8.310793134690243,47.70344757260733],
+                [7.965977481550681,47.93787211649922]
+              ]
+            ],
+            "type":"Polygon"
+          }
+        }
+      ]
+    }
+  }
+]
+        
+
+
- + + + Example: +
+{
+  "coordinates":[
+    [
+      [9.598504509838506,52.70992820638244],
+      [8.899110702389294,51.72257425885121],
+      [10.906499617840836,51.725944168909365],
+      [9.598504509838506,52.70992820638244]
+    ]
+  ],
+  "type":"Polygon"
+}
+      
+
@@ -503,7 +554,38 @@
- + + + Example: +
+[
+  {
+    "type":"geojson",
+    "name":"freiburg",
+    "content":{
+      "type":"FeatureCollection",
+      "features":[
+        {
+          "type":"Feature",
+          "properties":{},
+          "geometry":{
+            "coordinates":[
+              [
+                [7.965977481550681,47.93787211649922],
+                [7.903787681150362,47.64741821336713],
+                [8.310793134690243,47.70344757260733],
+                [7.965977481550681,47.93787211649922]
+              ]
+            ],
+            "type":"Polygon"
+          }
+        }
+      ]
+    }
+  }
+]
+        
+
@@ -535,13 +617,58 @@
- - + + + Example: +
+[
+  {
+    "type":"geojson",
+    "name":"freiburg",
+    "content":{
+      "type":"FeatureCollection",
+      "features":[
+        {
+          "type":"Feature",
+          "properties":{},
+          "geometry":{
+            "coordinates":[
+              [
+                [7.965977481550681,47.93787211649922],
+                [7.903787681150362,47.64741821336713],
+                [8.310793134690243,47.70344757260733],
+                [7.965977481550681,47.93787211649922]
+              ]
+            ],
+            "type":"Polygon"
+          }
+        }
+      ]
+    }
+  }
+]
+        
+
- - + + + Example: +
+{
+  "coordinates":[
+    [
+      [9.598504509838506,52.70992820638244],
+      [8.899110702389294,51.72257425885121],
+      [10.906499617840836,51.725944168909365],
+      [9.598504509838506,52.70992820638244]
+    ]
+  ],
+  "type":"Polygon"
+}
+      
+