Sha256: 8811f19ab48cd8f1bf19eb966f282e77ffa96f1f5c76d21ed180a656b40b702a

Contents?: true

Size: 344 Bytes

Versions: 3

Compression:

Stored size: 344 Bytes

Contents

class @Gmaps.Google.Objects.Marker extends Gmaps.Base

  @include Gmaps.Google.Objects.Common

  # @infowindow is set later, once marker is clicked
  constructor: (@serviceObject)->

  updateBounds: (bounds)->
    bounds.extend(@getServiceObject().position)

  panTo: ->
    @getServiceObject().getMap().panTo @getServiceObject().getPosition()

Version data entries

3 entries across 3 versions & 1 rubygems

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