Search in sources :

Example 1 with AbstractLeafletLayer

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;
}
Also used : LMap(org.vaadin.addon.leaflet.LMap) LZoom(org.vaadin.addon.leaflet.control.LZoom) AbstractLeafletLayer(org.vaadin.addon.leaflet.AbstractLeafletLayer) LScale(org.vaadin.addon.leaflet.control.LScale)

Aggregations

AbstractLeafletLayer (org.vaadin.addon.leaflet.AbstractLeafletLayer)1 LMap (org.vaadin.addon.leaflet.LMap)1 LScale (org.vaadin.addon.leaflet.control.LScale)1 LZoom (org.vaadin.addon.leaflet.control.LZoom)1