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));
}