|
22 | 22 | import software.xdev.vaadin.maps.leaflet.flow.data.LMarker;
|
23 | 23 | import software.xdev.vaadin.maps.leaflet.flow.data.LPoint;
|
24 | 24 | import software.xdev.vaadin.maps.leaflet.flow.data.LPolygon;
|
| 25 | +import software.xdev.vaadin.maps.leaflet.flow.data.LPolyline; |
25 | 26 | import software.xdev.vaadin.maps.leaflet.flow.data.LTileLayer;
|
26 | 27 |
|
27 | 28 |
|
@@ -142,10 +143,18 @@ private void initMapComponents()
|
142 | 143 | new LPoint(49.675306, 12.158499)));
|
143 | 144 | polygonNoc.setFill(true);
|
144 | 145 | polygonNoc.setFillColor("#3366ff");
|
145 |
| - polygonNoc.setFillOpacity(0.8); |
| 146 | + polygonNoc.setFillOpacity(0.5); |
146 | 147 | polygonNoc.setStroke(false);
|
147 | 148 | polygonNoc.setPopup("NOC-Nordoberpfalz Center");
|
148 | 149 |
|
| 150 | + final LPolyline polylineRouteZOB = new LPolyline(List.of( |
| 151 | + new LPoint(49.673800, 12.160113), |
| 152 | + new LPoint(49.67391927694611, 12.160769132769188), |
| 153 | + new LPoint(49.67567078571473, 12.160428926167304) |
| 154 | + )); |
| 155 | + polylineRouteZOB.setStrokeOpacity(0.5); |
| 156 | + polylineRouteZOB.setPopup("Route to ZOB"); |
| 157 | + |
149 | 158 | this.markerRathaus = new LMarker(49.675519, 12.163868, "L-22556");
|
150 | 159 | this.markerRathaus.setPopup("Old Town Hall");
|
151 | 160 |
|
@@ -181,6 +190,7 @@ private void initMapComponents()
|
181 | 190 | markerInfo,
|
182 | 191 | this.markerZob,
|
183 | 192 | polygonNoc,
|
| 193 | + polylineRouteZOB, |
184 | 194 | this.markerRathaus);
|
185 | 195 | }
|
186 | 196 | }
|
0 commit comments