use of org.vaadin.addon.leaflet.AbstractLeafletLayer in project v-leaflet by mstahv.
the class MapInWindowIssue19 method createMap.
private LMap createMap() {
final LMap map = new LMap();
map.setCenter(41.920833176630296, 1.853337480434182);
map.setZoomLevel(5);
map.addControl(new LScale());
map.addControl(new LZoom());
AbstractLeafletLayer[] layers = new AbstractLeafletLayer[] { createTileLayer("OSM", "https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", "a", "b", "c") };
addLayers(map, layers);
return map;
}
Aggregations