BlackBerry Forums Support Community

Closed Thread
LinkBack Thread Tools
Old 07-15-2011, 11:54 AM   #1 (permalink)
New Member
Join Date: Jul 2011
Model: 9800
Carrier: ATT
Posts: 1
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Hard time developing BBMap based application. Please Help

Please Login to Remove!

Hi all,

I am developing an app which will show the bus locations on the map and dynamically update them also. I have an HTTP thread which fetches the bus coordinates (lat & lang) from a web server. When I fetch the coordinates, I prepare a location document similar to BlackBerryMapsDemo project's multiple location feature. Then I call the BBMap application using the Invoke.InvokeApplication() API and passing the location document string.
I have a timer which ticks off every 15secs. When the timer goes off, I fetch the coordinates, prepare location document string, invoke BBMap application. If the Map application is already running the new coordinates overwrite on the previous ones. Now the Map starts up, shows the locations with "red ball" marker and periodically updates also. So far so good. Below are the problems I am facing.

1. Every time the map refreshes i.e 15secs, it resets the zoom level. For example if the user zooms in/out, between the 15s period, after 15s when the map refreshes, the zoom level is back to with which it started and the user's zoom level is lost. How can I fix this?

2. Is there a way through which I can define my own markers for locations, for example say a red ball for buses going east and blue ball for buses going west or like triangle shaped pointers describing the direction in which the bus is moving.

3. I have all the bus stop's coordinates also and I think I can use it to draw a route on the map depicting the bus's route. The <lbs> has a <getRoute> element through which it can be accomplished I guess but it takes one start and one end location. I cannot just provide the end points of bus's route to clearly depict the bus's route so I have to join 2 stops at a time. Does anyone has any idea how I can depict the route with say, I have 15 bus stops coordinates between the bus's route end points.

Any help is appreciated.

Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads for: Hard time developing BBMap based application. Please Help
Thread Thread Starter Forum Replies Last Post
Searching for reliable application - change profiles according to time / day scuzzilla General 9700 Series Discussion - Bold 2 2 06-10-2010 08:28 AM
Need serious HELP! Signal but no communication. biggy238 General 8300 Series Discussion - Curve 10 12-24-2009 01:00 PM
JVM 102 Error on TMO 9700 std firmware phrider General 9700 Series Discussion - Bold 2 12 11-20-2009 10:55 AM
Problem using Desktop Application Loader to deploy my application spainb General BlackBerry Discussion 0 12-11-2008 04:02 PM
More restrictive application permission = software hard reset Spamdumpster General 8100 Series Discussion - Pearl 1 01-04-2007 08:21 AM

APPLE 630-0895-B  VRAM 128K X 8 BOARD CARD VINTAGE pictureAPPLE 820-0522-A 630-0895-B LITE VRAM 128K X 8 BOARD >
APPLE 820-0522-A 630-0895-B LITE VRAM 128K X 8 BOARD > picture

Copyright 2004-2016
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.