Sha256: 193c32a49c9446516a5f74ddfde79ce48f326a6627076013aa95970c972e3e18
Contents?: true
Size: 678 Bytes
Versions: 4
Compression:
Stored size: 678 Bytes
Contents
@Gmaps4Rails.CircleController = #polygons is an array of arrays. It loops. addCircles: (circleData)-> for circleArgs in circleData @circles.push @createCircle(circleArgs) replaceCircles : (circleData) -> #reset previous polylines and kill them from map @clearCircles() #set new polylines @addCircles(circleData) #.... and adjust map boundaries @adjustMapToBounds() clearCircles : -> for circle in @circles #delete polylines from map circle.clear() #empty array @circles = [] showCircles : -> for circle in @circles circle.show() hideCircles : -> for circle in @circles circle.hide()
Version data entries
4 entries across 4 versions & 2 rubygems