Help Center

Local Navigation

Clearing data from the map

You can use the id and clear attributes of the <lbs> element to remove data from a map. If you do not want BlackBerry® Maps to display specific location data, in the next location document that you send to BlackBerry Maps, configure the clear attribute to the value of the id attribute of the location document that contains the location data that you want to remove.

For example, to display data for Waterloo, Ontario in BlackBerry Maps that you can later remove, provide a value for the id attribute of the location document.

String document = "<lbs id='Wat' ><location x='-8052237' y='4346518' label='Waterloo, ON' description='Waterloo' zoom='10'/></lbs>";

When you send the location document for Waterloo, Ontario to BlackBerry Maps, BlackBerry Maps displays the information for Waterloo, Ontario.

To remove the information for Waterloo, Ontario from BlackBerry Maps, in the next location document that you send to BlackBerry Maps, configure the clear attribute to the value of the id attribute of the location document that contains information for Waterloo, Ontario.

String document = "<lbs clear='Wat' ><location x='-8052237' y='4346518' label='Waterloo, ON' description='Waterloo' zoom='10'/></lbs>";

When you send the new location document to BlackBerry Maps, BlackBerry Maps removes the Waterloo, Ontario data from the map.

Related tasks

Was this information helpful? Send us your comments.