This class lets you add a control to the map which looks like the typical GMapTypeControl from the obfuscated API. By specifying additional options however, you can also add a Traffic button to the control and a drop-down legend for that button. It extends GControl.
Constructor | Description |
---|---|
ExtMapTypeControl(opt_options) | Creates a ExtMapTypeControl with the specified option hash (optional). |
Instances of this class are used in the opts_options
argument to the constructor of the
ExtMapTypeControl
class. There is no constructor for this class.
Instead, this class is instantiated as a javascript object literal.
As the name of this class indicates, all properties are optional.
Properties | Type | Description |
---|---|---|
showTraffic | Boolean | If set to true, Traffic button will appear to left of other buttons. |
showTrafficKey | Boolean | If this option and showTraffic are set to true, a "?" button will appear next to Traffic button, and show a drop-down legend when clicked. |