var MapService=function() {
MapService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
MapService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return MapService._staticInstance.get_path();},
EditAbutters:function(poly,selectedPropertyID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'EditAbutters',false,{poly:poly,selectedPropertyID:selectedPropertyID},succeededCallback,failedCallback,userContext); },
FindAbutters:function(bufferDistance,selectedPropertyID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FindAbutters',false,{bufferDistance:bufferDistance,selectedPropertyID:selectedPropertyID},succeededCallback,failedCallback,userContext); },
FindCondos:function(selectedPropertyID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'FindCondos',false,{selectedPropertyID:selectedPropertyID},succeededCallback,failedCallback,userContext); },
GetExtentForHighlightedProperties:function(appState,scaleFactor,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetExtentForHighlightedProperties',false,{appState:appState,scaleFactor:scaleFactor},succeededCallback,failedCallback,userContext); },
GetExtentForParcels:function(parcelIDs,scaleFactor,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetExtentForParcels',false,{parcelIDs:parcelIDs,scaleFactor:scaleFactor},succeededCallback,failedCallback,userContext); },
GetExtentForProperty:function(propertyID,scaleFactor,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GetExtentForProperty',false,{propertyID:propertyID,scaleFactor:scaleFactor},succeededCallback,failedCallback,userContext); },
GenerateInteractiveLegend:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GenerateInteractiveLegend',false,{},succeededCallback,failedCallback,userContext); },
GenerateUtilityLegend:function(succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'GenerateUtilityLegend',false,{},succeededCallback,failedCallback,userContext); },
MapClick:function(coord,pixelSize,selectedPropertyID,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'MapClick',false,{coord:coord,pixelSize:pixelSize,selectedPropertyID:selectedPropertyID},succeededCallback,failedCallback,userContext); },
MapIdentify:function(coord,pixelSize,appState,succeededCallback, failedCallback, userContext) {
return this._invoke(this._get_path(), 'MapIdentify',false,{coord:coord,pixelSize:pixelSize,appState:appState},succeededCallback,failedCallback,userContext); }}
MapService.registerClass('MapService',Sys.Net.WebServiceProxy);
MapService._staticInstance = new MapService();
MapService.set_path = function(value) { MapService._staticInstance.set_path(value); }
MapService.get_path = function() { return MapService._staticInstance.get_path(); }
MapService.set_timeout = function(value) { MapService._staticInstance.set_timeout(value); }
MapService.get_timeout = function() { return MapService._staticInstance.get_timeout(); }
MapService.set_defaultUserContext = function(value) { MapService._staticInstance.set_defaultUserContext(value); }
MapService.get_defaultUserContext = function() { return MapService._staticInstance.get_defaultUserContext(); }
MapService.set_defaultSucceededCallback = function(value) { MapService._staticInstance.set_defaultSucceededCallback(value); }
MapService.get_defaultSucceededCallback = function() { return MapService._staticInstance.get_defaultSucceededCallback(); }
MapService.set_defaultFailedCallback = function(value) { MapService._staticInstance.set_defaultFailedCallback(value); }
MapService.get_defaultFailedCallback = function() { return MapService._staticInstance.get_defaultFailedCallback(); }
MapService.set_path("/PittsfieldMA/Services/MapService.svc");
MapService.EditAbutters= function(poly,selectedPropertyID,onSuccess,onFailed,userContext) {MapService._staticInstance.EditAbutters(poly,selectedPropertyID,onSuccess,onFailed,userContext); }
MapService.FindAbutters= function(bufferDistance,selectedPropertyID,onSuccess,onFailed,userContext) {MapService._staticInstance.FindAbutters(bufferDistance,selectedPropertyID,onSuccess,onFailed,userContext); }
MapService.FindCondos= function(selectedPropertyID,onSuccess,onFailed,userContext) {MapService._staticInstance.FindCondos(selectedPropertyID,onSuccess,onFailed,userContext); }
MapService.GetExtentForHighlightedProperties= function(appState,scaleFactor,onSuccess,onFailed,userContext) {MapService._staticInstance.GetExtentForHighlightedProperties(appState,scaleFactor,onSuccess,onFailed,userContext); }
MapService.GetExtentForParcels= function(parcelIDs,scaleFactor,onSuccess,onFailed,userContext) {MapService._staticInstance.GetExtentForParcels(parcelIDs,scaleFactor,onSuccess,onFailed,userContext); }
MapService.GetExtentForProperty= function(propertyID,scaleFactor,onSuccess,onFailed,userContext) {MapService._staticInstance.GetExtentForProperty(propertyID,scaleFactor,onSuccess,onFailed,userContext); }
MapService.GenerateInteractiveLegend= function(onSuccess,onFailed,userContext) {MapService._staticInstance.GenerateInteractiveLegend(onSuccess,onFailed,userContext); }
MapService.GenerateUtilityLegend= function(onSuccess,onFailed,userContext) {MapService._staticInstance.GenerateUtilityLegend(onSuccess,onFailed,userContext); }
MapService.MapClick= function(coord,pixelSize,selectedPropertyID,onSuccess,onFailed,userContext) {MapService._staticInstance.MapClick(coord,pixelSize,selectedPropertyID,onSuccess,onFailed,userContext); }
MapService.MapIdentify= function(coord,pixelSize,appState,onSuccess,onFailed,userContext) {MapService._staticInstance.MapIdentify(coord,pixelSize,appState,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('AppGeo.Geo');
if (typeof(AppGeo.Geo.Polygon) === 'undefined') {
AppGeo.Geo.Polygon=gtc("Polygon:http://schemas.datacontract.org/2004/07/AppGeo.Geo");
AppGeo.Geo.Polygon.registerClass('AppGeo.Geo.Polygon');
}
if (typeof(AppGeo.Geo.Geometry) === 'undefined') {
AppGeo.Geo.Geometry=gtc("Geometry:http://schemas.datacontract.org/2004/07/AppGeo.Geo");
AppGeo.Geo.Geometry.registerClass('AppGeo.Geo.Geometry');
}
if (typeof(AppGeo.Geo.LineString) === 'undefined') {
AppGeo.Geo.LineString=gtc("LineString:http://schemas.datacontract.org/2004/07/AppGeo.Geo");
AppGeo.Geo.LineString.registerClass('AppGeo.Geo.LineString');
}
if (typeof(AppGeo.Geo.Coordinate) === 'undefined') {
AppGeo.Geo.Coordinate=gtc("Coordinate:http://schemas.datacontract.org/2004/07/AppGeo.Geo");
AppGeo.Geo.Coordinate.registerClass('AppGeo.Geo.Coordinate');
}
Type.registerNamespace('AppGeo.Web.Extensions.UI');
if (typeof(AppGeo.Web.Extensions.UI.ListItemData) === 'undefined') {
AppGeo.Web.Extensions.UI.ListItemData=gtc("ListItemData:http://schemas.datacontract.org/2004/07/AppGeo.Web.Extensions.UI");
AppGeo.Web.Extensions.UI.ListItemData.registerClass('AppGeo.Web.Extensions.UI.ListItemData');
}
if (typeof(AppState) === 'undefined') {
var AppState=gtc("AppState:http://schemas.datacontract.org/2004/07/");
AppState.registerClass('AppState');
}
if (typeof(AppGeo.Geo.Envelope) === 'undefined') {
AppGeo.Geo.Envelope=gtc("Envelope:http://schemas.datacontract.org/2004/07/AppGeo.Geo");
AppGeo.Geo.Envelope.registerClass('AppGeo.Geo.Envelope');
}
if (typeof(AppGeo.Web.Extensions.UI.LegendItemData) === 'undefined') {
AppGeo.Web.Extensions.UI.LegendItemData=gtc("LegendItemData:http://schemas.datacontract.org/2004/07/AppGeo.Web.Extensions.UI");
AppGeo.Web.Extensions.UI.LegendItemData.registerClass('AppGeo.Web.Extensions.UI.LegendItemData');
}
Type.registerNamespace('AppGeo.Clients');
if (typeof(AppGeo.Clients.FeatureData) === 'undefined') {
AppGeo.Clients.FeatureData=gtc("FeatureData:http://schemas.datacontract.org/2004/07/AppGeo.Clients");
AppGeo.Clients.FeatureData.registerClass('AppGeo.Clients.FeatureData');
}
if (typeof(AppGeo.Clients.FeatureRow) === 'undefined') {
AppGeo.Clients.FeatureRow=gtc("FeatureRow:http://schemas.datacontract.org/2004/07/AppGeo.Clients");
AppGeo.Clients.FeatureRow.registerClass('AppGeo.Clients.FeatureRow');
}
if (typeof(AppGeo.Web.Extensions.UI.LegendCheckMode) === 'undefined') {
AppGeo.Web.Extensions.UI.LegendCheckMode = function() { throw Error.invalidOperation(); }
AppGeo.Web.Extensions.UI.LegendCheckMode.prototype = {None: 0,Empty: 1,Checked: 2,Unchecked: 3}
AppGeo.Web.Extensions.UI.LegendCheckMode.registerEnum('AppGeo.Web.Extensions.UI.LegendCheckMode', true);
}
if (typeof(AppGeo.Web.Extensions.UI.LegendExpandMode) === 'undefined') {
AppGeo.Web.Extensions.UI.LegendExpandMode = function() { throw Error.invalidOperation(); }
AppGeo.Web.Extensions.UI.LegendExpandMode.prototype = {None: 0,Empty: 1,Expanded: 2,Collapsed: 3}
AppGeo.Web.Extensions.UI.LegendExpandMode.registerEnum('AppGeo.Web.Extensions.UI.LegendExpandMode', true);
}
