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"
}
}[/CODE]
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] ******************************************************************************** [/CODE]
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"
}
}
}[/CODE]
but how the parameters should be put?
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: [url]http://www.developer.nokia.com/Community/Wiki/QtQuick_Maps_Examples[/url]
Re: How to authenticate QML Nokia Maps plugin?
[QUOTE=symbianyucca;866321]I did not see this problem with my examples, thus can you see what is done differently with: [url]http://www.developer.nokia.com/Community/Wiki/QtQuick_Maps_Examples[/url][/QUOTE]
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?
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}
]
}[/CODE]
I get the following errors on the console..
[CODE]
QColor::setNamedColor: Unknown color name 'xxxxxxxxxxxxxxxxxxxx' //appId
QColor::setNamedColor: Unknown color name 'yyyyyyyyyyyyyyyyyyyy' //appToken[/CODE]
Could anyone tell how exactly should the app id and token be specified in QML ?
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=siva886;881203]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}
]
}[/CODE]
I get the following errors on the console..
[CODE]
QColor::setNamedColor: Unknown color name 'xxxxxxxxxxxxxxxxxxxx' //appId
QColor::setNamedColor: Unknown color name 'yyyyyyyyyyyyyyyyyyyy' //appToken[/CODE]
Could anyone tell how exactly should the app id and token be specified in QML ?[/QUOTE]
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.
Re: How to authenticate QML Nokia Maps plugin?
Same problem here.
I got token and app_id from [url]https://api.forum.nokia.com/ovi-api/ui/registration[/url]
but I don't know where/how to put them.
Re: How to authenticate QML Nokia Maps plugin?
Does anyone know the answer to this, how to authenticate the map?
Re: How to authenticate QML Nokia Maps plugin?