MapView does not show pines
I experience MapView and I need help with it. I use 10.3.2 API and testing my application on the Simulator.
Here is my code:
MyMapData.h:
#ifndef MYMAPDATA_H #define MYMAPDATA_H #include#include using namespace bb::cascades::maps; // MyMapData class MyMapData : public MapData { Q_OBJECT public: explicit MyMapData(QObject *parent = NULL); virtual ~MyMapData() {} public slots: void addGeoLocation(const int latitude, const int longitude); }; #endif // MYMAPDATA_H
MyMapData.cpp:
#include#include #include #include "MyMapData.h" using namespace bb::platform::geo; // MyMapData MyMapData::MyMapData(QObject *parent) : MapData(parent) { add(new GeoDeviceLocation()); } void MyMapData::addGeoLocation(const int latitude, const int longitude) { add(new GeoLocation(latitude, longitude)); qDebug() << "------------>" << count(true); }
Inside of main.cpp I register class MyMapData:
qmlRegisterType("bb.cascades", 1, 4, "MyMapData");
Inside the .pro file, I added libs:
LIBS += -lbb -lbbplatform -lQtLocationSubset -lbbcascadesmaps -lGLESv1_CM
Inside the .bar file, I added the following permissions:
access_location_services access_internet
hand. QML:
import bb.cascades 1.4 import bb.cascades.maps 1.4 Page { MapView { id: mapView latitude: 52.5 longitude: -98.75 mapData: MyMapData { id: mapData } } actions: [ ActionItem { title: "Drop Pin" ActionBar.placement: ActionBarPlacement.OnBar onTriggered: { mapData.addGeoLocation(mapView.latitude, mapView.longitude); } } ] }
When I click on Add Pin, no pins on MapView are displayed, but debug of MyMapData :: addGetLocation me, shows that the pine has been added.
What's wrong?
My code works well, just zoom out
Tags: BlackBerry Developers
Similar Questions
-
Adjustment brush does not show it is "Button":
I installed the update to 3.4.1 and warm rebooted my computer.
The button that you saw after painting (release the mouse button), is gone.
There is nothing to hover over to see which zone painted you and if you close the brush and then reopen it, the button does not appear.
HALP!
Press the H key once. H active / disable the visibility (mask and displays alternately) the "pines" for the different adjustment brushes.
-
Windows 10. installed iTunes version 12.4.0.119. I have several iTunes libraries. On most of them display-> ' display as ' does not show the grid option. A library of fact. It's all music, with no video media. By default seems to be a list that is unchangeable.
Select the sidebar if hidden. View options > view as may depend on which of the options for the song, artist, album, etc. are selected in the sidebar.
TT2
-
iTunes movie does not show on the ipad after download
When I rent a movie via itunes on my ipad air 2 it runs it through the treatment of download, but the film does not show in one of my shopping list
To download in the video the iPad app play you (which is where you looked too?) -It will appear in the purchased for redownloading, rentals are a unique download only
-
map does not show the routes and directions
This feature is not yet supported in India.
http://www.Apple.com/in/iOS/feature-availability/#maps-directions
In addition, your phone may be overheating for a number of reasons. The most common of which is low service area.
Your attributes from battery to the majority of the production of heat, then adjust settings to put less load on the farm in general will help some.
-
Checking update Java plug-in does not show latest version after update same
Checking update Java plug-in does not show latest version after update same
You exit and then restart your browser after Java update in order for the right version of Java to display the Plugin Check page. I felt it necessary to do so.
See also:
- Article on Java Mozilla - https://support.mozilla.org/en-US/kb/use-java-plugin-to-view-interactive-content
- VΘrifier versions on site Java - http://www.java.com/en/download/installed.jsp
Other - you should check your Plugins and update as needed.
- Check your Plugins - https://www.mozilla.org/en-US/plugincheck/
- Adobe Shockwave for Director Netscape plug-in, version 11.6.7.637 (aka Shockwave Player. Not the same as Flash/Shockwave Flash/Adobe Flash Player)
- http://KB.mozillazine.org/Shockwave (mozillazine.org seems to be down at the moment (12/12/2012 11:34 am PDT), try again later)
- Download, save, exit/close all browsers, run the installation program you just downloaded - http://get.adobe.com/shockwave/thankyou/
- Adobe PDF plugin for Firefox and Netscape 10.1.4 (Adobe Reader 11 is the current version)
-
How to lock my browser so it does not show my passwords.
I'm going to work on my computer and take it to a local store. I would like to please how to close my browser so it does not show my passwords for my accounts? (there is no real safe biggies) I'd rather just they didn't have the ability to snoop. Also, if my operating system is upgraded it deletes my browser history / passwords saved in Firefox? (I'm not concerned about the other browsers) Thanks in advance
You can protect firefox password store by setting a master password.
If your data are always there after an upgrade of the OS depends on how they do it - to be sure, you can save your profile on a usb key or elsewhere before you replace your pc - see back up and restore the information contained in the profiles of Firefox
-
Boot Camp Windows does not show Macintosh HD in file Explorer what should I do?
Hello
I installed windows on boot camp 10 but windows file Explorer does not show my files on mac and I can't access them what should I do?
You need to install the boot camp software in windows to get this working
-
Sometimes Sessionrestore does not show my tabs as they were when I closed Firefox, but as they were some seemingly random (but persistent if retry) point between the beginning and the end of my last session. Sometimes, they are exactly as they were when I started my last session. I am currently using Firefox 5, but the problem was already present when I always used 4. It is perhaps also relevant that I tend to have a lot of windows and tabs open, sometimes to the point of crashing Firefox.
It is possible that one of the extensions is the cause, but that can be difficult to diagnose if you can reproduce or force it to happen.
-
TRYING TO EXPORT MY FAVORITES (COMPUTER WILL CRASH SOON). I FOLLOWED THE INSTRUCTIONS TO DO THIS. I CLICKED ON the FAVOURITES and IT does not SHOW 'MANAGE BOOKMARKS' how DO I EXPORT MY FAVORITES IF I can't CLICK ON "MANAGE BOOKMARKS"?
Thank you
Menu, select "Show all bookmarks", that will open the bookmarks library in bookmarks. In the library, you can use the "import and backup" menu to export bookmarks.
-
I downloaded Open Office, but it does not show in my Applications. Only an icon shows on my desktop and when I stop I have to re - download.
Where did you put it after installing it, it should have been in the Applications folder, was it?
-
videos app does not show me movies and TV shows, that I recently bought.
Hi all, I have a problem with my iPhone 6 s, the problem is that the videos app does not show me movies and TV shows, I bought a few hours ago, and I realize that my iPhone 4S has not this problem. Both have installed the latest versions of ios.
Don't show them where? In the video application itself? Tab in iTunes purchased? If they are not downloaded, go to settings > videos > show iTunes purchases > on.
-
Hello
I have a macbook Air 13 "bought in 2011, it has OS X 10.9 Mavericks installed and since yesterday the Finder does not work. When I open it it does not show a folder or a document, and it shows strange reasons (reminds me when my old Windows crashed).
Here you will find some screenshots.
Important to note is that if I use a projector I can find the files, then open them. Also when I upload an image on the internet and I have to select from the computer via the Finder (regarding the screenshots attached), it works well. In addition, as you can see from the screenshots, on top of the viewfinder, I can see the files and I can open them somehow. If I change the view of the researcher, song to a list, so I can't see anything and can not open files.
I tried to restart the computer, turn it off and turn it on all by pressing the SHIFT key, but it does not work. Interestingly, when I force to quit the Finder application and I re-launch, for the first 10 seconds, it works, then it stops working.
Do you have an idea what could be the problem?
Alex
Unfortunately I have a hardware problem with RAM or graphics chip.
If your MacBook Air has been purchased after July 20, 2011, he probably has a material test integrated. You can find starting with'd ' key.
If it isn't you will need the installer original discs/flash drive that comes with it. If missing, call AppleCare.
You may also be able to get a disc to test material created with this link:
https://github.com/upekkha/AppleHardwareTest
If Apple Hardware Test reveals no problems, it is more likely that the RAM is an issue than any other thing: *
http://www.macmaps.com/BadRAM.html
* Links to my pages give me an allowance.
-
Firefox 4 beta1 does not show the new user interface
Firefox 4 beta1 does not show the new UI (not Firefox Button on the left). It is exactly the same as FF 3.6.8 under the tabs on the top function. Also, if I disable the menu bar, UI GET screwed up
This has happened
Each time Firefox opened
Nevermind, I fixed it.
It seems that, for some reason, the default theme has been disabled (?) for the installation of 4 FF, and everything looked weird and wise as I mentioned in the original post.
On a side note, next to the default theme, once I activated, it reads "not compatible with FF4. -
Personal bar does not show the links when the firefox window is maximized
When the FF window is maximized, I do not see the additional folders and links that are not displayed (the double chevron does not show anything).
This has happened
Each time Firefox opened
Hello
Your solution works well.
It's the Hypercam toolbar that creates this bug.
Thank you very much
I don't know if I should mark this topic as resolved, or or to do...
Maybe you are looking for
-
Satellite A200 - 19K - overheating/fan does not work
These 2-3 days, my Satellite A200 - 19 k (PSAECE) was himself cut and was not very hot. I installed SpeedFan, but it does detect any fans. In addition, the fan on the base of the machine is not working. Anyone has any ideas for a solution? Any help i
-
All the icons have become icons of word doc and try to open explorer.exe in Word 2010
All the icons on my new Compaq Presario desktop PC now resemble a page with the logo of the word. When you click on them, they try to open via explorer.exe as a word 2010 document. Any ideas how to undo this?
-
Windows 8/8.1 Weather App is totally wrong 'weather history.
I live in North Conway, NH and I chose as my position. Bing weather with forecasts Panel seems fairly accurate, as well as the schedule. The cards are regional and are on-site. But the map of historical time is all just ridiculous. It shows the mediu
-
Hello, I was the shooter 2nd for a wedding this past weekend. When I got home, I imported my raw images from my sd card in my lightroom and a few days later, when I met the photographer, we tried to download my sd card in his lightroom. They seemed t
-
Error: An unexpected error occurred during automatic creation.
Hi allAfter that DBA applied the cumulative Financials Patching - 12.1.3 + Recommended Patch Collection 1 (CPR1) and HRMS Suite patch (HR or 6) in a test instance, we encountered ERROR when you attempt to manually a PÒ of automatic creation of an app