Search in sources :

Example 1 with PointMapLayer

use of org.activityinfo.legacy.shared.reports.model.layers.PointMapLayer in project activityinfo by bedatadriven.

the class LayersWidget method addLayer.

public void addLayer(MapLayer layer) {
    if (layer instanceof PointMapLayer) {
        ((PointMapLayer) layer).setClustering(new NoClustering());
    }
    mapElement.getLayers().add(layer);
    reportEventBus.fireChange();
    updateStore();
}
Also used : NoClustering(org.activityinfo.legacy.shared.reports.model.clustering.NoClustering) PointMapLayer(org.activityinfo.legacy.shared.reports.model.layers.PointMapLayer)

Aggregations

NoClustering (org.activityinfo.legacy.shared.reports.model.clustering.NoClustering)1 PointMapLayer (org.activityinfo.legacy.shared.reports.model.layers.PointMapLayer)1