Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix for date filtering

  • Loading branch information...
commit fb1a019e96a8aa755af61e0999c6e3db861946dc 1 parent 13dc0b1
Paweł Romanowski authored
View
4 citypulse/main/static/js/maps/controller.coffee
@@ -23,6 +23,10 @@ class citypulse.Controller
@pulses.setDateRange(startDate, endDate)
@events.setDateRange(startDate, endDate)
@venues.setDateRange(startDate, endDate)
+ for mark, data of @view.markerMap
+ data.setVisible(false)
+
+ @view.markerMap = {}
startTimer: =>
_.delay(@refresh, 30000)
View
4 citypulse/main/static/js/maps/views.coffee
@@ -40,8 +40,6 @@ class citypulse.views.MapView extends Backbone.View
if uid of @markerMap
return
- @markerMap[uid] = true
-
point = new google.maps.LatLng(lat, lng)
switch type
@@ -102,6 +100,8 @@ class citypulse.views.MapView extends Backbone.View
@map.panTo(marker.getPosition())
localWindow.open(@map, marker))
+ @markerMap[uid] = marker
+
setBounds: (ne, sw) =>
b = new google.maps.LatLngBounds(ne, sw)
@map.setCenter(b.getCenter())
Please sign in to comment.
Something went wrong with that request. Please try again.