Activating/deactivating navigation and spatial constraint control as appropriate.
No longer display the spatial constraint control on the map, plus some refactoring.