07-17-2009 08:49 AM
I am trying to develop an application that uses MapField, but before that, I need to get Maps application working.
I am trying to use the BlackBerry Maps application on a 8900 simulator. However, I am facing loads of problems.
When I try to use the maps app in the simulator, it opens as a greenish-gray screen with black diagonal lines. Also, when I try to search for a location, the MDS does not show any activity. The last message in the MDS is
<2009-07-17 18:04:31.840 IST>::<MDS-CS_MDS>:<DEBUG>:<LAYER = SCM, EVENT = St
atistics save task finished -- number of rows inserted:5>
A third doubt as well. Sometimes, the maps application throws a network error.
Are all these problems related? And how do I overcome them?
07-17-2009 09:48 AM
lol, This was about one of the few things that seemed to work pretty much right away- I didn't try the demo but
just plopped in a MapField into an app. Keep in mind the hidden ops are quite
involved as it needs to get the map info form somwhere so not only does local stuff need to work but some far
away thing needs to talk to you too.But, it seems to be as easy as any other Field.
The greys will stay if location is nonsensical- the factor is 1e5 and
IIRC order is y,x ( not x,y). This is a nice feature and I used it in a browser app for testing and made my first
plugin for the standard browser ( the hardest part was getting stupid cold fusion to respond with the right
mime type - some what of an exaggeration as I blame everything on cold fusion but the map thing was amazingly
easy). I've also got my own vector maps for web and <4.5 to get comprehensive coverage but on 4.5+ this
seems like a nice feature.
07-20-2009 12:38 AM - edited 07-20-2009 07:48 AM
I have already tried that, but it still did not work. So I don't think that's the problem. I also checked the messages in the JDE console, and this particular message intrugued me.
GPSProvider: removing listener: net.rim.device.apps.internal.lbs.MapScreen@f206d16
MapScreen: Stopping Navigation.
FYI - when I say "start GPS navigation" in the menu of the Maps app, the dashboard shows a kind of tilted satellite, with a kind of wave propogation symbol, like ")))", albiet a little conical. I'm assuming this means that the GPS simulation works.
Moving on, after changing my google search query for probably the zillionth time, I found somewhere that the Maps application will only work from countries which are listed on the following link.
So, does that mean that I cannot run any map tile, not even for say Malaysia (which is listed), from here in India (which is, sadly, not listed)? If that is the problem, then I am sorry to have wasted your time.
07-21-2009 08:26 AM
I guess it is possibly geo restricted but AFAIK that page just shows data coverage. If you put in an uncovered location
into a mapfield, you do get the line pattern. Personally I'd suggest just putting a MapField onto a screen and see what happens
without the demo. If the demo gets coords from GPS that is another thing that can go wrong. Make a map field and
set location to something in north america- New York city is good and remember coord order and scale factor.
07-21-2009 08:36 AM
07-21-2009 09:52 AM
That was almost as far as I bothered to look for initial testing. I had gotten at least one feature in one location and I haven't
gotten back to it- not sure it was "right" but it wasn't blank.
The lines mean invalid, not sure what features you can get on a valid location. I think I had one road
with no labels and stopped looking. I've got the feature disabled right now of I could try to find better location.
I guess it is possible that you have a valid but empty location in both spots.