@arunawalpola/leaflet.polylinemeasure 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Leaflet.PolylineMeasure.js +21 -20
- package/package.json +1 -1
|
@@ -837,13 +837,13 @@
|
|
|
837
837
|
var last = function() {
|
|
838
838
|
return this.slice(-1)[0];
|
|
839
839
|
};
|
|
840
|
-
this._rubberlinePath = L.polyline ([], {
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
}).addTo(this._layerPaint).bringToBack();
|
|
840
|
+
// this._rubberlinePath = L.polyline ([], {
|
|
841
|
+
// // Style of temporary, dashed line while moving the mouse
|
|
842
|
+
// color: this.options.tempLine.color,
|
|
843
|
+
// weight: this.options.tempLine.weight,
|
|
844
|
+
// interactive: false,
|
|
845
|
+
// dashArray: '8,8'
|
|
846
|
+
// }).addTo(this._layerPaint).bringToBack();
|
|
847
847
|
|
|
848
848
|
var polylineState = this; // use "polylineState" instead of "this" to allow measuring on 2 different maps the same time
|
|
849
849
|
|
|
@@ -954,19 +954,20 @@
|
|
|
954
954
|
}
|
|
955
955
|
};
|
|
956
956
|
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
text = text + '<div class="polyline-measure-tooltip-
|
|
968
|
-
|
|
969
|
-
|
|
957
|
+
// Commented out to prevent first marker tooltip from appearing
|
|
958
|
+
// var firstTooltip = L.marker (clickCoords, {
|
|
959
|
+
// icon: icon,
|
|
960
|
+
// interactive: false
|
|
961
|
+
// })
|
|
962
|
+
// firstTooltip.addTo(this._layerPaint);
|
|
963
|
+
// var text = '';
|
|
964
|
+
// if (this.options.showBearings === true) {
|
|
965
|
+
// text = this.options.bearingTextIn+':---°<br>'+this.options.bearingTextOut+':---°';
|
|
966
|
+
// }
|
|
967
|
+
// text = text + '<div class="polyline-measure-tooltip-difference">+' + '0</div>';
|
|
968
|
+
// text = text + '<div class="polyline-measure-tooltip-total">' + '0</div>';
|
|
969
|
+
// firstTooltip._icon.innerHTML = text;
|
|
970
|
+
// this._currentLine.tooltips.push (firstTooltip);
|
|
970
971
|
this._currentLine.circleCoords.last = last;
|
|
971
972
|
this._currentLine.tooltips.last = last;
|
|
972
973
|
this._currentLine.circleMarkers.last = last;
|
package/package.json
CHANGED