Can anyone tell me how to use Google maps in blackberry application development instead of Blackberry map?
相关问题
- How do you change the color of the dotted line on
- I want to read exif info in image in android. I ca
- draw polylines with different colors on v2 maps
- Add HTML class/ID to Google Maps Marker (API V3)
- Cannot resolve method “getMapAsync”
相关文章
- Avoiding “Sorry, we have no imagery here” with Goo
- Custom Marker performance iOS, crash with result “
- Google Map Gradient Polylines for Android?
- Angular 6 - @types/googlemaps/index.d.ts' is n
- Google Maps - Get Polygon border of zones/neighbor
- Google Map Marker Clickable Area
- getSupportFragmentManager().findFragmentById retur
- MapActivity cannot be resolved to a type
Here is a little example:
The Form to view the Google Maps Static image:
The class inet class to download the static image:
The Button action that starts the download and the callback action that loads the form to view the image
Refine and edit the code so it fits your needs. Took me some time to get it right.
Recently I had an idea to use Google Maps website from Browser.Field but it's not possible since GMaps are based on JavaScript and it's badly supported by Blackberry native Browser.
Actually there are 2 ways of using Google Maps on Blackberry:
It is possible now to use Google Maps instead of BlackBerry maps with our own data like in the image.
If you're looking to use google maps to show your own locations/markers you can invoke google maps using
ApplicationDescriptor
from your application. Check for google maps on device usingCodeModuleManager.getModuleHandle("GoogleMaps");
it returns an integer where non zero means it is available. Then you can add locations in yourKML
file, you can even customize location pointers using KML file tags.The example as linked by Max allows a single marker only. So a KML file becomes necessary if multiple markers are to be added.
You may look at the simple tutorial here for beginners.