I want to get parameter from function
function initialize(myPin,myCen) {
var myLatlng = new google.maps.LatLng(myPin);
var mapOptions = { center: new g
The google.maps.event.addDomListener function takes a function pointer as its argument. You can use a pointer to an anonymous function:
google.maps.event.addDomListener(window, 'load', function() {
initialize(myPin,MyCen)
});
you can try like this
window.onload=function() {
google.maps.event.initialize(myPin,MyCen);
}