[Google Maps API v2] Bind Google Map to Durandal View
i am trying to bing google map to durandal view but feel like i am running out of options.
-- Please help
code is below
define(function() {
var welcome = function () {
var self = this;
self.map = function initialize(view) {
//logger.log('Home View Activated', null, 'welcome', true);
var mapOptions = {
zoom: 8,
center: new google.maps.LatLng(-34.397, 150.644),
mapTypeId: google.maps.MapTypeId.ROADMAP
};
map = new google.maps.Map(document.getElementById('googleMap'), mapOptions);
google.maps.event.addDomListener(window, 'load', initialize);
}
}
}
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v2" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-maps-api+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home