Project

General

Profile

Revision 0824e7df

ID0824e7dfa51db20860b21a0792758fe7915ca74a
Parent b4322671
Child 4b91c104

Added by Andreas Kohlbecker almost 4 years ago

swapping long lat fields

View differences:

src/main/java/eu/etaxonomy/cdm/vaadin/component/common/GeoLocationField.java
44 44

  
45 45
    Point parsedPoint = Point.NewInstance();
46 46

  
47
    private TextField longitudeField = new TextFieldNFix("Long.");
48
    TextField latitudeField = new TextFieldNFix("Lat.");
47
    private TextField longitudeField = new TextFieldNFix("Longitude");
48
    TextField latitudeField = new TextFieldNFix("Latitude");
49 49
    Label longLatParsed = new Label();
50 50
    TextField errorRadiusField = new TextFieldNFix("Error radius (m)");
51 51
    TextField referenceSystemField = new TextFieldNFix("ReferenceSystem");
......
78 78
        root.setRows(2);
79 79
        root.setColumns(3);
80 80
        root.setStyleName("wrapper");
81
        root.addComponent(longitudeField, 0, 0);
82
        root.addComponent(latitudeField, 1, 0);
81
        root.addComponent(latitudeField, 0, 0);
82
        root.addComponent(longitudeField, 1, 0);
83 83
        root.addComponent(errorRadiusField, 0, 1);
84 84
        root.addComponent(referenceSystemField, 1, 1);
85 85

  
......
140 140
     *
141 141
     */
142 142
    protected void updateMap() {
143
        longLatParsed.setValue(parsedPoint.getLongitudeSexagesimal() + "/" + parsedPoint.getLatitudeSexagesimal());
143
        longLatParsed.setValue(parsedPoint.getLatitudeSexagesimal() + "/" + parsedPoint.getLongitudeSexagesimal());
144 144
        map.removeComponent(mapMarker);
145 145
        if(parsedPoint.getLongitude() != null && parsedPoint.getLatitude() != null){
146 146
            map.setZoomLevel(10);

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)