[OpenLayers-Users] this.div.appendChild is not a function
OpenLayers.js (line 897)
Jan Henrik Øverland
janhenrik.overland at gmail.com
Thu May 20 13:02:48 EDT 2010
It was a jQuery $() problem. The noConflict method solved it.
<script type="text/javascript" src="jquery-1.4.2.min.js"></script>
<script type="text/javascript">$.noConflict();</script>
On Thu, May 20, 2010 at 3:42 PM, Bart van den Eijnden (OSGIS) <
bartvde at osgis.nl> wrote:
> Hi,
>
> can you show us a *minimal* example to reproduce your issue?
>
> Best regards,
> Bart
>
> > Using OL 2.9.1 did not solve it.
> >
> >
> > On Thu, May 20, 2010 at 2:30 PM, Jan Henrik Øverland <
> > janhenrik.overland at gmail.com> wrote:
> >
> >> Hi, Firebug reports: this.div.appendChild is not a function
> >> OpenLayers.js
> >> (line 897) -> this.div.appendChild(this.element);
> >>
> >> By using alerts I can see that this happens when the overviewmap control
> >> is
> >> added to the map:
> >>
> >> MAP.addControl(new OpenLayers.Control.OverviewMap({
> >> div: $('overviewmap'),
> >> size: new OpenLayers.Size(188, 97),
> >> minRectSize: 0
> >> }));
> >>
> >> The mouse position control has stopped working as well (I comment out
> >> the
> >> overviewmap and get no errors).
> >>
> >> This has worked perfectly for a long time, and I didn't change any libs
> >> recently. Still using OL 2.8. What could cause this error?
> >>
> > _______________________________________________
> > Users mailing list
> > Users at openlayers.org
> > http://openlayers.org/mailman/listinfo/users
> >
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100520/a39f52ac/attachment.html
More information about the Users
mailing list