Search in sources :

Example 1 with PointMapLayer

use of org.activityinfo.shared.report.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.shared.report.model.clustering.NoClustering) PointMapLayer(org.activityinfo.shared.report.model.layers.PointMapLayer)

Aggregations

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