Class MMFactory
Object
|
+--MMFactory
- class
MMFactory
Defined in MultimapAPI
|
Constructor Summary |
MMFactory
()
The Multimap Factory object.
|
|
Method Summary |
Object
|
createGeocoder( <Function> callback )
Creates a new geocoder object.
|
Object
|
createRouteRequester( <Function> callback )
Creates a new route requester object.
|
void
|
createSearchRequester( <Function> callback )
Creates a new search requester object.
|
Object
|
createViewer( element, <integer> map_type )
Creates a new mapviewer.
|
MMFactory
MMFactory()
The Multimap Factory object.
This describes a globally declared object that can be used to instantiate
new map viewer, geocoder, search requester and route requester objects.
You should not need to, and in fact will not be able to, instantiate a new "MMFactory" object.
createGeocoder
Object createGeocoder( <Function> callback )
Creates a new geocoder object.
Parameters:
callback - Function to call when geocoding completes.
Returns:
A reference to the new geocoder object.
createRouteRequester
Object createRouteRequester( <Function> callback )
Creates a new route requester object.
Parameters:
callback - Function to call when the route request completes.
Returns:
A reference to the new route requester object.
createSearchRequester
void createSearchRequester( <Function> callback )
Creates a new search requester object.
Parameters:
callback - Function to call when the search completes.
createViewer
Object createViewer( element, <integer> map_type )
Parameters:
map_type - (optional) The map type, MM_WORLD_MAP by default.
div_element - The containing DIV element.
Returns:
A reference to the new mapviewer.
Documentation generated by
JSDoc on Tue Jun 30 13:55:23 2009