Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Developer
Posts: 73
Registered: ‎04-08-2014
My Device: Z10
My Carrier: XL

Blackberry map is black!!!

hello

i try to show the map 

i already read in this link http://stackoverflow.com/questions/15340548/blackberry-cascades-10-maps-example-keeps-showing-black-... but still black

heres my code 

import bb.cascades 1.2
import bb.cascades.maps 1.0

Page {
    Container {
        id: root
        
        Label {
            id: status
        }
        
        MapView {
            id: mapview
            altitude: 3000
            latitude: 45.342614
            longitude: -75.914991        
            
            onAltitudeChanged: {
                status.setText(qsTr("altitude changed: %1")
                .arg(newAlt));
            }
            onHeadingChanged: {
                status.setText(qsTr("heading changed: %1")
                .arg(newHeading));
            }
            onLatitudeChanged: {
                status.setText(qsTr("latitude changed: %1")
                .arg(newLat));
            }
            onLongitudeChanged: {
                status.setText(qsTr("longitude changed: %1")
                .arg(newLon));
            }
            onTiltChanged: {
                status.setText(qsTr("tilt changed: %1")
                .arg(newTilt));
            }
            onFocusedIdChanged: {
                status.setText(qsTr("focused id changed to %1")
                .arg(idWithFocus));
            }
            onFollowedIdChanged: {
                status.setText(qsTr("followed id changed to %1")
                .arg(idOfFollowed));
            }
            onLocationTapped: {
                status.setText(qsTr("location tapped"));
            }
            onLocationLongPressed: {
                status.setText(qsTr("location long pressed"));
            }
            onMapLongPressed: {
                status.setText(qsTr("map long pressed"));
            }
            onCaptionButtonClicked: {
                status.setText(qsTr("caption button clicked"));
            }
            onCaptionLabelTapped: {
                status.setText(qsTr("caption label tapped"));
            }
            onCreationCompleted: {
                status.setText(qsTr("Map displayed"));
                setCaptionGoButtonVisible( false );
            }
        } // End of MapView
    } // End of Container
}

 can anybody help whats going on

thanks

Developer
Posts: 73
Registered: ‎04-08-2014
My Device: Z10
My Carrier: XL

Re: Blackberry map is black!!!

up