Add missing 'undefined' in jsdoc type definition
Scale the map canvas layer by window.devicePixelRatio
Scale the shape image by window.devicePixelRatio