views:

37

answers:

0

I'm calling the BB Maps (not google maps) and trying to set multiple markers, but somehow the marker in position 1 always fails to label correctly. When I hover over the first item in the xml, it highlights the second element and draws the quote box for that item. Yet, the marker for item in position 1 is correct. The code below draws the route and sets markers for the start and end locations. The same behavior is seen if the GetRoute tag is omitted.

String document = "<lbs>
<GetRoute>
    <location lon='742577' lat='4373890' label='You are here' description='You' />
    <location lon='742514' lat='4373880' label='Le Sakura' description='Restaurants - Monte-Carlo 0.1 miles' address='1, Avenue Henri Dunant' postalCode='98000' phone='37793508933' />
</GetRoute>
<location-document>
    <location lon='742577' lat='4373890' label='You are here' description='You' zoom='10' />
    <location lon='742514' lat='4373880' label='Le Sakura' description='Restaurants - Monte-Carlo 0.1 miles' address='1, Avenue Henri Dunant' postalCode='98000' phone='37793508933' />
</location-document>
</lbs>
";
Invoke.invokeApplication(Invoke.APP_TYPE_MAPS, new MapsArguments( MapsArguments.ARG_LOCATION_DOCUMENT, document));

Additionally, when you back out of this map, then select another location, the new map often loads with the old data. Is there a way to clear map data on instantiation, without the user having to clear the map data manually?

Blackberry Bold 9000, v4.7. All map stuff working aside these details.