Use the BlackBerry JDE 6.0.0 to create a new workspace, rimgisenginetutorial. First, add a new Lib project, Libgisengine, where you'll add the Guide Bee Development Library. Then add the Helloworldrim BlackBerry app and set the Libgisengine as a dependent library (project Dependencies) for the projects Helloworldrim.
Also for simplicity, a common class Mapdemorim is designed as the base class for subsequent examples.
---------------------------------Package------------------------------------Package
Com.pstreets.gisengine.demo;
---------------------------------IMPORTS------------------------------------Import Com.mapdigit.gis.MapLayer;
Import Com.mapdigit.gis.drawing.IGraphics;
Import Com.mapdigit.gis.drawing.IImage;
Import Com.mapdigit.gis.raster.IMapDrawingListener;
Import Com.mapdigit.gis.raster.IReaderListener;
Import Com.mapdigit.gis.raster.MapTileDownloadManager;
Import Com.mapdigit.gis.raster.RasterMap;
Import Com.mapdigit.licence.LicenceManager;
Import Com.pstreets.gisengine.demo.rim.drawing.RIMGraphicsFactory;
Import net.rim.device.api.ui.UiApplication;
Import Net.rim.device.api.system.Bitmap;
Import Net.rim.device.api.ui.Graphics;
Import Net.rim.device.api.ui.container.MainScreen;
Import Net.rim.device.api.system.Display;
Import Net.rim.device.api.ui.component.Menu;
Import net.rim.device.api.ui.TouchEvent; [------------------------------MAIN CLASS----------------------------------]/** * Base class for all Map Demos. *
The class Mapdemorim is derived from uiapplication and applies the object to the BlackBerry. Mapcanvas is derived from Mainscreen, which is used to display the map and responds to TouchEvent, which can be panned.
With this base class, Helloworldrim is relatively simple, the following example shows a map of Nanjing, the zoom level is 13 levels, the map type is Bing China map.
---------------------------------Package------------------------------------Package
Com.pstreets.gisengine.demo.rim; ---------------------------------IMPORTS------------------------------------Import
Com.mapdigit.gis.geometry.GeoLatLng;
Import Com.mapdigit.gis.raster.MapType;
Import Com.pstreets.gisengine.demo.MapDemoRIM; [------------------------------MAIN CLASS----------------------------------]/** * Hello World Demo for Guidebee Map
API on RIM platform. *
BlackBerry Guide Bee Map Development Kit Ver2.1 Download