From 2bc3f2ed73e75aa68e2323e001f965adb1a3c390 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Sun, 12 Jul 2020 12:28:41 +0100 Subject: [PATCH] remove dependence on container div --- examples/overviewmap-custom.css | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/examples/overviewmap-custom.css b/examples/overviewmap-custom.css index 2b3e9a749e..4f740daaf9 100644 --- a/examples/overviewmap-custom.css +++ b/examples/overviewmap-custom.css @@ -1,36 +1,33 @@ -.mapcontainer { - position: relative; -} -div.ol-custom-overviewmap, -div.ol-custom-overviewmap.ol-uncollapsible { +.map .ol-custom-overviewmap, +.map .ol-custom-overviewmap.ol-uncollapsible { bottom: auto; left: auto; right: 0; top: 0; } -div.ol-custom-overviewmap:not(.ol-collapsed) { +.map .ol-custom-overviewmap:not(.ol-collapsed) { border: 1px solid black; } -div.ol-custom-overviewmap div.ol-overviewmap-map { +.map .ol-custom-overviewmap .map .ol-overviewmap-map { border: none; width: 300px; } -div.ol-custom-overviewmap div.ol-overviewmap-box { +.map .ol-custom-overviewmap .map .ol-overviewmap-box { border: 2px solid red; } -div.ol-custom-overviewmap:not(.ol-collapsed) button{ +.map .ol-custom-overviewmap:not(.ol-collapsed) button{ bottom: auto; left: auto; right: 1px; top: 1px; } -div.ol-rotate { +.map .ol-rotate { top: 170px; right: 0; }