1
0

Fix removal of markers/polylines when switching days.

This commit is contained in:
2018-05-26 00:42:45 +02:00
parent 0cced626bc
commit aa5a9946b7

View File

@ -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