开发者

Is it possible to embed Google Maps into MapField or BrowserField?

I want to handle onClick events of placemarks on Google Maps. I need to get id or coordina开发者_如何转开发tes of clicked placemark into my application. Is it possible or can you offer me an alternative way?

Now, I just run Google Maps application:

 ApplicationDescriptor ad = CodeModuleManager.getApplicationDescriptors(mh)[0];
        ApplicationDescriptor ad2 = new ApplicationDescriptor(ad, args);
        try {
            ApplicationManager.getApplicationManager().runApplication(ad2, true);
        } catch (Throwable t) {
            t.printStackTrace();
        }


No, you can't embed the Google map into your application. There was a project (that I think may be defunct) where the dev was trying to do it by manually requesting tiles and whatnot, but I haven't heard of it in a while.

You'll have to embed a MapField (make sure the BlackBerry Maps is installed) and then manually control things like navigation, zoom, and placemarks.


I have displayed Google map in my application. Its simple. Make sure that you have installed Google map. This BlackBerry support forum thread may be useful to you:
How to use Google Map in Blackberry Application?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