Type.registerNamespace('services.dev.commerce.terradon.com');
services.dev.commerce.terradon.com.ajaxmapservice=function() {
services.dev.commerce.terradon.com.ajaxmapservice.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
services.dev.commerce.terradon.com.ajaxmapservice.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.get_path();},
CreateMap:function(mapId,succeededCallback, failedCallback, userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'CreateMap',false,{mapId:mapId},succeededCallback,failedCallback,userContext); },
GetMap:function(mapId,succeededCallback, failedCallback, userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetMap',false,{mapId:mapId},succeededCallback,failedCallback,userContext); },
RenderMapTile:function(mapId,width,height,tileX,tileY,zoomLevel,succeededCallback, failedCallback, userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="width" type="Number">System.Int32</param>
/// <param name="height" type="Number">System.Int32</param>
/// <param name="tileX" type="Number">System.Int32</param>
/// <param name="tileY" type="Number">System.Int32</param>
/// <param name="zoomLevel" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'RenderMapTile',false,{mapId:mapId,width:width,height:height,tileX:tileX,tileY:tileY,zoomLevel:zoomLevel},succeededCallback,failedCallback,userContext); },
GetLayers:function(mapId,succeededCallback, failedCallback, userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetLayers',false,{mapId:mapId},succeededCallback,failedCallback,userContext); },
GetLayer:function(mapId,index,succeededCallback, failedCallback, userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="index" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetLayer',false,{mapId:mapId,index:index},succeededCallback,failedCallback,userContext); },
UpdateLayer:function(mapId,layerIndex,mapLayer,succeededCallback, failedCallback, userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="layerIndex" type="Number">System.Int32</param>
/// <param name="mapLayer" type="MapService.MapLayer">VESharpMapService.VirtualEarth.MapLayer</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'UpdateLayer',false,{mapId:mapId,layerIndex:layerIndex,mapLayer:mapLayer},succeededCallback,failedCallback,userContext); },
AddLayer:function(mapId,mapLayer,succeededCallback, failedCallback, userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="mapLayer" type="MapService.MapLayer">VESharpMapService.VirtualEarth.MapLayer</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'AddLayer',false,{mapId:mapId,mapLayer:mapLayer},succeededCallback,failedCallback,userContext); },
InsertLayer:function(mapId,index,mapLayer,succeededCallback, failedCallback, userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="index" type="Number">System.Int32</param>
/// <param name="mapLayer" type="MapService.MapLayer">VESharpMapService.VirtualEarth.MapLayer</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'InsertLayer',false,{mapId:mapId,index:index,mapLayer:mapLayer},succeededCallback,failedCallback,userContext); },
RemoveLayer:function(mapId,layerIndex,succeededCallback, failedCallback, userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="layerIndex" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'RemoveLayer',false,{mapId:mapId,layerIndex:layerIndex},succeededCallback,failedCallback,userContext); },
ClearLayers:function(mapId,succeededCallback, failedCallback, userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'ClearLayers',false,{mapId:mapId},succeededCallback,failedCallback,userContext); },
MoveLayerUp:function(mapId,layerIndex,succeededCallback, failedCallback, userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="layerIndex" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'MoveLayerUp',false,{mapId:mapId,layerIndex:layerIndex},succeededCallback,failedCallback,userContext); },
MoveLayerDown:function(mapId,layerIndex,succeededCallback, failedCallback, userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="layerIndex" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'MoveLayerDown',false,{mapId:mapId,layerIndex:layerIndex},succeededCallback,failedCallback,userContext); },
Identify:function(mapId,latitude,longitude,succeededCallback, failedCallback, userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="latitude" type="Number">System.Double</param>
/// <param name="longitude" type="Number">System.Double</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'Identify',false,{mapId:mapId,latitude:latitude,longitude:longitude},succeededCallback,failedCallback,userContext); },
SelectByBoundingBox:function(mapId,minLatitude,minLongitude,maxLatitude,maxLongitude,succeededCallback, failedCallback, userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="minLatitude" type="Number">System.Double</param>
/// <param name="minLongitude" type="Number">System.Double</param>
/// <param name="maxLatitude" type="Number">System.Double</param>
/// <param name="maxLongitude" type="Number">System.Double</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'SelectByBoundingBox',false,{mapId:mapId,minLatitude:minLatitude,minLongitude:minLongitude,maxLatitude:maxLatitude,maxLongitude:maxLongitude},succeededCallback,failedCallback,userContext); },
GetVersion:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetVersion',true,{},succeededCallback,failedCallback,userContext); }}
services.dev.commerce.terradon.com.ajaxmapservice.registerClass('services.dev.commerce.terradon.com.ajaxmapservice',Sys.Net.WebServiceProxy);
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance = new services.dev.commerce.terradon.com.ajaxmapservice();
services.dev.commerce.terradon.com.ajaxmapservice.set_path = function(value) {
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.set_path(value); }
services.dev.commerce.terradon.com.ajaxmapservice.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.get_path();}
services.dev.commerce.terradon.com.ajaxmapservice.set_timeout = function(value) {
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.set_timeout(value); }
services.dev.commerce.terradon.com.ajaxmapservice.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.get_timeout(); }
services.dev.commerce.terradon.com.ajaxmapservice.set_defaultUserContext = function(value) { 
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.set_defaultUserContext(value); }
services.dev.commerce.terradon.com.ajaxmapservice.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.get_defaultUserContext(); }
services.dev.commerce.terradon.com.ajaxmapservice.set_defaultSucceededCallback = function(value) { 
 services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.set_defaultSucceededCallback(value); }
