To prerender the website on the server-side, the library should abstract the window and document files.
Maybe it can be used domino (https://www.npmjs.com/package/domino) instead of actual window or document object.
SEE issue: sebholstein/angular-google-maps#896