wicket contrib gmap2

5,270 views

Published on

wicket contrib gmap2 wicket-stuff Amsterdam

Published in: Technology, Travel
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
5,270
On SlideShare
0
From Embeds
0
Number of Embeds
93
Actions
Shares
0
Downloads
68
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide

wicket contrib gmap2

  1. 1. GMap2
  2. 2. wicket-contrib-gmap2 http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-gmap2 Sven Meier [email_address] Martin Funk [email_address] Martin Funk @ Wicket Meetup, Amsterdam 30.11.2007
  3. 3. Plan <ul><li>Make Google Maps API available for Wicket </li></ul><ul><li>Stay close to Google Maps API </li></ul><ul><li>Stay close to the Wicket way </li></ul><ul><li>Keep network traffic low </li></ul>Martin Funk @ Wicket Meetup, Amsterdam 30.11.2007
  4. 4. <html> <head> <body> <div> Participants <span> Martin Funk @ Wicket Meetup, Amsterdam 30.11.2007 WebPage Panel Component GMap2 Behavior WicketGMap2 GMap2 Behavior
  5. 5. Simple public SimplePage() { add(new GMap2(&quot;map&quot;, GMAP2_KEY)); } Martin Funk @ Wicket Meetup, Amsterdam 30.11.2007
  6. 6. <html> <head> <body> <div> Simple Martin Funk @ Wicket Meetup, Amsterdam 30.11.2007 WicketGMap2 WebPage GMap2 GET response
  7. 7. Marker map.add(new ClickListener() { protected void onClick(AjaxRequestTarget target, GLatLng latLng, GOverlay overlay) { if (latLng != null) { if (map.getOverlays().size() >= 3) { map.removeOverlay(map.getOverlays().get(0)); } map.addOverlay(new GMarker(latLng)); } } }); Martin Funk @ Wicket Meetup, Amsterdam 30.11.2007
  8. 8. <html> <head> <body> <div> Marker <span> Martin Funk @ Wicket Meetup, Amsterdam 30.11.2007 GMap2 WebPage GMap2 ClickListener GEventListener XMLHttpRequest response update
  9. 9. Controls final Label zoomIn = new Label(&quot;zoomInLabel&quot;, &quot;ZoomIn&quot;); zoomIn.add(map.new ZoomInBehavior(&quot;onclick&quot;)); add(zoomIn); Martin Funk @ Wicket Meetup, Amsterdam 30.11.2007
  10. 10. <html> <head> <body> <div> Controls <span onclick> Martin Funk @ Wicket Meetup, Amsterdam 30.11.2007 WicketGMap2 WebPage Gmap2 Label ZoomInBehavior event
  11. 11. Things Not Shown <ul><li>GPolygones </li></ul><ul><li>GPolyline </li></ul><ul><li>GInfoWindow </li></ul><ul><li>GClientGeocoding </li></ul>Martin Funk @ Wicket Meetup, Amsterdam 30.11.2007
  12. 12. Plan <ul><li>Make Google Maps API available for Wicket </li></ul><ul><li>Stay close to Google Maps API </li></ul><ul><li>Stay close to the Wicket way </li></ul><ul><li>Keep network traffic low </li></ul><ul><li>Broaden availability of Google Maps API </li></ul><ul><ul><li>Listeners on GOverlays </li></ul></ul><ul><ul><li>Implement GIcon </li></ul></ul>Martin Funk @ Wicket Meetup, Amsterdam 30.11.2007
  13. 13. Q & A Martin Funk @ Wicket Meetup, Amsterdam 30.11.2007

×