services.dev.commerce.terradon.com.ajaxmapservice.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.get_defaultSucceededCallback(); }
services.dev.commerce.terradon.com.ajaxmapservice.set_defaultFailedCallback = function(value) { 
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.set_defaultFailedCallback(value); }
services.dev.commerce.terradon.com.ajaxmapservice.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.get_defaultFailedCallback(); }
services.dev.commerce.terradon.com.ajaxmapservice.set_path("/Services/AjaxMapService.svc");
services.dev.commerce.terradon.com.ajaxmapservice.CreateMap= function(mapId,onSuccess,onFailed,userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.CreateMap(mapId,onSuccess,onFailed,userContext); }
services.dev.commerce.terradon.com.ajaxmapservice.GetMap= function(mapId,onSuccess,onFailed,userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.GetMap(mapId,onSuccess,onFailed,userContext); }
services.dev.commerce.terradon.com.ajaxmapservice.RenderMapTile= function(mapId,width,height,tileX,tileY,zoomLevel,onSuccess,onFailed,userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="width" type="Number">System.Int32</param>
/// <param name="height" type="Number">System.Int32</param>
/// <param name="tileX" type="Number">System.Int32</param>
/// <param name="tileY" type="Number">System.Int32</param>
/// <param name="zoomLevel" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.RenderMapTile(mapId,width,height,tileX,tileY,zoomLevel,onSuccess,onFailed,userContext); }
services.dev.commerce.terradon.com.ajaxmapservice.GetLayers= function(mapId,onSuccess,onFailed,userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.GetLayers(mapId,onSuccess,onFailed,userContext); }
services.dev.commerce.terradon.com.ajaxmapservice.GetLayer= function(mapId,index,onSuccess,onFailed,userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="index" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.GetLayer(mapId,index,onSuccess,onFailed,userContext); }
services.dev.commerce.terradon.com.ajaxmapservice.UpdateLayer= function(mapId,layerIndex,mapLayer,onSuccess,onFailed,userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="layerIndex" type="Number">System.Int32</param>
/// <param name="mapLayer" type="MapService.MapLayer">VESharpMapService.VirtualEarth.MapLayer</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.UpdateLayer(mapId,layerIndex,mapLayer,onSuccess,onFailed,userContext); }
services.dev.commerce.terradon.com.ajaxmapservice.AddLayer= function(mapId,mapLayer,onSuccess,onFailed,userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="mapLayer" type="MapService.MapLayer">VESharpMapService.VirtualEarth.MapLayer</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.AddLayer(mapId,mapLayer,onSuccess,onFailed,userContext); }
services.dev.commerce.terradon.com.ajaxmapservice.InsertLayer= function(mapId,index,mapLayer,onSuccess,onFailed,userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="index" type="Number">System.Int32</param>
/// <param name="mapLayer" type="MapService.MapLayer">VESharpMapService.VirtualEarth.MapLayer</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.InsertLayer(mapId,index,mapLayer,onSuccess,onFailed,userContext); }
services.dev.commerce.terradon.com.ajaxmapservice.RemoveLayer= function(mapId,layerIndex,onSuccess,onFailed,userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="layerIndex" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.RemoveLayer(mapId,layerIndex,onSuccess,onFailed,userContext); }
services.dev.commerce.terradon.com.ajaxmapservice.ClearLayers= function(mapId,onSuccess,onFailed,userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.ClearLayers(mapId,onSuccess,onFailed,userContext); }
services.dev.commerce.terradon.com.ajaxmapservice.MoveLayerUp= function(mapId,layerIndex,onSuccess,onFailed,userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="layerIndex" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.MoveLayerUp(mapId,layerIndex,onSuccess,onFailed,userContext); }
services.dev.commerce.terradon.com.ajaxmapservice.MoveLayerDown= function(mapId,layerIndex,onSuccess,onFailed,userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="layerIndex" type="Number">System.Int32</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.MoveLayerDown(mapId,layerIndex,onSuccess,onFailed,userContext); }
services.dev.commerce.terradon.com.ajaxmapservice.Identify= function(mapId,latitude,longitude,onSuccess,onFailed,userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="latitude" type="Number">System.Double</param>
/// <param name="longitude" type="Number">System.Double</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.Identify(mapId,latitude,longitude,onSuccess,onFailed,userContext); }
services.dev.commerce.terradon.com.ajaxmapservice.SelectByBoundingBox= function(mapId,minLatitude,minLongitude,maxLatitude,maxLongitude,onSuccess,onFailed,userContext) {
/// <param name="mapId" type="String">System.String</param>
/// <param name="minLatitude" type="Number">System.Double</param>
/// <param name="minLongitude" type="Number">System.Double</param>
/// <param name="maxLatitude" type="Number">System.Double</param>
/// <param name="maxLongitude" type="Number">System.Double</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.SelectByBoundingBox(mapId,minLatitude,minLongitude,maxLatitude,maxLongitude,onSuccess,onFailed,userContext); }
services.dev.commerce.terradon.com.ajaxmapservice.GetVersion= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
services.dev.commerce.terradon.com.ajaxmapservice._staticInstance.GetVersion(onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('MapService');
if (typeof(MapService.Map) === 'undefined') {
MapService.Map=gtc("Map:MapService");
MapService.Map.registerClass('MapService.Map');
}
if (typeof(MapService.MapLayer) === 'undefined') {
MapService.MapLayer=gtc("MapLayer:MapService");
MapService.MapLayer.registerClass('MapService.MapLayer');
}
if (typeof(MapService.LabelStyle) === 'undefined') {
MapService.LabelStyle=gtc("LabelStyle:MapService");
MapService.LabelStyle.registerClass('MapService.LabelStyle');
}
if (typeof(MapService.Brush) === 'undefined') {
MapService.Brush=gtc("Brush:MapService");
MapService.Brush.registerClass('MapService.Brush');
}
if (typeof(MapService.HatchBrush) === 'undefined') {
MapService.HatchBrush=gtc("HatchBrush:MapService");
MapService.HatchBrush.registerClass('MapService.HatchBrush');
}
if (typeof(MapService.Color) === 'undefined') {
MapService.Color=gtc("Color:MapService");
MapService.Color.registerClass('MapService.Color');
}
if (typeof(MapService.LinearGradientBrush) === 'undefined') {
MapService.LinearGradientBrush=gtc("LinearGradientBrush:MapService");
MapService.LinearGradientBrush.registerClass('MapService.LinearGradientBrush');
}
if (typeof(MapService.PathGradientBrush) === 'undefined') {
MapService.PathGradientBrush=gtc("PathGradientBrush:MapService");
MapService.PathGradientBrush.registerClass('MapService.PathGradientBrush');
}
if (typeof(MapService.SolidBrush) === 'undefined') {
MapService.SolidBrush=gtc("SolidBrush:MapService");
MapService.SolidBrush.registerClass('MapService.SolidBrush');
}
if (typeof(MapService.TextureBrush) === 'undefined') {
MapService.TextureBrush=gtc("TextureBrush:MapService");
MapService.TextureBrush.registerClass('MapService.TextureBrush');
}
if (typeof(MapService.Pen) === 'undefined') {
MapService.Pen=gtc("Pen:MapService");
MapService.Pen.registerClass('MapService.Pen');
}
if (typeof(MapService.MapLayerStyle) === 'undefined') {
MapService.MapLayerStyle=gtc("MapLayerStyle:MapService");
MapService.MapLayerStyle.registerClass('MapService.MapLayerStyle');
}
Type.registerNamespace('System.Drawing');
if (typeof(System.Drawing.SizeF) === 'undefined') {
System.Drawing.SizeF=gtc("SizeF:http://schemas.datacontract.org/2004/07/System.Drawing");
System.Drawing.SizeF.registerClass('System.Drawing.SizeF');
}
if (typeof(System.Drawing.PointF) === 'undefined') {
System.Drawing.PointF=gtc("PointF:http://schemas.datacontract.org/2004/07/System.Drawing");
System.Drawing.PointF.registerClass('System.Drawing.PointF');
}
if (typeof(MapService.BrushType) === 'undefined') {
MapService.BrushType = function() { throw Error.invalidOperation(); }
MapService.BrushType.prototype = {SolidBrush: 1,HatchBrush: 2,TextureBrush: 3,LinearGradientBrush: 4,PathGradientBrush: 5}
MapService.BrushType.registerEnum('MapService.BrushType', true);
}
if (typeof(MapService.HatchStyle) === 'undefined') {
MapService.HatchStyle = function() { throw Error.invalidOperation(); }
MapService.HatchStyle.prototype = {Horizontal: 0,Vertical: 1,ForwardDiagonal: 2,BackwardDiagonal: 3,Cross: 4,DiagonalCross: 5,Percent05: 6,Percent10: 7,Percent20: 8,Percent25: 9,Percent30: 10,Percent40: 11,Percent50: 12,Percent60: 13,Percent70: 14,Percent75: 15,Percent80: 16,Percent90: 17,LightDownwardDiagonal: 18,LightUpwardDiagonal: 19,DarkDownwardDiagonal: 20,DarkUpwardDiagonal: 21,WideDownwardDiagonal: 22,WideUpwardDiagonal: 23,LightVertical: 24,LightHorizontal: 25,NarrowVertical: 26,NarrowHorizontal: 27,DarkVertical: 28,DarkHorizontal: 29,DashedDownwardDiagonal: 30,DashedUpwardDiagonal: 31,DashedHorizontal: 32,DashedVertical: 33,SmallConfetti: 34,LargeConfetti: 35,ZigZag: 36,Wave: 37,DiagonalBrick: 38,HorizontalBrick: 39,Weave: 40,Plaid: 41,Divot: 42,DottedGrid: 43,DottedDiamond: 44,Shingle: 45,Trellis: 46,Sphere: 47,SmallGrid: 48,SmallCheckerBoard: 49,LargeCheckerBoard: 50,OutlinedDiamond: 51,SolidDiamond: 52,LargeGrid: 4,Min: 0,Max: 4}
MapService.HatchStyle.registerEnum('MapService.HatchStyle', true);
}
if (typeof(MapService.WrapMode) === 'undefined') {
MapService.WrapMode = function() { throw Error.invalidOperation(); }
MapService.WrapMode.prototype = {Tile: 0,TileFlipX: 1,TileFlipY: 2,TileFlipXY: 3,Clamp: 4}
MapService.WrapMode.registerEnum('MapService.WrapMode', true);
}
if (typeof(MapService.PenAlignment) === 'undefined') {
MapService.PenAlignment = function() { throw Error.invalidOperation(); }
MapService.PenAlignment.prototype = {Center: 0,Inset: 1,Outset: 2,Left: 3,Right: 4}
MapService.PenAlignment.registerEnum('MapService.PenAlignment', true);
}
if (typeof(MapService.DashCap) === 'undefined') {
MapService.DashCap = function() { throw Error.invalidOperation(); }
MapService.DashCap.prototype = {Flat: 0,Round: 2,Triangle: 3}
MapService.DashCap.registerEnum('MapService.DashCap', true);
}
if (typeof(MapService.DashStyle) === 'undefined') {
MapService.DashStyle = function() { throw Error.invalidOperation(); }
MapService.DashStyle.prototype = {Solid: 0,Dash: 1,Dot: 2,DashDot: 3,DashDotDot: 4,Custom: 5}
MapService.DashStyle.registerEnum('MapService.DashStyle', true);
}
if (typeof(MapService.LineCap) === 'undefined') {
MapService.LineCap = function() { throw Error.invalidOperation(); }
MapService.LineCap.prototype = {Flat: 0,Square: 1,Round: 2,Triangle: 3,NoAnchor: 16,SquareAnchor: 17,RoundAnchor: 18,DiamondAnchor: 19,ArrowAnchor: 20,Custom: 255,AnchorMask: 240}
MapService.LineCap.registerEnum('MapService.LineCap', true);
}
if (typeof(MapService.LineJoin) === 'undefined') {
MapService.LineJoin = function() { throw Error.invalidOperation(); }
MapService.LineJoin.prototype = {Miter: 0,Bevel: 1,Round: 2,MiterClipped: 3}
MapService.LineJoin.registerEnum('MapService.LineJoin', true);
}
if (typeof(MapService.LabelStyleHorizontalAlignment) === 'undefined') {
MapService.LabelStyleHorizontalAlignment = function() { throw Error.invalidOperation(); }
MapService.LabelStyleHorizontalAlignment.prototype = {Left: 0,Right: 2,Center: 1}
MapService.LabelStyleHorizontalAlignment.registerEnum('MapService.LabelStyleHorizontalAlignment', true);
}
if (typeof(MapService.LabelStyleVerticalAlignment) === 'undefined') {
MapService.LabelStyleVerticalAlignment = function() { throw Error.invalidOperation(); }
MapService.LabelStyleVerticalAlignment.prototype = {Bottom: 0,Top: 2,Middle: 1}
MapService.LabelStyleVerticalAlignment.registerEnum('MapService.LabelStyleVerticalAlignment', true);
}
if (typeof(MapService.SmoothingMode) === 'undefined') {
MapService.SmoothingMode = function() { throw Error.invalidOperation(); }
MapService.SmoothingMode.prototype = {Invalid: -1,Default: 0,HighSpeed: 1,HighQuality: 2,None: 3,AntiAlias: 4}
MapService.SmoothingMode.registerEnum('MapService.SmoothingMode', true);
}
Type.registerNamespace('VESharpMapService.VirtualEarth');
if (typeof(VESharpMapService.VirtualEarth.LayerType) === 'undefined') {
VESharpMapService.VirtualEarth.LayerType = function() { throw Error.invalidOperation(); }
VESharpMapService.VirtualEarth.LayerType.prototype = {Undefined: 0,Point: 1,Line: 2,Polygon: 3,Raster: 4}
VESharpMapService.VirtualEarth.LayerType.registerEnum('VESharpMapService.VirtualEarth.LayerType', true);
}
