refs #34 force distance display when drawing a line
parent
5a1bc9b06a
commit
01ea989345
|
@ -904,9 +904,6 @@ L.Draw.Polyline = L.Draw.Feature.extend({
|
||||||
_getTooltipText: function () {
|
_getTooltipText: function () {
|
||||||
var showLength = this.options.showLength,
|
var showLength = this.options.showLength,
|
||||||
labelText, distanceStr;
|
labelText, distanceStr;
|
||||||
if (L.Browser.touch) {
|
|
||||||
showLength = false; // if there's a better place to put this, feel free to move it
|
|
||||||
}
|
|
||||||
if (this._markers.length === 0) {
|
if (this._markers.length === 0) {
|
||||||
labelText = {
|
labelText = {
|
||||||
text: L.drawLocal.draw.handlers.polyline.tooltip.start
|
text: L.drawLocal.draw.handlers.polyline.tooltip.start
|
||||||
|
|
Loading…
Reference in New Issue