Mapviewer, map_minimal examples are not working on android device.



  • Hello everyone,

    i'm trying to implement Maps related app using Qt plugins osm/here/mapbox/esri on android device.

    i able to get the map view on desktop windows, but when i run same application on android, it launches the application and it gets crashed immediately.

    import QtQuick 2.0
    import QtQuick.Window 2.0
    import QtLocation 5.6
    import QtPositioning 5.6

    Window {
    width: 512
    height: 512
    visible: true

    Plugin {
        id: osmPlugin
        name: "mapbox" //if i mention osm, here and esri also its not working
       PluginParameter { name: "mapbox.access_token"; value: "value" }
       //i have my mapbox taken 
    }
    
    Map {
        anchors.fill: parent
        plugin: osmPlugin
        center: QtPositioning.coordinate(59.91, 10.75) // Oslo
        zoomLevel: 10
    }
    

    }
    What's wrong?

    I would appreciate your help.

    Thanks,

    Sharath


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.