Skip to content

Commit 2ef2c2e

Browse files
author
Nathan
committed
fixed an issue where the halfway points weren't being displayed
1 parent 5e62a44 commit 2ef2c2e

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

dist/leaflet.plotter.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/leaflet.plotter.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ L.Polyline.plotter = L.Polyline.extend({
3636
if(typeof markerFunction !== 'undefined'){
3737
this.options.readOnly = readOnly;
3838
for(index in this._halfwayPointMarkers){
39+
console.log(halfwayMarkerFunction);
3940
this[halfwayMarkerFunction](this._halfwayPointMarkers[index]);
4041
}
4142
for(index in this._lineMarkers){
@@ -98,6 +99,7 @@ L.Polyline.plotter = L.Polyline.extend({
9899
}
99100
this._halfwayPointMarkers = [];
100101
for(index in this._lineMarkers){
102+
index = parseInt(index);
101103
if(typeof this._lineMarkers[index + 1] === 'undefined'){
102104
return;
103105
}

0 commit comments

Comments
 (0)