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

Examples of net.rim.device.api.lbs.maps.view.Style


                    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
View Full Code Here


            _bigMap.getModel().add(img, "Image", true);

            // Change the style so we can see the content under the polygon.
            // Use ID based style.
            final StyleSet styles = _bigMap.getMapField().getDrawingStyles();
            final Style idBasedStyle = new Style();
            idBasedStyle.setEdgeColor(Color.RED);
            idBasedStyle.setEdgeOpacity(255);
            idBasedStyle.setFillColor(Color.RED);
            idBasedStyle.setFillOpacity(50);
            styles.addIdBasedStyle("poly", idBasedStyle);
        }
View Full Code Here

TOP

Related Classes of net.rim.device.api.lbs.maps.view.Style

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.