From 58bcbb934dfe0c1114fc9bd867ebe6a41a8213f1 Mon Sep 17 00:00:00 2001 From: Raruto Date: Sun, 14 Feb 2021 22:14:46 +0100 Subject: [PATCH] update example --- examples/leaflet-rotate.html | 9 ++++++++- test/leaflet-rotate.html | 7 ++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/examples/leaflet-rotate.html b/examples/leaflet-rotate.html index 4f31594..e9071cf 100644 --- a/examples/leaflet-rotate.html +++ b/examples/leaflet-rotate.html @@ -76,8 +76,10 @@ rotateControl: { closeOnZeroBearing: false }, + bearing: 30, }); + // map.setBearing(30); // map.touchRotate.enable(); var layers = L.control.layers({ @@ -94,7 +96,12 @@ draggable: true }) .bindPopup('' + i + '
' + loremIpsum) - .bindTooltip('' + i + '') + .bindTooltip('' + i + '', + markers.length ? {} : { + direction: 'right', + permanent: true + } + ) .addTo(map)); } diff --git a/test/leaflet-rotate.html b/test/leaflet-rotate.html index 75709e5..c61ad11 100644 --- a/test/leaflet-rotate.html +++ b/test/leaflet-rotate.html @@ -96,7 +96,12 @@ draggable: true }) .bindPopup('' + i + '
' + loremIpsum) - .bindTooltip('' + i + '', {direction: 'right', permanent: true}) + .bindTooltip('' + i + '', + markers.length ? {} : { + direction: 'right', + permanent: true + } + ) .addTo(map)); }