SetIcon MapView marker

The doc said that the icon must be a file that will be used with setIconUri. I used a picture of the asset, but I always get the standard purple marker.

Don't setIconUri of marker's work?

OK with the latest SDK

Tags: BlackBerry Developers

Similar Questions

  • 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.

  • 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

  • Map of BB on Z10 marker

    Hi, I'm new in BB dev

    I used stunts 1.0

    I tried to drop the marker on BB MapView

    Use the marker in the assets, as opposed to the default marker
    Marker flag = marker (UIToolkitSupport::absolutePathFromUrl)
    QUrl("asset:///Image/icon_pickup.png")), QSize (56, 70),
    (20, 69), QPoint QPoint (20, 1));
    newDrop-> setMarker (flag);

    mapView-> mapData()-> add (newDrop);

    This is part of the abandonment of marker

    It works very well on devices of Q10

    But when I tested it on Z10, we can't show this marker

    While I am debugging it on the device, I can see the default marker

    But on the version of publication, it does not show anything

    What's wrong?

    How can I show marker on Z10?

    Please tell me the solution

    Thank you

    I've upgraded version of the os from my phone to 10.1

    So I saw the PIN I have droped

    Thank you for your assult

  • MapView navigation?

    Hello

    I created a MapView (bb::cascades:maps:MapView) and added a geolocation (bb: platform::geo:GeoLocation) which shows a marker on the map.

    I added a name and a description to my place:

    location-> setName ("Point of interest");

    location-> setDescription ("this point is interesting");

    Then when I click on the marker of the small bubble will appear showing me 3 things:

    -Name of geolocation. 'Point of interest '.

    -Description of geolocation. "This is interesting".

    -A top arrow button.

    The arrow on the button is usually associated with the ability to navigate to the marker in question. How to capture a button from this button? And more important still, how do I start navigation when the button is pressed?

    Thank you!

    For Navigation, you will need to use the RouteInvoker

    To use it, you'll need this in your main.cpp:

    #include 
    
    qmlRegisterType("bb.platform", 1, 0, "RouteMapInvoker");
            bb::data::DataSource::registerQmlTypes();
    

    ^ put this right under this code in your main.cpp:

    Q_DECL_EXPORT int main(int argc, char **argv)
    {
    

    In addition to setting this in your qml:

    RouteMapInvoker {
    
                id: routeInvoker
    
            }
    

    And then onClicked or notecard use this:

    onTriggered: {
                    routeInvoker.endLatitude = listItemLat.text <<		   
  • 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"))

  • The details of the selected marker

    Hello

    I can't get the selected marker cordinates when pressing the button legend attached photo.

    The only thing I get is focusedId.

    I want to get Lat and Long coordinates to transmit in RouteMap applicant.

    Any ideas?

    I found the solution.

    QString ApplicationUI::getDataFromPin() {
        QString points=mapView->geoUri();
     return points;
    }
    

    And then you get the two coordinates to a string.

  • Time not appearing does not, in MapViewer with Internet Explore (Reposted)

    (I posted this question once before, but I think he had a few problems caused by the div tag in the HTML code I included.) The div 'map' did not appear in the sent message and some other links on the page did not work, perhaps because of my rogue "div". I used markup codes in the hope that these problems don't exist this time. I apologize.)

    I use MapViewer 10133p 5 and having troubles placing times in Internet Explorer (IE code that seems to work in Firefox very well fail in Internet Explorer). I reduced my HTML to which, in my view, are the essential and pasted its contents below.

    In the Firefox browser, anywhere, anytime, I click on the card that I see an alert indicating the coordinates where I clicked, then a FAITH (with a picture on it) is placed on the card. Finally, I see another alert letting me know that the FAITH was placed. In IE7, I see alerts, but I never see FAITH. Finally, from what I can tell, the Server WebLogic which is at the service of the MapViewer app receives a request, whenever I have this in Firefox, but sees not a request come through when I do it in Internet Explorer.

    IE gives me no indication that something is wrong, and since the final warning (see below) goes off, I have to assume that the execution of the script is not a failure. Any guidance would be greatly appreciated.

    < html >
    < head >
    < meta http-equiv = "Content-Type" content = text/html"; Charset = UTF-8 "/ >"
    < title > test < /title > map

    < script
    Language = "Javascript".
    src = "http://localhost:7001/mapviewer/fsmc/jslib/oraclemaps.js" >
    < /script >

    < script language = Javascript >
    MapView var;
    var FOICount = 0;

    function showMap()
    {
    baseURL var = "http://localhost:7001 / mapviewer.
    var mapCenterLon =-110.0;
    var mapCenterLat = 45.9;
    var mapZoom = 4;
    Browse var = MVSdoGeometry.createPoint (mapCenterLon, mapCenterLat, 8307);
    MapView = new MVMapView (document.getElementById ("map"), baseURL);
    mapview.addBaseMapLayer (new MVBaseMap ("test_map.sweetgrass_county"));
    mapview.setCenter (mpoint);
    mapview.setZoomLevel (mapZoom);
    mapview.addEventListener ("mouse_click", mapview_mouse_click);
    MapView.Display ();
    }

    function mapview_mouse_click()
    {
    var mouseLocation = mapview.getMouseLocation ();
    var mouseLocationX = mouseLocation.getPointX ();
    var mouseLocationY = mouseLocation.getPointY ();
    Alert (mouseLocationX + ',' + mouseLocationY);

    pointClicked = MVSdoGeometry.createPoint (mouseLocationX, mouseLocationY, 8307);
    pointClickedFOI = new MVFOI ("ID:" + (FOICount +), pointClicked, 'MY.) STYLE.NAME");
    pointClickedFOI.setWidth (48);
    pointClickedFOI.setHeight (48);

    pointClickedFOI.setHTMLElement ("< img src="./pin.png"/ > '");

    mapview.addFOI (pointClickedFOI);
    Alert (' added FAITH to ' + mouseLocationX + ',' + mouseLocationY);
    }
    < /script >
    < / head >

    < onload javascript:showMap() = body; >
    & lt; div id = "map".
    style = "z-index: 0;" position: absolute; display: block; left: 0px; Top: 10px; Width: 95%; height: 95% "& gt;
    & lt; / div & gt;
    < / body >
    < / html >

    This is a bug of oracle cards. The solution is to add the image as a marker faith separated.

    pointClicked = MVSdoGeometry.createPoint (mouseLocationX, mouseLocationY, 8307);
    pointClickedFOI = new MVFOI ("ID:" + (FOICount +), pointClicked, 'MY.) STYLE.NAME");
    pointClickedFOI.setWidth (48);
    pointClickedFOI.setHeight (48);
    mapview.addFOI (pointClickedFOI);

    markerFOI = MVFOI.createMarkerFOI ("ID:" + (FOICount +), pointClicked, '. ') ("/ pin.png");
    mapview.addFOI (markerFOI);

  • 4K Canon EOS5D Mark iv and EOS1DX Mark II video

    Hello

    I can't play or correctly modify videos 4K of the EOS - 1DX Mark ii on my Mac. The images are wiped out as if it were 5 fps.

    I have OS X El Capitan 10.11.6 with 2.6 Ghz processor Intel Core i5, 16 GB of RAM, Intel Iris 1536 MB graphics card.

    I usually play and edit 4 K Panasonic video with no problems.

    Here, I tried the Canon 4 K MJPEG with Final Cut Pro X, Quicktime, VLC, video player Rocket and EOS Utility film without success.

    The EOS - 1DX Mark ii as well as the EOS - 5 d Mark iv btw are not on cameras for Final Cut Pro X.

    https://support.Apple.com/en-us/HT204203

    I also tried to play videos 4K 1DX - EOS Mark II on 5 different Mac and it has always failed. I tried on a Windows PC, and it worked.

    Apple support told me that Canon codec is missing to play videos 4 K 1DX - EOS Mark II.

    Can you confirm?

    What can I do without losing the quality 4K

    You can search this forum for the camera model, but I think that you will get a faster response by visiting the Canon support forums, if they exist. If there is no available for Quicktime codec, you go through a conversion software, upstream of FCPX. The camera came with a way to move the motionjpg files to a Macintosh? Should have.

    http://nofilmschool.com/2016/05/field-review-Canon-EOS-1d-x-Mark-II

    https://www.YouTube.com/watch?v=p67plTeMyD8

    http://newatlas.com/Canon-1DX-MarkII-DSLR-4k/41619/

    https://www.cinema5D.com/Canon-EOS-1d-x-Mark-II-review-real-world-video-samples-: first-impressions.

    http://www.newsshooter.com/2016/06/18/the-Canon-1DX-MKII-4k-video-DSLR-reviewed-par-Jon-Roemer /.

    The X II 1 d produces very nice video 4 K, but there's a catch: capture 4 K is limited to Motion JPEG. Motion JPEG is a relatively inefficient compression method, especially compared to the codecs of H.264 - based, such as Canon XF - STROKE (which is still on the compact Canon XC10). It requires broadband which produce large files. As you can see in the table below, 4 K/30 p of record runs nearly 500 Mbps and 4 K/60 p manages nearly 800 Mbps. By comparison, Sony a7S II captures 4 K/p 30 to 50-100 Mbps and the Panasonic GH4 is 100-200 Mbit/s.

    But what about the 4 K?

    The biggest upgrade in spec video camera is the addition of 4K film but, curiously, this can only be captured by using Motion JPEG format and the greater-than-16:9 DCI 4 K (4096 x 2160 pixel) aspect ratio. Two of these choices seem odd: all - I have H.264 compression, the camera uses to its 1080 images would be a more effective choice of codec and UHD 4K 16:9 flavor is better suited to certain applications.

    However, with the capture of 4 K, the 1 d X II includes tools to capture 8.8MP frameworks of its 4 K files: how the decision to save each image as an individual JPEG is a bit more logical. Wedding shooters could even use this feature for document receptions in complete silence: despite the 1 D X II wins a continuous silent drive like the 5 d/R mode, it isn't all that silent.

    The 1 d X II also won a headphone jack, which is important for the monitoring of noise levels during video recording.

  • I think I erased my OS and question mark flashing now appears

    Here is what happened. Haha I actually went to utilities OS X using the command (⌘) r. Then I clicked on the OS utilities and I removed my boot drive.        I restarted the flashing question mark appeared on my start, I tried to restart again and command prompt - R key and it directly me linked to Internet OS X recovery where appears the rotating Globe. What should I do next? I want to go back to work. Help, please. Thank you.

    Hello. Have a look here If flashing question mark appears when you start your Mac - Apple Support

  • Blue square with a question mark instead of a picture

    I'm on Messages to use with your Mac - Apple Support.

    Instead of pictures (or), I get a blue square with a question mark in it.

    This does not happen with all Web sites, but I wonder why it's happening with an Apple site, and how I can see the photos.

    It sounds like a broken image link.

    Post a screenshot if you can, so that we can confirm. The page seems OK after a glance. Command + shift + 4 then do slide on the affected area, add the image to the desktop to this site via the camera icon.

    If you have browser extensions, disable them and repeat the test. Also try a different web browser if possible to see if it is the scale of the system or only Safari. Is - this Safari you use?

  • Mac mini (late 2012) flashing - question mark folder recovery does not work

    Hi all

    earlier today, I upgraded my Mac mini (end 2012) to the latest version of macOS Sierra.

    After 1 hour of use, I realized that many of my plugins FCPX were not working.

    I contacted the developers, and they said does not update the plugins and they told me to go back to El Capitan.

    I decided to listen to them and try to downgrade my OS.

    I restarted the Mac and held down Cmd - R or something like that that took me to the disk utility screen.

    Then I went down to dinner, and when I returned 30 minutes later my Mac had entered the sleep mode for some reason any.

    I woke up the Mac and 40 seconds later the power went out for 5-10 minutes.

    After the blackout, I restarted my Mac that took me to a black screen with a flashing question mark folder.

    I followed some tutorials online (including how to enter get - and the recovery of internet mode), but after a while even restoration of the internet shows me the flashing question mark folder.

    I don't know what to do.

    And no - unfortunately I don't have a Time Machine backup.

    But I have a backup with all my most important files.

    Is it possible to force the Mac to reset itself or something like that?

    Help, please.

    Best regards

    Filip

    Mac mini (late 2012)

    I7

    16 GB OF RAM

    500 GB Samsung SSD of 840 - evo

    Graphics Intel HD 4000

    What happens exactly when you start Internet recovery

    by pressing Command + Option + R at the start of the OS X Internet Recovery*.

    and go to disk utility and repair the startup disk?

    If repairable, the startup disk to format and install OSX via recovery. you install Mountain Lion or dependent Mavericks when the Mac was made. Then OSX you want.

  • Mark email unread

    Does anyone know if there is a way to mark a single e-mail in view threaded as unread? Before iOS 10, I could see a complete electronic conversation in a single thread, but if I wanted to return to a specific e-mail later in the thread, I could score only that we as unread.  Now, I don't like to have the possibility to mark the entire conversation as unread.

    Literally the worst thing about the new update. It is of course outside the constant freezing and voicemail problems. Is there actually anyone doing QA before making these releases Apple?

  • Mark the messages as not junk?

    With the help of 10.11.6.

    I don't see any option to mark legitimate messages as NOT junk.

    What is the trick?

    Drag it to your Inbox.

  • After update Macbook, I had a folder with question mark on it

    I was forced to upgrade my macbook, and then I saw a folder with question mark in this regard.

    Start your Mac by holding down the button Option. Who should start the Boot Manager window where you can select the startup disk, and then click Restart.

    Startup Manager: how to select a boot volume

Maybe you are looking for