Ahh, OK, it is a way to read the location info from the browser. Cool.
Thanks for the explanation.

On 02 Sep 2013, at 14:42, Janko Mivšek <[email protected]> wrote:

>> I was looking for the Geolocation support, but can't seem to find it. Where 
>> should I look ?
> 
> There is no docs or dev notes yet, but usage is simple. Say you'd like
> to show your location on realtime example:
> http://demo.aidaweb.si/demos?view=realtime. Look at the
> WebDemo/WebDemoApp classes:
> 
> WebDemoApp viewRealtime
>  self page addGeolocationScript. "to report current geolocation"
>  ...
>  loc := self session geolocation "instance of WebGeolocation"
>  e
>    addText: 'My current location is: ';
>    addText: loc locationPoint printString.
>  ...
> 
> When you switch-on the geolocation, the browser starts sending the
> geolocation changes by Ajax or (in this realtime case) WebSocket to the
> current session. It is stored in an instance of WebGeolocation class.
> 
> It can be simple to extend it by showing the location of last who
> changed the counter (by help of additional instvar lastLocation in
> WebDemo domain object):
> 
> WebDemoApp viewRealtime
>  ...
>  (e cell addButtonText: ' Decrement ')
>     noSubmit;
>     onClickDo:
>       [self observee decCounter.
>       self observee lastLocation: self session geolocation].


Reply via email to