In the first playground example, a basic map is set up with standard behaviours enabled.
Behaviour is effectively a simple collection of standard components. This includes such things as dragging, double clicking, zooming and so on.
see: http://api.maps.nokia.com/2.1.1/apir....Behavior.html .
To remove the dragging component you could either replace the standard Behaviour with the individual components, or remove individual components:
Code:
map.removeComponent(map.getComponentById("panning.Drag"));
The disableDrag() method will stop draggable objects from responding to drag events and moving across the map, not stop the dragability behaviour of the map itself. It is typically used to make draggable markers into static markers.
If you add the following line at 150 in the mapObjects example http://api.maps.nokia.com/2.1.1/play...apobjectevents
Code:
imageMarker.disableDrag();
The image of the Greek temple will no longer be able to be moved around the map.