Fix removal of markers/polylines when switching days.
This commit is contained in:
@ -86,10 +86,10 @@ class window.OwnMap
|
|||||||
|
|
||||||
eraseMap: ->
|
eraseMap: ->
|
||||||
console.log 'OwnMap::eraseMap()'
|
console.log 'OwnMap::eraseMap()'
|
||||||
for own _index, _tid of @my_markers
|
for own _tid, markers of @my_markers
|
||||||
if _tid of @polylines
|
if _tid of @polylines
|
||||||
@polylines[_tid].removeFrom @mymap
|
@polylines[_tid].removeFrom @mymap
|
||||||
for own _index2, _marker of @my_markers[_tid]
|
for own _index2, _marker of markers
|
||||||
_marker.remove()
|
_marker.remove()
|
||||||
return true
|
return true
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user