Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Contributor
Posts: 26
Registered: ‎06-09-2013
My Device: N serial
My Carrier: NIM
Accepted Solution

how to use convertKmlContentToDataProvider

The link below said there is a function in lib bbcascadesmaps

 

http://developer.blackberry.com/cascades/reference/bb__cascades__maps.html#function-generatemapurl-v...

 

but which header file should include? search all headers in bbndk directory, still can not find the declaration of the function?

 

Contributor
Posts: 26
Registered: ‎06-09-2013
My Device: N serial
My Carrier: NIM

Re: how to use convertKmlContentToDataProvider

[ Edited ]

The symbol is really in the lib, but can not find it in all header files.........

 

readelf -W -s libbbcascadesmaps.so | grep convertKmlContentToDataProvider

  1042: 000237ed  1228 FUNC    GLOBAL DEFAULT    9 _ZN2bb8cascades4maps31convertKmlContentToDataProviderERK7QString

 

error: 'convertKmlContentToDataProvider' was not declared in this scope

 

 

 

 

Contributor
Posts: 26
Registered: ‎06-09-2013
My Device: N serial
My Carrier: NIM

Re: how to use convertKmlContentToDataProvider

My bad, declare it as below and link the lib cascadesmaps

 

 

namespace bb
{
    namespace cascades
    {
        class Application;
        namespace maps
        {
            class MapView;
            bb::cascades::maps:Smiley Very HappyataProvider* convertKmlContentToDataProvider (const QString &kmlContent);
    }
}

Contributor
Posts: 26
Registered: ‎06-09-2013
My Device: N serial
My Carrier: NIM

Re: how to use convertKmlContentToDataProvider

This function only can support convert location (point) to data provider after testing,

but not for polyline and ploygon Smiley Sad