Class MMMapTypeWidget
Object
|
+--MMWidget
|
+--MMMapTypeWidget
- class
MMMapTypeWidget
- extends MMWidget
Defined in MultimapAPI
|
Constructor Summary |
MMMapTypeWidget
( <Array> mapTypes, <MMBox> position, <String> className, <boolean> selector, html )
A widget for changing the current map type.
|
MMMapTypeWidget
MMMapTypeWidget( <Array> mapTypes, <MMBox> position, <String> className, <boolean> selector, html )
A widget for changing the current map type.
Parameters:
mapTypes - (optional) An array of map types to display, uses the result of mapviewer.getAvailableMapTypes() by default.
position - (optional) Position to display the widget at.
className - (optional) CSS Class name to give the widget.
selector - (optional) Boolean indicating whether the map data selector is desired, true by default unless you supply a className in which case it's false by default.
html - (optional) A reference to a HTML element already present in your page that you would like to progressively enhance with map type selection functionality.
addRelationship
void addRelationship( <MMMapType> parent_map_type, <MMMapType> child_map_type, <MMMapTypeMenuOptions> options )
Adds a relationship for a map type.
Parameters:
parent_map_type - The parent map type to add the relationship for.
child_map_type - The parent map type to add the relationship for.
options - (optional) An object containing options for this marker.
clearRelationships
void clearRelationships()
Removes all relationships between all map types.
removeRelationship
void removeRelationship( <MMMapType> map_type )
Removes all relationships involving the specified map type.
Parameters:
map_type - The map type to remove relationships for.
setMenuProperties
void setMenuProperties( <MMMapType> map_type, <MMMapTypeMenuOptions> options )
Sets a heading for a map type's sub-menu.
Parameters:
map_type - The map type to set the heading for.
options - (optional) An object containing options for this marker.
Documentation generated by
JSDoc on Tue Jun 30 13:55:23 2009