<html>
<head>
</head>
<body class='hmmessage'><div dir='ltr'>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style>
<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; color:#000000;">QML Map: Error: Plugin does not support mapping.</span>
<p style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" font-family:'Courier'; font-size:10pt; color:#000000;">Error message: The geoservices provider is not supported.</span></p><br>If I remove the Plugin, I get the same empty page but without the error message.<br>I have regenerated new token from here.com (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 style="" face="Courier New"><span style=" color:#808000;">import</span></font><font style="" face="Courier New"><span style=" color:#c0c0c0;"> </span></font><font style="" face="Courier New">QtQuick</font><font style="" face="Courier New"><span style=" color:#c0c0c0;"> </span></font><font style="" face="Courier New">2.0</font>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#808000;">import</span><span style=" color:#c0c0c0;"> </span>Sailfish.Silica<span style=" color:#c0c0c0;"> </span>1.0</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#808000;">import</span><span style=" color:#c0c0c0;"> </span>QtLocation<span style=" color:#c0c0c0;"> </span>5.0</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#808000;">import</span><span style=" color:#c0c0c0;"> </span>QtPositioning<span style=" color:#c0c0c0;"> </span>5.1</pre>
<pre style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><br></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#800080;">Page</span><span style=" color:#c0c0c0;"> </span>{</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">Map</span><span style=" color:#c0c0c0;"> </span>{</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">anchors.fill</span>:<span style=" color:#c0c0c0;"> </span><span style=" font-style:italic; color:#000000;">parent</span></pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">plugin</span><span style=" color:#c0c0c0;"> </span>:<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">Plugin</span><span style=" color:#c0c0c0;"> </span>{</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">name</span><span style=" color:#c0c0c0;"> </span>:<span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">"nokia"</span>;</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">parameters</span>:<span style=" color:#c0c0c0;"> </span>[</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">PluginParameter</span><span style=" color:#c0c0c0;"> </span>{<span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">name</span>:<span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">"app_id"</span>;<span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">value</span>:<span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">"xxx"</span><span style=" color:#c0c0c0;"> </span>},</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">PluginParameter</span><span style=" color:#c0c0c0;"> </span>{<span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">name</span>:<span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">"token"</span>;<span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">value</span>:<span style=" color:#c0c0c0;"> </span><span style=" color:#008000;">"xxx"</span><span style=" color:#c0c0c0;"> </span>}</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span>]</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span>}</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span><span style=" color:#800000;">center</span>:<span style=" color:#c0c0c0;"> </span><span style=" color:#800080;">QtPositioning</span>.coordinate(48.856047,<span style=" color:#c0c0c0;"> </span>2.353907) // Paris</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;"><span style=" color:#c0c0c0;"> </span>}</pre>
<pre style=" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;">}</pre><br><br><div><hr id="stopSpelling">From: sailfish@jelica.se<br>Date: Thu, 19 Dec 2013 15:50:14 +0100<br>To: devel@lists.sailfishos.org<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> 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> 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>_______________________________________________
SailfishOS.org Devel mailing list</div></div>
</div></body>
</html>