Skip to content

Commit fa5b788

Browse files
paodbmlopezFC
authored andcommitted
feat: basic implementation of kml support
Close #23
1 parent a586324 commit fa5b788

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

src/main/java/com/flowingcode/vaadin/addons/googlemaps/GoogleMap.java

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,24 @@ public void setControlSize(int controlSize) {
338338
public int getControlSize() {
339339
return this.getElement().getProperty("controlSize", 0);
340340
}
341+
342+
/**
343+
* Sets a KML or GeoRSS feed url to be displayed as a KML Layer in the map.
344+
*
345+
* @param url to be displayed.
346+
*/
347+
public void setKml(String kml){
348+
this.getElement().setProperty("kml", kml);
349+
}
350+
351+
/**
352+
* Returns the current KML or GeoRSS feed url associated with a KML Layer in the map.
353+
*
354+
* @return the current url.
355+
*/
356+
public String getKml() {
357+
return this.getElement().getProperty("kml");
358+
}
341359

342360
public static class GoogleMapClickEvent extends ClickEvent<GoogleMap> {
343361
private final double lat;

0 commit comments

Comments
 (0)