I'm trying to put an OpenLayers map inside a draggable(); div. The issue is that when I try to drag the map, all the containers drag too.

Any ideas?

Example: http://jsfiddle.net/0njnady6/

  • Welcome to GIS.SE. Not without seeing some code, no, ideally a complete, minimal example illustrating your issue in jsFiddle or similar. – John Powell Jul 7 '15 at 7:52
  • Sure, added to main post. – jonyjm Jul 7 '15 at 13:44

Already figured out:

When you initialize the draggable you can set the element where you dont want to star dragging:

    cancel: '#map'

JSFiddle: http://jsfiddle.net/hbyvynLn/

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.