Skip to content

Commit d0b2953

Browse files
Fixed setting of lon/lan in geometry
1 parent e579417 commit d0b2953

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/flow/data/LMarker.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ public double getLat()
9898

9999
public void setLat(final double lat)
100100
{
101-
this.geometry.getCoordinates().remove(0);
102101
this.geometry.getCoordinates().set(0, lat);
103102
}
104103

@@ -109,7 +108,6 @@ public double getLon()
109108

110109
public void setLon(final double lon)
111110
{
112-
this.geometry.getCoordinates().remove(1);
113111
this.geometry.getCoordinates().set(1, lon);
114112
}
115113

vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/flow/data/LMarkerGeometry.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ public class LMarkerGeometry
2626
private String type;
2727
private List<Double> coordinates = new ArrayList<>();
2828

29-
public LMarkerGeometry(final String type, final double lon, final double lat)
29+
public LMarkerGeometry(final String type, final double lat, final double lon)
3030
{
3131
this.type = type;
32-
this.coordinates.add(lon);
3332
this.coordinates.add(lat);
33+
this.coordinates.add(lon);
3434
}
3535

3636
public String getType()

0 commit comments

Comments
 (0)