Sha256: 7d9cf64d38a83542ba3930cd3ad72997d1e627503f1ceb80d87720527e58f451

Contents?: true

Size: 499 Bytes

Versions: 7

Compression:

Stored size: 499 Bytes

Contents

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

  @include Gmaps.Google.Objects.Common

  constructor: (@serviceObject)->

  extendWith: (array_or_object)->
    collection = if _.isArray(array_or_object) then array_or_object else [ array_or_object ]
    _.each collection, (object)=>
      object.updateBounds(@)

  # position can be:
  # - [ lat, lng]
  # - { lat: , lng: }
  # - a google.maps.LatLng
  extend: (value)->
    @getServiceObject().extend @primitives().latLngFromPosition(value)

Version data entries

7 entries across 7 versions & 1 rubygems

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