On 29 July 2017 at 07:03, Dirk Hohndel <[email protected]> wrote:
>
> On Jul 28, 2017, at 12:56 PM, Dirk Hohndel <[email protected]> wrote:
>
> I have changes that make the build.sh cleaner and make us indeed
> build without Marble. But I'm struggling with packaging this... I remember
> the pain of getting Subsurface-mobile to play nicely on the Mac... this
> is fundamentally the same problem. We don't bundle the qml modules
>
>
> I fixed that and have a bundle that usually starts correctly, but the Map
> class isn't instantiated correctly.
>
> I had this working at some point but foolishly didn't commit that precious
> state and as I tried to clean up my changes it stopped working again. The
> symptom is that the supportedMapTypes aren't initialized:
>
> qrc:/MapWidget.qml:41: Error: Cannot assign [undefined] to
> QDeclarativeGeoMapType*
>
> The app works, but no map is shown.
>
> I'm totally baffled by this. And I cannot reproduce that brief happy stage
> where things were working.
>


to me this looks like the ESRI plugin isn't loaded...
i forgot to list that in my previous email.

QDeclarativeGeoMapType is the Map QML instance, the QML Plugin
instance if set to "esri" should search for:
plugins/geoservices/qtgeoservices_esri.dll

supportedMapTypes are populated when the plugin is loaded..

if you are already bundling the plugin, that's a bit odd.
my only other suggestion is to try the following:

remove this line:
Component.onCompleted: activeMapType = mapType.SATELLITE

change this:
readonly property var mapType: { "STREET": supportedMapTypes[0],
"SATELLITE": supportedMapTypes[1] }
to this:
readonly property var mapType: undefined

add this:
onSupportedMapTypesChanged: {
    mapType = { "STREET": supportedMapTypes[0], "SATELLITE":
supportedMapTypes[1] }
    activeMapType = mapType.SATELLITE
}

^ untested. i can look more into this on Sunday afternoon CET.

lubomir
--
_______________________________________________
subsurface mailing list
[email protected]
http://lists.subsurface-divelog.org/cgi-bin/mailman/listinfo/subsurface

Reply via email to