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
id
s.
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>";
Development Guide
Clearing data from the map
28