Draw sincronizzation to GMap2 method access

Hi,
I need to call a “setCenter” method of google maps API after the canvas drawing. The problem is that i draw the components a the end of GUI load an then I don’t know when the GMap2 component will be available in “setCenter” method. The I set and reset an observer on draw method to be sure that my call will be “registered” and called after draw call.
Is this the best approach for this kind of synchronization problem?

This is my Google Maps Canvas Code code:

ClassFactory.defineClass("GoogleMapPanel","Canvas").addProperties({
	overflow: "visible",
    redrawOnResize:true,
    zIndex:0,
    gmap:"",
    getInnerHTML : function () {
        return "<DIV STYLE='width:100%;height:100%' ID=" + this.getID() + "_gmap></DIV>";
    },
	draw: function() {
		 this.Super("draw",arguments);			
		 this.loadMap();
		 return this;
	},
	loadMap: function() {
		if (window.GBrowserIsCompatible != null && GBrowserIsCompatible())
		{
			var div = document.getElementById(this.getID() + "_gmap");
			this.gmap = new GMap2(div);
			this.gmap.enableScrollWheelZoom();
			this.gmap.addControl(new GSmallMapControl());
			this.gmap.setCenter(new GLatLng(39.739167, -104.984167), 10);
		}
	},	
	setCenter: function(lat, long, zoom){
		if(this.isDrawn()){
			alert("Draw");
			setCenter2(lat, long, zoom);
		}else{
		 	alert("notDraw");
		 	this.observe(this, "draw", "observer.setCenter2("+lat+","+long+","+zoom+")");
		}
	},
	setCenter2: function(lat, long, zoom){
		 this.gmap.setCenter(new GLatLng(lat, long), zoom);		
		 this.ignore(this, "draw");
	} 
});

And this is my calling code

isc.GoogleMapPanel.create({
	ID: "googleMaps",
	width: "100%",
	height: "250",
	border:"1px solid gray"
});
googleMaps.setCenter(43.060326,12.436523);