|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Object | +--MMMapType
Defined in MultimapOpenAPI
| Constructor Summary | |
MMMapType
( <Array> layers, <MMProjection> projection, <String> name, <MMMapTypeOptions> options )
A custom map type to be displayed in the mapviewer. |
|
| Method Summary | |
String
|
getAlt()
Retrieves the value of the 'alt' option. |
Object
|
getBoundsZoomFactor( <MMBounds> bounds, <MMDimensions> view_size )
Returns the zoom factor that can fit the set of bounds specified within a given size of viewer. |
Object
|
getCopyrights( <MMBounds> bounds, <integer> zoom_factor )
Returns the copyright objects that should be displayed at the specified zoom factor and within the specified bounding box. |
String
|
getErrorMessage()
Retrieves the value of the 'errorMessage' option. |
String
|
getLinkColor()
Retrieves the value of the 'linkColor' option, or '#7777cc' by default. |
integer
|
getMaximumResolution( latlon )
Returns the value of the 'minResolution' option, or the minimum resolution of all the tile layers. |
integer
|
getMinimumResolution( latlon )
Returns the value of the 'minResolution' option, or the minimum resolution of all the tile layers. |
String
|
getName( <boolean> opt_short )
Retrieves the name of the map type. |
MMProjection
|
getProjection()
Gets a reference to the projection that was used to create the map type. |
String
|
getTextColor()
Retrieves the value of the 'textColor' option, or 'black' by default. |
Array
|
getTileLayers()
Returns a reference to the array of tile layers passed into the constructor. |
integer
|
getTileSize()
Returns the tile size for this map type. |
String
|
getUrlArg()
Retrieves the value of the 'urlArg' option. |
| Constructor Detail |
MMMapType( <Array> layers, <MMProjection> projection, <String> name, <MMMapTypeOptions> options )
layers - An array of MMTileLayer objects to display in the viewer. Currently only a single layer can be displayed in the Multimap API.
projection - The projection that has been used for the map tiles.
name - The name to be displaye in the MMMapTypeWidget.
options - An object containing options for this map type.
| Method Detail |
String getAlt()
Object getBoundsZoomFactor( <MMBounds> bounds, <MMDimensions> view_size )
bounds - The geographical bounding box that you wish to query.
view_size - The size of the viewer that you would like to fit the bounding box into, given in pixels.
Object getCopyrights( <MMBounds> bounds, <integer> zoom_factor )
bounds - A bounding box.
zoom_factor - A valid zoom factor.
String getErrorMessage()
String getLinkColor()
integer getMaximumResolution( latlon )
integer getMinimumResolution( latlon )
String getName( <boolean> opt_short )
opt_short - If true returns the value of the 'shortName' option, or the name if no short version was given.
MMProjection getProjection()
String getTextColor()
Array getTileLayers()
integer getTileSize()
String getUrlArg()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||