toggle to 90°
This commit is contained in:
parent
b1711d4d56
commit
9f34d61a0a
1 changed files with 1 additions and 1 deletions
|
@ -1730,7 +1730,7 @@ editor = {
|
||||||
var snapTo90Control = L.control({position: 'topleft'});
|
var snapTo90Control = L.control({position: 'topleft'});
|
||||||
snapTo90Control.onAdd = function() {
|
snapTo90Control.onAdd = function() {
|
||||||
var container = L.DomUtil.create('div', 'leaflet-bar leaflet-control leaflet-control-snap');
|
var container = L.DomUtil.create('div', 'leaflet-bar leaflet-control leaflet-control-snap');
|
||||||
container.innerHTML = '<a href="#" title="[UNSTABLE] Toggle Snap to 90°" class="snap-to-90-toggle ' +
|
container.innerHTML = '<a href="#" title="[UNSTABLE][ALSO ENABLE SNAP TO EDGES] Toggle Snap to 90°" class="snap-to-90-toggle ' +
|
||||||
(editor._snap_to_90_enabled ? 'active' : '') + '"></a>';
|
(editor._snap_to_90_enabled ? 'active' : '') + '"></a>';
|
||||||
|
|
||||||
L.DomEvent.on(container.querySelector('.snap-to-90-toggle'), 'click', function(e) {
|
L.DomEvent.on(container.querySelector('.snap-to-90-toggle'), 'click', function(e) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue