1

In OpenLayers (OL) 3.15.0 I declare a popup contains like :

popup = $(eval('<div id="popup"><p>My contain</p></div>'));

And after, I declare my overly with this popup element :

var overlay_popup = new ol.Overlay({
                        element: popup
                    });

On OL 3.7.0 I've any problem all was okay.

But now with this new version of OL (3.15.0) Firebug say :

TypeError: Argument 1 of Node.appendChild does not implement interface Node.

What can I do for working ?

1

You must declare this : element: popup[0]

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.