Skip to content

Commit

Permalink
fixes jawj#33
Browse files Browse the repository at this point in the history
I am not a coffee script guy, but this seems to fix the issue with different lengths of arrays for nonNearbyMarkers between spiderify and unspiderify.
  • Loading branch information
MuellerMatthew authored Jul 21, 2016
1 parent 7422a80 commit d7b05a6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/oms.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ class @['OverlappingMarkerSpiderfier']
unspiderfiedMarkers = []
nonNearbyMarkers = []
for marker in @markers
continue unless @map.hasLayer(marker)
if marker['_omsData']?
@map.removeLayer(marker['_omsData'].leg)
marker.setLatLng(marker['_omsData'].usualPosition) unless marker is markerNotToMove
Expand Down

0 comments on commit d7b05a6

Please sign in to comment.