BlackBerry Forums Support Community
              

Closed Thread
 
Thread Tools
Old 07-15-2011, 11:54 AM   #1
kdas
New Member
 
Join Date: Jul 2011
Model: 9800
PIN: N/A
Carrier: ATT
Posts: 1
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.

Das
Offline  
Closed Thread



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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 5.0.0.330 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


KEYENCE LR-TB5000CL Laser Sensor with Built-in Amplifier picture

KEYENCE LR-TB5000CL Laser Sensor with Built-in Amplifier

$249.99



Portable Voice Amplifier, Towevine Rechargeable Microphone Speaker picture

Portable Voice Amplifier, Towevine Rechargeable Microphone Speaker

$14.99



Fanuc A06B-6090-H003 Servo Amplifier - WARRANTY picture

Fanuc A06B-6090-H003 Servo Amplifier - WARRANTY

$399.00



New In Box PHOENIX CONTACT MCR-C-UI-UI-DCI 2810913 Isolation Amplifier picture

New In Box PHOENIX CONTACT MCR-C-UI-UI-DCI 2810913 Isolation Amplifier

$209.00



Factory sealed Mitsubishi MR-J2S-40CP AC Servo Amplifier Drive PLC New In Box picture

Factory sealed Mitsubishi MR-J2S-40CP AC Servo Amplifier Drive PLC New In Box

$256.00



Phoenix Contact MACX MCR-EX-SL-2NAM-T Ex i NAMUR isolating amplifier - 2-chan... picture

Phoenix Contact MACX MCR-EX-SL-2NAM-T Ex i NAMUR isolating amplifier - 2-chan...

$296.32







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