Access to browser's geolocation services

How do I access the browser’s geolocation objects from Vaadin?

You must write a custom widget that accesses
navigator.geolocation
through native javascript calls. See
http://vaadin.com/book/-/page/gwt.html
for instructions on this. All in all - writing such a widget should be fairly easy.

If you write such a widget, please share it with others by posting it here on forums or to
contrib or incubator
.

Your own Vaadin widget for this would probably have no visible user interface parts but only communicate geolocation information to the server.

There are also already some examples of such “invisible” widgets, including
BrowserCookies
and
Refresher
.

You could also create a Vaadin 6.2 widget from a template using the Eclipse plugin.

Thanks all.

I’ll try the custom widget. I’ll post it back up here once I get it working.