views:

29

answers:

0

Hi, I would like to extend google.maps.Map (v3). I have read that the Map-Class implements the MVCObject(). So what i have already done is the following code:

function MyMap(id) {
  google.maps.Map.call(this, document.getElementById(id));
}

MyMap.prototype = new google.maps.MVCObject();

Is this the correct way? thx