[OpenLayers-Dev] geolocation example

Noli Sicad nsicad at gmail.com
Mon Jun 27 03:05:10 EDT 2011


Hi Pierre,

It seems that Geolocation example has a problem.

In Safari Mac OS X.

Error:

TypeError: Result of expression '$('locate')' [null] is not an object.

In firefox 3.6.x

Error:

 '$('locate')' is null


Anybody knows how to correct this error?


Noli


On 6/27/11, Noli Sicad <nsicad at gmail.com> wrote:
> Hi Pierre,
>
> It seems that the Geolocation.html in OpenLayers 2.11 RC does not work.
>
> I tried it before and after the revision. It is not working in Mac OS
> X 10.6.4 in Firefox 3.6.x and Safari. Yes, it is asking for my
> location but it is displaying in the map.
>
>
> Would it be possible to post me, working copy (i.e. Geolocation.html
> and Geolocation.js)?
>
> Thanks.
>
> Regards, Noli
>
>
>
> On 6/21/11, Pierre Giraud <pierre.giraud at camptocamp.com> wrote:
>> Hi all,
>>
>> I just changed the geolocation example [1].
>> The purpose was to prevent the map to be zoomed more than once when
>> tracking user position.
>>
>> Now if the user checks the "track my position", the map will be zoomed
>> and the circle will pulsate. Then, the map will be recentered to
>> user's position each time he moves. But, he's allowed to zoom out. The
>> zoom level will be kept until he clicks on the "locate me" button.
>>
>> I think this use case is common and I hope this addition makes sense.
>>
>> Regards,
>> Pierre
>>
>> [1] http://trac.osgeo.org/openlayers/changeset/12117
>>
>> --
>> Pierre GIRAUD
>> Géomaticien, Analyste
>>
>> Camptocamp France SAS
>> Savoie Technolac, BP 352
>> 73377 Le Bourget du Lac, Cedex
>>
>> Tel : 00 33 4 79 44 44 93
>> Mail : pierre.giraud at camptocamp.com
>> http://www.camptocamp.com
>> _______________________________________________
>> Dev mailing list
>> Dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/openlayers-dev
>>
>


More information about the Dev mailing list