[OpenLayers-Users] jquey & open layers

Giuseppe Naponiello beppenapo at gmail.com
Tue Apr 6 09:52:08 EDT 2010


Thanks to all,
it was a very stupid error about library path syntax

Now it works fine.

;) -beppe-

2010/4/6 Gilles Bassière <gilles.bassiere at makina-corpus.com>

> beppe wrote:
> > Hi all,
> > I'm using ol with jquery and I've seen that if I include jquery library
> > in my page, controls disappear (panzoom, mouseposition ...); if I remove
> > the library it works.
> >
>
> Beppe,
>
> jQuery use $ as an alias for the jQuery object. In OpenLayers, $ is a
> wrapper around document.getElementById(). Obviously, this might lead to
> conflicts. Tweaking the script loading order may solve the problem (as
> already suggested) but you can also use the jQuery.noConflict function
> which was designed for this case:
> http://api.jquery.com/jQuery.noConflict/
>
> Regards
> --
> Gilles Bassière - MAKINA CORPUS
> http://www.makina-corpus.com
>



-- 
-beppe-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100406/38d50797/attachment.html


More information about the Users mailing list