Add pin in a MapView

I have a plan and an actonitem let a PIN on the map. If it is possible to put the PIN when the mapview appear in the page without using the actionitem?

It is of the workaround that I found, I think that this is not the best method, but for my case, it's ok

MapView {
                id: mapview
                altitude: 800
                latitude: itemLatitude
                longitude: itemLongitude
                preferredWidth: 768
                preferredHeight: 1280

                onLatitudeChanged: {
                    pinContainer.addPin(itemLatitude, itemLongitude);
                }
                onLongitudeChanged: {
                    pinContainer.addPin(itemLatitude, itemLongitude);
                }
                onRequestRender: {
                    pinContainer.updateMarkers();
                }
                touchPropagationMode: TouchPropagationMode.None
            }

Tags: BlackBerry Developers

Similar Questions

  • 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

  • How to show a PIN with a custom on mapview icon?

    I use the following code to add a PIN, the card appears but the PIN does not appear. Tested on a real 10.1 Z10.

    GeoLocation *pin = new GeoLocation(lat, lon, mapview);
    pin->setName("somename");
    pin->setDescription("some description");
    
    Marker marker;
    marker.setIconUri("asset:///images/ic_place.png");
    marker.setIconSize(QSize(64, 64));
    marker.setLocationCoordinate(QPoint(32, 64));
    marker.setCaptionTailCoordinate(QPoint(32, 32));
    pin->setMarker(marker);
    
    mapview->mapData()->add(pin);
    

    Anyone get it working? Thank you

    UIToolkitSupport::absolutePathFromUrl(QUrl("asset:///images/ic_place.png"))

  • How can I reinstall an add-on that has been disabled by an administrator?

    Pinterest button was "disabled by the administrator" according to your page Add on. Given that I'm the only one using this PC and I have it has not disabled, how can I reinstall it? Several other modules have disappeared as well, so I think they are probably also disabled.

    Thanks for any help.

    I guess that you are referring to a message on the Mozilla Add-ons site.

    When the extension is no longer available because if was removed then you cannot install and must look for a replacement or try to find the developer's Web site to see if the extension is still available there.

  • Marker icon update mapview

    Hey people.

    I got a plan where I add geolocation with the marker icon.

    I want to update this marker of the icon with another icon, but the accident during the click on the marker popup after update.

    Update: I remove the geolocation of the dataprovider, I change icon, finally I add geolocation to dataprovider.

    If I don't remove/add geolocation of dataprovider, mapview is not update the marker icon.

    Thank you.

    OK, I already solve it.

    I don't have removal/addition of marker for the data provider. Just add for update.

    Thank you.

  • No visible pins in Photoshop CS6 extended blur Gallery

    In the Gallery of the Blur Blur CS6 pins are not visible. I tried the H shortcut to show the pins, but there is no change. The spindle with adjusting ring and the other set points are not visible. I seem to be able to add pins with the cursor (push pin with + is visible) and make adjustments to the sliders, but no pins. The M button displays the mask and the P button will switch the power preview. The problem exists in all blur filters 3 (field, Iris, Tilt-Shift). I'm operating on a PC running Windows 7 Pro 64-bit, with 12 GB of RAM. The program is Photoshop CS6 extended. I don't seem to have other Photoshop problems to this day. I closed and opened the program, restarted the computer and re-charge the program on the disk. No change. Any help?

    You are inexpensive. Thanks for the help, problem solved.

  • BlackBerry playbook with z10 Z10 video chat

    Hi guys,.

    Do you know the way to add playbook in z10 for video chat. I have z10 and playbook. I tried chaton playbook to z10 and it worked fine but when I tried to add pin playbook in z10 right after that I can not do video chat of the playbook. Can help you with this please?

    Bilal

    Arsen salvation,

    Thank you for your kind reply.

    What do you think if I create new blackberry ID for my Z10 instead I change for playbook? I think it would work this way too?

    See you soon,.

    Bilal

  • PopupScreen in an Application

    I have a system application that extends the Application and adds a MenuItem in the Contacts menu. Once you click on this istaniates a class which extends screen. This class checks to be sure, there is a correct e-mail address for this contact. Everything is good so far. Once it is determined that the email address is good, then he instaniates a class that extends the PopupScreen and the error occurs. I'm going in the right direction or should I do this differently. I'm relatively new to BB dev. Thank you

    Here is the code

    class ContactInfo extends UiApplication {}
    private static final String ARG_LAUNCH_CONTACT_INFO = "1";
    private static ContactInfo above;
           
    Public Shared Sub main (String [] args) {}
    If (args == null | args.length == 0) {}
    This = new ContactInfo("");
    ci.enterEventDispatcher ();
    } else {}
    String appToLaunch = args [0];
    If (ARG_LAUNCH_CONTACT_INFO.equals (appToLaunch)) {}
    try {}
    This = new ContactInfo (appToLaunch);
    ci.enterEventDispatcher ();
    } catch (IllegalStateException s) {}
    Status.Show (s.ToString ());
    }
    }
    }
    }
               
    public ContactInfo (String param) {}
    If (parm.equals("")) {}
    long locationToAddMenuItem = ApplicationMenuItemRepository.MENUITEM_ADDRESSBOOK_LIST;
    ToolBarMenuButton.AddMenuItem (ARG_LAUNCH_CONTACT_INFO, locationToAddMenuItem, ContactsMenuItem()) new;
    System.Exit (0);
    } else {}
    System.out.println ("start COntactsMenuItem");
    new ContactsMenuItem();
    }
    }

    private public static void ToolBarMenuButton.AddMenuItem (String argOfAppl, long location, ApplicationMenuItem applMenuItem) {}
    Amir ApplicationMenuItemRepository = ApplicationMenuItemRepository.getInstance ();
    ApplicationDescriptor app = ApplicationDescriptor.currentApplicationDescriptor ();
    App = new ApplicationDescriptor (app, new String [] {argOfAppl});
    amir.addMenuItem (location, applMenuItem, app);
    }
       
       
    private static class ContactsMenuItem extends ApplicationMenuItem {}
    public ContactsMenuItem() {}
    Super (200000);
    }
           
    public String toString() {}
    return 'Contact Info';
    }
           
    public Object execute (object context) {}
    BlackBerryContact c = (BlackBerryContact) context;
    If (c! = null) {}
    Application.getApplication () .requestForeground ();
    try {}
    System.out.println ("Got a contact");
    Ui.getUiEngine () .pushScreen (new MChoices (c));
    / * While (! Barreter) {}
    try {}
    Thread.Sleep (250);
    } catch (InterruptedException e) {}
    Dialog.Alert ("Thread interrupted");
    }
    }*/
    } catch (IllegalStateException s) {}
    System.out.println ("illegal state error =" + s.getMessage ());
    Status.Show (s.ToString ());
    }
    } else
    throw new IllegalStateException ("Context is null, expects an instance of Contact");
    Returns a null value.
    }
    }
       
    static class final MChoices extends PopupScreen implements FieldChangeListener {KeyListener
    private BlackBerryContact c;
    ButtonField private close, update;
    Photo exhib CheckboxField, pine, Manager, phone;
    private String [] name = new String [3];
    private String fullName, email;
                          
    public MChoices (contact BlackBerryContact) {}
    Super (new FlowFieldManager(), Field.FOCUSABLE |) Field.FIELD_HCENTER);
    c = contact;
    name = c.getStringArray (BlackBerryContact.NAME, 0);
    fullName = name [BlackBerryContact.NAME_FAMILY] + ', ' +.
    name [BlackBerryContact.NAME_GIVEN];
    System.out.println (FullName);
               
    LabelField cont = new LabelField ("Contact:" + fullName, Field.FIELD_HCENTER |) Field.USE_ALL_WIDTH);
    Add (cont);
    White LabelField = new LabelField ("", Field.USE_ALL_WIDTH);
    Add (blank);
    Photo = new CheckboxField ("Photo", true, Field.FIELD_LEFT |) Field.USE_ALL_WIDTH);
    PIN = new CheckboxField ("spit", true, Field.FIELD_LEFT |) Field.USE_ALL_WIDTH);
    Director = new CheckboxField ("Manager", true, Field.FIELD_LEFT |) Field.USE_ALL_WIDTH);
    Phone = new CheckboxField ("Phone Info", true, Field.FIELD_LEFT |) Field.USE_ALL_WIDTH);
    Add (photo);
    Add (pin);
    Add (Manager);
    Add (Phone);
    LabelField blank2 = new LabelField ("", Field.USE_ALL_WIDTH);
    Add (blank2);
    Update = new ButtonField ("Update Contact", Field.FIELD_HCENTER);
    close is new ButtonField ("close", Field.FIELD_HCENTER);.
    Add (Update);
    Add (Close);
    photo.setChangeListener (this);
    pin.setChangeListener (this);
    manager.setChangeListener (this);
    phone.setChangeListener (this);
    update.setChangeListener (this);
    close.setChangeListener (this);
    update.setFocus ();
    }
                   
    ' Public Sub fieldChanged (field field, int context) {}
    If (field == relatives) {}
    This.Close ();
    } ElseIf (field == update) {}
    If (c.countValues (BlackBerryContact.EMAIL) > 0) {}
    updateContact();
    } else {}
    Dialog.Alert ('no email for Contact');
    This.Close ();
    }
    }
    }
           
    {public boolean keyStatus (keycode int, int times)
    Returns false;
    }
           
    {public boolean keyRepeat (keycode int, int times)
    Returns false;
    }
           
    {} public boolean keyUp (keycode int, int times)
    Returns false;
    }
           
    {} public boolean keyDown (keycode, int, int times)
    Returns false;
    }
           
    {} public boolean keyChar (key char, int status, int time)
    Boolean retval = false;
    switch (key) {}
    case Characters.ESCAPE:
    This.Close ();
    break;
    by default:
    retval = super.keyChar (key, status, time);
    }
    Return retval;
    }
           
    private void updateContact() {}
    email = c.getString (BlackBerryContact.EMAIL, 0);
    System.out.println (email);
    If (photo.getChecked ()) {}
    make the photo because it is checked
               
    }
    This.Close ();
    }
    }
    }

  • How to insert the data from the table file?

    I need to know that how can I insert data into multiple columns by file. I can simply insert data into a table of columns, but could not find a way to put the data in the column all.

    My data in a file store
    ************************************************text.txt***************
    133, nanny, nagina, 14 mph, 45637, 9156729863

    **************************************************************my_data(table)**********
    try to insert into table below...

    Name, ID, last_name, add, PIN. Mob

    *********************************************

    Let me know if you need anything else... :))

    Hey nanny.

    In fact, in SQL Developer, you can open a connection to the target schema, right-click on the Tables node in the Navigator tree, select import the data, then use the data import wizard. It is extremely flexible. Looks like you have a file of comma-separated variables, so if you select Format: csv and import method: Insert it will probably work fine.

    To minimize the risk of errors during import, choose a limit value of preview so that the wizard can review the data type and the size of all columns in several lines of data as possible, and then examine the size/type of data for each column on the next page of the wizard and replace if necessary. For date columns, it is also important to choose the appropriate format mask.

    Hope this helps,
    Gary
    SQL development team

  • Basic adjustment Brush Questions

    With the adjustment brush, I paint on the area I want to affect. Why might I add pins to different parts of the image?

    I want to paint a saturation on certain parts of my image. How to paint a saturation increase without affecting exposure, brightness, contrast, etc. I just need to make sure that these settings are 0?

    Thanks in advance.

    Yes, leave all the settings to zero other than those, you want to apply to a particular part of the image. So, with your example, all must be zero set apart from the saturation parameter, which could be to say + 20.

    Not quite sure what you mean on the pins. a watch pin where you started to brush a fit, and you can of course apply multiple adjustments to areas of an image with different types of adjustment brushes, then you might need paint in this saturation you mention on a part of an image, but may need to bump up the contrast in another part of the same image using another ('News') the brush. Every time that you start with a brush, a PIN is added to the point where you start to apply the effect. You can later see what areas a particular brush affects by clicking the pin - the painted area will be highlighted in red.

    I spent some time reading about Camera Raw if I were you. In my humble OPINION, one of the best resources is the Schewe, book of Fraser "Real World Camera Raw", but there are a lot of tutorials on the web.

    Hope this helps

    M

  • support of moz, 'my questions' pinned permanently to add: newtab

    Hello:

    I have 5 pages Web made the fallen add: newtab. They are all well behaved and stay pinned
    However, the Web of the 6th page, doesn't have. This web page is my moz support questions.

    Another of those Web pages which behaves properly, is supported by moz
    https://support.Mozilla.org/en-us/questions/new

    As the 6th pins Web page, I would like to have pinned the website page that displays 'my questions '.
    (I access this page by navigating from the URL above, under my account and selecting my questions in the drop-down list)
    seems simple,
    BUT,
    whenever I drag the URL to newtab, he disappears to use it. I had pinned it. And it always disappears...

    all ideas so it can remain permanently pinned at about: newtab

    Thanks for your help

    Changes manually on the subject: newtab page are stored in the preferences you can find on the about: config page.

    • Browser.newtabpage.pinned stores the Web site you pinned to a tile.
    • Browser.newtabpage.blocked stores the Web site that you've deleted by clicking on the X button in a tile.

    If you do not keep the changes after a reboot or have problems with preferences, see:

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • Add new tab/PIN to the start page. Impossible for the life of me to restore a deleted site/PIN...

    I accidentally deleted a pinned site my page tab (start). (You can remove by clicking on the icon in the upper left corner of the thumbnail, or remove by clicking the icon at the top right of the thumbnail). My question is, how do I ADD (or more precisely, to restore) a thumbnail of website? Pulling my hair out here...

    (FYI, this article does not take into account the latest version (32.0.3) or solve the problem: https://support.mozilla.org/en-US/kb/new-tab-page-show-hide-and-customize-top-sites?esab=a & as = aaq)

    FF 32.0.3 on OSX (10.7.5)

    See you soon!

    Do you think you visit the site often enough that he expected to appear on the page function visit frequency? If so, perhaps it is blocked. The browser.newtabpage.blocked preference seems to be to be completely indecipherable, so you may need to right click > reset to allow sites all blocked reappear on the page.

  • Add a new search bar in tabs and took the pinned tabs

    This continues to be and I don't know why, but I get this site http://search.snapdo.com/?st=nt & q = instead of my pinned tabs. I don't know why he keeps to himself, but to do this, and I don't know how to fix this to make sure that I have my pinned tabs there permanently.

    Hello

    The reset Firefox feature can solve a lot of problems in restaurant Firefox to its factory default condition while saving your vital information.
    Note: This will make you lose all the Extensions, open Web sites and preferences.

    To reset Firefox, perform the following steps:

    1. Go to Firefox > help > troubleshooting information.
    2. Click on the button 'Reset Firefox'.
    3. Firefox will close and reset. After Firefox is finished, it will display a window with the imported information. Click Finish.
    4. Firefox opens with all the default settings applied.

    Information can be found in the article Firefox Refresh - reset the settings and Add-ons .

    This solve your problems? Please report to us!

    Thank you.

  • Drop PIN for mapView

    I have this mapview

    my function

    function businessdetail(response){
    
            console.log("Response: "+response)
            var json = JSON.parse(response)
    
            map.longitude = json.longitude
            map.latitude = json.latitude
    
            }
    

    and that's my mapview

    MapView {
                                id: map
                                preferredWidth: Infinity
                                preferredHeight: 600
                                altitude: 1000
    
                            }
    

    I just want to have a PIN which exactly it fell from my latitude longtitude

    and if I click the mapview will be a road marker that leave from my site, like this

    a better way to do this?

    and please share some codes

    Thank you

    Thanks for the reply

    because "I JUST NEED a MARKER IN THE CENTER OF MY map"

    I do this

    Container{
          topPadding : 15
          layout: DockLayout {
                        }
               MapView {
                     id: map
                     preferredWidth: Infinity
                     preferredHeight: 600
                     altitude: 1500
    
                     overlapTouchPolicy: OverlapTouchPolicy.Deny
                     touchPropagationMode: TouchPropagationMode.None
    
                    }
                     ImageView {
                          imageSource: "asset:///images/mapicon.png"
                          verticalAlignment: VerticalAlignment.Center
                          horizontalAlignment: HorizontalAlignment.Center
                          preferredHeight: 100
                          preferredWidth: 100
                           onTouch:{
                                tabPane.direction = true
                                tabPane.button = true
                                }
                            }
    }
    

    hehe...

    peace

  • How to add contacts on BBM BlackBerry Smartphones? If we do not know email address and pin code?

    BlackBerry 9220 curve

    Open your BBMessenger application.

    Press your Menu button (the left button of the trackpad)

    Click on invite to BBM.

    You can enter BlackBerry PIN a friend here or email address. I recommend using the method of the PIN code.

    More information can be found here.

    BlackBerry Messenger - 6.2 - User Guide

Maybe you are looking for

  • Exception on the creation of a second task with Analog channels?

    I'm getting an exception '{error =-50103 = "is reserved for the resource specified. The operation could not be performed as specified.\n\nTask name: _unnamedTask\n\nStatus Code:-50103 "} ' when I call Control(..Commit) on a task with Analog channels,

  • Zoom of the nation

    Program called zoom nation was downloaded with another program and took over my home page, I can't uninstall it.

  • Why is my wireless printer seems Offin?

    HI: I have an OfficeJet 6700 premium.  It is connected to my home wireless network. (1) I can print when connected via USB. (2) light is on which means that it is connected wireless.  I confim with via the configuration menu of the printer itself tha

  • How to remove the account from Ghost boot not valid

    Hi, I've just updated from Vista to Windows 7. Now ofter powered, the first windows screen I see is a connection attempt has failed.  When I chose to change user, it gives me two options: a former user account that I had deleted several days ago and

  • Installation of QT in the IDE from QNX

    All quick tips on the QT layout and run inside the IDE NDK? I downloaded and unpacked port QT of RIM of github. In the abscnce of any other guidelines, I tried running the. / configure script. It fails with Test basic functionality XLib failed!You ma