开发者

Blackberry MapView plot coords

开发者 https://www.devze.com 2023-03-25 00:35 出处:网络
I was wondering if it is possible to plot locations/coords on the MapView class of bla开发者_如何学Cckberry.

I was wondering if it is possible to plot locations/coords on the MapView class of bla开发者_如何学Cckberry. http://www.blackberry.com/developers/docs/5.0.0api/net/rim/blackberry/api/maps/MapView.html

In iOS I made an app the drops pins(annotations) on the MKMapView but I can't find something simular for blackberry?

Any guidance will be appreciated


You have basically two options:

1) If you want the map to be embedded within your own application, use the MapField to add a map to your screen and then override the paint() method to manually draw your pins on the screen.

2) If you just want to launch the maps app and let it handle everything, then use the MapsArguments to pass info to the app via an Invoke.invokeApplication().


On BlackBerry7 you can do it with MapMarker, without having to override paint(). Also, you can use GoogleMapField, see code here: https://github.com/rhomobile/rhodes/blob/master/platform/bb/rhodes/src/rhomobile/mapview/GoogleMapField.java

0

精彩评论

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

关注公众号