Class Ym4r::MapstractionPlugin::MarkerGroup
In: lib/mapstraction_plugin/overlay.rb
Parent: Object

Represents a group of Markers. The whole group can be shown on and off at once. It should be declared global at initialization time to be useful.

Methods

create   new  

Included Modules

MappingObject

Attributes

active  [RW] 
markers  [RW] 

Public Class methods

[Source]

    # File lib/mapstraction_plugin/overlay.rb, line 94
94:       def initialize(markers, active = true )
95:         @active = active
96:         @markers = markers
97:       end

Public Instance methods

[Source]

     # File lib/mapstraction_plugin/overlay.rb, line 99
 99:       def create
100:         "new MarkerGroup(#{MappingObject.javascriptify_variable(@markers)},#{MappingObject.javascriptify_variable(@active)})"
101:       end

[Validate]