Skip to content

Commit

Permalink
update example
Browse files Browse the repository at this point in the history
  • Loading branch information
Raruto committed Feb 14, 2021
1 parent 1ad7b4d commit 58bcbb9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
9 changes: 8 additions & 1 deletion examples/leaflet-rotate.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,10 @@
rotateControl: {
closeOnZeroBearing: false
},
bearing: 30,
});

// map.setBearing(30);
// map.touchRotate.enable();

var layers = L.control.layers({
Expand All @@ -94,7 +96,12 @@
draggable: true
})
.bindPopup('<b>' + i + '</b><br>' + loremIpsum)
.bindTooltip('<b>' + i + '</b>')
.bindTooltip('<b>' + i + '</b>',
markers.length ? {} : {
direction: 'right',
permanent: true
}
)
.addTo(map));
}

Expand Down
7 changes: 6 additions & 1 deletion test/leaflet-rotate.html
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,12 @@
draggable: true
})
.bindPopup('<b>' + i + '</b><br>' + loremIpsum)
.bindTooltip('<b>' + i + '</b>', {direction: 'right', permanent: true})
.bindTooltip('<b>' + i + '</b>',
markers.length ? {} : {
direction: 'right',
permanent: true
}
)
.addTo(map));
}

Expand Down

0 comments on commit 58bcbb9

Please sign in to comment.