×

Discussion Board

Results 1 to 9 of 9
  1. #1
    Registered User
    Join Date
    Nov 2010
    Location
    Finland
    Posts
    91

    Question How to authenticate QML Nokia Maps plugin?

    When using

    Code:
     Map {
                     id: map
                     plugin : Plugin {
                                 name : "nokia"
                                 }
                     size.width: parent.width
                     size.height: 200
                     zoomLevel: 20
                     center: Coordinate {
                                 latitude: lat
                                 longitude: lon
                             }
    
                     MapCircle{
                         center : Coordinate {
                                             latitude : lat
                                             longitude : lon
                                             }
                         radius : 10.0
                         color: "red"
                     }
    
                 }
    it's giving

    Code:
    ******************************************************************************** 
    [Qt Message] Qt Location requires usage of app_id and token parameters obtained from: 
    [Qt Message] https://api.forum.nokia.com/ovi-api/ui/registration 
    [Qt Message] For more information about app_id and token please consult: 
    [Qt Message] http://doc.qt.nokia.com/qtmobility-latest/location-overview.html#the-nokia-plugin 
    [Qt Message] ********************************************************************************

    I think I should give it in the Plugin parameters

    Code:
    Plugin {
                                 name : "nokia"
    
                                 parameters: {
                                     PluginParameter {
                                      name: "mapping.referer"
                                      value: "xx"
                                     },
                                     PluginParameter {
                                      name: "mapping.token"
                                      value: "yy"
                                     }
                                 }
                             }
    but how the parameters should be put?

  2. #2
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,143

    Re: How to authenticate QML Nokia Maps plugin?

    I did not see this problem with my examples, thus can you see what is done differently with: http://www.developer.nokia.com/Commu..._Maps_Examples

  3. #3
    Registered User
    Join Date
    Nov 2010
    Location
    Finland
    Posts
    91

    Re: How to authenticate QML Nokia Maps plugin?

    Quote Originally Posted by symbianyucca View Post
    I did not see this problem with my examples, thus can you see what is done differently with: http://www.developer.nokia.com/Commu..._Maps_Examples
    Well my example is also working, but it's giving that authentication message to the console. But you shouldn't need to authenticate it anyway then?

  4. #4
    Registered User
    Join Date
    Feb 2012
    Posts
    1

    Unhappy Re: How to authenticate QML Nokia Maps plugin?

    I am having the same problem. When I try giving the parameters like, plugin:
    Code:
    Plugin { name: "nokia"
               parameters: [
                    PluginParameter{ name:  "mapping.cache.size" ; value: 50000000}
                    PluginParameter{ name:  "mapping.token" ; value: appId},
                    PluginParameter{ name:  "mapping.app_id" ; value: appToken}
               ]
           }
    I get the following errors on the console..
    Code:
    QColor::setNamedColor: Unknown color name 'xxxxxxxxxxxxxxxxxxxx' //appId
    QColor::setNamedColor: Unknown color name 'yyyyyyyyyyyyyyyyyyyy' //appToken
    Could anyone tell how exactly should the app id and token be specified in QML ?

  5. #5
    Registered User
    Join Date
    Mar 2012
    Posts
    1

    Re: How to authenticate QML Nokia Maps plugin?

    I am facing exactly the same problem. Are those parameters really required? It seems that without giving them application is still working fine.

    Quote Originally Posted by siva886 View Post
    I am having the same problem. When I try giving the parameters like, plugin:
    Code:
    Plugin { name: "nokia"
               parameters: [
                    PluginParameter{ name:  "mapping.cache.size" ; value: 50000000}
                    PluginParameter{ name:  "mapping.token" ; value: appId},
                    PluginParameter{ name:  "mapping.app_id" ; value: appToken}
               ]
           }
    I get the following errors on the console..
    Code:
    QColor::setNamedColor: Unknown color name 'xxxxxxxxxxxxxxxxxxxx' //appId
    QColor::setNamedColor: Unknown color name 'yyyyyyyyyyyyyyyyyyyy' //appToken
    Could anyone tell how exactly should the app id and token be specified in QML ?

  6. #6
    Nokia Developer Expert
    Join Date
    Sep 2011
    Posts
    382

    Re: How to authenticate QML Nokia Maps plugin?

    Issue caused by the value type set to QVariant::Color instead of QVariant::String. In that case default values are in use.

  7. #7
    remy_david
    Guest

    Re: How to authenticate QML Nokia Maps plugin?

    Same problem here.
    I got token and app_id from https://api.forum.nokia.com/ovi-api/ui/registration
    but I don't know where/how to put them.

  8. #8
    Registered User
    Join Date
    Nov 2010
    Location
    Finland
    Posts
    91

    Re: How to authenticate QML Nokia Maps plugin?

    Does anyone know the answer to this, how to authenticate the map?

  9. #9
    Registered User
    Join Date
    Jan 2006
    Posts
    279

    Re: How to authenticate QML Nokia Maps plugin?

    message deleted
    Last edited by microsoft2; 2012-05-02 at 11:40. Reason: wrong info

Similar Threads

  1. Is there a way to convert Maps Data from Nokia Maps 3 to be compatible with N Maps 2
    By dimchopicha in forum General Development Questions
    Replies: 6
    Last Post: 2011-01-09, 17:50
  2. Navigation route coordinates from Nokia Maps or Ovi Maps
    By selimsolmaz in forum Mobile Java Tools & SDKs
    Replies: 2
    Last Post: 2010-03-04, 10:02
  3. Replies: 3
    Last Post: 2010-03-03, 10:25

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •