Issue 763

The vector layer is now placed on the top of the layer order after any layers additions.
Additional checking for layer.map.spatialConstraintControl as there were errors occurring