Skip to content

Commit 07ac349

Browse files
committed
#58 Add HasStyle interface, set z-index to 1
1 parent 2248bf3 commit 07ac349

File tree

1 file changed

+3
-1
lines changed
  • vaadin-maps-leaflet-flow/src/main/java/software/xdev/vaadin/maps/leaflet/flow

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
import com.vaadin.flow.component.ComponentEventListener;
3131
import com.vaadin.flow.component.ComponentUtil;
3232
import com.vaadin.flow.component.HasSize;
33+
import com.vaadin.flow.component.HasStyle;
3334
import com.vaadin.flow.component.Tag;
3435
import com.vaadin.flow.component.dependency.JsModule;
3536
import com.vaadin.flow.component.dependency.NpmPackage;
@@ -46,7 +47,7 @@
4647
@NpmPackage(value = "leaflet", version = "^1.6.0")
4748
@Tag("leaflet-map")
4849
@JsModule("./leaflet/leafletCon.js")
49-
public class LMap extends Component implements HasSize
50+
public class LMap extends Component implements HasSize, HasStyle
5051
{
5152

5253
private static final String SET_VIEW_POINT_FUNCTION = "setViewPoint";
@@ -65,6 +66,7 @@ public LMap(final double lat, final double lon, final int zoom)
6566
super();
6667
this.center = new LCenter(lat, lon, zoom);
6768
this.setViewPoint(this.center);
69+
this.getStyle().set("z-index", "1");
6870
}
6971

7072
public LMap()

0 commit comments

Comments
 (0)