<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body smarttemplateinserted="true" bgcolor="#FFFFFF" text="#000000">
<div id="smartTemplate4-quoteHeader">Wed, 17 Dec 2014 16:04:31
+0100 David van rijn <a class="moz-txt-link-rfc2396E" href="mailto:davidvanrijn@gmail.com"><davidvanrijn@gmail.com></a>:</div>
<blockquote
cite="mid:CAG-tGJigKP5OA8t+dDWB3bO6+bCu2n8p0_dLwC0HRWjYot7jsw@mail.gmail.com"
type="cite">
<div dir="ltr"><span class="im" style="font-size:13px"><br>
Hello,<br>
</span></div>
</blockquote>
Hi!<br>
<blockquote
cite="mid:CAG-tGJigKP5OA8t+dDWB3bO6+bCu2n8p0_dLwC0HRWjYot7jsw@mail.gmail.com"
type="cite">
<div dir="ltr"><span class="im" style="font-size:13px"><br>
I am writing a qml component to display a slippy map (eg.
google maps).<br>
(You can look at the code at <a moz-do-not-send="true"
href="https://github.com/unsanded/harbour-mapp"
target="_blank">https://github.com/unsanded/harbour-mapp</a>.)<br>
<br>
The idea is to be able to add maps in qml by just typing
something like:<br>
SlippyMap{<br>
GoogleMapsProvider{<br>
apiKey: "blabla"<br>
}<br>
}<br>
I have a few questions about this:<br>
<br>
</span><span style="font-size:13px"> - Can it, at some point,
become a library for others to use?</span><br
style="font-size:13px">
</div>
</blockquote>
Could be certainly interesting and useful! :)<br>
<br>
<blockquote
cite="mid:CAG-tGJigKP5OA8t+dDWB3bO6+bCu2n8p0_dLwC0HRWjYot7jsw@mail.gmail.com"
type="cite">
<div dir="ltr"><span style="font-size:13px"> - What is the best
way to implement offline maps/routing?</span><br
style="font-size:13px">
</div>
</blockquote>
For offline routing the routino routing utility[0] currently looks
like the best bet for Sailfish.<br>
I have already managed to build it's package for Sailfish[1] and it
appears to be working fine. :)<br>
<br>
Another candidate could be the Monav[2] routing daemon, but it's
upstream is dead, it depends on Qt 4 and its source<br>
code has been bit-rotting rather badly. <br>
<br>
As for offline map rendering, the Mapbox GL native widget[3] looks
like the best bet, if it could be wrapped in a QML element! :) <br>
<br>
I even suggested the QML integration to the Mapbox people, but they
unfortunately replied that they are not interested in doing that
themselves (most probably not to canobalize their iOS & Android
SDKs with a superio solution ;-) ).<br>
<br>
<blockquote
cite="mid:CAG-tGJigKP5OA8t+dDWB3bO6+bCu2n8p0_dLwC0HRWjYot7jsw@mail.gmail.com"
type="cite">
<div dir="ltr"><span style="font-size:13px"> - Is anyone eager
to join the project?</span>
<div> - any other feedback?<br style="font-size:13px">
</div>
</div>
</blockquote>
Many current Sailfish OS applications are using the QML-only
PinchMap QML element, originally from AGTL, for example:<br>
* modRana[4]<br>
* FourSail[5]<br>
On the other hand the Poor Maps application has a custom solution
based on enhanced QtLocation Map element.<br>
<br>
So maybe have a look how these work and what features these
applications expect as inspiration work on your project. :)<br>
<blockquote
cite="mid:CAG-tGJigKP5OA8t+dDWB3bO6+bCu2n8p0_dLwC0HRWjYot7jsw@mail.gmail.com"
type="cite">
<div dir="ltr">
<div><br style="font-size:13px">
<br style="font-size:13px">
<span style="font-size:13px">Cheers,</span><br
style="font-size:13px">
<br style="font-size:13px">
<span style="font-size:13px">David</span><br>
</div>
</div>
</blockquote>
Best Wishes<br>
Martin Kolman<br>
(main modRana developer)<br>
<br>
[0] <a class="moz-txt-link-freetext" href="http://www.routino.org/">http://www.routino.org/</a><br>
[1]
<a class="moz-txt-link-freetext" href="https://build.merproject.org/package/show/home:MartinK:sailfish/routino">https://build.merproject.org/package/show/home:MartinK:sailfish/routino</a><br>
[2] <a class="moz-txt-link-freetext" href="https://code.google.com/p/monav/">https://code.google.com/p/monav/</a><br>
[3] <a class="moz-txt-link-freetext" href="https://github.com/mapbox/mapbox-gl-native/">https://github.com/mapbox/mapbox-gl-native/</a><br>
[4]
<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>
[5]
<a class="moz-txt-link-freetext" href="https://gitorious.org/foursail/foursail/source/31644f69c670f5f012f98bee641e1b7e50ba4e1f:qml/PinchMap.qml">https://gitorious.org/foursail/foursail/source/31644f69c670f5f012f98bee641e1b7e50ba4e1f:qml/PinchMap.qml</a><br>
</body>
</html>