From 523a33c81a5cf51aad0f8c41a611dbd7b43fc7c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maximilian=20Kr=C3=B6g?= Date: Sun, 21 Aug 2022 11:24:43 +0200 Subject: [PATCH] Update example styles to work with bootstrap 5.2 --- examples/cartodb.html | 31 ++++++------ examples/chaikin.html | 2 +- examples/cluster.html | 8 +-- examples/draw-and-modify-features.html | 2 +- examples/draw-and-modify-geodesic.html | 2 +- examples/draw-features.html | 28 ++++++----- examples/draw-freehand.html | 2 +- examples/draw-shapes.html | 28 ++++++----- examples/export-map.html | 2 +- examples/geolocation-orientation.html | 8 +-- examples/hit-tolerance.html | 4 +- examples/index.html | 2 +- examples/layer-extent.html | 10 ++-- examples/measure-style.html | 2 +- examples/measure.html | 2 +- examples/modify-scale-and-rotate.html | 2 +- examples/reprojection-by-code.html | 44 +++++++++-------- examples/reprojection.css | 7 ++- examples/reprojection.html | 67 +++++++++++--------------- examples/select-features.html | 4 +- examples/tracing.html | 2 +- examples/vector-esri-edit.html | 2 +- examples/vector-tile-selection.html | 4 +- 23 files changed, 137 insertions(+), 128 deletions(-) diff --git a/examples/cartodb.html b/examples/cartodb.html index 11f43a06b3..7ec92747e2 100644 --- a/examples/cartodb.html +++ b/examples/cartodb.html @@ -6,21 +6,18 @@ docs: > A simple example with an anonymous cartodb map tags: "simple, openstreetmap, attribution" --- -
-
-
-
-
- -
+
+
+
+
+ + +
-
+ diff --git a/examples/chaikin.html b/examples/chaikin.html index 1a07bb2bd0..1a92660621 100644 --- a/examples/chaikin.html +++ b/examples/chaikin.html @@ -12,7 +12,7 @@ docs: > tags: "smooth, smoothing, chaikin" ---
-
+
diff --git a/examples/cluster.html b/examples/cluster.html index ffcba31d83..e17913f5e0 100644 --- a/examples/cluster.html +++ b/examples/cluster.html @@ -9,15 +9,15 @@ tags: "cluster, vector"
- - + + The distance within which features will be clustered together.
- - + + The minimum distance between clusters. Can't be larger than the configured distance. diff --git a/examples/draw-and-modify-features.html b/examples/draw-and-modify-features.html index 9be38fc551..7659c06182 100644 --- a/examples/draw-and-modify-features.html +++ b/examples/draw-and-modify-features.html @@ -7,7 +7,7 @@ docs: > tags: "draw, edit, modify, vector, featureoverlay" ---
- + diff --git a/examples/draw-features.html b/examples/draw-features.html index 38557de98a..a228b800e7 100644 --- a/examples/draw-features.html +++ b/examples/draw-features.html @@ -8,16 +8,22 @@ docs: > point. To activate freehand drawing for lines, polygons, and circles, hold the `Shift` key. To remove the last point of a line or polygon, press "Undo". tags: "draw, edit, freehand, vector" +resources: + - https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/css/bootstrap.min.css ---
- - - - - +
+
+ + + + + +
+
diff --git a/examples/draw-freehand.html b/examples/draw-freehand.html index d6d84ccc5c..464ade1c5c 100644 --- a/examples/draw-freehand.html +++ b/examples/draw-freehand.html @@ -11,7 +11,7 @@ docs: > tags: "draw, edit, freehand, vector" ---
-
+ - - - - - - - -
+
+
+ + + + + +
+
diff --git a/examples/export-map.html b/examples/export-map.html index 755440370a..217bb608cb 100644 --- a/examples/export-map.html +++ b/examples/export-map.html @@ -11,5 +11,5 @@ resources: - https://cdn.jsdelivr.net/npm/@fortawesome/fontawesome-free@6.1.2/css/solid.css ---
- Download PNG + Download PNG diff --git a/examples/geolocation-orientation.html b/examples/geolocation-orientation.html index 70329b5d73..c1aad54d05 100644 --- a/examples/geolocation-orientation.html +++ b/examples/geolocation-orientation.html @@ -28,7 +28,7 @@ tags: "fullscreen, geolocation, orientation, mobile" background-color: lightgrey; padding: 4px; } - .button { + .geolocate-buttons { position: absolute; bottom: 40px; left: 10px; @@ -39,9 +39,9 @@ tags: "fullscreen, geolocation, orientation, mobile"
-
- - +
+ +
diff --git a/examples/hit-tolerance.html b/examples/hit-tolerance.html index 36a3ebaa3e..83ee46863a 100644 --- a/examples/hit-tolerance.html +++ b/examples/hit-tolerance.html @@ -12,9 +12,9 @@ tags: "hitTolerance" ---
Try to click the line in the map. -
+ - diff --git a/examples/index.html b/examples/index.html index d869361b0f..10bdb3f0e3 100644 --- a/examples/index.html +++ b/examples/index.html @@ -50,7 +50,7 @@