<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body smarttemplateinserted="true" bgcolor="#FFFFFF" text="#000000">
<div id="smartTemplate4-quoteHeader">Mon, 02 Jan 2017 01:09:49
+0000 Helicalgear .:</div>
<blockquote
cite="mid:CAKSym=z=ORcuOhizXsZutA70bJhQC5GtfbAMSPsVi5NOyDYeAg@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,<br>
<div><br>
</div>
<div>
<div>Qt5.2 itself provided the "QtLocation" as you see.</div>
<div>But, unfortunately, QtLocation is not allowed to use for
3rd party apps officially, right now.<br>
</div>
<br class="inbox-inbox-Apple-interchange-newline">
</div>
<div>Please see "Sailfish FAQ"</div>
<div><a moz-do-not-send="true"
href="https://harbour.jolla.com/faq#QML_API">https://harbour.jolla.com/faq#QML_API</a><br>
</div>
<div>And the list of modules which can be used by 3rd party
apps.</div>
<div><a moz-do-not-send="true"
href="https://github.com/sailfish-sdk/sdk-harbour-rpmvalidator/blob/master/allowed_qmlimports.conf">https://github.com/sailfish-sdk/sdk-harbour-rpmvalidator/blob/master/allowed_qmlimports.conf</a><br>
</div>
<div><br>
</div>
<div>The number of listed modules is increasing time by time.</div>
<div>
<div>I think we have no choice but to wait for that the
QtLocation add to the list if you want to release your app
officially (by Jolla Store).<br>
</div>
</div>
</div>
</blockquote>
There are other - possibly less convenient but Jolla Store
copamatible - ways of showing a map on Sailfish OS than Qt Location.<br>
<br>
Probably the most used Qt Location alternative is the PinchMap QML
element, which was originally written for the Qt port of AGTL
(Advanced Geocaching Tool for Linux) but has since found its way to
many mapping-related applications on Sailfish OS and elsewhere. It
usually supports just display of tiled map layers and simple POI,
but can be quite easily extended & tweaked it's implemented
completely in QML. Thanks to this it's also totally independent on
Qt Location and is already used by applications in Jolla Store, such
as modRana or Foursail.<br>
<br>
As for where to "get" the PinchMap QML element - at the moment its
basically being used as a copy-lib with various applications
including the PinchMap.qml file as part of their source code,
usually with various twekas, changes and improvements. These are the
PinchMap.qml versions I know about:<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/webhamster/advancedcaching/blob/master/advancedcaching/qml/PinchMap.qml">https://github.com/webhamster/advancedcaching/blob/master/advancedcaching/qml/PinchMap.qml</a><br>
- this is the basically the original version targeting
Harmattan/N9/QtQuick 1.1<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/Maledictus/foursail/blob/master/qml/PinchMap.qml">https://github.com/Maledictus/foursail/blob/master/qml/PinchMap.qml</a><br>
- PinchMap as used by Foursail (QtQuick 2.0)<br>
- should be fairly self contained<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/jmlich/devconf-sailfish/blob/master/qml/PinchMap.qml">https://github.com/jmlich/devconf-sailfish/blob/master/qml/PinchMap.qml</a><br>
<a class="moz-txt-link-freetext" href="https://github.com/rh-lab-q/confla-android/blob/master/PinchMap.qml">https://github.com/rh-lab-q/confla-android/blob/master/PinchMap.qml</a><br>
- these look like possibly a bit more modern versions with some
app-specific tweaks<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/M4rtinK/modrana/blob/master/modules/gui_modules/gui_qt5/qml/PinchMap.qml">https://github.com/M4rtinK/modrana/blob/master/modules/gui_modules/gui_qt5/qml/PinchMap.qml</a><br>
- PinchMap as used by current stable modRana release branch<br>
- quite heavily tweaked and improved<br>
- uses a Python backend via PyOtherSide for tile
download/storage/lookup<br>
- has some support for showing POI markers and routes<br>
<br>
<a class="moz-txt-link-freetext" href="https://github.com/M4rtinK/modrana/blob/master-better_tile_display/modules/gui_modules/gui_qt5/qml/PinchMap.qml">https://github.com/M4rtinK/modrana/blob/master-better_tile_display/modules/gui_modules/gui_qt5/qml/PinchMap.qml</a><br>
- further improved PinchMap version<br>
- provides flicker free & more efficient tile display support
via a custom QML-side tile data model<br>
- still has some bugs, especially in its coordinate conversion
functions<br>
- will be part of a modRana stable release once the bugs are ironed
out<br>
<br>
<br>
Other than PinchMap, there is also Maep which I *think* might be
also adapted as a map widget:<br>
<a class="moz-txt-link-freetext" href="https://github.com/dcaliste/maep-qt">https://github.com/dcaliste/maep-qt</a><br>
<br>
Also I guess worst case one could also use a web-view and some of
the Javascript based tiled-map frameworks such as Leaflet.<br>
<br>
<blockquote
cite="mid:CAKSym=z=ORcuOhizXsZutA70bJhQC5GtfbAMSPsVi5NOyDYeAg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>Or, I think that you can try to release your app by other
way like OpenRepos ( <a moz-do-not-send="true"
href="https://openrepos.net/">https://openrepos.net/</a> ).</div>
<div><br>
</div>
<div>Best regards,</div>
<div><br>
</div>
</div>
</blockquote>
</body>
</html>