
function RClientGeocoder(){GClientGeocoder.apply(this,arguments);}
function RMapTypeControl(){GMapTypeControl.apply(this,arguments);}
function RSmallMapControl(){GSmallMapControl.apply(this,arguments);}
function RCoord(lat,lng){GLatLng.apply(this,arguments);}
function RCoordBounds(){GLatLngBounds.apply(this,arguments);}
function RIcon(icon,image){GIcon.apply(this,arguments);}
function RSize(width,height){GSize.apply(this,arguments);}
function RPoint(x,y){GPoint.apply(this,arguments);}
function RPolyline(points,color,weight,opacity){GPolyline.apply(this,arguments);}
function RPolygon(points,strokeColor,strokeWidth,strokeOpacity,fillColor,fillOpacity){GPolygon.apply(this,arguments);}
function RMarker(coord,object){GMarker.apply(this,arguments);}
function GoogleMapAdapter(mapElemId){REvent=GEvent;R_DEFAULT_ICON=G_DEFAULT_ICON;RMapTypeControl.prototype=new GMapTypeControl();RSmallMapControl.prototype=new GSmallMapControl();RSize.prototype=new GSize(10,10);RPoint.prototype=new GPoint(10,10);RIcon.prototype=new GIcon();RCoord.prototype=new GLatLng(51,10);RClientGeocoder.prototype=new GClientGeocoder();RCoordBounds.prototype=new GLatLngBounds();RPolyline.prototype=new GPolyline([]);RPolygon.prototype=new GPolygon();RMarker.prototype=new GMarker(new GLatLng(0,0));if(App.findBy('#'+mapElemId).length>0){var mapdiv=document.getElementById(mapElemId);debug('GoogleMapAdapter for: '+mapElemId);this._map=new GMap2(mapdiv);}else{debug('GoogleMapAdapter not initialized mapElem '+mapElemId+' not found.');}}
function GoogleMapAdapter_checkResize(){this._map.checkResize();}
function GoogleMapAdapter_setZoom(zoomLevel){this._map.setZoom(zoomLevel);}
function GoogleMapAdapter_addOverlay(overlay){this._map.addOverlay(overlay);}
function GoogleMapAdapter_addControl(control){this._map.addControl(control);}
function GoogleMapAdapter_setCenter(coord,zoomLevel){this._map.setCenter(coord,zoomLevel);}
function GoogleMapAdapter_setMapType(mapType){this._map.setMapType(mapType);}
function GoogleMapAdapter_clearOverlays(){this._map.clearOverlays();}
function GoogleMapAdapter_getBoundsZoomLevel(bounds){return this._map.getBoundsZoomLevel(bounds);}
function GoogleMapAdapter_showMap(){debug('show google map');}
function GoogleMapAdapter_destroyMap(){try{debug('destroying google map');GUnload();}catch(e){}}
GoogleMapAdapter.prototype.addControl=GoogleMapAdapter_addControl;GoogleMapAdapter.prototype.setCenter=GoogleMapAdapter_setCenter;GoogleMapAdapter.prototype.addOverlay=GoogleMapAdapter_addOverlay;GoogleMapAdapter.prototype.checkResize=GoogleMapAdapter_checkResize;GoogleMapAdapter.prototype.setZoom=GoogleMapAdapter_setZoom;GoogleMapAdapter.prototype.clearOverlays=GoogleMapAdapter_clearOverlays;GoogleMapAdapter.prototype.getBoundsZoomLevel=GoogleMapAdapter_getBoundsZoomLevel;GoogleMapAdapter.prototype.setMapType=GoogleMapAdapter_setMapType;GoogleMapAdapter.prototype.showMap=GoogleMapAdapter_showMap;GoogleMapAdapter.prototype.destroyMap=GoogleMapAdapter_destroyMap;