Black cascades

Hi, I am trying to implement a mapview using BlackBerry Cascades based on this link , but whenever I import maps

import bb.cascades.maps 1.0

,

QNX IDE gives error message

bb.cascades.maps is not installed

...

I set up the environment exactly as described on the developer site and don't seem to understand how to install this module.

0


source to share


2 answers


They seem to have left some steps behind. Not all cascade objects are loaded into the development system by default, but they can be added at runtime. The biggest drawback is that Eclipse cannot do static QML parsing just for generic error syntax.

If you add the following lines to your main.cpp file, you can make this example work (I hacked this into one of my current projects and got it to load without error, but the MapView is all black):

#include #include <bb/cascades/maps/MapView>

      

Then, before calling QmlDocument :: create:

qmlRegisterType<bb::cascades::maps::MapView>("bb.cascades.maps", 1, 0, "MapView");

      



This is a mechanism that is used quite often to make Cascades objects not included in the default customization available, or to make your own specializations from CustomControls or other Cascades objects available to QML.

Finally, this example seems to predate beta 3, so there might be some other issues that you have to work with.

EDIT

I thought a bit and found this thread on the BlackBerry forum . Setting the Pitch to 10,000 EQ brought me a useful map on the simulator and Dev Alpha. Obviously it takes more work, but you can interact with it (drag to move, pinch to zoom, etc.).

+2


source


The MapView component appears to be largely unusable until the most recent SDK update (10.0.9.2318), as it was somewhat acknowledged and mentioned by this Blackberry DevBlog post: http://devblog.blackberry.com/2013/01/cascades- mapview /

Also, check out the new CustomMapView example on Github for a working example app using this latest update: https://github.com/blackberry/Cascades-Samples/tree/master/custommapview



For QML viewing issue, this is a known issue. QML Preview currently only supports the main components of cascades. See my more detailed answer here: Blackberry 10 Unresolved Inclusion <QObject>

0


source







All Articles