Osmo Salomaa kirjoitti 2015-09-04 00:20:
Hello,
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.
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/
Thank you Osmo for a comprehensive answer.
Indeed I was not aware that currently each application needs to
incorporate
the mapping basics in order to be Harbour-aceptable. That seems a bit of
waste to me, since using the (anyway avialable) QtLocation
implementation
is fairly elegant and streamlined solution.
My application is a dog-radar mapping solution where you can locate your
pet on a visual map. (or locate anything that you can attach a GPS tag
to)
For that reason just presenting a map view is enough, I do not need to
do
any own-position handling in the application.
Currently I have a more comprehensive application already working; it is
built on top of a fork of Rena. (route recording application by Simo
Mattila)
That application shows also the current position of the user on the same
map as the position of the targeted GPS tag, but of course it is
impossible
to get it into Harbour as it uses the non-approved interfaces widely.
Hence I deided to make a stripped-down version that only displays the
whereabouts of the target.
--
- Juice -
_______________________________________________
SailfishOS.org Devel mailing list
To unsubscribe, please send a mail to devel-unsubscr...@lists.sailfishos.org