<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Hi,<div><br></div><div>I’m not quite finished with the tutorial, but since you seem to be in dire need of instructions, here goes: <a href="https://github.com/b0bben/SailfishOS_MapTutorial">https://github.com/b0bben/SailfishOS_MapTutorial</a></div><div>App works, docs are work-in-progress.</div><div><br></div><div>Holla at me if you’re having trouble with anything.</div><div><br></div><div>//bob</div><div><br></div><div><br><div><div>On 22 Dec 2013, at 23:11, Sylvain B. <<a href="mailto:sthocs@hotmail.com">sthocs@hotmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="hmmessage" style="font-size: 12pt; font-family: Calibri; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><div dir="ltr"><div dir="ltr">Hello,<br><br>I come back here because I am definitely not able to display a simple Map :(<br>What I have done is:<br>- Take the HelloWorld example generated by QtCreator.<br>- Replace the content of SecondPage.qml by the code below.<br><br>And I just get an empty page with the following error message in the logs:<br><span style="font-family: Courier; font-size: 10pt;">QML Map: Error: Plugin does not support mapping.</span><div style="margin: 0px; padding: 0px; text-indent: 0px;"><span style="font-family: Courier; font-size: 10pt;">Error message: The geoservices provider is not supported.</span></div><br>If I remove the Plugin, I get the same empty page but without the error message.<br>I have regenerated new token from<span class="Apple-converted-space"> </span><a href="http://here.com/">here.com</a><span class="Apple-converted-space"> </span>(I there a specific option to set?)<br><br>I don't know what I need to do to make it working, is it in the .pro file? :(<br>So I would really use either some tips or a working example.<br><br>Thank you in advance!<br><br>----<br><br><font face="Courier New"><span style="color: rgb(128, 128, 0);">import</span></font><font face="Courier New"><span style="color: rgb(192, 192, 192);"> </span></font><font face="Courier New">QtQuick</font><font face="Courier New"><span style="color: rgb(192, 192, 192);"> </span></font><font face="Courier New">2.0</font><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(128, 128, 0);">import</span><span style="color: rgb(192, 192, 192);"> </span>Sailfish.Silica<span style="color: rgb(192, 192, 192);"> </span>1.0</pre><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(128, 128, 0);">import</span><span style="color: rgb(192, 192, 192);"> </span>QtLocation<span style="color: rgb(192, 192, 192);"> </span>5.0</pre><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(128, 128, 0);">import</span><span style="color: rgb(192, 192, 192);"> </span>QtPositioning<span style="color: rgb(192, 192, 192);"> </span>5.1</pre><pre style="margin: 0px; text-indent: 0px;"><br></pre><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(128, 0, 128);">Page</span><span style="color: rgb(192, 192, 192);"> </span>{</pre><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 128);">Map</span><span style="color: rgb(192, 192, 192);"> </span>{</pre><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 0);">anchors.fill</span>:<span style="color: rgb(192, 192, 192);"> </span><span style="font-style: italic;">parent</span></pre><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 0);">plugin</span><span style="color: rgb(192, 192, 192);"> </span>:<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 128);">Plugin</span><span style="color: rgb(192, 192, 192);"> </span>{</pre><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 0);">name</span><span style="color: rgb(192, 192, 192);"> </span>:<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">"nokia"</span>;</pre><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 0);">parameters</span>:<span style="color: rgb(192, 192, 192);"> </span>[</pre><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 128);">PluginParameter</span><span style="color: rgb(192, 192, 192);"> </span>{<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 0);">name</span>:<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">"app_id"</span>;<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 0);">value</span>:<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">"xxx"</span><span style="color: rgb(192, 192, 192);"> </span>},</pre><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 128);">PluginParameter</span><span style="color: rgb(192, 192, 192);"> </span>{<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 0);">name</span>:<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">"token"</span>;<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 0);">value</span>:<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(0, 128, 0);">"xxx"</span><span style="color: rgb(192, 192, 192);"> </span>}</pre><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);"> </span>]</pre><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);"> </span>}</pre><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 0);">center</span>:<span style="color: rgb(192, 192, 192);"> </span><span style="color: rgb(128, 0, 128);">QtPositioning</span>.coordinate(48.856047,<span style="color: rgb(192, 192, 192);"> </span>2.353907) // Paris</pre><pre style="margin: 0px; text-indent: 0px;"><span style="color: rgb(192, 192, 192);"> </span>}</pre><pre style="margin: 0px; text-indent: 0px;">}</pre><br><br><div><hr id="stopSpelling">From: <a href="mailto:sailfish@jelica.se">sailfish@jelica.se</a><br>Date: Thu, 19 Dec 2013 15:50:14 +0100<br>To: <a href="mailto:devel@lists.sailfishos.org">devel@lists.sailfishos.org</a><br>Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type<br><br>I have an example project showing a map and a location.<div>Will try publishing it online later tonight/tomorrow so you guys don’t have to walk to Mordor and back like I did to get it working ;)</div><div><br></div><div>//bob</div><div><br></div><div><br><div><div>On 19 Dec 2013, at 14:45, Sthocs <<a href="mailto:sthocs@hotmail.com">sthocs@hotmail.com</a>> wrote:</div><br class="ecxApple-interchange-newline"><blockquote><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;">tw_bolek <tw_bolek@...> writes:<br><br><blockquote><br><blockquote><at> Bolek, have you got it working?<br></blockquote><br>Yes, it does work this way. Thank you *VERY MUCH* Chris for your help! <br></blockquote>For my needs now it's even better than<br><blockquote>previously as on Harmattan I then had to use Qt.createQmlObject for what I<span class="ecxApple-converted-space"> </span><br></blockquote>needed to get.<br><blockquote><br>Thanks a lot!<br><br>BTW. Do you perhaps now the URL of the site where one can register to get<span class="ecxApple-converted-space"> </span><br></blockquote>the API key to use Nokia Maps plugin? If<br><blockquote>I try to use it without any key it says to go to<span class="ecxApple-converted-space"> </span><br></blockquote><a href="https://api.developer.nokia.com/" target="_blank">https://api.developer.nokia.com</a><span class="Apple-converted-space"> </span>but that URL just<br><blockquote>redirects to the main Nokia Developer page. I can't find the right place<span class="ecxApple-converted-space"> </span><br></blockquote>to register... <br><blockquote><br>_______________________________________________<br><a href="http://sailfishos.org/" target="_blank">SailfishOS.org</a><span class="Apple-converted-space"> </span>Devel mailing list<br><br><br></blockquote><br><br>Hello,<br><br>I also wanted to use a Map in my application, and I am still struggling.<br>I already figured out that:<br>- We have to install QtLocation/QtPositioning in the SDK<br>- We have to manually install them in the emulator (I just found out about<span class="ecxApple-converted-space"> </span><br>pkcon and zypper)<br>- We need to use QtPositioning.coordinate instead of Coordinate.<br><br>But now, if I try to display the simplest Map, I just get a blank screen. I<span class="ecxApple-converted-space"> </span><br>have a message telling me that there is an error with the Plugin I use (does<span class="ecxApple-converted-space"> </span><br>not support something - sorry I don't have the precise error message here)<br><br>I am sure it's something simple (some entry missing in the .pro?) but I<span class="ecxApple-converted-space"> </span><br>could not find what yesterday, and I don't have so much time to search (It<span class="ecxApple-converted-space"> </span><br>was really cool with Harmattan to have an example out of the box that we<span class="ecxApple-converted-space"> </span><br>could just copy/paste and start customizing).<br><br>Would it be possible to have a simple example in the doc explaining all the<span class="ecxApple-converted-space"> </span><br>required steps?<br>Or do you see what I am missing? For the plugin, I just put the same than<span class="ecxApple-converted-space"> </span><br>for Harmattan:<br>plugin : Plugin {<br> name : "nokia";<br> parameters: [<br> PluginParameter { name: "app_id"; value: "APPID"<span class="ecxApple-converted-space"> </span><br>},<br> PluginParameter { name: "token"; value: "TOKEN"<span class="ecxApple-converted-space"> </span><br>}<br> ]<br> }<br><br>Thanks for your help!<br><br>_______________________________________________<br><a href="http://sailfishos.org/" target="_blank">SailfishOS.org</a><span class="ecxApple-converted-space"> </span>Devel mailing list</div></blockquote></div><br></div><br>_______________________________________________<span class="Apple-converted-space"> </span><a href="http://sailfishos.org/">SailfishOS.org</a><span class="Apple-converted-space"> </span>Devel mailing list</div></div></div>_______________________________________________<br><a href="http://sailfishos.org/">SailfishOS.org</a><span class="Apple-converted-space"> </span>Devel mailing list</div></blockquote></div><br></div></body></html>