Examples of MapLocation


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

     * Constructs and returns a MapLocation object
     *
     * @return MapLocation object containing data from screen
     */
    private MapLocation createMapLocation() {
        final MapLocation mapLocation =
                new MapLocation(Double
                        .parseDouble(_editFieldLatitude.getText()), Double
                        .parseDouble(_editFieldLatitude.getText()), null, null);
        mapLocation.addData(MapLocation.LBS_LOCATION_STREET_ADDRESS_KEY,
                _addressEditField.getText());
        mapLocation.addData(MapLocation.LBS_LOCATION_CITY_KEY, _cityEditField
                .getText());
        mapLocation.addData(MapLocation.LBS_LOCATION_REGION_KEY,
                _districtEditField.getText());
        mapLocation.addData(MapLocation.LBS_LOCATION_COUNTRY_KEY,
                _countryEditField.getText());
        mapLocation.addData(MapLocation.LBS_LOCATION_POSTAL_CODE_KEY,
                _zipEditField.getText());

        return mapLocation;
    }
View Full Code Here

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

            _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();
View Full Code Here

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

                    if (results.size() == 0) {
                        throw new Exception("Could not geocode address");
                    }

                    final MapLocation mapLocation =
                            (MapLocation) results.elementAt(0);
                    final Coordinates endPoint =
                            new Coordinates(mapLocation.getLat(), mapLocation
                                    .getLon(), 0);

                    // Obtain the coordinates for the current location
                    showStatus("Finding current location...");
                    final LocationProvider provider =
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.