ExtMapTypeControl

This library lets you add a control to the map which mimics GMapTypeControl and allows for the addition of a traffic button/traffic key.

class ExtMapTypeControl

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. This class extends GControl.

Constructor

Constructor Description
ExtMapTypeControl(opt_opts?) Creates a ExtMapTypeControl with the specified option hash to decide what elements to put in the control.

class ExtMapTypeControlOptions

Instances of this class are used in the opt_opts 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.

Properties

Properties Type Description
showTraffic Boolean If set to true, Traffic button will appear to left of other buttons. The default value is false.
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. The default value is false.