Showing posts with label gwt. Show all posts
Showing posts with label gwt. Show all posts

Monday, June 6, 2011

Map library for gwt

I recently have been working with a hobby project where I want to show a map and create an overlay(path) on the map. I also want to change the overlay of the map in runtime. To do this I´ve discovered these options, but only found one of them to be working for my purposes:

The Official Google gwt-google-apis maps version

the good
  • It works
  • Its the official thing, meaning that most of the functionality in google maps is supported
  • probably works on any version of the gwt
the bad
  • Its version 1.1 of the maps api, the latest version is 3. So you get an old look and feel on the map
  • You need an api key
  • Displaying several maps at once seems to be a problem

gwt-google-maps-v3

the good
  • works very well
  • version 3
the bad:
  • not official, not everything works
  • DOES NOT WORK ON LATEST GWT version!!!
the good
  • simple to use
  • version 3
  • works on any known gwt version
the bad
  • advanced functionality is not implemented yet

For me, the winner is gwt-maps3. It has the features I need(markers, polygon, polyline etc) and it works with the latest gwt version.

Wednesday, November 10, 2010

Remote logging with GWT

Remote logging was introduced in gwt 2.1, but the documentation is still a bit incomplete. To enable remote logging you will have to


  1. Add configuration-stuff in your .gwt.xml file:

    < inherits name="com.google.gwt.logging.Logging" >
    < set-property name="gwt.logging.simpleRemoteHandler" value="ENABLED" >
    < /set-property >
    < /inherits >

  2. Add the remote logging servlet in your web.xml (remember to replace YOURPROJECT with your projects name):
    < servlet >
    < servlet-class>com.google.gwt.logging.server.RemoteLoggingServiceImpl </servlet-class >
    < servlet-name >logger < /servlet-name >
    < /servlet >
    < servlet-mapping >
    < servlet-name>logger </servlet-name >
    < url-pattern>/YOURPROJECT/remote_logging </url-pattern >
    < /servlet-mapping >
Happy logging!