Package com.bbn.openmap.layer.location

Examples of com.bbn.openmap.layer.location.Location


     */
    protected Location createLocation(float lat, float lon, String name,
                                      String iconURL) {

        // This will turn into a regular location if iconURL is null.
        Location loc = new URLRasterLocation(lat, lon, name, iconURL);

        // let the layer handler default set these initially...
        loc.setShowName(isShowNames());
        loc.setShowLocation(isShowLocations());

        loc.setLocationHandler(this);
        getLocationDrawingAttributes().setTo(loc.getLocationMarker());
        getNameDrawingAttributes().setTo(loc.getLabel());

        loc.setDetails(name + " is at lat: " + lat + ", lon: " + lon);

        if (iconURL != null) {
            loc.setDetails(loc.getDetails() + " icon: " + iconURL);
        }

        Debug.message("csvlocation", "CSVLocationHandler " + loc.getDetails());

        return loc;
    }
View Full Code Here


            // Debug.output(iconURL);
            if (iconURL == null && defaultIconURL != null) {
                iconURL = defaultIconURL;
            }

            Location loc = createLocation(lat, lon, name, iconURL);

            organizer.put(lat, lon, loc);
            reset();
        }
View Full Code Here

TOP

Related Classes of com.bbn.openmap.layer.location.Location

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.