vladest / googlemaps

QtLocation plugin for Google maps tile API
MIT License
141 stars 59 forks source link

Unable to assign [undefined] to QDeclarativeGeoMapType* #37

Closed nouah closed 3 years ago

nouah commented 3 years ago

hello

Map { id:mainmap anchors.fill: parent plugin: googlemaps activeMapType: supportedMapTypes[1] center: QtPositioning.coordinate(59.91, 10.75) // Oslo zoomLevel: 14

Text {
    id: element
    x: 103
    y: 51
    width: 180
    height: 75
    text: qsTr("Page with my map")
    font.pixelSize: 20
}

} }

nouah commented 3 years ago

thank you I found the problem is to put google api keyPluginParameter

Plugin {
    id: googlemaps
    name: "googlemaps"

      PluginParameter {
         name:"Keys"
         value:"google key API"
     }
}

afterwards I found problem with

QSslSocket: cannot resolve CRYPTO_num_locks
QSslSocket: cannot resolve CRYPTO_set_id_callback
...........
installing `libssl1.0-dev`
`sudo apt install libssl1.0-dev`

thank you very much for your plugin
thought to put readme :)
vladest commented 3 years ago

yeah, some minimum example would be useful