@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.
@@ -837,13 +837,13 @@
837
837
  var last = function() {
838
838
  return this.slice(-1)[0];
839
839
  };
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();
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
- var firstTooltip = L.marker (clickCoords, {
958
- icon: icon,
959
- interactive: false
960
- })
961
- firstTooltip.addTo(this._layerPaint);
962
- var text = '';
963
- if (this.options.showBearings === true) {
964
- text = this.options.bearingTextIn+':---°<br>'+this.options.bearingTextOut+':---°';
965
- }
966
- text = text + '<div class="polyline-measure-tooltip-difference">+' + '0</div>';
967
- text = text + '<div class="polyline-measure-tooltip-total">' + '0</div>';
968
- firstTooltip._icon.innerHTML = text;
969
- this._currentLine.tooltips.push (firstTooltip);
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arunawalpola/leaflet.polylinemeasure",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Leaflet Plugin to measure distances of simple lines as well as of complex polylines",
5
5
  "main": "Leaflet.PolylineMeasure.js",
6
6
  "scripts": {