Class: GoogleMap::SmallIcon
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
-
#initialize(map, color = 'red') ⇒ SmallIcon
constructor
A new instance of SmallIcon.
-
#parent_initialize ⇒ Object
include Reloadable.
Methods inherited from Icon
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_initialize ⇒ Object
include Reloadable
6 |
# File 'lib/google_map/small_icon.rb', line 6 alias_method :parent_initialize, :initialize |