3 #Small map control. Report to the Google Maps API documentation for details.
\r
4 class GSmallMapControl
\r
5 include MappingObject
\r
7 "new GSmallMapControl()"
\r
10 #Large Map control. Report to the Google Maps API documentation for details.
\r
11 class GLargeMapControl
\r
12 include MappingObject
\r
14 "new GLargeMapControl()"
\r
17 #Small Zoom control. Report to the Google Maps API documentation for details.
\r
18 class GSmallZoomControl
\r
19 include MappingObject
\r
21 "new GSmallZoomControl()"
\r
24 #Scale control. Report to the Google Maps API documentation for details.
\r
26 include MappingObject
\r
28 "new GScaleControl()"
\r
31 #Map type control. Report to the Google Maps API documentation for details.
\r
32 class GMapTypeControl
\r
33 include MappingObject
\r
35 "new GMapTypeControl()"
\r
38 #Overview map control. Report to the Google Maps API documentation for details.
\r
39 class GOverviewMapControl
\r
40 include MappingObject
\r
42 "new GOverviewMapControl()"
\r
46 #An object representing a position of a control.
\r
47 #The first argument of the constructor is one of the following : :top_right, :top_left, :bottom_right, :bottom_left.
\r
48 class GControlPosition < Struct.new(:anchor,:offset)
\r
49 include MappingObject
\r
51 js_anchor = if anchor == :top_right
\r
52 "G_ANCHOR_TOP_RIGHT"
\r
53 elsif anchor == :top_left
\r
55 elsif anchor == :bottom_right
\r
56 "G_ANCHOR_BOTTOM_RIGHT"
\r
58 "G_ANCHOR_BOTTOM_LEFT"
\r
60 "new GControlPosition(#{js_anchor},#{offset})"
\r