Java源码示例:org.primefaces.model.map.LatLng

示例1
private void populateLocationCoordinates(){
    List<Location> locations = ds.getAllLocations();
    if(locations == null) {
        return;
    }
    centerMap = "";
    locationMap = new DefaultMapModel();
    location = null;

    log.info("Too MAny Map Locations: "+locations.size());

    for(Location loc: locations){
        LatLng ll = new LatLng( loc.getLatitude(), loc.getLongitude());
        locationMap.addOverlay(new Marker(ll, loc.getStreet1(), loc.getFranchiseeNo()));
    }
}
 
示例2
private void populateLocationCoordinates(){
    List<Location> locations = ds.getAllLocations();
    if(locations == null) {
        return;
    }
    centerMap = "";
    locationMap = new DefaultMapModel();
    location = null;

    log.info("Too MAny Map Locations: "+locations.size());

    for(Location loc: locations){
        LatLng ll = new LatLng( loc.getLatitude(), loc.getLongitude());
        locationMap.addOverlay(new Marker(ll, loc.getStreet1(), loc.getFranchiseeNo()));
    }
}
 
示例3
public static LatLng getPortLatLng(String portCode) {

        switch (portCode.toUpperCase()) {
            case "USCHI":
                return new LatLng(41.5, -87.38);
            case "USDAL":
                return new LatLng(29.387424, -94.125479); //TODO: approx USDAL coord!            
            case "SEGOT":
                return new LatLng(57.42, 11.57);
            case "DEHAM":
                return new LatLng(53.33, 9.59);
            case "CNHGH":
                return new LatLng(23.6, 113.14);
            case "FIHEL":
                return new LatLng(60.1015, 25.5715);
            case "CNHKG":
                return new LatLng(22.336104, 114.073471);
            case "AUMEL":
                return new LatLng(-37.50, 144.58);
            case "USNYC":
                return new LatLng(40.4252, -74.0022);
            case "NLRTM":
                return new LatLng(51.55, 4.24);
            case "CNSHA":
                return new LatLng(31.324062, 121.677776);
            case "SESTO":
                return new LatLng(59.19, 18.3);
            case "JNTKO":
                return new LatLng(35.43, 139.46);
            default:
                return null;
        }
    }
 
示例4
public static LatLng getPortLatLng(String portCode) {

        switch (portCode.toUpperCase()) {
            case "USCHI":
                return new LatLng(41.5, -87.38);
            case "USDAL":
                return new LatLng(29.387424, -94.125479); //TODO: approx USDAL coord!            
            case "SEGOT":
                return new LatLng(57.42, 11.57);
            case "DEHAM":
                return new LatLng(53.33, 9.59);
            case "CNHGH":
                return new LatLng(23.6, 113.14);
            case "FIHEL":
                return new LatLng(60.1015, 25.5715);
            case "CNHKG":
                return new LatLng(22.336104, 114.073471);
            case "AUMEL":
                return new LatLng(-37.50, 144.58);
            case "USNYC":
                return new LatLng(40.4252, -74.0022);
            case "NLRTM":
                return new LatLng(51.55, 4.24);
            case "CNSHA":
                return new LatLng(31.324062, 121.677776);
            case "SESTO":
                return new LatLng(59.19, 18.3);
            case "JNTKO":
                return new LatLng(35.43, 139.46);
            default:
                return null;
        }
    }
 
示例5
public static LatLng getPortLatLng(String portCode) {

        switch (portCode.toUpperCase()) {
            case "USCHI":
                return new LatLng(41.5, -87.38);
            case "USDAL":
                return new LatLng(29.387424, -94.125479); //TODO: approx USDAL coord!            
            case "SEGOT":
                return new LatLng(57.42, 11.57);
            case "DEHAM":
                return new LatLng(53.33, 9.59);
            case "CNHGH":
                return new LatLng(23.6, 113.14);
            case "FIHEL":
                return new LatLng(60.1015, 25.5715);
            case "CNHKG":
                return new LatLng(22.336104, 114.073471);
            case "AUMEL":
                return new LatLng(-37.50, 144.58);
            case "USNYC":
                return new LatLng(40.4252, -74.0022);
            case "NLRTM":
                return new LatLng(51.55, 4.24);
            case "CNSHA":
                return new LatLng(31.324062, 121.677776);
            case "SESTO":
                return new LatLng(59.19, 18.3);
            case "JNTKO":
                return new LatLng(35.43, 139.46);
            default:
                return null;
        }
    }
 
示例6
public static LatLng getPortLatLng(String portCode) {

        switch (portCode.toUpperCase()) {
            case "USCHI":
                return new LatLng(41.5, -87.38);
            case "USDAL":
                return new LatLng(29.387424, -94.125479); //TODO: approx USDAL coord!            
            case "SEGOT":
                return new LatLng(57.42, 11.57);
            case "DEHAM":
                return new LatLng(53.33, 9.59);
            case "CNHGH":
                return new LatLng(23.6, 113.14);
            case "FIHEL":
                return new LatLng(60.1015, 25.5715);
            case "CNHKG":
                return new LatLng(22.336104, 114.073471);
            case "AUMEL":
                return new LatLng(-37.50, 144.58);
            case "USNYC":
                return new LatLng(40.4252, -74.0022);
            case "NLRTM":
                return new LatLng(51.55, 4.24);
            case "CNSHA":
                return new LatLng(31.324062, 121.677776);
            case "SESTO":
                return new LatLng(59.19, 18.3);
            case "JNTKO":
                return new LatLng(35.43, 139.46);
            default:
                return null;
        }
    }
 
示例7
public static LatLng getPortLatLng(String portCode) {

        switch (portCode.toUpperCase()) {
            case "USCHI":
                return new LatLng(41.5, -87.38);
            case "USDAL":
                return new LatLng(29.387424, -94.125479); //TODO: approx USDAL coord!            
            case "SEGOT":
                return new LatLng(57.42, 11.57);
            case "DEHAM":
                return new LatLng(53.33, 9.59);
            case "CNHGH":
                return new LatLng(23.6, 113.14);
            case "FIHEL":
                return new LatLng(60.1015, 25.5715);
            case "CNHKG":
                return new LatLng(22.336104, 114.073471);
            case "AUMEL":
                return new LatLng(-37.50, 144.58);
            case "USNYC":
                return new LatLng(40.4252, -74.0022);
            case "NLRTM":
                return new LatLng(51.55, 4.24);
            case "CNSHA":
                return new LatLng(31.324062, 121.677776);
            case "SESTO":
                return new LatLng(59.19, 18.3);
            case "JNTKO":
                return new LatLng(35.43, 139.46);
            default:
                return null;
        }
    }