function RaveGeoWebMap(_1){
this.delegate=null;
this.params=_1;
var _2=_1.callback;
if(_2){
_1.callback={delegate:_2,webmap:this,mapLoaded:function(_3){
this.webmap.delegate=_3;
if(this.delegate&&this.delegate.mapLoaded){
this.delegate.mapLoaded(this.webmap);
}
}};
if(_2.symbolClicked){
_1.callback.symbolClicked=function(_4,id){
this.delegate.symbolClicked(this.webmap,id);
};
}
if(_2.mapClicked){
_1.callback.mapClicked=function(_6,x,y){
this.delegate.mapClicked(this.webmap,x,y);
};
}
if(_2.interactionEnded){
_1.callback.interactionEnded=function(_9){
this.delegate.interactionEnded(this.webmap);
};
}
if(_2.errorOccurred){
_1.callback.errorOccurred=function(_a,_b){
this.delegate.errorOccurred(_a,_b);
};
}
}
if(window.RaveGeoAppletMap){
var _c=RaveGeoUtils.isJavaEnabled();
if(_c){
try{
document.getElementById(_1.appletId).isInitializedOk();
}
catch(e){
_c=false;
}
}
if(_c){
new RaveGeoAppletMap(_1);
}else{
new RaveGeoTiledMap(_1);
}
}else{
if(window.RaveGeoTiledMap){
new RaveGeoTiledMap(_1);
}else{
throw new Error("Can not show map.");
}
}
}
RaveGeoWebMap.prototype.implementation=function(){
if(this.delegate instanceof window.RaveGeoAppletMap){
return "RaveGeoAppletMap";
}else{
return "RaveGeoTiledMap";
}
};
RaveGeoWebMap.prototype.getCenterX=function(){
return this.delegate.getCenterX();
};
RaveGeoWebMap.prototype.getCenterY=function(){
return this.delegate.getCenterY();
};
RaveGeoWebMap.prototype.getScale=function(){
return this.delegate.getScale();
};
RaveGeoWebMap.prototype.getGeoBounds=function(){
return this.delegate.getGeoBounds();
};
RaveGeoWebMap.prototype.getRecommendedScales=function(){
return this.delegate.getRecommendedScales();
};
RaveGeoWebMap.prototype.setViewArea=function(x,y,_f){
this.delegate.setViewArea(x,y,_f);
};
RaveGeoWebMap.prototype.clearSymbols=function(){
this.delegate.clearSymbols();
};
RaveGeoWebMap.prototype.addSymbol=function(sym,_11){
this.delegate.addSymbol(sym,_11);
};
RaveGeoWebMap.prototype.redraw=function(){
this.delegate.redraw();
};
RaveGeoWebMap.prototype.getSymbolIds=function(_12){
return this.delegate.getSymbolIds(_12);
};
RaveGeoWebMap.prototype.getSymbol=function(id){
return this.delegate.getSymbol(id);
};
RaveGeoWebMap.prototype.removeSymbol=function(id,_15){
this.delegate.removeSymbol(id,_15);
};
RaveGeoWebMap.prototype.zoom=function(_16){
this.delegate.zoom(_16);
};
RaveGeoWebMap.prototype.zoomTo=function(_17){
this.delegate.zoomTo(_17);
};
RaveGeoWebMap.prototype.pan=function(dx,dy){
this.delegate.pan(dx,dy);
};
RaveGeoWebMap.prototype.moveTo=function(x,y,_1c){
this.delegate.moveTo(x,y,_1c);
};
RaveGeoWebMap.prototype.showSymbols=function(_1d){
this.delegate.showSymbols(_1d);
};
RaveGeoWebMap.prototype.highlightSymbol=function(id,_1f){
this.delegate.highlightSymbol(id,_1f);
};
RaveGeoWebMap.prototype.resize=function(_20,_21){
this.delegate.resize(_20,_21);
};
RaveGeoWebMap.initiateCreation=function(_22){
new RaveGeoWebMap(_22);
};
RaveGeoWebMap.majorVersion=1;
RaveGeoWebMap.minorVersion=0;

