Sha256: cdf074c25d44b4d3cd440b4bdea8f7088d7df5e3ab582fc30a6e98fe4314f1d3

Contents?: true

Size: 429 Bytes

Versions: 5

Compression:

Stored size: 429 Bytes

Contents

class @Gmaps.Google.Objects.Clusterer

  constructor: (@serviceObject)->

  addMarkers: (markers)->
    _.each markers, (marker)=>
      @addMarker(marker)

  addMarker: (marker)->
    @getServiceObject().addMarker(marker.getServiceObject())

  clear: ->
    @getServiceObject().clearMarkers()

  removeMarker: (marker)->
    @getServiceObject().removeMarker marker.getServiceObject()

  getServiceObject: ->
    @serviceObject

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gmaps4rails-2.1.2 vendor/assets/javascripts/gmaps/google/objects/clusterer.coffee
gmaps4rails-2.1.1 vendor/assets/javascripts/gmaps/google/objects/clusterer.coffee
gmaps4rails-2.1.0 vendor/assets/javascripts/gmaps/google/objects/clusterer.coffee
gmaps4rails-2.0.5 vendor/assets/javascripts/gmaps/google/objects/clusterer.coffee
gmaps4rails-2.0.4 vendor/assets/javascripts/gmaps/google/objects/clusterer.coffee