Class: GoogleMap::SmallIcon

Inherits:
Icon
  • Object
show all
Defined in:
lib/google_map/small_icon.rb

Instance Attribute Summary

Attributes inherited from Icon

#anchor_x, #anchor_y, #dom_id, #height, #image_url, #info_anchor_x, #info_anchor_y, #map, #shadow_height, #shadow_url, #shadow_width, #width

Instance Method Summary collapse

Methods inherited from Icon

#to_html, #to_js

Constructor Details

#initialize(map, color = 'red') ⇒ SmallIcon

Returns a new instance of SmallIcon.



8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/google_map/small_icon.rb', line 8

def initialize( map, color = 'red')
  parent_initialize(:width => 12,
                    :height => 20,
                    :shadow_width => 22,
                    :shadow_height => 20,
                    :image_url => "http://labs.google.com/ridefinder/images/mm_20_#{color}.png",
                    :shadow_url => "http://labs.google.com/ridefinder/images/mm_20_shadow.png",
                    :anchor_x => 6,
                    :anchor_y => 20,
                    :info_anchor_x => 5,
                    :info_anchor_y => 1,
                    :map => map)
end

Instance Method Details

#parent_initializeObject

include Reloadable



6
# File 'lib/google_map/small_icon.rb', line 6

alias_method :parent_initialize, :initialize