Improve use of view in device-orientation example
Fix type errors in vector-layer-sld example