wicket-contrib-gmap
About
Wicket GMap Contribution enables you to create Google Maps on your wicket page. Further more it enables you to pickup user moves on the map and populate the map accordingly.
Features
- Control your gmap
- catch user actions and populate accordingly
- Tested with FF2,FF1.5,Safari,IE6
- Updates done via Ajax
- Create externalized the ajaxlink so you for example can add a progress meter
- Add custom markers
- lots more
Used by
Please insert your site here if using the contrib and its possible for you.
- Turen Gaar tilclick "kort" on the main page, for inserting POI's etc you need to login
- Szeretgom.hu
- UK ATM Web Locator
Short Example
Insert this on your page and bling bling you got your gmap
, rembember to pickup a key at google key signup, none are needed if you are running on localhost.
final GMap gMap = new GMap(new GLatLng(0d, 0d), 1); gMap.setTypeControl(true); gMap.setOverviewMapControl(true); gMap.setLargeMapControl(true); // setup world bounds GLatLngBounds bounds = new GLatLngBounds(new GLatLng(-90, -180), new GLatLng(90, 180)); gMap.setBounds(bounds); gMapPanel = new GMapPanel("gmap", gMap, 440, 450, "yourSiteKey")); GMapListener listener = new GMapListener() { public void onClick(AjaxRequestTarget target, GMap arg1) { // user has ended a map move, need to update map\! // clear all the markers. gMap.getOverlays().clear(); gMap.addOverlay(new GMarker(new GLatLng(0,0),new Label("info","heey thats my marker"))); }}; gMapPanel.setDragEndListener(listener); add(gMapPanel);
Matching html
<div wicket:id="gmap"></div>
SVN
/branches/WICKET_1_2/wicket-contrib-gmap/wicket-contrib-gmap/
See more about checking out from svn here