Hi Piotr.
Yeah your are right, it is just that not always have time for that but
I do it sometimes.
On forum you can see a step by step how to implement it.
Basically, to use it just do the following steps:
1- create a GeoMoo instance
var geo = new GeoMoo();
2- call geoLocate method to locale user position
geo.geoLocate();
3- use 'onGeoLocated' event. (Don't forget to receive coordinates
object as argument)
geo.addEvent('onGeoLocated', function(coords) {
});
4- and do something with user coordinates.
geo.addEvent('onGeoLocated', function(coords) {
var lat = coords.lat;
var lng = coords.lng;
alert('You are stepped on: latitude ' + lat + ' and longitude
' + lng);
});
5- and enjoy
you are welcome :)
Best regards,
Ciul.
On 28 dic, 12:52, Piotr Zalewa <[email protected]> wrote:
> You could also try jsfiddle for presenting examples.
>
> On 12/28/10 17:36, Ciul wrote:
>
>
>
>
>
>
>
>
>
> > Hi pals.
>
> > I bring you another class which implements what the W3C explains on
> > how to get the geolocalization from a user.
>
> > It is posted at forums:
> >http://www.mooforum.net/script-showcase-f25/geomoo-html5-geolocalizat...
>
> > It really doesn't uses HTML5, I mean, it is not a HTML5 feature but I
> > was cheated from the results I found on google.
>
> > But anyway...it is funny to use and easy to implement.
>
> > It is explained at the forum thread.
>
> > Best regards,
> > Ciul.
>
> --
> blog http://piotr.zalewa.info
> jobs http://webdev.zalewa.info
> twit http://twitter.com/zalun
> face http://facebook.com/zaloon