BlackBerry Guide Bee Map Development example: first map app

Source: Internet
Author: User
Tags reserved thread

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


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.