var GService=function() {
GService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
GService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return GService._staticInstance.get_path();},
IsUpdateFinished:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'IsUpdateFinished',false,{},succeededCallback,failedCallback,userContext); },
AddPoint:function(pID,pLatitude,pLongitude,pAltitude,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddPoint',false,{pID:pID,pLatitude:pLatitude,pLongitude:pLongitude,pAltitude:pAltitude},succeededCallback,failedCallback,userContext); },
AddPointToPolyLine:function(lineID,pLatitude,pLongitude,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddPointToPolyLine',false,{lineID:lineID,pLatitude:pLatitude,pLongitude:pLongitude},succeededCallback,failedCallback,userContext); },
AddCoordsToPolyLine:function(lineID,points,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddCoordsToPolyLine',false,{lineID:lineID,points:points},succeededCallback,failedCallback,userContext); },
AddPointToPolyLineWithAlt:function(lineID,pLatitude,pLongitude,pAltitude,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'AddPointToPolyLineWithAlt',false,{lineID:lineID,pLatitude:pLatitude,pLongitude:pLongitude,pAltitude:pAltitude},succeededCallback,failedCallback,userContext); },
UpdateLineNode:function(lineIndex,pId,pLatitude,pLongitude,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateLineNode',false,{lineIndex:lineIndex,pId:pId,pLatitude:pLatitude,pLongitude:pLongitude},succeededCallback,failedCallback,userContext); },
RemovePointFromPolyLine:function(lineID,pointIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RemovePointFromPolyLine',false,{lineID:lineID,pointIndex:pointIndex},succeededCallback,failedCallback,userContext); },
ClearMap:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'ClearMap',false,{},succeededCallback,failedCallback,userContext); },
EmptySession:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'EmptySession',false,{},succeededCallback,failedCallback,userContext); },
SetPointCoordinates:function(pID,pLatitude,pLongitude,pAltitude,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SetPointCoordinates',false,{pID:pID,pLatitude:pLatitude,pLongitude:pLongitude,pAltitude:pAltitude},succeededCallback,failedCallback,userContext); },
UpdateLineNodeWithGooglePoint:function(lineIndex,newPoint,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'UpdateLineNodeWithGooglePoint',false,{lineIndex:lineIndex,newPoint:newPoint},succeededCallback,failedCallback,userContext); },
RecenterMapComplete:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'RecenterMapComplete',false,{},succeededCallback,failedCallback,userContext); },
GetGoogleObject:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetGoogleObject',false,{},succeededCallback,failedCallback,userContext); },
GetOptimizedGoogleObject:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetOptimizedGoogleObject',false,{},succeededCallback,failedCallback,userContext); },
SaveGoogleObject:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveGoogleObject',false,{},succeededCallback,failedCallback,userContext); },
SaveGoogleObjectREST:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'SaveGoogleObjectREST',false,{},succeededCallback,failedCallback,userContext); },
LoadGoogleObject:function(objectid,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'LoadGoogleObject',false,{objectid:objectid},succeededCallback,failedCallback,userContext); },
GetPolylineElevation:function(lineIndex,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetPolylineElevation',false,{lineIndex:lineIndex},succeededCallback,failedCallback,userContext); },
GetElevation:function(lat,lon,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetElevation',false,{lat:lat,lon:lon},succeededCallback,failedCallback,userContext); }}
GService.registerClass('GService',Sys.Net.WebServiceProxy);
GService._staticInstance = new GService();
GService.set_path = function(value) { GService._staticInstance.set_path(value); }
GService.get_path = function() { return GService._staticInstance.get_path(); }
GService.set_timeout = function(value) { GService._staticInstance.set_timeout(value); }
GService.get_timeout = function() { return GService._staticInstance.get_timeout(); }
GService.set_defaultUserContext = function(value) { GService._staticInstance.set_defaultUserContext(value); }
GService.get_defaultUserContext = function() { return GService._staticInstance.get_defaultUserContext(); }
GService.set_defaultSucceededCallback = function(value) { GService._staticInstance.set_defaultSucceededCallback(value); }
GService.get_defaultSucceededCallback = function() { return GService._staticInstance.get_defaultSucceededCallback(); }
GService.set_defaultFailedCallback = function(value) { GService._staticInstance.set_defaultFailedCallback(value); }
GService.get_defaultFailedCallback = function() { return GService._staticInstance.get_defaultFailedCallback(); }
GService.set_path("/Modules/MapEdit/GService.asmx");
GService.IsUpdateFinished= function(onSuccess,onFailed,userContext) {GService._staticInstance.IsUpdateFinished(onSuccess,onFailed,userContext); }
GService.AddPoint= function(pID,pLatitude,pLongitude,pAltitude,onSuccess,onFailed,userContext) {GService._staticInstance.AddPoint(pID,pLatitude,pLongitude,pAltitude,onSuccess,onFailed,userContext); }
GService.AddPointToPolyLine= function(lineID,pLatitude,pLongitude,onSuccess,onFailed,userContext) {GService._staticInstance.AddPointToPolyLine(lineID,pLatitude,pLongitude,onSuccess,onFailed,userContext); }
GService.AddCoordsToPolyLine= function(lineID,points,onSuccess,onFailed,userContext) {GService._staticInstance.AddCoordsToPolyLine(lineID,points,onSuccess,onFailed,userContext); }
GService.AddPointToPolyLineWithAlt= function(lineID,pLatitude,pLongitude,pAltitude,onSuccess,onFailed,userContext) {GService._staticInstance.AddPointToPolyLineWithAlt(lineID,pLatitude,pLongitude,pAltitude,onSuccess,onFailed,userContext); }
GService.UpdateLineNode= function(lineIndex,pId,pLatitude,pLongitude,onSuccess,onFailed,userContext) {GService._staticInstance.UpdateLineNode(lineIndex,pId,pLatitude,pLongitude,onSuccess,onFailed,userContext); }
GService.RemovePointFromPolyLine= function(lineID,pointIndex,onSuccess,onFailed,userContext) {GService._staticInstance.RemovePointFromPolyLine(lineID,pointIndex,onSuccess,onFailed,userContext); }
GService.ClearMap= function(onSuccess,onFailed,userContext) {GService._staticInstance.ClearMap(onSuccess,onFailed,userContext); }
GService.EmptySession= function(onSuccess,onFailed,userContext) {GService._staticInstance.EmptySession(onSuccess,onFailed,userContext); }
GService.SetPointCoordinates= function(pID,pLatitude,pLongitude,pAltitude,onSuccess,onFailed,userContext) {GService._staticInstance.SetPointCoordinates(pID,pLatitude,pLongitude,pAltitude,onSuccess,onFailed,userContext); }
GService.UpdateLineNodeWithGooglePoint= function(lineIndex,newPoint,onSuccess,onFailed,userContext) {GService._staticInstance.UpdateLineNodeWithGooglePoint(lineIndex,newPoint,onSuccess,onFailed,userContext); }
GService.RecenterMapComplete= function(onSuccess,onFailed,userContext) {GService._staticInstance.RecenterMapComplete(onSuccess,onFailed,userContext); }
GService.GetGoogleObject= function(onSuccess,onFailed,userContext) {GService._staticInstance.GetGoogleObject(onSuccess,onFailed,userContext); }
GService.GetOptimizedGoogleObject= function(onSuccess,onFailed,userContext) {GService._staticInstance.GetOptimizedGoogleObject(onSuccess,onFailed,userContext); }
GService.SaveGoogleObject= function(onSuccess,onFailed,userContext) {GService._staticInstance.SaveGoogleObject(onSuccess,onFailed,userContext); }
GService.SaveGoogleObjectREST= function(onSuccess,onFailed,userContext) {GService._staticInstance.SaveGoogleObjectREST(onSuccess,onFailed,userContext); }
GService.LoadGoogleObject= function(objectid,onSuccess,onFailed,userContext) {GService._staticInstance.LoadGoogleObject(objectid,onSuccess,onFailed,userContext); }
GService.GetPolylineElevation= function(lineIndex,onSuccess,onFailed,userContext) {GService._staticInstance.GetPolylineElevation(lineIndex,onSuccess,onFailed,userContext); }
GService.GetElevation= function(lat,lon,onSuccess,onFailed,userContext) {GService._staticInstance.GetElevation(lat,lon,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Geo.Transport.Graphics');
if (typeof(Geo.Transport.Graphics.GooglePoint) === 'undefined') {
Geo.Transport.Graphics.GooglePoint=gtc("Geo.Transport.Graphics.GooglePoint");
Geo.Transport.Graphics.GooglePoint.registerClass('Geo.Transport.Graphics.GooglePoint');
}
if (typeof(Geo.Transport.Graphics.GoogleObject) === 'undefined') {
Geo.Transport.Graphics.GoogleObject=gtc("Geo.Transport.Graphics.GoogleObject");
Geo.Transport.Graphics.GoogleObject.registerClass('Geo.Transport.Graphics.GoogleObject');
}
