I am making a single page app where in the second view I need to display the Google map. I am using the Google maps API where the map object is to be created.
Here's a good example of using Knockout JS and Google Maps. Hopefully, it will help get you on the right track.
http://www.codeproject.com/Articles/387626/BikeInCity-2-KnockoutJS-JQuery-Google-Maps