|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.rim.device.api.lbs.maps.MapFactory
public final class MapFactory
A collection of factories that are used to create static images of maps and generate map fields for user interaction.
| Method Summary | ||
|---|---|---|
RichMapField |
generateRichMapField()
Generates a map field using a profile that is based on the current device hardware. |
|
Bitmap |
generateStaticMapImage(MapDimensions mapProperties,
MapDataModel data)
|
|
Bitmap |
generateStaticMapImage(MapDimensions mapProperties,
MappableVector data)
Generates an image of a map at the specified coordinates and zoom level, showing the specified mappable data. |
|
Bitmap |
generateStaticMapImage(XYDimension imageSize,
MappableVector data)
Generates an image of a map. |
|
static MapFactory |
getInstance()
Retrieves an instance of the mapping factory. |
|
Vector |
populateDataModelFromKmlUrl(MapDataModel model,
String url,
String tag)
Populates the data model with mappable entities that are retrieved from a URL that points to a KML file. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static MapFactory getInstance()
public Bitmap generateStaticMapImage(XYDimension imageSize,
MappableVector data)
imageSize - The size of the image.data - The data to display on the map.
public Bitmap generateStaticMapImage(MapDimensions mapProperties,
MappableVector data)
mapProperties - The properties of the image and the map. This
variable contains the size of the image, the location (latitude and
longitude) of the center of the map and the zoom level.data - The mappable data to show on the screen. If an
instance of data is outside of the visible area specified by
mapProperties, that data will not be visible on the
map image.
public Bitmap generateStaticMapImage(MapDimensions mapProperties,
MapDataModel data)
MapFactory.generateStaticMapImage(MapDimensions, MappableVector)public RichMapField generateRichMapField()
public Vector populateDataModelFromKmlUrl(MapDataModel model,
String url,
String tag)
Notes:
populateDataModelFromKmlUrl method will block any UI
activity if it is on the same thread.
model - The map data model in which to store the data.url - The URL of the KML file.tag - The tag to use to label all the data.
If this parameter is null, no tagging is performed.
Vector of exceptions caught in the retrieval
and processing of the KML data. If the Vector is empty, the data
model was populated successfully.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2011 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Java is a trademark of Oracle America Inc. in the US and other countries.
Legal