|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object
|
+--MMViewer
|
+--MultimapViewer
Defined in MultimapOpenAPI
| Constructor Summary | |
MultimapViewer
( <HTMLElement> div_element, <integer> map_type, <integer> extra )
The Multimap mapviewer. |
|
| Method Summary | |
void
|
addMapType( <MMMapType> map_type )
Adds a map type to the list of map types displayed in the viewer. |
MMInfoBoxOverlay
|
createInfoBox( <MMLocation> position, html, <MMInfoBoxOptions> options )
A function to add an info box to the mapviewer. |
MMMarkerOverlay
|
createMarker( <MMLocation> position, <MMMarkerOptions> options )
A function to add a marker to the mapviewer. |
void
|
declutterGroup( <String> group_name, <MMDeclutterOptions> options, <integer> declutter_type, <integer> cluster_type )
Declutters a group of markers, or turns off decluttering for a group of markers. |
MMBounds
|
geoBoundsToContainerPixels( <MMBounds> bounds, no_check )
Retrieves pixel coordinates for a bounding box. |
Array
|
getAvailableMapTypes()
Retrieves the list of possible map types. |
String
|
getClient()
Retrieves the client service name for the mapviewer. |
integer
|
getMapType()
Gives the current map type. |
String
|
getScaleBarUnits()
DEPRECATED - Use getOption( 'units' ) instead. |
MMPoint
|
latLonToMercator( latlon, projection )
Converts lat/lon to Mercator Eastings/Northings. |
MMLatLon
|
mercatorToLatLon( mercator, projection )
Converts Mercator eastings/northings to lon/lat. |
Object
|
parseXML( <String> xml )
Parses an XML string. |
void
|
removeMapType( <MMMapType> map_type )
Removeds a map type from the list of map types displayed in the viewer. |
void
|
setMapType( <integer> map_type )
Changes the current map type. |
void
|
setMarkerFilters( <Array> filters, group_name )
This method sets the overlay filters parameter. |
void
|
setScaleBarUnits( <String> units )
DEPRECATED - Use setOption( 'units', 'km' ) instead. |
| 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 |
void addMapType( <MMMapType> map_type )
map_type - A custom, or Multimap, map type.
MMInfoBoxOverlay createInfoBox( <MMLocation> position, html, <MMInfoBoxOptions> options )
position - Position at which to place the info box.
html - HTML to go in the info box, String or HTMLElement.
options - (optional) An object containing options.
MMMarkerOverlay createMarker( <MMLocation> position, <MMMarkerOptions> options )
position - Position at which to place the marker.
options - (optional) An object containing options for this marker.
void declutterGroup( <String> group_name, <MMDeclutterOptions> options, <integer> declutter_type, <integer> cluster_type )
group_name - (optional) Name of group to declutter.
options - (optional) An object containing options.
declutter_type - (optional) Type of decluttering required, MM_DECLUTTER_NONE, MM_DECLUTTER_GRID or the default MM_DECLUTTER_AGGREGATE.
cluster_type - (optional) Type of clustering required, MM_CLUSTER_ACCURATE or the default MM_CLUSTER_FAST.
MMBounds geoBoundsToContainerPixels( <MMBounds> bounds, no_check )
bounds - The bounding box that you want pixels for.
Array getAvailableMapTypes()
String getClient()
integer getMapType()
String getScaleBarUnits()
MMPoint latLonToMercator( latlon, projection )
lonlat - Latitude and longitude to convert.
MMLatLon mercatorToLatLon( mercator, projection )
Eastings - /Northings stored in an MMPoint
Object parseXML( <String> xml )
xml - XML string to be parsed.
void removeMapType( <MMMapType> map_type )
map_type - A custom, or Multimap, map type.
void setMapType( <integer> map_type )
map_type - The desired map type.
void setMarkerFilters( <Array> filters, group_name )
filters - An array of MMSearchFilter objects.
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 | ||||||||