|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--MMViewer
|
+--MultimapViewer
Defined in MultimapAPI
| Field Summary | |
<static> Object |
superclass
|
| Constructor Summary | |
MultimapViewer
( <HTMLElement> div_element, <integer> map_type, <integer> extra )
The Multimap mapviewer. |
|
| Method Summary | |
InfoBoxOverlay
|
createInfoBox( <MMLocation> position, html, <String> cssClass, <MMPoint> anchor , <boolean> dont_move, <boolean> no_combine_classes )
A function to add an info box to the mapviewer. |
MarkerOverlay
|
createMarker( <MMLocation> position, <String> label, <MMIcon> icon, text )
A function to add a marker to the mapviewer. |
Array
|
getAvailableMapTypes()
Retrieves the list of possible map types. |
String
|
getClient()
Retrieves the client service name for the mapviewer. |
MMLatLon
|
getCurrentPosition()
Gets the current position of the map. |
MMBounds
|
getMapBounds()
Returns the bounds of the rectangle displayed in the mapviewer. |
MMLatLon
|
getMapPositionAt( <MMPoint> step )
Returns the position at the given pixel offset. |
integer
|
getMapType()
Gives the current map type. |
String
|
getScaleBarUnits()
Gets the units currently used for the scale bar. |
MMPoint
|
latLonToMercator( latlon )
Converts lat/lon to Mercator Eastings/Northings. |
MMLatLon
|
mercatorToLatLon( mercator )
Converts Mercator eastings/northings to lon/lat. |
Object
|
parseXML( <String> xml )
Parses an XML string. |
void
|
setMapType( <integer> map_type )
Changes the current map type. |
void
|
setScaleBarUnits( <String> units )
Sets the units for the scale bar. |
| Field Detail |
<static> Object superclass
| Constructor Detail |
MultimapViewer( <HTMLElement> div_element, <integer> map_type, <integer> extra )
div_element - The containing DIV element.
map_type - (optional) The map type.
extra - For backward-compatibility, see above.
| Method Detail |
InfoBoxOverlay createInfoBox( <MMLocation> position, html, <String> cssClass, <MMPoint> anchor , <boolean> dont_move, <boolean> no_combine_classes )
position - Position at which to place the info box.
html - HTML to go in the info box, String or HTMLElement.
cssClass - (optional) A class name to assign to the info box
anchor - (optional) Position that the info box should be anchored to the map.
dont_move - (optional) If true, the map will not move to accommodate the info box.
no_combine_classes - (optional) If true, the passed in CSS class name is used for the widget, rather than combining it with the default - "MMInfoBox".
MarkerOverlay createMarker( <MMLocation> position, <String> label, <MMIcon> icon, text )
position - Position at which to place the marker.
label - (optional) Tooltip text.
icon - (optional) Icon properties to use for the marker.
Array getAvailableMapTypes()
String getClient()
MMLatLon getCurrentPosition()
MMBounds getMapBounds()
MMLatLon getMapPositionAt( <MMPoint> step )
step - Pixel offset from the center of the map.
integer getMapType()
String getScaleBarUnits()
MMPoint latLonToMercator( latlon )
lonlat - Latitude and longitude to convert.
MMLatLon mercatorToLatLon( mercator )
Eastings - /Northings stored in a MMPoint
Object parseXML( <String> xml )
xml - XML string to be parsed.
void setMapType( <integer> map_type )
map_type - The desired map type.
void setScaleBarUnits( <String> units )
units - Units to use for the scale bar, 'km' or 'miles'.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||