Search in sources :

Example 6 with LLayers

use of org.vaadin.addon.leaflet.control.LLayers in project v-leaflet by mstahv.

the class LMap method getLayersControl.

public LLayers getLayersControl() {
    for (Extension e : getExtensions()) {
        if (e instanceof LLayers) {
            return (LLayers) e;
        }
    }
    LLayers lLayers = new LLayers();
    addExtension(lLayers);
    return lLayers;
}
Also used : Extension(com.vaadin.server.Extension) LLayers(org.vaadin.addon.leaflet.control.LLayers)

Aggregations

LLayers (org.vaadin.addon.leaflet.control.LLayers)6 HasValue (com.vaadin.data.HasValue)1 ValueChangeEvent (com.vaadin.data.HasValue.ValueChangeEvent)1 Extension (com.vaadin.server.Extension)1 ContentMode (com.vaadin.shared.ui.ContentMode)1 com.vaadin.ui (com.vaadin.ui)1 Type (com.vaadin.ui.Notification.Type)1 Arrays (java.util.Arrays)1 List (java.util.List)1 LMap (org.vaadin.addon.leaflet.LMap)1 LTileLayer (org.vaadin.addon.leaflet.LTileLayer)1 LScale (org.vaadin.addon.leaflet.control.LScale)1 AbstractTest (org.vaadin.addonhelpers.AbstractTest)1