<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Chris: I replied to you in private by error, so I am resaying here in the mailing-list: Thank you a lot, that's what I was missing!! It works now! I was sure that it was simple, but there is just not enough (not at all?) doc for Qt newbies like me =(<br><br>Bob: Wow, it may not be finished, but your doc is already great and describe exactly what I was missing! Thank you. And if you have time to complete your TODO section, that would be a super doc to put directly on SailfishOs.org! Thanks for sharing :)<br><br>-- <br>Sylvain.<br><br><div>> Date: Sun, 22 Dec 2013 23:43:18 +0100<br>> From: christopher.lamb@thurweb.ch<br>> To: devel@lists.sailfishos.org; sthocs@hotmail.com<br>> Subject: Re: [SailfishDevel] (QtLocation 5.0) Coordinate is not a type<br>> <br>> Hi Sylvain<br>> <br>> I've just got it working!<br>> <br>> I added<br>> <br>> qt5-plugin-geoservices-nokia<br>> <br>> to the "PkgBR" and "Requires" sections of the Yaml file, et voila,  <br>> Belle Paris sur L'emulatuer ....<br>> <br>> Have fun<br>> <br>> Chris<br>> <br>> <br>> Zitat von "Sylvain B." <sthocs@hotmail.com>:<br>> <br>> ><br>> ><br>> ><br>> > 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>> > QML Map: Error: Plugin does not support mapping.<br>> > Error message: The geoservices provider is not supported.<br>> > If I remove the Plugin, I get the same empty page but without the  <br>> > error message.<br>> > I have regenerated new token from here.com (I there a specific  <br>> > 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>> > import QtQuick 2.0<br>> > import Sailfish.Silica 1.0<br>> > import QtLocation 5.0<br>> > import QtPositioning 5.1<br>> ><br>> ><br>> > Page {<br>> >     Map {<br>> >         anchors.fill: parent<br>> >         plugin : Plugin {<br>> >             name : "nokia";<br>> >             parameters: [<br>> >                 PluginParameter { name: "app_id"; value: "xxx" },<br>> >                 PluginParameter { name: "token"; value: "xxx" }<br>> >             ]<br>> >         }<br>> >         center: QtPositioning.coordinate(48.856047, 2.353907) // Paris<br>> >     }<br>> > }<br>> ><br>> > 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.Will try  <br>> > publishing it online later tonight/tomorrow so you guys don?t have  <br>> > to walk to Mordor and back like I did to get it working ;)<br>> > //bob<br>> ><br>> > On 19 Dec 2013, at 14:45, Sthocs <sthocs@hotmail.com> wrote:tw_bolek  <br>> > <tw_bolek@...> writes:<br>> ><br>> ><br>> > <at> Bolek, have you got it working?<br>> ><br>> > Yes, it does work this way. Thank you *VERY MUCH* Chris for your help!<br>> > For my needs now it's even better than<br>> > previously as on Harmattan I then had to use Qt.createQmlObject for what I<br>> > needed to get.<br>> ><br>> > Thanks a lot!<br>> ><br>> > BTW. Do you perhaps now the URL of the site where one can register to get<br>> > the API key to use Nokia Maps plugin?  If<br>> > I try to use it without any key it says to go to<br>> > https://api.developer.nokia.com but that URL just<br>> > redirects to the main Nokia Developer page.  I can't find the right place<br>> > to register...<br>> ><br>> > _______________________________________________<br>> > SailfishOS.org Devel mailing list<br>> ><br>> ><br>> ><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<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<br>> > have a message telling me that there is an error with the Plugin I use (does<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<br>> > could not find what yesterday, and I don't have so much time to search (It<br>> > was really cool with Harmattan to have an example out of the box that we<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<br>> > required steps?<br>> > Or do you see what I am missing? For the plugin, I just put the same than<br>> > for Harmattan:<br>> > plugin : Plugin {<br>> >                        name : "nokia";<br>> >                        parameters: [<br>> >                            PluginParameter { name: "app_id"; value: "APPID"<br>> > },<br>> >                            PluginParameter { name: "token"; value: "TOKEN"<br>> > }<br>> >                       ]<br>> >                    }<br>> ><br>> > Thanks for your help!<br>> ><br>> > _______________________________________________<br>> > SailfishOS.org Devel mailing list<br>> ><br>> > _______________________________________________<br>> > SailfishOS.org Devel mailing list<br>> ><br>> <br>> <br>> <br></div>                                          </div></body>
</html>