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

Used by

Please insert your site here if using the contrib and its possible for you. 

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 


Browse Space

- Pages
- News
- Labels
- Attachments
- Bookmarks
- Mail
- Activity
- Advanced

Explore Confluence

- Popular Labels
- Notation Guide

Your Account

Log In

or Sign Up  

Other Features

Add Content