Package org.wicketstuff.gmap

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


                                }
                            };
                        }
                    };

                    map.addOverlay(marker);
                    marker.addListener(GEvent.dragend, marker.getDragendHandler());
                    rv.removeAll();
                    for (GOverlay myMarker : map.getOverlays())
                    {
                        final GOverlayPanel label =
View Full Code Here


       
        // add some markers
        GLatLng glatlng1 = new GLatLng(47.4915285, 8.2050407);
        GMarkerOptions opts1 = new GMarkerOptions(map, glatlng1);
        GMarker marker1 = new GMarker("marker1", opts1);
        map.addOverlay(marker1);
       
        GLatLng glatlng2 = new GLatLng(50.7706934, 2.2164129);
        GMarkerOptions opts2 = new GMarkerOptions(map, glatlng2);
        GMarker marker2 = new GMarker("marker2", opts2);
        map.addOverlay(marker2);
View Full Code Here

        map.addOverlay(marker1);
       
        GLatLng glatlng2 = new GLatLng(50.7706934, 2.2164129);
        GMarkerOptions opts2 = new GMarkerOptions(map, glatlng2);
        GMarker marker2 = new GMarker("marker2", opts2);
        map.addOverlay(marker2);
       
        GLatLng glatlng3 = new GLatLng(48.858859, 2.34706);
        GMarkerOptions opts3 = new GMarkerOptions(map, glatlng3);
        GMarker marker3 = new GMarker("marker3", opts3);
        map.addOverlay(marker3);
View Full Code Here

        map.addOverlay(marker2);
       
        GLatLng glatlng3 = new GLatLng(48.858859, 2.34706);
        GMarkerOptions opts3 = new GMarkerOptions(map, glatlng3);
        GMarker marker3 = new GMarker("marker3", opts3);
        map.addOverlay(marker3);
       
        // add them to the list of coordinates that we need in our viewport
        markersToShow.add(glatlng1);
        markersToShow.add(glatlng2);
        markersToShow.add(glatlng3);
View Full Code Here

                {
                    if (map.getOverlays().size() >= 3)
                    {
                        map.removeOverlay(map.getOverlays().get(0));
                    }
                    map.addOverlay(new GMarker(new GMarkerOptions(map, latLng)));
                }
            }
        });
    }
}
View Full Code Here

        GIcon shadow =
                new GIcon("/shadow.png").setScaledSize(
                new GSize(64, 64)).setSize(new GSize(64, 64));
        GOverlay marker = new GMarker(new GMarkerOptions(map, new GLatLng(52.37649, 4.888573), "My Title", icon, shadow));

        map.addOverlay(marker);
    }
}
View Full Code Here

            public void onEvent(AjaxRequestTarget target)
            {
                target.add(label);
            }
        });
        topMap.addOverlay(marker);
    }
}
View Full Code Here

    private static final long serialVersionUID = 1L;

    public PolygonesPage()
    {
        GMap map = new GMap("topPanel");
        map.addOverlay(new GPolygon("#000000", 4, 0.7f, "#E9601A", 0.7f, new GLatLng(37.3, -122.4), new GLatLng(37.2, -122.2),
                new GLatLng(37.3, -122.0), new GLatLng(37.4, -122.2), new GLatLng(37.3, -122.4)));
        map.addOverlay(new GPolyline("#FFFFFF", 8, 1.0f, new GLatLng(37.35, -122.3), new GLatLng(37.25, -122.25), new GLatLng(
                37.3, -122.2), new GLatLng(37.25, -122.15), new GLatLng(37.35, -122.1)));
        map.setZoom(10);
        add(map);
View Full Code Here

    public PolygonesPage()
    {
        GMap map = new GMap("topPanel");
        map.addOverlay(new GPolygon("#000000", 4, 0.7f, "#E9601A", 0.7f, new GLatLng(37.3, -122.4), new GLatLng(37.2, -122.2),
                new GLatLng(37.3, -122.0), new GLatLng(37.4, -122.2), new GLatLng(37.3, -122.4)));
        map.addOverlay(new GPolyline("#FFFFFF", 8, 1.0f, new GLatLng(37.35, -122.3), new GLatLng(37.25, -122.25), new GLatLng(
                37.3, -122.2), new GLatLng(37.25, -122.15), new GLatLng(37.35, -122.1)));
        map.setZoom(10);
        add(map);
    }
}
View Full Code Here

    rectangle.addListener(GEvent.dragend, eventHandler);
    rectangle.addListener(GEvent.bounds_changed, eventHandler);
    rectangle.addListener(GEvent.mousedown, eventHandler);
    rectangle.addListener(GEvent.mouseup, eventHandler);

    map.addOverlay(rectangle);
    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.