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

Examples of net.rim.device.api.lbs.maps.model.MapDataModel


        public EnhancedMapFieldDemoScreen() {
            super(Screen.DEFAULT_CLOSE | Screen.DEFAULT_MENU);

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

            final MapDataModel data = _bigMap.getModel();

            // Create RIM head office location and add it with appropriate tags
            final MapLocation rimOffice =
                    new MapLocation(ORIGIN_LATITUDE, ORIGIN_LONGITUDE,
                            "Research In Motion", "Head office");

            // Set styles for MapLocation using class based style
            final StyleSet styles = _bigMap.getMapField().getDrawingStyles();
            final Style classBasedStyle = new Style();
            classBasedStyle.setLabelFillColor(Color.BLACK);
            classBasedStyle.setLabelFontColor(Color.WHITE);
            classBasedStyle.setLabelFontStyle(Font.BOLD);
            styles.addClassBasedStyle(MapLocation.class, classBasedStyle);

            final int rimOfficeID = data.add(rimOffice, "rim");

            data.tag(rimOfficeID, "head"); // Locations can have more than one
                                           // tag
            data.setVisible("head");

            final int displayWidth = Display.getWidth();
            final int displayHeight = Display.getHeight();

            // Initialize PIP map
View Full Code Here

TOP

Related Classes of net.rim.device.api.lbs.maps.model.MapDataModel

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.