Blackberry JAVA DEVELOPMENT ENVIRONMENT - - GPS AND MAPS - DEVELOPMENT GUIDE Uživatelský manuál Strana 17

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 30
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 16
For RIM and BlackBerry partner use only. Beta documentation. Content and software are subject to
change.
3
Displaying location information on a
BlackBerry device
Displaying location information in BlackBerry Maps
The BlackBerry® Maps uses a location document to display location information on a map, such as locations and
routes. A location document is a
String that contains a set of XML elements with attributes that specify
information about a location or route. You can include information about ten locations in one location document.
Create a location document to display location information
> Perform one of the following actions:
XML elements in a location document
The <lbs> element
Displaying location information in BlackBerry Maps
Open BlackBerry Maps from your application
Open BlackBerry Maps from the browser
Clearing data from the map that BlackBerry Maps displays
Displaying location information in your application
Task Steps
Use required elements only. > Create a string using the following format:
“<lbs>
<location y='
latitude
' x='
longitude
' label='
Location_Label
'
description='
Description
'/>
<location y='
latitude
' x='
longitude
' label='
Location_Label
'
description='
Description
'/>
<location y='
latitude
' x='
longitude
' label='
Location_Label
'
description='
Description
'/>
....</lbs>”
Use required and optional
elements.
> Create a string using the following format:
“<lbs>
<location y='
latitude
' x='
longitude
' label='
Location_Label
'
description='
Description
' zoom='
Zoom
' address='
address
' city='
city
'
region='
region
' country='
country
' postalCode='
postal_code
' phone='
phone
'
fax='
fax
' url='
url
' email='
email
' categories='
categories
' rating='
rating
'/>
</lbs>”
Zobrazit stránku 16
1 2 ... 12 13 14 15 16 17 18 19 20 21 22 ... 29 30

Komentáře k této Příručce

Žádné komentáře