All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.dlsc.gmapsfx.javascript.object.ClusteredGoogleMap Maven / Gradle / Ivy

There is a newer version: 11.0.7
Show newest version
package com.dlsc.gmapsfx.javascript.object;

/**
 * User: twalcari
 * Date: 1/9/2015
 * Time: 11:59
 */
public class ClusteredGoogleMap extends GoogleMap {

    private MarkerClusterer markerClusterer;


    public ClusteredGoogleMap() {
    }

    public ClusteredGoogleMap(MapOptions mapOptions) {
        super(mapOptions);
    }

    @Override
    protected void initialize() {
        super.initialize();

        markerClusterer = new MarkerClusterer(this);
    }

    public void addClusterableMarker(Marker marker) {
        markerClusterer.addMarker(marker);

    }

    public void removeClusterableMarker(Marker marker) {
        markerClusterer.removeMarker(marker);
    }

    public MarkerClusterer getMarkerClusterer() {
        return markerClusterer;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy