Package net.rim.device.api.lbs.maps.ui

Examples of net.rim.device.api.lbs.maps.ui.MapAction


            setTitle("Geofence Demo");

            _richMapField = MapFactory.getInstance().generateRichMapField();

            // Allow map to get focus but not be interactive unless clicked
            final MapAction mapAction = _richMapField.getAction();
            mapAction.enableOperationMode(MapConstants.MODE_SHARED_FOCUS);

            // Set the size of the map field
            final MapField mapField = _richMapField.getMapField();
            mapField.setDimensions(new MapDimensions(Display.getWidth(),
                    MAP_HEIGHT));
View Full Code Here


         */
        protected void onUiEngineAttached(final boolean attached) {
            super.onUiEngineAttached(attached);

            if (attached) {
                final MapAction mapAction =
                        _richMapField.getMapField().getAction();

                // Set center of map near to desired origin and zoom to desired
                // level
                mapAction.setCenterAndZoom(new MapPoint(ORIGIN_LATITUDE,
                        ORIGIN_LONGITUDE), ZOOM_LEVEL);

                _richMapField.setFocus();
            }
        }
View Full Code Here

        public void perimeterEntered(final String tag,
                final BlackBerryLocation location) {
            final Coordinates coordinates = location.getQualifiedCoordinates();

            // Move the map to the current location
            final MapAction mapAction = _richMapField.getMapField().getAction();
            mapAction.setCenter(new MapPoint(coordinates));

            final double lat = 100000.0 * coordinates.getLatitude();
            final double lng = 100000.0 * coordinates.getLongitude();

            // Update the status field
View Full Code Here

            final int lng =
                    (int) (100000.0 * location.getQualifiedCoordinates()
                            .getLongitude());

            // Move the map to the current location
            final MapAction mapAction = _richMapField.getMapField().getAction();
            mapAction.setCenter(new MapPoint(lat, lng));

            // Update the status field
            final StringBuffer strBuffer = new StringBuffer(tag);
            strBuffer.append(": Good bye, come again!");
            strBuffer.append(" Lat: ");
View Full Code Here

         */
        protected void onUiEngineAttached(final boolean attached) {
            super.onUiEngineAttached(attached);

            if (attached) {
                final MapAction mapAction = _bigMap.getMapField().getAction();

                // Set the location of both the big map and the PIP map
                mapAction.setCenter(new MapPoint(43.47483, -80.53919));

                mapAction.setZoom(ZOOM_LEVEL);
                _bigMap.setFocus();
            }
        }
View Full Code Here

TOP

Related Classes of net.rim.device.api.lbs.maps.ui.MapAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.