Package org.wicketstuff.gmap

Examples of org.wicketstuff.gmap.GMap.addOverlay()


            @Override
            public void onGeoCode(AjaxRequestTarget target, GeocoderStatus status, String address, GLatLng latLng)
            {
                if (status == GeocoderStatus.OK)
                {
                    bottomMap.addOverlay(new GInfoWindow(latLng, "address: " + address));
                    target.add(feedback);
                }
                else
                {
                    error("Unable to geocode (" + status + ")");
View Full Code Here


            {
                try
                {
                    String address = addressTextField.getDefaultModelObjectAsString();
                    GLatLng latLng = new ServerGeocoder().findAddress(address);
                    bottomMap.addOverlay(new GInfoWindow(latLng, "address: " + address));
                    target.add(feedback);
                }
                catch (Exception e)
                {
                    error("Unable to geocode (" + e.getMessage() + ")");
View Full Code Here

            double longitude = minLon + (double)(Math.random() * ((maxLon - minLon) + 1));
         
            GLatLng glatlng = new GLatLng(latitude, longitude);
            markersToShow.add(glatlng);
           
            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();
View Full Code Here

                target.add(feedback);
            }
        };
        circle.addListener(GEvent.radius_changed, eventHandler);
        circle.addListener(GEvent.center_changed, eventHandler);
        map.addOverlay(circle);
        map.setZoom(9);
        add(map);
    }
}
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.