I can able to show one location using co ordinates or longtitude and latitude but i dont know how to show more than one location in the blackberry MapField.If is it possible pls share with me how to do this..
相关问题
- I want to read exif info in image in android. I ca
- Free Silverlight mapping with Bing maps and OpenSt
- Google Maps event listeners not working properly i
- Stop location updates when app terminate
- Can Google Maps plot points based on Hours Minutes
相关文章
- To get the module names in blackberry
- How to close a global dialog and display another i
- Is there way to programmatically enable GPS on And
- Snapshot from the map in android
- What is the “Simplest” way to add a scale to a map
- add GPS metadata dictionary to image taken with AV
- How to install a draft app on a blackberry sandbox
- How to get the current accurate GPS Coordinates us
Same way as How to show our own icon in BlackBerry Map?.
Pass an array of Coordinates into custom MapField, define a bitmap for location point and paint it for each Coordinate in custom MapField paint() method.
Remember to zoom in/out CustomMapField for best fit of all location points.
Sample of implementation
Lets display Liverpool Sheffield and London with custom bitmap icons (yellow circle with black border). Code for custom MapField:
Sample of use:
A valid and probably simpler option would be to use this open source library by Monits https://github.com/Monits/blackberry-commons
It contains several common functionality found in BB applications and is compatible for BB 4.6.1+
Among other things, it provides a map field with the ability to add and display markers on top of it, with and without focus, and optionally "open" them. This makes for an API much more alike that found on other smart phones such as iPhone or Android.
The documentation is pretty good, and the wiki even has a tutorial on how to achieve it https://github.com/Monits/blackberry-commons/wiki/CustomMap