Examples of GMarkerClusterOptions


Examples of org.wicketstuff.gmap.api.GMarkerClusterOptions

            map.addOverlay(new GMarker("marker"+i, new GMarkerOptions(map, glatlng)));
            mapDefault.addOverlay(new GMarker("marker"+i, new GMarkerOptions(mapDefault, glatlng)));
        }
       
        // set some options
        GMarkerClusterOptions options = new GMarkerClusterOptions();
        options.setMinimumClusterSize(3);
        List<GMarkerClusterStyle> styles = new ArrayList<GMarkerClusterStyle>();
       
        GMarkerClusterStyle style1 = new GMarkerClusterStyle();
        style1.setUrl(image1).setHeight(26).setWidth(30);
        GMarkerClusterStyle style2 = new GMarkerClusterStyle();
        style2.setUrl(image2).setHeight(35).setWidth(40);
        GMarkerClusterStyle style3 = new GMarkerClusterStyle();
        style3.setUrl(image3).setHeight(44).setWidth(50);
       
        styles.add(style1);
        styles.add(style2);
        styles.add(style3);
        options.setStyles(styles);
       
        // cluster all markers with specified settings
        map.setMarkerCluster(new GMarkerCluster(map, options));
        mapDefault.setMarkerCluster(new GMarkerCluster(mapDefault));
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.