Blackberry GPS and BlackBerry Maps Руководство - Страница 30

Просмотреть онлайн или скачать pdf Руководство для Программное обеспечение Blackberry GPS and BlackBerry Maps. Blackberry GPS and BlackBerry Maps 35 страниц. Version: 4.7.0

Development Guide
You can only remove data from a location document that has an id attribute set to a value.
Create a String that configures 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 from specific location documents with an id attribute

A location document string with id and clear attributes uses the following format.
<lbs id='<string>'' clear='{NONE | DOCS | LOCATIONS | ROUTES | ALL |
comma_delimited_list_of_document_ids}'>
You can only remove data from a location document that has an id attribute set to a value.
Create a String that configures the clear attribute to a comma-delimited list of ids.
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

A location document string with id and clear attributes uses the following format.
<lbs id='<string>'' clear='{NONE | DOCS | LOCATIONS | ROUTES | ALL |
comma_delimited_list_of_document_ids}'>
You can only remove data from a location document that has an id attribute set to a value.
Create a String that configures the clear attribute to Locations.
String document = "<lbs clear='Locations' ><location lon='-7938675'
lat='4367022' label='Toronto, ON' description='Toronto' zoom='10'/></lbs>";
28
Clearing data from the map