[SailfishDevel] About applications presenting a map interface

Osmo Salomaa otsaloma at iki.fi
Thu Sep 3 21:20:18 UTC 2015


Hello,

03.09.2015, 08:14, juice kirjoitti:
> I see that currently QtLocation and QtPositioning are still not
> allowed in Harbour. This seems to me that I cannot use a Map object
> in QML.

QtPositioning is allowed, but QtLocation not. You conclusion is correct 
though -- you cannot use Map. Jolla seems to want to wait for QtLocation 
to be released as a stable part of Qt. It is a "technology preview" in 
Qt 5.5.

> What is approved the method to present a map interface (openmaps for
> example) in an application and still have it possible to submit the
> application to the store?

You need to bundle something in and ship it with your application.

Effectively, Jolla is currently telling application authors to either 
(1) not write applications with maps, (2) not ship via the official 
store or (3) to bundle their own map component.

If option (3) is least bad for you, you can take a look at the several 
map applications already at the Jolla store, some of which are open 
source. Each of them bundle a different legacy map component that is 
clearly less native, less smooth and less performant than QtLocation. 
The QML PinchMap [1] is probably the easiest solution. If you don't need 
something quite ready yet, but want a modern solution, take a look at 
Mapbox GL [2].

Best would be if you could convince Jolla to allow QtLocation. I suspect 
their stability worries are exaggerated, especially compared to the lack 
of stability worries of those legacy components.

[1] https://lists.sailfishos.org/pipermail/devel/2014-December/005405.html
[2] https://www.mapbox.com/blog/qmapboxgl/

-- 
Osmo Salomaa <otsaloma at iki.fi>


More information about the Devel mailing list