Blackberry JAVA DEVELOPMENT ENVIRONMENT - - GPS AND MAPS - DEVELOPMENT GUIDE Manual do Utilizador Página 25

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 30
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 24
For RIM and BlackBerry partner use only. Beta documentation. Content and software are subject to change.
25
3: Displaying location information on a BlackBerry device
Clear data specific to a location document with an id attribute
You can only remove data from a map that is from a location document that has an id attribute in the <lbs>
element.
>Create a String that sets the clear attribute to the id of the location document that contains the data to
remove from a map.
String document = "<lbs clear='Montreal' ><location lon='-7938675' lat='4367022'
label='Toronto, ON' description='Toronto' zoom='10'/></lbs>";
Clear data specific to all location documents with an id attribute
You can only remove data from a map that is from a location document that has an id attribute in the <lbs>
element.
>Create a String that sets the clear attribute to Docs.
String document = "<lbs clear='Docs' ><location lon='-7938675' lat='4367022'
label='Toronto, ON' description='Toronto' zoom='10'/></lbs>";
Clear data specific to specific location documents with an id attribute
You can only remove data from a map that is from a location document that has an id attribute in the <lbs>
element.
>Create a String that sets the clear attribute to a comma-delimited list of ids, for example
String document = "<lbs clear='MONTREAL','OTTAWA' ><location lon='-7938675'
lat='4367022' label='Toronto, ON' description='Toronto' zoom='10'/></lbs>";
Clear all location data from a map
You can only remove data from a map that is from a location document that has an id attribute in the <lbs>
element.
>Create a String that sets the clear attribute to Locations, for example
String document = "<lbs clear='Locations' ><location lon='-7938675' lat='4367022'
label='Toronto, ON' description='Toronto' zoom='10'/></lbs>";
Displaying location information in your application
A BlackBerry® Application can use the MapField class to display a map in a UI field. For a BlackBerry Application
to use the
MapField class, BlackBerry® Maps must be installed on the BlackBerry device and the BlackBerry
device must be able to download data from a location-based services map server.
A MapField gets data either from a location-based services map server or the BlackBerry device with BlackBerry
Maps installed. If location information is not present on the BlackBerry device, the
MapField requests data from
the location-based services map server. See the API reference for the BlackBerry Java Development Environment
for more information about the MapField API.
Vista de página 24
1 2 ... 20 21 22 23 24 25 26 27 28 29 30

Comentários a estes Manuais

Sem comentários