Revision a27635bd
Added by Andreas Müller almost 2 years ago
src/main/java/eu/etaxonomy/cdm/vaadin/component/common/GeoLocationField.java | ||
---|---|---|
11 | 11 |
import java.util.Optional; |
12 | 12 |
|
13 | 13 |
import org.apache.commons.lang3.StringUtils; |
14 |
import org.apache.log4j.Logger; |
|
14 |
import org.apache.logging.log4j.LogManager; |
|
15 |
import org.apache.logging.log4j.Logger; |
|
15 | 16 |
import org.vaadin.addon.leaflet.LCircle; |
16 | 17 |
import org.vaadin.addon.leaflet.LMap; |
17 | 18 |
import org.vaadin.addon.leaflet.LMarker; |
... | ... | |
40 | 41 |
/** |
41 | 42 |
* @author a.kohlbecker |
42 | 43 |
* @since Jun 22, 2017 |
43 |
* |
|
44 | 44 |
*/ |
45 | 45 |
public class GeoLocationField extends CompositeCustomField<Point> { |
46 | 46 |
|
47 |
private static final Logger logger = Logger.getLogger(GeoLocationField.class); |
|
48 |
|
|
49 | 47 |
private static final long serialVersionUID = 1122123034547920390L; |
48 |
private final static Logger logger = LogManager.getLogger(); |
|
50 | 49 |
|
51 | 50 |
private static final String PRIMARY_STYLE = "v-geolocation-field"; |
52 | 51 |
|
... | ... | |
65 | 64 |
private CssLayout mapWrapper; |
66 | 65 |
|
67 | 66 |
|
68 |
/** |
|
69 |
* |
|
70 |
*/ |
|
71 | 67 |
public GeoLocationField() { |
72 | 68 |
super(); |
73 | 69 |
} |
... | ... | |
77 | 73 |
setCaption(caption); |
78 | 74 |
} |
79 | 75 |
|
80 |
/** |
|
81 |
* {@inheritDoc} |
|
82 |
*/ |
|
83 | 76 |
@Override |
84 | 77 |
protected Component initContent() { |
85 | 78 |
super.setPrimaryStyleName(PRIMARY_STYLE); |
... | ... | |
139 | 132 |
return root; |
140 | 133 |
} |
141 | 134 |
|
142 |
/** |
|
143 |
* |
|
144 |
*/ |
|
145 | 135 |
protected void updateMap() { |
146 | 136 |
|
147 | 137 |
Double longitude = null; |
Also available in: Unified diff
ref #10072 adapt vaadin to log4j2 and cleanup