try{var testCommons=new MQObject();testCommons=null}catch(error){throw"You must include mqcommon.js or toolkit api script prior to mqobjects.js."}function mqIsClass(C,B,A){if(B!==null){try{B.getClassName()}catch(D){throw"InvalidClassException"}if(B.getClassName()===C){return true}else{throw"InvalidClassException"}}else{if(A){return true}}throw"NullPointerException"}function MQConstants(){this.MQDISTANCEUNITS_MILES=0;this.MQDISTANCEUNITS_KILOMETERS=1;this.MQLATLNG_RADIANS=0.01745329251994;this.MQLATLNG_INVALID=314159.265358;this.MQLATLNG_TOLERANCE=0.000001;this.MQPOINT_INVALID=32767;this.PI=3.141592653589793;this.MQSEARCHCRITERIA_MILES_PER_DEGREE_LAT=68.9;this.MQSEARCHCRITERIA_DEGREES_LAT_PER_MILE=(1/this.MQSEARCHCRITERIA_MILES_PER_DEGREE_LAT);this.DISTANCEAPPROX_MILES_PER_LATITUDE=69.170976;this.DISTANCEAPPROX_KILOMETERS_PER_MILE=1.609347;this.MQROUTETYPE_FASTEST=0;this.MQROUTETYPE_SHORTEST=1;this.MQROUTETYPE_PEDESTRIAN=2;this.MQROUTETYPE_OPTIMIZED=3;this.MQROUTETYPE_SELECT_DATASET_ONLY=4;this.MQNARRATIVETYPE_DEFAULT=0;this.MQNARRATIVETYPE_HTML=1;this.MQNARRATIVETYPE_NONE=-1;this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_LIMITED_ACCESS="Limited Access";this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_TOLL_ROAD="Toll Road";this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_FERRY="Ferry";this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_UNPAVED_ROAD="Unpaved";this.MQROUTEOPTIONS_AVOID_ATTRIBUTE_SEASONAL="Approximate seasonal closure";this.MQROUTEOPTIONS_LANGUAGE_ENGLISH="English";this.MQROUTEOPTIONS_LANGUAGE_FRENCH="French";this.MQROUTEOPTIONS_LANGUAGE_GERMAN="German";this.MQROUTEOPTIONS_LANGUAGE_ITALIAN="Italian";this.MQROUTEOPTIONS_LANGUAGE_SPANISH="Spanish";this.MQROUTEOPTIONS_LANGUAGE_DANISH="Danish";this.MQROUTEOPTIONS_LANGUAGE_DUTCH="Dutch";this.MQROUTEOPTIONS_LANGUAGE_NORWEGIAN="Norwegian";this.MQROUTEOPTIONS_LANGUAGE_SWEDISH="Swedish";this.MQROUTEOPTIONS_LANGUAGE_IBERIAN_SPANISH="Iberian Spanish";this.MQROUTEOPTIONS_LANGUAGE_BRITISH_ENGLISH="British English";this.MQROUTEOPTIONS_LANGUAGE_IBERIAN_PORTUGUESE="Iberian Portuguese";this.MQROUTERESULTSCODE_NOT_SPECIFIED=-1;this.MQROUTERESULTSCODE_SUCCESS=0;this.MQROUTERESULTSCODE_INVALID_LOCATION=1;this.MQROUTERESULTSCODE_ROUTE_FAILURE=2;this.MQROUTERESULTSCODE_NO_DATASET_FOUND=3;this.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED=-1;this.MQROUTEMATRIXRESULTSCODE_SUCCESS=0;this.MQROUTEMATRIXRESULTSCODE_INVALID_LOCATION=1;this.MQROUTEMATRIXRESULTSCODE_ROUTE_FAILURE=2;this.MQROUTEMATRIXRESULTSCODE_NO_DATASET_FOUND=3;this.MQROUTEMATRIXRESULTSCODE_INVALID_OPTION=4;this.MQROUTEMATRIXRESULTSCODE_PARTIAL_SUCCESS=5;this.MQROUTEMATRIXRESULTSCODE_EXCEEDED_MAX_LOCATIONS=6;this.MQMANEUVER_HEADING_NULL=0;this.MQMANEUVER_HEADING_NORTH=1;this.MQMANEUVER_HEADING_NORTH_WEST=2;this.MQMANEUVER_HEADING_NORTH_EAST=3;this.MQMANEUVER_HEADING_SOUTH=4;this.MQMANEUVER_HEADING_SOUTH_EAST=5;this.MQMANEUVER_HEADING_SOUTH_WEST=6;this.MQMANEUVER_HEADING_WEST=7;this.MQMANEUVER_HEADING_EAST=8;this.MQMANEUVER_TURN_TYPE_STRAIGHT=0;this.MQMANEUVER_TURN_TYPE_SLIGHT_RIGHT=1;this.MQMANEUVER_TURN_TYPE_RIGHT=2;this.MQMANEUVER_TURN_TYPE_SHARP_RIGHT=3;this.MQMANEUVER_TURN_TYPE_REVERSE=4;this.MQMANEUVER_TURN_TYPE_SHARP_LEFT=5;this.MQMANEUVER_TURN_TYPE_LEFT=6;this.MQMANEUVER_TURN_TYPE_SLIGHT_LEFT=7;this.MQMANEUVER_TURN_TYPE_RIGHT_UTURN=8;this.MQMANEUVER_TURN_TYPE_LEFT_UTURN=9;this.MQMANEUVER_TURN_TYPE_RIGHT_MERGE=10;this.MQMANEUVER_TURN_TYPE_LEFT_MERGE=11;this.MQMANEUVER_TURN_TYPE_RIGHT_ON_RAMP=12;this.MQMANEUVER_TURN_TYPE_LEFT_ON_RAMP=13;this.MQMANEUVER_TURN_TYPE_RIGHT_OFF_RAMP=14;this.MQMANEUVER_TURN_TYPE_LEFT_OFF_RAMP=15;this.MQMANEUVER_TURN_TYPE_RIGHT_FORK=16;this.MQMANEUVER_TURN_TYPE_LEFT_FORK=17;this.MQMANEUVER_TURN_TYPE_STRAIGHT_FORK=18;this.MQMANEUVER_ATTRIBUTE_PORTIONS_TOLL=1;this.MQMANEUVER_ATTRIBUTE_PORTIONS_UNPAVED=2;this.MQMANEUVER_ATTRIBUTE_POSSIBLE_SEASONAL_ROAD_CLOSURE=4;this.MQMANEUVER_ATTRIBUTE_GATE=8;this.MQMANEUVER_ATTRIBUTE_FERRY=16;this.MQCOORDINATETYPE_GEOGRAPHIC=1;this.MQCOORDINATETYPE_DISPLAY=2;this.MQDRAWTRIGGER_BEFORE_POLYGONS=3585;this.MQDRAWTRIGGER_AFTER_POLYGONS=3586;
this.MQDRAWTRIGGER_BEFORE_TEXT=3588;this.MQDRAWTRIGGER_AFTER_TEXT=3618;this.MQDRAWTRIGGER_BEFORE_ROUTE_HIGHLIGHT=3616;this.MQDRAWTRIGGER_AFTER_ROUTE_HIGHLIGHT=3617;this.MQPENSTYLE_SOLID=0;this.MQPENSTYLE_DASH=1;this.MQPENSTYLE_DOT=2;this.MQPENSTYLE_DASH_DOT=3;this.MQPENSTYLE_DASH_DOT_DOT=4;this.MQPENSTYLE_NONE=5;this.MQCOLORSTYLE_INVALID=4294967295;this.MQCOLORSTYLE_BLACK=0;this.MQCOLORSTYLE_BLUE=16711680;this.MQCOLORSTYLE_CYAN=16776960;this.MQCOLORSTYLE_DARK_GRAY=4210752;this.MQCOLORSTYLE_GRAY=8421504;this.MQCOLORSTYLE_GREEN=65280;this.MQCOLORSTYLE_LIGHT_GRAY=12632256;this.MQCOLORSTYLE_MAGENTA=16711935;this.MQCOLORSTYLE_ORANGE=51455;this.MQCOLORSTYLE_PINK=11513855;this.MQCOLORSTYLE_RED=255;this.MQCOLORSTYLE_WHITE=16777215;this.MQCOLORSTYLE_YELLOW=65535;this.MQFILLSTYLE_SOLID=0;this.MQFILLSTYLE_BDIAGONAL=1;this.MQFILLSTYLE_CROSS=2;this.MQFILLSTYLE_DIAG_CROSS=3;this.MQFILLSTYLE_FDIAGONAL=4;this.MQFILLSTYLE_HORIZONTAL=5;this.MQFILLSTYLE_VERTICAL=6;this.MQFILLSTYLE_NONE=7;this.MQSYMBOLTYPE_RASTER=0;this.MQSYMBOLTYPE_VECTOR=1;this.MQTEXTALIGNMENT_CENTER=1;this.MQTEXTALIGNMENT_LEFT=2;this.MQTEXTALIGNMENT_RIGHT=4;this.MQTEXTALIGNMENT_BASELINE=8;this.MQTEXTALIGNMENT_BOTTOM=16;this.MQTEXTALIGNMENT_TOP=32;this.MQFONTSTYLE_INVALID=-1;this.MQFONTSTYLE_NORMAL=0;this.MQFONTSTYLE_BOLD=1;this.MQFONTSTYLE_BOXED=2;this.MQFONTSTYLE_OUTLINED=4;this.MQFONTSTYLE_ITALICS=8;this.MQFONTSTYLE_UNDERLINE=16;this.MQFONTSTYLE_STRIKEOUT=32;this.MQFONTSTYLE_THIN=64;this.MQFONTSTYLE_SEMIBOLD=128;this.MQFONTSTYLE_MAX_VALUE=256;this.MQBASEDTSTYLE_DT_NULL=65532;this.MQBASEDTSTYLE_CT_ROAD=0;this.MQBASEDTSTYLE_CT_LINE=1;this.MQBASEDTSTYLE_CT_POLYGON=2;this.MQBASEDTSTYLE_CT_POINT=3;this.MQBASEDTSTYLE_CT_POI=4;this.MQBASEDTSTYLE_CT_SEED=5;this.MQBASEDTSTYLE_CT_DISPLAYLIST=6;this.MQBASEDTSTYLE_CT_APP=7;this.MQBASEDTSTYLE_CT_XA=8;this.MQBASEDTSTYLE_BT_LINE=0;this.MQBASEDTSTYLE_BT_POLYGON=1;this.MQBASEDTSTYLE_BT_POINT=2;this.MQBASEDTSTYLE_BT_OTHER=3;this.MQBASEDTSTYLE_BT_XA=4;this.MQFEATURESPECIFERATTRIBUTETYPE_GEFID=0;this.MQFEATURESPECIFERATTRIBUTETYPE_NAME=1;this.MQMATCHTYPE_LOC=0;this.MQMATCHTYPE_INTR=1;this.MQMATCHTYPE_NEARBLK=2;this.MQMATCHTYPE_REPBLK=3;this.MQMATCHTYPE_BLOCK=4;this.MQMATCHTYPE_AA1=5;this.MQMATCHTYPE_AA2=6;this.MQMATCHTYPE_AA3=7;this.MQMATCHTYPE_AA4=8;this.MQMATCHTYPE_AA5=9;this.MQMATCHTYPE_AA6=10;this.MQMATCHTYPE_AA7=11;this.MQMATCHTYPE_PC1=12;this.MQMATCHTYPE_PC2=13;this.MQMATCHTYPE_PC3=14;this.MQMATCHTYPE_PC4=15;this.MQMATCHTYPE_POI=16;this.MQQUALITYTYPE_EXACT=0;this.MQQUALITYTYPE_GOOD=1;this.MQQUALITYTYPE_APPROX=2}var MQCONSTANT=new MQConstants();function MQErrors(){this.RECORDSET_GETFIELD_1="failure in getField -- m_curRec is not Pointing to an existing Record";this.RECORDSET_GETFIELD_2="failure in getField -- could not find strFieldName";this.RECORDSET_MOVEFIRST_1="failure in moveFirst -- Error Moving Cursor, RecordSet is Empty.";this.RECORDSET_MOVELAST_1="Error Moving Cursor, RecordSet is Empty.";this.RECORDSET_MOVENEXT_1="Error Moving Cursor, EOF was true.";this.RECORDSET_MOVENEXT_2="Error Moving Cursor, Unknown Error.";this.RECORDSET_MOVENEXT_3="Error Moving Cursor, RecordSet is Empty."}var MQERROR=new MQErrors();MQSign.prototype=new MQObject();MQSign.prototype.constructor=MQSign;function MQSign(){MQObject.call(this);this.setM_Xpath("Sign");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getSIGN()))}MQSign.prototype.getClassName=function(){return"MQSign"};MQSign.prototype.getObjectVersion=function(){return 0};MQSign.prototype.loadXml=function(A){this.setM_XmlDoc(MQA.createXMLDoc(A))};MQSign.prototype.loadXmlFromNode=function(A){this.setM_XmlDoc(mqCreateXMLDocImportNode(A))};MQSign.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};MQSign.prototype.clear=function(){this.setType(0);this.setText("");this.setExtraText("");this.setDirection(MQCONSTANT.MQMANEUVER_HEADING_NULL)};MQSign.prototype.setType=function(A){this.setProperty("Type",A)};MQSign.prototype.getType=function(){return this.getProperty("Type")};MQSign.prototype.setText=function(A){this.setProperty("Text",A)
};MQSign.prototype.getText=function(){return this.getProperty("Text")};MQSign.prototype.setExtraText=function(A){this.setProperty("ExtraText",A)};MQSign.prototype.getExtraText=function(){return this.getProperty("ExtraText")};MQSign.prototype.setDirection=function(A){this.setProperty("Direction",A)};MQSign.prototype.getDirection=function(){return this.getProperty("Direction")};MQFeature.prototype=new MQObject();MQFeature.prototype.constructor=MQFeature;function MQFeature(){MQObject.call(this)}MQFeature.prototype.getClassName=function(){return"MQFeature"};MQFeature.prototype.getObjectVersion=function(){return 0};MQFeature.prototype.getDistance=function(){return this.getProperty("Distance")};MQFeature.prototype.setDistance=function(A){this.setProperty("Distance",A)};MQFeature.prototype.getName=function(){return this.getProperty("Name")};MQFeature.prototype.setName=function(A){this.setProperty("Name",A)};MQFeature.prototype.getSourceLayerName=function(){return this.getProperty("SourceLayerName")};MQFeature.prototype.setSourceLayerName=function(A){this.setProperty("SourceLayerName",A)};MQFeature.prototype.getKey=function(){return this.getProperty("Key")};MQFeature.prototype.setKey=function(A){this.setProperty("Key",A)};MQFeature.prototype.setGEFID=function(A){this.setProperty("GEFID",A)};MQFeature.prototype.getGEFID=function(){return this.getProperty("GEFID")};MQFeature.prototype.setDT=function(A){this.setProperty("DT",A)};MQFeature.prototype.getDT=function(){return this.getProperty("DT")};MQPointFeature.prototype=new MQFeature();MQPointFeature.prototype.constructor=MQPointFeature;function MQPointFeature(){MQObject.call(this);this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getPOINTFEATURE()));this.setM_Xpath("PointFeature");this.m_CenterLatLng=new MQLatLng("CenterLatLng");this.m_CenterPoint=new MQPoint("CenterPoint")}MQPointFeature.prototype.getClassName=function(){return"MQPointFeature"};MQPointFeature.prototype.getObjectVersion=function(){return 0};MQPointFeature.prototype.loadXml=function(D){this.setM_XmlDoc(MQA.createXMLDoc(D));var E=this.getCenterLatLng();var A=this.getCenterPoint();var B=mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng");var C=mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint");if(B!==null){E.loadXmlFromNode(B)}if(C!==null){A.loadXmlFromNode(C)}};MQPointFeature.prototype.loadXmlFromNode=function(B){this.setM_XmlDoc(mqCreateXMLDocImportNode(B));this.getCenterLatLng().setLatLng(this.getProperty("CenterLatLng/Lat"),this.getProperty("CenterLatLng/Lng"));var A=this.getProperty("CenterPoint/X");if(A!==""){this.getCenterPoint().setXY(A,this.getProperty("CenterPoint/Y"))}};MQPointFeature.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterLatLng"));A=MQA.createXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterPoint"));return mqXmlToStr(this.getM_XmlDoc())};MQPointFeature.prototype.getCenterLatLng=function(){return this.m_CenterLatLng};MQPointFeature.prototype.setCenterLatLng=function(A){this.m_CenterLatLng.setLatLng(A.getLatitude(),A.getLongitude())};MQPointFeature.prototype.getCenterPoint=function(){return this.m_CenterPoint};MQPointFeature.prototype.setCenterPoint=function(A){this.m_CenterPoint.setXY(A.getX(),A.getY())};MQPolygonFeature.prototype=new MQPointFeature();MQPolygonFeature.prototype.constructor=MQPolygonFeature;function MQPolygonFeature(){MQPointFeature.call(this);this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getPOLYGONFEATURE()));this.setM_Xpath("PolygonFeature");var A=new MQLatLngCollection();A.setM_Xpath("LatLngs");this.getLatLngs=function(){return A};this.setLatLngs=function(C){if(C.getClassName()==="MQLatLngCollection"){A.removeAll();A.append(C)}else{alert("failure in setLatLngs");throw"failure in setLatLngs"}};var B=new MQPointCollection();B.setM_Xpath("Points");this.getPoints=function(){return B};this.setPoints=function(C){B.removeAll();
B.append(C)}}MQPolygonFeature.prototype.getClassName=function(){return"MQPolygonFeature"};MQPolygonFeature.prototype.getObjectVersion=function(){return 0};MQPolygonFeature.prototype.loadXml=function(D){this.setM_XmlDoc(MQA.createXMLDoc(D));var E=this.getCenterLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){E.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")))}var B=this.getCenterPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")))}var A=this.getLatLngs();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")))}var C=this.getPoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null){C.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")))}};MQPolygonFeature.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterLatLng"));A=MQA.createXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterPoint"));A=MQA.createXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LatLngs"));A=MQA.createXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"Points"));return mqXmlToStr(this.getM_XmlDoc())};MQLineFeature.prototype=new MQPolygonFeature();MQLineFeature.prototype.constructor=MQLineFeature;function MQLineFeature(){MQPolygonFeature.call(this);this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getLINEFEATURE()));this.setM_Xpath("LineFeature")}MQLineFeature.prototype.getClassName=function(){return"MQLineFeature"};MQLineFeature.prototype.getObjectVersion=function(){return 0};MQLineFeature.prototype.loadXml=function(D){this.setM_XmlDoc(MQA.createXMLDoc(D));var E=this.getCenterLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){E.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")))}var B=this.getCenterPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")))}var A=this.getLatLngs();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")))}var C=this.getPoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null){C.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")))}};MQLineFeature.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterLatLng"));A=MQA.createXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterPoint"));A=MQA.createXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LatLngs"));A=MQA.createXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"Points"));return mqXmlToStr(this.getM_XmlDoc())};MQLineFeature.prototype.getLeftPostalCode=function(){return this.getProperty("LeftPostalCode")};MQLineFeature.prototype.setLeftPostalCode=function(A){this.setProperty("LeftPostalCode",A)};MQLineFeature.prototype.getRightPostalCode=function(){return this.getProperty("RightPostalCode")};MQLineFeature.prototype.setRightPostalCode=function(A){this.setProperty("RightPostalCode",A)};MQLineFeature.prototype.getLeftAddressHi=function(){return this.getProperty("LeftAddressHi")};MQLineFeature.prototype.setLeftAddressHi=function(A){this.setProperty("LeftAddressHi",A)};MQLineFeature.prototype.getRightAddressHi=function(){return this.getProperty("RightAddressHi")
};MQLineFeature.prototype.setRightAddressHi=function(A){this.setProperty("RightAddressHi",A)};MQLineFeature.prototype.getLeftAddressLo=function(){return this.getProperty("LeftAddressLo")};MQLineFeature.prototype.setLeftAddressLo=function(A){this.setProperty("LeftAddressLo",A)};MQLineFeature.prototype.getRightAddressLo=function(){return this.getProperty("RightAddressLo")};MQLineFeature.prototype.setRightAddressLo=function(A){this.setProperty("RightAddressLo",A)};MQLocation.prototype=new MQObject();MQLocation.prototype.constructor=MQLocation;function MQLocation(){MQObject.call(this);this.setM_Xpath("Location")}MQLocation.prototype.getClassName=function(){return"MQLocation"};MQLocation.prototype.getObjectVersion=function(){return 0};MQLocation.prototype.loadXml=function(A){this.setM_XmlDoc(MQA.createXMLDoc(A))};MQLocation.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};MQAddress.prototype=new MQLocation();MQAddress.prototype.constructor=MQAddress;function MQAddress(){MQLocation.call(this);this.setM_Xpath("Address");if(this.getClassName()==="MQAddress"){this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getADDRESS()))}}MQAddress.prototype.getClassName=function(){return"MQAddress"};MQAddress.prototype.getObjectVersion=function(){return 0};MQAddress.prototype.loadXml=function(A){this.setM_XmlDoc(MQA.createXMLDoc(A))};MQAddress.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};MQAddress.prototype.getAdminArea=function(A){return this.getProperty("AdminArea"+A)};MQAddress.prototype.setAdminArea=function(B,A){this.setProperty("AdminArea"+B,A)};MQAddress.prototype.getCountry=function(){return this.getProperty("AdminArea1")};MQAddress.prototype.setCountry=function(A){this.setProperty("AdminArea1",A)};MQAddress.prototype.getCounty=function(){return this.getProperty("AdminArea4")};MQAddress.prototype.setCounty=function(A){this.setProperty("AdminArea4",A)};MQAddress.prototype.getCity=function(){return this.getProperty("AdminArea5")};MQAddress.prototype.setCity=function(A){this.setProperty("AdminArea5",A)};MQAddress.prototype.getPostalCode=function(){return this.getProperty("PostalCode")};MQAddress.prototype.setPostalCode=function(A){this.setProperty("PostalCode",A)};MQAddress.prototype.getState=function(){return this.getProperty("AdminArea3")};MQAddress.prototype.setState=function(A){this.setProperty("AdminArea3",A)};MQAddress.prototype.setStreet=function(A){this.setProperty("Street",A)};MQAddress.prototype.getStreet=function(){return this.getProperty("Street")};MQSingleLineAddress.prototype=new MQLocation();MQSingleLineAddress.prototype.constructor=MQSingleLineAddress;function MQSingleLineAddress(){MQLocation.call(this);this.setM_Xpath("SingleLineAddress");if(this.getClassName()==="MQSingleLineAddress"){this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getSINGLELINEADDRESS()))}}MQSingleLineAddress.prototype.getClassName=function(){return"MQSingleLineAddress"};MQSingleLineAddress.prototype.getObjectVersion=function(){return 0};MQSingleLineAddress.prototype.loadXml=function(A){this.setM_XmlDoc(MQA.createXMLDoc(A))};MQSingleLineAddress.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};MQSingleLineAddress.prototype.setAddress=function(A){this.setProperty("Address",A)};MQSingleLineAddress.prototype.getAddress=function(){return this.getProperty("Address")};MQSingleLineAddress.prototype.setCountry=function(A){this.setProperty("Country",A)};MQSingleLineAddress.prototype.getCountry=function(){return this.getProperty("Country")};MQGeoAddress.prototype=new MQAddress();MQGeoAddress.prototype.constructor=MQGeoAddress;function MQGeoAddress(){MQAddress.call(this);this.setM_Xpath("GeoAddress");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getGEOADDRESS()));var A=new MQLatLng();this.getMQLatLng=function(){return A};this.setMQLatLng=function(B){A=B}}MQGeoAddress.prototype.getClassName=function(){return"MQGeoAddress"};MQGeoAddress.prototype.getObjectVersion=function(){return 0};MQGeoAddress.prototype.loadXml=function(C){this.setM_XmlDoc(MQA.createXMLDoc(C));
var B=this.getProperty("LatLng/Lat");var A=this.getProperty("LatLng/Lng");this.getMQLatLng().setLatLng(B,A)};MQGeoAddress.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getMQLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LatLng"));return mqXmlToStr(this.getM_XmlDoc())};MQGeoAddress.prototype.setDistAlong=function(A){this.setProperty("DistAlong",A)};MQGeoAddress.prototype.getDistAlong=function(){return this.getProperty("DistAlong")};MQGeoAddress.prototype.setGEFID=function(A){this.setProperty("GEFID",A)};MQGeoAddress.prototype.getGEFID=function(){return this.getProperty("GEFID")};MQGeoAddress.prototype.setResultCode=function(A){this.setProperty("ResultCode",A)};MQGeoAddress.prototype.getResultCode=function(){return this.getProperty("ResultCode")};MQGeoAddress.prototype.setSourceId=function(A){this.setProperty("SourceId",A)};MQGeoAddress.prototype.getSourceId=function(){return this.getProperty("SourceId")};MQManeuver.prototype=new MQObject();MQManeuver.prototype.constructor=MQManeuver;function MQManeuver(){MQObject.call(this);this.setM_Xpath("Maneuver");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getMANEUVER()));var D=new MQStringCollection("Item");D.setM_Xpath("Streets");this.getStreets=function(){return D};this.setStreets=function(E){D.removeAll();D.append(E)};var C=new MQLatLngCollection();C.setM_Xpath("ShapePoints");this.getShapePoints=function(){return C};this.setShapePoints=function(E){if(E.getClassName()==="MQLatLngCollection"){C.removeAll();C.append(E)}else{alert("failure in setShapePoints");throw"failure in setShapePoints"}};var A=new MQIntCollection("Item");A.setM_Xpath("GEFIDs");this.getGEFIDs=function(){return A};this.setGEFIDs=function(E){A.removeAll();A.append(E)};var B=new MQSignCollection("Sign");B.setM_Xpath("Signs");this.getSigns=function(){return B};this.setSigns=function(E){B.removeAll();B.append(E)}}MQManeuver.prototype.getClassName=function(){return"MQManeuver"};MQManeuver.prototype.getObjectVersion=function(){return 1};MQManeuver.prototype.loadXml=function(E){this.setM_XmlDoc(MQA.createXMLDoc(E));var D=this.getStreets();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Streets")!==null){D.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Streets"))}var B=this.getShapePoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ShapePoints")!==null){B.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ShapePoints"))}var C=this.getGEFIDs();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/GEFIDs")!==null){C.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/GEFIDs")))}var A=this.getSigns();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Signs")!==null){A.loadXmlFromNode(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Signs"))}};MQManeuver.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getStreets().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"Streets"));A=MQA.createXMLDoc(this.getShapePoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"ShapePoints"));A=MQA.createXMLDoc(this.getGEFIDs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"GEFIDs"));A=MQA.createXMLDoc(this.getSigns().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"Signs"));return mqXmlToStr(this.getM_XmlDoc())};MQManeuver.prototype.setTurnType=function(A){this.setProperty("TurnType",A)};MQManeuver.prototype.getTurnType=function(){return this.getProperty("TurnType")};MQManeuver.prototype.setDistance=function(A){this.setProperty("Distance",A)};MQManeuver.prototype.getDistance=function(){return this.getProperty("Distance")};MQManeuver.prototype.setTime=function(A){this.setProperty("Time",A)};MQManeuver.prototype.getTime=function(){return this.getProperty("Time")};MQManeuver.prototype.setDirection=function(A){this.setProperty("Direction",A)};MQManeuver.prototype.getDirection=function(){return this.getProperty("Direction")
};MQManeuver.prototype.getDirectionName=function(){switch(parseInt(this.getDirection())){case MQCONSTANT.MQMANEUVER_HEADING_NORTH:return"North";case MQCONSTANT.MQMANEUVER_HEADING_NORTH_WEST:return"Northwest";case MQCONSTANT.MQMANEUVER_HEADING_NORTH_EAST:return"Northeast";case MQCONSTANT.MQMANEUVER_HEADING_SOUTH:return"South";case MQCONSTANT.MQMANEUVER_HEADING_SOUTH_EAST:return"Southeast";case MQCONSTANT.MQMANEUVER_HEADING_SOUTH_WEST:return"Southwest";case MQCONSTANT.MQMANEUVER_HEADING_WEST:return"West";case MQCONSTANT.MQMANEUVER_HEADING_EAST:return"East";default:return""}};MQManeuver.prototype.setAttributes=function(A){this.setProperty("Attributes",A)};MQManeuver.prototype.getAttributes=function(){return this.getProperty("Attributes")};MQManeuver.prototype.setNarrative=function(A){this.setProperty("Narrative",A)};MQManeuver.prototype.getNarrative=function(){return this.getProperty("Narrative")};MQTrekRoute.prototype=new MQObject();MQTrekRoute.prototype.constructor=MQTrekRoute;function MQTrekRoute(){MQObject.call(this);this.setM_Xpath("TrekRoute");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getTREKROUTE()));var D=new MQManeuverCollection("Maneuver");D.setM_Xpath("Maneuvers");this.getManeuvers=function(){return D};var C=null;this.getShapePoints=function(){if(C===null){B=0;A=0;C=new MQLatLngCollection();C.setM_Xpath("ShapePoints");for(var E=0;E<this.getManeuvers().getSize();E++){C.append(this.getManeuvers().get(E).getShapePoints());B+=parseFloat(this.getManeuvers().get(E).getDistance());A+=parseInt(this.getManeuvers().get(E).getTime())}}return C};var B=null;this.getDistance=function(){if(B===null){B=0;A=0;C=new MQLatLngCollection();C.setM_Xpath("ShapePoints");for(var E=0;E<this.getManeuvers().getSize();E++){C.append(this.getManeuvers().get(E).getShapePoints());B+=parseFloat(this.getManeuvers().get(E).getDistance());A+=parseInt(this.getManeuvers().get(E).getTime())}}return B};var A=null;this.getTime=function(){if(A===null){B=0;A=0;C=new MQLatLngCollection();C.setM_Xpath("ShapePoints");for(var E=0;E<this.getManeuvers().getSize();E++){C.append(this.getManeuvers().get(E).getShapePoints());B+=parseFloat(this.getManeuvers().get(E).getDistance());A+=parseInt(this.getManeuvers().get(E).getTime())}}return A}}MQTrekRoute.prototype.getClassName=function(){return"MQTrekRoute"};MQTrekRoute.prototype.getObjectVersion=function(){return 0};MQTrekRoute.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));var A=this.getManeuvers();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Maneuvers")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Maneuvers")))}};MQTrekRoute.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getManeuvers().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"Maneuvers"));return mqXmlToStr(this.getM_XmlDoc())};MQGeocodeOptions.prototype=new MQObject();MQGeocodeOptions.prototype.constructor=MQGeocodeOptions;function MQGeocodeOptions(){MQObject.call(this);this.setM_Xpath("GeocodeOptions");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getGEOCODEOPTIONS()));var B=new MQMatchType(0);this.getMatchType=function(){return B};this.setMatchType=function(C){B=C};var A=new MQQualityType(0);this.getQualityType=function(){return A};this.setQualityType=function(C){A=C}}MQGeocodeOptions.prototype.getClassName=function(){return"MQGeocodeOptions"};MQGeocodeOptions.prototype.getObjectVersion=function(){return 0};MQGeocodeOptions.prototype.loadXml=function(A){this.setM_XmlDoc(MQA.createXMLDoc(A));this.setMatchType(new MQMatchType(Math.floor(this.getProperty("MatchType"))));this.getQualityType(new MQQualityType(Math.floor(this.getProperty("QualityType"))))};MQGeocodeOptions.prototype.saveXml=function(){this.setProperty("MatchType",this.getMatchType().intValue());this.setProperty("QualityType",this.getQualityType().intValue());return mqXmlToStr(this.getM_XmlDoc())};MQGeocodeOptions.prototype.setCoverageName=function(A){this.setProperty("CoverageName",A)};MQGeocodeOptions.prototype.getCoverageName=function(){return this.getProperty("CoverageName")
};MQGeocodeOptions.prototype.setMaxMatches=function(A){this.setProperty("MaxMatches",A)};MQGeocodeOptions.prototype.getMaxMatches=function(){return this.getProperty("MaxMatches")};MQRouteOptions.prototype=new MQObject();MQRouteOptions.prototype.constructor=MQRouteOptions;function MQRouteOptions(){MQObject.call(this);this.setM_Xpath("RouteOptions");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getROUTEOPTIONS()));var C=new MQStringCollection();C.setM_Xpath("AvoidAttributeList");this.getAvoidAttrList=function(){return C};this.setAvoidAttrList=function(H){C.removeAll();C.append(H)};var E=new MQIntCollection();E.setM_Xpath("AvoidGefIdList");this.getAvoidGefIdList=function(){return E};this.setAvoidGefIdList=function(H){E.removeAll();E.append(H)};var G=new MQIntCollection();G.setM_Xpath("AvoidAbsoluteGefIdList");this.getAvoidAbsGefIdList=function(){return G};this.setAvoidAbsGefIdList=function(H){G.removeAll();G.append(H)};var F=new MQAutoRouteCovSwitch("CovSwitcher");this.getAutoRouteCovSwitch=function(){return F};this.setAutoRouteCovSwitch=function(H){F=H};var D=new MQRouteType(0);this.getRouteType=function(){return D};this.setRouteType=function(H){D=H};var B=new MQNarrativeType(0);this.getNarrativeType=function(){return B};this.setNarrativeType=function(H){B=H};var A=new MQDistanceUnits(0);this.getDistanceUnits=function(){return A};this.setDistanceUnits=function(H){A=H}}MQRouteOptions.prototype.getClassName=function(){return"MQRouteOptions"};MQRouteOptions.prototype.getObjectVersion=function(){return 3};MQRouteOptions.prototype.loadXml=function(E){this.setM_XmlDoc(MQA.createXMLDoc(E));var A=this.getAvoidAttrList();A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidAttributeList")));var D=this.getAvoidGefIdList();D.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidGefIdList")));var C=this.getAvoidAbsGefIdList();C.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/AvoidAbsoluteGefIdList")));var B=this.getAutoRouteCovSwitch();B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CovSwitcher")));this.setRouteType(new MQRouteType(Math.floor(this.getProperty("RouteType"))));this.getNarrativeType(new MQNarrativeType(Math.floor(this.getProperty("NarrativeType"))));this.getDistanceUnits(new MQDistanceUnits(Math.floor(this.getProperty("NarrativeDistanceUnitType"))))};MQRouteOptions.prototype.saveXml=function(){var A=null;this.setProperty("RouteType",this.getRouteType().intValue());this.setProperty("NarrativeType",this.getNarrativeType().intValue());this.setProperty("NarrativeDistanceUnitType",this.getDistanceUnits().getValue());A=MQA.createXMLDoc(this.getAutoRouteCovSwitch().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CovSwitcher"));A=MQA.createXMLDoc(this.getAvoidAttrList().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"AvoidAttributeList"));A=MQA.createXMLDoc(this.getAvoidGefIdList().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"AvoidGefIdList"));A=MQA.createXMLDoc(this.getAvoidAbsGefIdList().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"AvoidAbsoluteGefIdList"));return mqXmlToStr(this.getM_XmlDoc())};MQRouteOptions.prototype.setMaxShapePointsPerManeuver=function(A){this.setProperty("MaxShape",A)};MQRouteOptions.prototype.getMaxShapePointsPerManeuver=function(){return this.getProperty("MaxShape")};MQRouteOptions.prototype.setMaxGEFIDsPerManeuver=function(A){this.setProperty("MaxGEFID",A)};MQRouteOptions.prototype.getMaxGEFIDsPerManeuver=function(){return this.getProperty("MaxGEFID")};MQRouteOptions.prototype.setLanguage=function(A){this.setProperty("Language",A)};MQRouteOptions.prototype.getLanguage=function(){return this.getProperty("Language")};MQRouteOptions.prototype.setCoverageName=function(A){this.setProperty("CoverageName",A)};MQRouteOptions.prototype.getCoverageName=function(){return this.getProperty("CoverageName")};MQRouteOptions.prototype.setStateBoundaryDisplay=function(A){this.setProperty("StateBoundaryDisplay",(A===true)?1:0)
};MQRouteOptions.prototype.getStateBoundaryDisplay=function(){return(this.getProperty("StateBoundaryDisplay")==1)?true:false};MQRouteOptions.prototype.setCountryBoundaryDisplay=function(A){this.setProperty("CountryBoundaryDisplay",(A===true)?1:0)};MQRouteOptions.prototype.getCountryBoundaryDisplay=function(){return(this.getProperty("CountryBoundaryDisplay")==1)?true:false};MQRouteResults.prototype=new MQObject();MQRouteResults.prototype.constructor=MQRouteResults;function MQRouteResults(){MQObject.call(this);this.setM_Xpath("RouteResults");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getROUTERESULTS()));var A=new MQLocationCollection();A.setM_Xpath("Locations");this.getLocations=function(){return A};var D=new MQTrekRouteCollection("TrekRoute");D.setM_Xpath("TrekRoutes");this.getTrekRoutes=function(){return D};var B=new MQRouteResultsCode(MQCONSTANT.MQROUTERESULTSCODE_NOT_SPECIFIED);this.getResultCode=function(){return B};this.setResultCode=function(H){B=H};var C=new MQStringCollection("Item");C.setM_Xpath("ResultMessages");this.getResultMessages=function(){return C};var G=null;this.getShapePoints=function(){if(G===null){F=0;E=0;G=new MQLatLngCollection();G.setM_Xpath("ShapePoints");for(var I=0;I<this.getTrekRoutes().getSize();I++){var H=this.getTrekRoutes().get(I);for(var J=0;J<H.getManeuvers().getSize();J++){G.append(H.getManeuvers().get(J).getShapePoints());F+=parseFloat(H.getManeuvers().get(J).getDistance());E+=parseInt(H.getManeuvers().get(J).getTime())}}}return G};var F=-1;this.getDistance=function(){if(F===-1){F=0;E=0;G=new MQLatLngCollection();G.setM_Xpath("ShapePoints");for(var I=0;I<this.getTrekRoutes().getSize();I++){var H=this.getTrekRoutes().get(I);for(var J=0;J<H.getManeuvers().getSize();J++){G.append(H.getManeuvers().get(J).getShapePoints());F+=parseFloat(H.getManeuvers().get(J).getDistance());E+=parseInt(H.getManeuvers().get(J).getTime())}}}return F};var E=-1;this.getTime=function(){if(E===-1){F=0;E=0;G=new MQLatLngCollection();G.setM_Xpath("ShapePoints");for(var I=0;I<this.getTrekRoutes().getSize();I++){var H=this.getTrekRoutes().get(I);for(var J=0;J<H.getManeuvers().getSize();J++){G.append(H.getManeuvers().get(J).getShapePoints());F+=parseFloat(H.getManeuvers().get(J).getDistance());E+=parseInt(H.getManeuvers().get(J).getTime())}}}return E}}MQRouteResults.prototype.getClassName=function(){return"MQRouteResults"};MQRouteResults.prototype.getObjectVersion=function(){return 1};MQRouteResults.prototype.loadXml=function(D){this.setM_XmlDoc(MQA.createXMLDoc(D));var C=this.getLocations();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Locations")!==null){C.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Locations")))}var B=this.getTrekRoutes();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TrekRoutes")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TrekRoutes")))}var A=this.getResultMessages();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")))}this.setResultCode(new MQRouteResultsCode(Math.floor(this.getProperty("ResultCode"))))};MQRouteResults.prototype.saveXml=function(){this.setProperty("ResultCode",this.getResultCode().intValue());return mqXmlToStr(this.getM_XmlDoc())};MQRouteResults.prototype.setCoverageName=function(A){this.setProperty("CoverageName",A)};MQRouteResults.prototype.getCoverageName=function(){return this.getProperty("CoverageName")};MQRouteMatrixResults.prototype=new MQObject();MQRouteMatrixResults.prototype.constructor=MQRouteMatrixResults;function MQRouteMatrixResults(){MQObject.call(this);this.setM_Xpath("RouteMatrixResults");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getROUTEMATRIXRESULTS()));var D=-1;var A=null;this.setDistance=function(F){if(F){if(F.getClassName()==="MQIntCollection"){if(A!==null){A.removeAll();A.append(F)}else{A=F}}else{alert("failure in setDistance -- col is not MQIntCollection type");
throw"failure in setDistance -- col is not MQIntCollection type"}}else{alert("failure in setDistance -- col is null");throw"failure in setDistance -- col is null"}};this.getDistance=function(H,G){if(D===-1){D=this.getProperty("LocationCount")}var F=((H*D)+G);return(A.get(F)/1000).toFixed(6)};var E=null;this.setTime=function(F){if(F){if(F.getClassName()==="MQIntCollection"){if(E!==null){E.removeAll();E.append(F)}else{E=F}}else{alert("failure in setTime -- col is not MQIntCollection type");throw"failure in setTime -- col is not MQIntCollection type"}}else{alert("failure in setTime -- col is null");throw"failure in setTime -- col is null"}};this.getTime=function(H,G){if(D===-1){D=this.getProperty("LocationCount")}var F=((H*D)+G);return E.get(F)};var B=new MQRouteMatrixResultsCode(MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED);this.getResultCode=function(){return B};this.setResultCode=function(F){if(F){if(F.getClassName()==="MQRouteMatrixResultsCode"){B=F}else{alert("failure in setResultsCode -- rc is not MQRouteMatrixResultsCode type");throw"failure in setResultsCode -- rc is not MQRouteMatrixResultsCode type"}}else{alert("failure in setResultsCode -- rc is null");throw"failure in setResultsCode -- rc is null"}};var C=null;this.setResultMessages=function(F){if(F){if(F.getClassName()==="MQStringCollection"){if(C!==null){C.removeAll();C.append(F)}else{C=F}}else{alert("failure in setResultMessages -- col is not MQStringCollection type");throw"failure in setResultMessages -- col is not MQStringCollection type"}}else{alert("failure in setResultMessages -- col is null");throw"failure in setResultMessages -- col is null"}};this.getResultsMessages=function(){return C}}MQRouteMatrixResults.prototype.getClassName=function(){return"MQRouteMatrixResults"};MQRouteMatrixResults.prototype.getObjectVersion=function(){return 0};MQRouteMatrixResults.prototype.loadXml=function(C){this.setM_XmlDoc(MQA.createXMLDoc(C));var B=new MQIntCollection();B.setM_Xpath("DistanceMatrix");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DistanceMatrix")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DistanceMatrix")))}this.setDistance(B);var D=new MQIntCollection();D.setM_Xpath("TimeMatrix");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TimeMatrix")!==null){D.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/TimeMatrix")))}this.setTime(D);var A=new MQStringCollection();A.setM_Xpath("ResultMessages");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/ResultMessages")))}this.setResultMessages(A);this.setResultCode(new MQRouteMatrixResultsCode(Math.floor(this.getProperty("ResultCode"))))};MQRouteMatrixResults.prototype.saveXml=function(){this.setProperty("ResultCode",this.getResultCode().intValue());return mqXmlToStr(this.getM_XmlDoc())};MQRouteMatrixResults.prototype.setCoverageName=function(A){this.setProperty("CoverageName",A)};MQRouteMatrixResults.prototype.getCoverageName=function(){return this.getProperty("CoverageName")};MQRouteMatrixResults.prototype.getAllToAllFlag=function(){return(this.getProperty("AllToAll")==1)?true:false};MQRecordSet.prototype=new MQObject();MQRecordSet.prototype.constructor=MQRecordSet;function MQRecordSet(){MQObject.call(this);this.setM_Xpath("RecordSet");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getRECORDSET()));var B=true;var D=true;var E=0;var A=-1;var C=new MQStringCollection();C.setM_Xpath("Fields");var F=new MQStrColCollection("Record");F.setM_Xpath("Records");F.setValidClassName("MQStringCollection");this.moveFirst=function(){if(F.getSize()!==0){B=false;D=false;A=0}else{alert(MQERROR.RECORDSET_MOVEFIRST_1);throw MQERROR.RECORDSET_MOVEFIRST_1}};this.moveLast=function(){if(F.getSize()!==0){B=false;D=false;A=F.getSize()-1}else{alert(MQERROR.RECORDSET_MOVELAST_1);throw MQERROR.RECORDSET_MOVELAST_1}};this.moveNext=function(){var G=F.getSize();
if(G!==0){if(A<G-1){A++;D=false;B=false}else{if(A===G-1){A++;D=false;B=true}else{if(B){alert(MQERROR.RECORDSET_MOVENEXT_1);throw MQERROR.RECORDSET_MOVENEXT_1}else{alert(MQERROR.RECORDSET_MOVENEXT_2);throw MQERROR.RECORDSET_MOVENEXT_2}}}}else{alert(MQERROR.RECORDSET_MOVENEXT_3);throw MQERROR.RECORDSET_MOVENEXT_3}};this.isBOF=function(){return D};this.isEOF=function(){return B};this.getFieldNames=function(){return C};this.getField=function(H){if(!(0<=A&&A<E)){alert(MQERROR.RECORDSET_GETFIELD_1);throw MQERROR.RECORDSET_GETFIELD_1}var I=-1;for(var G=0;G<C.getSize();G++){if(C.get(G)===H){I=G;break}}if(I===-1){alert(MQERROR.RECORDSET_GETFIELD_2);throw MQERROR.RECORDSET_GETFIELD_2}return F.get(A).get(I)};this.loadXml=function(N){var M=MQA.createXMLDoc(N);this.setM_XmlDoc(M);C.loadXml(mqXmlToStr(mqGetNode(M,"/"+this.getM_Xpath()+"/Fields")));if(M!==null){var G=M.documentElement;var H=G.childNodes;var L=H.length;L=(L<32678)?L:32678;var K=0;var I=null;F.removeAll();for(var J=K;J<L;J++){if(H[J].nodeName==="Record"){I=new MQStringCollection();I.setM_Xpath("Record");I.loadXml(mqXmlToStr(H[J]));F.add(I)}}}E=this.getProperty("RecordCount");if(E>0){A=0;D=false;B=false}}}MQRecordSet.prototype.getClassName=function(){return"MQRecordSet"};MQRecordSet.prototype.getObjectVersion=function(){return 0};MQRecordSet.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};MQMapState.prototype=new MQObject();MQMapState.prototype.constructor=MQMapState;function MQMapState(){MQObject.call(this);this.setM_Xpath("MapState");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getMAPSTATE()));var A=new MQLatLng("Center");this.getCenter=function(){return A};this.setCenter=function(B){A.setLatLng(B.getLatitude(),B.getLongitude())}}MQMapState.prototype.getClassName=function(){return"MQMapState"};MQMapState.prototype.getObjectVersion=function(){return 0};MQMapState.prototype.initObject=function(){this.setProperty("Scale",0);this.setCenter(new MQLatLng(0,0));this.setProperty("Width",-1);this.setProperty("Height",-1);this.setProperty("MapName","");this.setProperty("CoverageName","")};MQMapState.prototype.equals=function(A){if(A){try{if(A.getClassName()==="MQMapState"){return m_nScale==other.m_nScale&&m_strMapName===other.m_strMapName&&m_strCoverageName===other.m_strCoverageName&&m_llCenter.equals(other.m_llCenter)&&m_dMapWidth===other.m_dMapWidth&&m_dMapHeight===other.m_dMapHeight}}catch(B){}}return false};MQMapState.prototype.setMapName=function(A){this.setProperty("MapName",A)};MQMapState.prototype.getMapName=function(){this.getProperty("MapName")};MQMapState.prototype.setCoverageName=function(A){this.setProperty("CoverageName",A)};MQMapState.prototype.getCoverageName=function(){this.getProperty("CoverageName")};MQMapState.prototype.setWidthInches=function(A){this.setProperty("Width",A)};MQMapState.prototype.getWidthInches=function(){return this.getProperty("Width")};MQMapState.prototype.setHeightInches=function(A){this.setProperty("Height",A)};MQMapState.prototype.getHeightInches=function(){return this.getProperty("Height")};MQMapState.prototype.setWidthPixels=function(B,A){if(A){this.setProperty("Width",parseFloat(B)/parseFloat(A))}else{this.setProperty("Width",parseFloat(B)/parseFloat(72))}};MQMapState.prototype.getWidthPixels=function(A){if(A){return Math.ceil(this.getProperty("Width")*A)}else{return Math.ceil(this.getProperty("Width")*72)}};MQMapState.prototype.setHeightPixels=function(B,A){if(A){this.setProperty("Height",parseFloat(B)/parseFloat(A))}else{this.setProperty("Height",parseFloat(B)/parseFloat(72))}};MQMapState.prototype.getHeightPixels=function(A){if(A){return Math.ceil(this.getProperty("Height")*A)}else{return Math.ceil(this.getProperty("Height")*72)}};MQMapState.prototype.setMapScale=function(A){this.setProperty("Scale",A)};MQMapState.prototype.getMapScale=function(){return this.getProperty("Scale")};MQMapState.prototype.loadXml=function(C){this.setM_XmlDoc(MQA.createXMLDoc(C));var B=this.getProperty("Center/Lat");var A=this.getProperty("Center/Lng");
this.getCenter().setLatLng(B,A)};MQMapState.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"Center"));return mqXmlToStr(this.getM_XmlDoc())};MQSearchCriteria.prototype=new MQObject();MQSearchCriteria.prototype.constructor=MQSearchCriteria;function MQSearchCriteria(){MQObject.call(this)}MQSearchCriteria.prototype.getClassName=function(){return"MQSearchCriteria"};MQSearchCriteria.prototype.getObjectVersion=function(){return 0};MQSearchCriteria.prototype.setMaxMatches=function(A){this.setProperty("MaxMatches",A)};MQSearchCriteria.prototype.getMaxMatches=function(){return this.getProperty("MaxMatches")};MQRadiusSearchCriteria.prototype=new MQSearchCriteria();MQRadiusSearchCriteria.prototype.constructor=MQRadiusSearchCriteria;function MQRadiusSearchCriteria(){MQObject.call(this);this.setM_Xpath("RadiusSearchCriteria");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getRADIUSSEARCHCRITERIA()));var A=new MQLatLng("CenterLatLng");this.getCenter=function(){return A};this.setCenter=function(B){A.setLatLng(B.getLatitude(),B.getLongitude())}}MQRadiusSearchCriteria.prototype.getClassName=function(){return"MQRadiusSearchCriteria"};MQRadiusSearchCriteria.prototype.getObjectVersion=function(){return 0};MQRadiusSearchCriteria.prototype.loadXml=function(C){this.setM_XmlDoc(MQA.createXMLDoc(C));var B=this.getProperty("CenterLatLng/Lat");var A=this.getProperty("CenterLatLng/Lng");this.getCenter().setLatLng(B,A)};MQRadiusSearchCriteria.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterLatLng"));return mqXmlToStr(this.getM_XmlDoc())};MQRadiusSearchCriteria.prototype.setRadius=function(A,B){if(B){mqIsClass("MQDistanceUnits",B,false)}else{B=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES)}if(B.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){A=A/MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE}this.setProperty("Radius",A)};MQRadiusSearchCriteria.prototype.getRadius=function(B){if(B){mqIsClass("MQDistanceUnits",B,false)}else{B=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES)}var A=this.getProperty("Radius");if(B.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){A=A*MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE}return A};MQRectSearchCriteria.prototype=new MQSearchCriteria();MQRectSearchCriteria.prototype.constructor=MQRectSearchCriteria;function MQRectSearchCriteria(B){MQObject.call(this);this.setM_Xpath("RectSearchCriteria");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getRECTSEARCHCRITERIA()));var A=new MQLatLng("UpperLeftLatLng");this.getUpperLeft=function(){return A};this.setUpperLeft=function(D){A.setLatLng(D.getLatitude(),D.getLongitude())};var C=new MQLatLng("LowerRightLatLng");this.getLowerRight=function(){return C};this.setLowerRight=function(D){C.setLatLng(D.getLatitude(),D.getLongitude())};if(B){A.setLatLng(B.getUpperLeft().getLat(),B.getUpperLeft().getLng());C.setLatLng(B.getLowerRight().getLat(),B.getLowerRight().getLng())}}MQRectSearchCriteria.prototype.getClassName=function(){return"MQRectSearchCriteria"};MQRectSearchCriteria.prototype.getObjectVersion=function(){return 0};MQRectSearchCriteria.prototype.loadXml=function(C){this.setM_XmlDoc(MQA.createXMLDoc(C));var B=this.getProperty("UpperLeftLatLng/Lat");var A=this.getProperty("UpperLeftLatLng/Lng");this.getUpperLeft().setLatLng(B,A);B=this.getProperty("LowerRightLatLng/Lat");A=this.getProperty("LowerRightLatLng/Lng");this.getLowerRight().setLatLng(B,A)};MQRectSearchCriteria.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getUpperLeft().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"UpperLeftLatLng"));A=MQA.createXMLDoc(this.getLowerRight().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LowerRightLatLng"));return mqXmlToStr(this.getM_XmlDoc())};MQPolySearchCriteria.prototype=new MQSearchCriteria();MQPolySearchCriteria.prototype.constructor=MQPolySearchCriteria;
function MQPolySearchCriteria(){MQObject.call(this);this.setM_Xpath("PolySearchCriteria");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getPOLYSEARCHCRITERIA()));var A=new MQLatLngCollection();A.setM_Xpath("LatLngs");this.getShapePoints=function(){return A};this.setShapePoints=function(B){if(B.getClassName()==="MQLatLngCollection"){A.removeAll();A.append(B)}else{alert("failure in setShapePoints");throw"failure in setShapePoints"}}}MQPolySearchCriteria.prototype.getClassName=function(){return"MQPolySearchCriteria"};MQPolySearchCriteria.prototype.getObjectVersion=function(){return 0};MQPolySearchCriteria.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));var A=this.getShapePoints();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")))}};MQPolySearchCriteria.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getShapePoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LatLngs"));return mqXmlToStr(this.getM_XmlDoc())};MQCorridorSearchCriteria.prototype=new MQPolySearchCriteria();MQCorridorSearchCriteria.prototype.constructor=MQCorridorSearchCriteria;function MQCorridorSearchCriteria(){MQPolySearchCriteria.call(this);this.setM_Xpath("CorridorSearchCriteria");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getCORRIDORSEARCHCRITERIA()))}MQCorridorSearchCriteria.prototype.getClassName=function(){return"MQCorridorSearchCriteria"};MQCorridorSearchCriteria.prototype.getObjectVersion=function(){return 0};MQCorridorSearchCriteria.prototype.setCorrExactLinks=function(A){this.setProperty("ExactLinks",(A===true)?1:0)};MQCorridorSearchCriteria.prototype.getCorrExactLinks=function(){return(this.getProperty("ExactLinks")==1)?true:false};MQCorridorSearchCriteria.prototype.setCorridorWidth=function(B,A){if(A){mqIsClass("MQDistanceUnits",A,false)}else{A=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES)}if(A.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){B=B/MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE}this.setProperty("CorridorWidth",B)};MQCorridorSearchCriteria.prototype.getCorridorWidth=function(A){if(A){mqIsClass("MQDistanceUnits",A,false)}else{A=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES)}var B=this.getProperty("CorridorWidth");if(A.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){B=B*MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE}return B};MQCorridorSearchCriteria.prototype.setCorridorBufferWidth=function(B,A){if(A){mqIsClass("MQDistanceUnits",A,false)}else{A=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES)}if(A.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){B=B/MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE}this.setProperty("CorridorBufferWidth",B)};MQCorridorSearchCriteria.prototype.getCorridorBufferWidth=function(A){if(A){mqIsClass("MQDistanceUnits",A,false)}else{A=new MQDistanceUnits(MQCONSTANT.MQDISTANCEUNITS_MILES)}var B=this.getProperty("CorridorBufferWidth");if(A.getValue()===MQCONSTANT.MQDISTANCEUNITS_KILOMETERS){B=B*MQCONSTANT.DISTANCEAPPROX_KILOMETERS_PER_MILE}return B};MQDBLayerQuery.prototype=new MQObject();MQDBLayerQuery.prototype.constructor=MQDBLayerQuery;function MQDBLayerQuery(){MQObject.call(this);this.setM_Xpath("DBLayerQuery");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getDBLAYERQUERY()))}MQDBLayerQuery.prototype.getClassName=function(){return"MQDBLayerQuery"};MQDBLayerQuery.prototype.getObjectVersion=function(){return 0};MQDBLayerQuery.prototype.loadXml=function(A){this.setM_XmlDoc(MQA.createXMLDoc(A))};MQDBLayerQuery.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};MQDBLayerQuery.prototype.setDBLayerName=function(A){this.setProperty("LayerName",A)};MQDBLayerQuery.prototype.getDBLayerName=function(){return this.getProperty("LayerName")};MQDBLayerQuery.prototype.setExtraCriteria=function(A){this.setProperty("ExtraCriteria",A)};MQDBLayerQuery.prototype.getExtraCriteria=function(){return this.getProperty("ExtraCriteria")
};MQPrimitive.prototype=new MQObject();MQPrimitive.prototype.constructor=MQPrimitive;function MQPrimitive(){MQObject.call(this);var A=new MQDrawTrigger(MQCONSTANT.MQDRAWTRIGGER_AFTER_TEXT);this.getDrawTrigger=function(){return A};this.setDrawTrigger=function(C){if(C){if(C.getClassName()==="MQDrawTrigger"){A=C}}};var B=new MQCoordinateType(MQCONSTANT.MQCOORDINATETYPE_GEOGRAPHIC);this.getCoordinateType=function(){return B};this.setCoordinateType=function(C){if(C){if(C.getClassName()==="MQCoordinateType"){B=C}}}}MQPrimitive.prototype.getClassName=function(){return"MQPrimitive"};MQPrimitive.prototype.getObjectVersion=function(){return 2};MQPrimitive.prototype.setKey=function(A){this.setProperty("Key",A)};MQPrimitive.prototype.getKey=function(){return this.getProperty("Key")};MQPrimitive.prototype.setOpacity=function(A){this.setProperty("Opacity",A)};MQPrimitive.prototype.getOpacity=function(){return this.getProperty("Opacity")};MQLinePrimitive.prototype=new MQPrimitive();MQLinePrimitive.prototype.constructor=MQLinePrimitive;function MQLinePrimitive(){MQPrimitive.call(this);this.setM_Xpath("LinePrimitive");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getLINEPRIMITIVE()));var C=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);this.getColor=function(){return C};this.setColor=function(E){if(E){if(E.getClassName()==="MQColorStyle"){C=E}}};var D=new MQPenStyle(MQCONSTANT.MQPENSTYLE_SOLID);this.getStyle=function(){return D};this.setStyle=function(E){if(E){if(E.getClassName()==="MQPenStyle"){D=E}}};var A=new MQPointCollection();A.setM_Xpath("Points");this.getPoints=function(){return A};var B=new MQLatLngCollection();B.setM_Xpath("LatLngs");this.getLatLngs=function(){return B};this.setLatLngs=function(E){if(E){if(E.getClassName()==="MQLatLngCollection"){B.removeAll();B.append(E)}}}}MQLinePrimitive.prototype.getClassName=function(){return"MQLinePrimitive"};MQLinePrimitive.prototype.getObjectVersion=function(){return 0};MQLinePrimitive.prototype.loadXml=function(C){this.setM_XmlDoc(MQA.createXMLDoc(C));var B=new MQLatLngCollection();B.setM_Xpath("LatLngs");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")))}this.setLatLngs(B);var A=new MQPointCollection();A.setM_Xpath("Points");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")))}this.setPoints(B);this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));this.setColor(new MQColorStyle(Math.floor(this.getProperty("Color"))));this.setStyle(new MQPenStyle(Math.floor(this.getProperty("Style"))))};MQLinePrimitive.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LatLngs"));A=MQA.createXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"Points"));this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());this.setProperty("CoordinateType",this.getCoordinateType().intValue());this.setProperty("Color",this.getColor().intValue());this.setProperty("Style",this.getStyle().intValue());return mqXmlToStr(this.getM_XmlDoc())};MQLinePrimitive.prototype.setWidth=function(A){this.setProperty("Width",A)};MQLinePrimitive.prototype.getWidth=function(){return this.getProperty("Width")};MQPolygonPrimitive.prototype=new MQLinePrimitive();MQPolygonPrimitive.prototype.constructor=MQPolygonPrimitive;function MQPolygonPrimitive(){MQLinePrimitive.call(this);this.setM_Xpath("LinePrimitive");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getPOLYGONPRIMITIVE()));var B=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_RED);this.getFillColor=function(){return B};this.setFillColor=function(C){if(C){if(C.getClassName()==="MQColorStyle"){B=C}}};var A=new MQFillStyle(MQCONSTANT.MQFILLSTYLE_SOLID);
this.getFillStyle=function(){return A};this.setFillStyle=function(C){if(C){if(C.getClassName()==="MQFillStyle"){A=C}}}}MQPolygonPrimitive.prototype.getClassName=function(){return"MQPolygonPrimitive"};MQPolygonPrimitive.prototype.getObjectVersion=function(){return 0};MQPolygonPrimitive.prototype.loadXml=function(C){this.setM_XmlDoc(MQA.createXMLDoc(C));var B=new MQLatLngCollection();B.setM_Xpath("LatLngs");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")))}this.setLatLngs(B);var A=new MQPointCollection();A.setM_Xpath("Points");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/Points")))}this.setPoints(B);this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));this.setColor(new MQColorStyle(Math.floor(this.getProperty("Color"))));this.setStyle(new MQPenStyle(Math.floor(this.getProperty("Style"))));this.setFillColor(new MQColorStyle(Math.floor(this.getProperty("FillColor"))));this.setFillStyle(new MQFillStyle(Math.floor(this.getProperty("FillStyle"))))};MQPolygonPrimitive.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LatLngs"));A=MQA.createXMLDoc(this.getPoints().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"Points"));this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());this.setProperty("CoordinateType",this.getCoordinateType().intValue());this.setProperty("Color",this.getColor().intValue());this.setProperty("Style",this.getStyle().intValue());this.setProperty("FillColor",this.getFillColor().intValue());this.setProperty("FillStyle",this.getFillStyle().intValue());return mqXmlToStr(this.getM_XmlDoc())};MQRectanglePrimitive.prototype=new MQPrimitive();MQRectanglePrimitive.prototype.constructor=MQRectanglePrimitive;function MQRectanglePrimitive(){MQPrimitive.call(this);this.setM_Xpath("RectanglePrimitive");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getRECTANGLEPRIMITIVE()));var D=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);this.getColor=function(){return D};this.setColor=function(I){if(I){if(I.getClassName()==="MQColorStyle"){D=I}}};var G=new MQPenStyle(MQCONSTANT.MQPENSTYLE_SOLID);this.getStyle=function(){return G};this.setStyle=function(I){if(I){if(I.getClassName()==="MQPenStyle"){G=I}}};var H=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_RED);this.getFillColor=function(){return H};this.setFillColor=function(I){if(I){if(I.getClassName()==="MQColorStyle"){H=I}}};var A=new MQFillStyle(MQCONSTANT.MQFILLSTYLE_SOLID);this.getFillStyle=function(){return A};this.setFillStyle=function(I){if(I){if(I.getClassName()==="MQFillStyle"){A=I}}};var C=new MQLatLng("UpperLeftLatLng");this.getUpperLeftLatLng=function(){return C};this.setUpperLeftLatLng=function(I){C.setLatLng(I.getLatitude(),I.getLongitude())};var F=new MQLatLng("LowerRightLatLng");this.getLowerRightLatLng=function(){return F};this.setLowerRightLatLng=function(I){F.setLatLng(I.getLatitude(),I.getLongitude())};var B=new MQPoint("UpperLeftPoint");this.getUpperLeftPoint=function(){return B};this.setUpperLeftPoint=function(I){B.setXY(I.getX(),I.getY())};var E=new MQPoint("LowerRightPoint");this.getLowerRightPoint=function(){return E};this.setLowerRightPoint=function(I){E.setXY(I.getX(),I.getY())}}MQRectanglePrimitive.prototype.getClassName=function(){return"MQRectanglePrimitive"};MQRectanglePrimitive.prototype.getObjectVersion=function(){return 0};MQRectanglePrimitive.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));var C=this.getUpperLeftLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null){C.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")))
}C=this.getLowerRightLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")!==null){C.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")))}var A=this.getUpperLeftPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")))}A=this.getLowerRightPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")))}this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));this.setColor(new MQColorStyle(Math.floor(this.getProperty("Color"))));this.setStyle(new MQPenStyle(Math.floor(this.getProperty("Style"))));this.setFillColor(new MQColorStyle(Math.floor(this.getProperty("FillColor"))));this.setFillStyle(new MQFillStyle(Math.floor(this.getProperty("FillStyle"))))};MQRectanglePrimitive.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getUpperLeftLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"UpperLeftLatLng"));A=MQA.createXMLDoc(this.getLowerRightLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LowerRightLatLng"));A=MQA.createXMLDoc(this.getUpperLeftPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"UpperLeftPoint"));A=MQA.createXMLDoc(this.getLowerRightPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LowerRightPoint"));this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());this.setProperty("CoordinateType",this.getCoordinateType().intValue());this.setProperty("Color",this.getColor().intValue());this.setProperty("Style",this.getStyle().intValue());this.setProperty("FillColor",this.getFillColor().intValue());this.setProperty("FillStyle",this.getFillStyle().intValue());return mqXmlToStr(this.getM_XmlDoc())};MQRectanglePrimitive.prototype.setWidth=function(A){this.setProperty("Width",A)};MQRectanglePrimitive.prototype.getWidth=function(){return this.getProperty("Width")};MQEllipsePrimitive.prototype=new MQRectanglePrimitive();MQEllipsePrimitive.prototype.constructor=MQEllipsePrimitive;function MQEllipsePrimitive(){MQRectanglePrimitive.call(this);this.setM_Xpath("EllipsePrimitive");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getELLIPSEPRIMITIVE()))}MQEllipsePrimitive.prototype.getClassName=function(){return"MQEllipsePrimitive"};MQEllipsePrimitive.prototype.getObjectVersion=function(){return 0};MQSymbolPrimitive.prototype=new MQPrimitive();MQSymbolPrimitive.prototype.constructor=MQSymbolPrimitive;function MQSymbolPrimitive(){MQPrimitive.call(this);this.setM_Xpath("SymbolPrimitive");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getSYMBOLPRIMITIVE()));var B=new MQPoint("CenterPoint");this.getCenterPoint=function(){return B};this.setCenterPoint=function(D){B.setXY(D.getX(),D.getY())};var A=new MQLatLng("CenterLatLng");this.getCenterLatLng=function(){return A};this.setCenterLatLng=function(D){A.setLatLng(D.getLatitude(),D.getLongitude())};var C=new MQSymbolType(MQCONSTANT.MQSYMBOLTYPE_RASTER);this.getSymbolType=function(){return C};this.setSymbolType=function(D){if(D){if(D.getClassName()==="MQSymbolType"){C=D}}}}MQSymbolPrimitive.prototype.getClassName=function(){return"MQSymbolPrimitive"};MQSymbolPrimitive.prototype.getObjectVersion=function(){return 0};MQSymbolPrimitive.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));var C=this.getCenterLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){C.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")))}var A=this.getCenterPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")))
}this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));this.setSymbolType(new MQSymbolType(Math.floor(this.getProperty("SymbolType"))))};MQSymbolPrimitive.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getCenterLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterLatLng"));A=MQA.createXMLDoc(this.getCenterPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterPoint"));this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());this.setProperty("CoordinateType",this.getCoordinateType().intValue());this.setProperty("SymbolType",this.getSymbolType().intValue());return mqXmlToStr(this.getM_XmlDoc())};MQSymbolPrimitive.prototype.setSymbolName=function(A){this.setProperty("SymbolName",A)};MQSymbolPrimitive.prototype.getSymbolName=function(){return this.getProperty("SymbolName")};MQTextPrimitive.prototype=new MQPrimitive();MQTextPrimitive.prototype.constructor=MQTextPrimitive;function MQTextPrimitive(){MQPrimitive.call(this);this.setM_Xpath("TextPrimitive");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getTEXTPRIMITIVE()));var D=new MQPoint("UpperLeftPoint");this.getUpperLeftPoint=function(){return D};this.setUpperLeftPoint=function(H){D.setXY(H.getX(),H.getY())};var C=new MQLatLng("UpperLeftLatLng");this.getUpperLeftLatLng=function(){return C};this.setUpperLeftLatLng=function(H){C.setLatLng(H.getLatitude(),H.getLongitude())};var F=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_BLACK);this.getColor=function(){return F};this.setColor=function(H){if(H){if(H.getClassName()==="MQColorStyle"){F=H}}};var G=new MQFontStyle(MQCONSTANT.MQFONTSTYLE_BOXED);this.getStyle=function(){return G};this.setStyle=function(H){if(H){if(H.getClassName()==="MQFontStyle"){G=H}}};var A=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_WHITE);this.getBkgdColor=function(){return A};this.setBkgdColor=function(H){if(H){if(H.getClassName()==="MQColorStyle"){A=H}}};var B=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getBoxOutlineColor=function(){return B};this.setBoxOutlineColor=function(H){if(H){if(H.getClassName()==="MQColorStyle"){B=H}}};var E=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getOutlineColor=function(){return E};this.setOutlineColor=function(H){if(H){if(H.getClassName()==="MQColorStyle"){E=H}}}}MQTextPrimitive.prototype.getClassName=function(){return"MQTextPrimitive"};MQTextPrimitive.prototype.getObjectVersion=function(){return 0};MQTextPrimitive.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));var C=this.getUpperLeftLatLng();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null){C.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")))}var A=this.getUpperLeftPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")))}this.setDrawTrigger(new MQDrawTrigger(Math.floor(this.getProperty("DrawTrigger"))));this.setCoordinateType(new MQCoordinateType(Math.floor(this.getProperty("CoordinateType"))));this.setColor(new MQColorStyle(Math.floor(this.getProperty("Color"))));this.setStyle(new MQFontStyle(Math.floor(this.getProperty("Style"))));this.setBkgdColor(new MQColorStyle(Math.floor(this.getProperty("BkgdColor"))));this.setBoxOutlineColor(new MQColorStyle(Math.floor(this.getProperty("BoxOutlineColor"))));this.setOutlineColor(new MQColorStyle(Math.floor(this.getProperty("OutlineColor"))))};MQTextPrimitive.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getUpperLeftLatLng().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"UpperLeftLatLng"));A=MQA.createXMLDoc(this.getUpperLeftPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"UpperLeftPoint"));this.setProperty("DrawTrigger",this.getDrawTrigger().intValue());
this.setProperty("CoordinateType",this.getCoordinateType().intValue());this.setProperty("Color",this.getColor().intValue());this.setProperty("Style",this.getStyle().intValue());this.setProperty("BkgdColor",this.getBkgdColor().intValue());this.setProperty("BoxOutlineColor",this.getBoxOutlineColor().intValue());this.setProperty("OutlineColor",this.getOutlineColor().intValue());return mqXmlToStr(this.getM_XmlDoc())};MQTextPrimitive.prototype.setText=function(A){this.setProperty("Text",A)};MQTextPrimitive.prototype.getText=function(){return this.getProperty("Text")};MQTextPrimitive.prototype.setFontName=function(A){this.setProperty("FontName",A)};MQTextPrimitive.prototype.getFontName=function(){return this.getProperty("FontName")};MQTextPrimitive.prototype.setWidth=function(A){this.setProperty("Width",A)};MQTextPrimitive.prototype.getWidth=function(){return this.getProperty("Width")};MQTextPrimitive.prototype.setFontSize=function(A){this.setProperty("FontSize",A)};MQTextPrimitive.prototype.getFontSize=function(){return this.getProperty("FontSize")};MQTextPrimitive.prototype.setMargin=function(A){this.setProperty("Margin",A)};MQTextPrimitive.prototype.getMargin=function(){return this.getProperty("Margin")};MQTextPrimitive.prototype.setTextAlignment=function(A){this.setProperty("TextAlignment",A)};MQTextPrimitive.prototype.getTextAlignment=function(){return this.getProperty("TextAlignment")};MQFeatureSpecifier.prototype=new MQObject();MQFeatureSpecifier.prototype.constructor=MQFeatureSpecifier;function MQFeatureSpecifier(){MQObject.call(this);this.setM_Xpath("FeatureSpecifier");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getFEATURESPECIFIER()));var A=new MQFeatureSpeciferAttributeType(MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_GEFID);this.getAttributeType=function(){return A};this.setAttributeType=function(B){if(B){if(B.getClassName()==="MQFeatureSpeciferAttributeType"){A=B}}}}MQFeatureSpecifier.prototype.getClassName=function(){return"MQFeatureSpecifier"};MQFeatureSpecifier.prototype.getObjectVersion=function(){return 0};MQFeatureSpecifier.prototype.setAttributeValue=function(A){this.setProperty("AttributeValue",A)};MQFeatureSpecifier.prototype.getAttributeValue=function(){return this.getProperty("AttributeValue")};MQBaseDTStyle.prototype=new MQObject();MQBaseDTStyle.prototype.constructor=MQBaseDTStyle;function MQBaseDTStyle(){MQObject.call(this)}MQBaseDTStyle.prototype.getClassName=function(){return"MQBaseDTStyle"};MQBaseDTStyle.prototype.getObjectVersion=function(){return 0};MQBaseDTStyle.prototype.setDT=function(A){this.setProperty("DT",A)};MQBaseDTStyle.prototype.getDT=function(){return this.getProperty("DT")};MQBaseDTStyle.prototype.setHighScale=function(A){this.setProperty("HighScale",A)};MQBaseDTStyle.prototype.getHighScale=function(){return this.getProperty("HighScale")};MQBaseDTStyle.prototype.setLowScale=function(A){this.setProperty("LowScale",A)};MQBaseDTStyle.prototype.getLowScale=function(){return this.getProperty("LowScale")};MQBaseDTStyle.prototype.equals=function(C){if(C){try{var B=C.getClassName()}catch(A){alert("Invalid type for this function!");throw"Invalid type for this function!"}if(B===this.getClassName()){return(this.getDT()===C.getDT()&&this.getHighScale()===C.getHighScale()&&this.getLowScale()===C.getLowScale())}else{alert("Invalid type for this function!");throw"Invalid type for this function!"}}else{alert("An MQBaseDTStyle parameter must be provided for this function!");throw"An MQBaseDTStyle parameter must be provided for this function!"}};MQDTStyle.prototype=new MQBaseDTStyle();MQDTStyle.prototype.constructor=MQDTStyle;function MQDTStyle(){MQBaseDTStyle.call(this);this.setM_Xpath("DTStyle");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getDTSTYLE()));var C=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontColor=function(){return C};this.setFontColor=function(G){if(G){if(G.getClassName()==="MQColorStyle"){C=G}}};var B=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontOutlineColor=function(){return B
};this.setFontOutlineColor=function(G){if(G){if(G.getClassName()==="MQColorStyle"){B=G}}};var F=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontBoxBkgdColor=function(){return F};this.setFontBoxBkgdColor=function(G){if(G){if(G.getClassName()==="MQColorStyle"){F=G}}};var A=new MQColorStyle(MQCONSTANT.MQCOLORSTYLE_INVALID);this.getFontBoxOutlineColor=function(){return A};this.setFontBoxOutlineColor=function(G){if(G){if(G.getClassName()==="MQColorStyle"){A=G}}};var D=new MQFontStyle(MQCONSTANT.MQFONTSTYLE_INVALID);this.getFontStyle=function(){return D};this.setFontStyle=function(G){if(G){if(G.getClassName()==="MQFontStyle"){D=G}}};var E=new MQSymbolType(MQCONSTANT.MQSYMBOLTYPE_RASTER);this.getSymbolType=function(){return E};this.setSymbolType=function(G){if(G){if(G.getClassName()==="MQSymbolType"){E=G}}}}MQDTStyle.prototype.getClassName=function(){return"MQDTStyle"};MQDTStyle.prototype.getObjectVersion=function(){return 0};MQDTStyle.prototype.loadXml=function(A){this.setM_XmlDoc(MQA.createXMLDoc(A));this.setFontColor(new MQColorStyle(Math.floor(this.getProperty("FontColor"))));this.setFontOutlineColor(new MQColorStyle(Math.floor(this.getProperty("FontOutlineColor"))));this.setFontBoxBkgdColor(new MQColorStyle(Math.floor(this.getProperty("FontBoxBkgdColor"))));this.setFontBoxOutlineColor(new MQColorStyle(Math.floor(this.getProperty("FontBoxOutlineColor"))));this.setFontStyle(new MQFontStyle(Math.floor(this.getProperty("FeatureSpeciferAttributeType"))));this.setSymbolType(new MQSymbolType(Math.floor(this.getProperty("SymbolType"))))};MQDTStyle.prototype.saveXml=function(){this.setProperty("FontColor",this.getFontColor().intValue());this.setProperty("FontOutlineColor",this.getFontOutlineColor().intValue());this.setProperty("FontBoxBkgdColor",this.getFontBoxBkgdColor().intValue());this.setProperty("FontBoxOutlineColor",this.getFontBoxOutlineColor().intValue());this.setProperty("FontStyle",this.getFontStyle().intValue());this.setProperty("SymbolType",this.getSymbolType().intValue());return mqXmlToStr(this.getM_XmlDoc())};MQDTStyle.prototype.setSymbolName=function(A){this.setProperty("SymbolName",A)};MQDTStyle.prototype.getSymbolName=function(){return this.getProperty("SymbolName")};MQDTStyle.prototype.setFontName=function(A){this.setProperty("FontName",A)};MQDTStyle.prototype.getFontName=function(){return this.getProperty("FontName")};MQDTStyle.prototype.setVisible=function(A){this.setProperty("Visible",(A===true)?1:0)};MQDTStyle.prototype.getVisible=function(){return(this.getProperty("Visible")==1)?true:false};MQDTStyle.prototype.setLabelVisible=function(A){this.setProperty("LabelVisible",(A===true)?1:0)};MQDTStyle.prototype.getLabelVisible=function(){return(this.getProperty("LabelVisible")==1)?true:false};MQDTStyle.prototype.setFontSize=function(A){this.setProperty("FontSize",A)};MQDTStyle.prototype.getFontSize=function(){return this.getProperty("FontSize")};MQDTStyle.prototype.setFontBoxMargin=function(A){this.setProperty("FontBoxMargin",A)};MQDTStyle.prototype.getFontBoxMargin=function(){return this.getProperty("FontBoxMargin")};MQDTStyleEx.prototype=new MQBaseDTStyle();MQDTStyleEx.prototype.constructor=MQDTStyleEx;function MQDTStyleEx(){MQBaseDTStyle.call(this);this.setM_Xpath("DTStyleEx");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getDTSTYLEEX()))}MQDTStyleEx.prototype.getClassName=function(){return"MQDTStyleEx"};MQDTStyleEx.prototype.getObjectVersion=function(){return 0};MQDTStyleEx.prototype.loadXml=function(A){this.setM_XmlDoc(MQA.createXMLDoc(A))};MQDTStyleEx.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};MQDTStyleEx.prototype.setStyleString=function(A){this.setProperty("StyleString",A)};MQDTStyleEx.prototype.getStyleString=function(){return this.getProperty("StyleString")};MQDTFeatureStyleEx.prototype=new MQDTStyleEx();MQDTFeatureStyleEx.prototype.constructor=MQDTFeatureStyleEx;function MQDTFeatureStyleEx(){MQBaseDTStyle.call(this);this.setM_Xpath("DTStyleEx");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getDTFEATURESTYLEEX()));
var A=new MQFeatureSpecifierCollection("FeatureSpecifier");A.setM_Xpath("FeatureSpecifierCollection");this.getFeatureSpecifiers=function(){return A};this.setFeatureSpecifiers=function(B){if(mqIsClass(A.getClassName(),B,false)){A.removeAll();A.append(B)}}}MQDTFeatureStyleEx.prototype.getClassName=function(){return"MQDTFeatureStyleEx"};MQDTFeatureStyleEx.prototype.getObjectVersion=function(){return 0};MQDTFeatureStyleEx.prototype.loadXml=function(A){this.setM_XmlDoc(MQA.createXMLDoc(A))};MQDTFeatureStyleEx.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};MQMapCommand.prototype=new MQObject();MQMapCommand.prototype.constructor=MQMapCommand;function MQMapCommand(){MQObject.call(this);this.setM_Xpath("DTStyleEx");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getDTFEATURESTYLEEX()));var A=new MQFeatureSpecifierCollection("FeatureSpecifier");A.setM_Xpath("FeatureSpecifierCollection");this.getFeatureSpecifiers=function(){return A};this.setFeatureSpecifiers=function(B){if(B.getClassName()==="MQFeatureSpecifierCollection"){A=B}else{alert("failure in setFeatureSpecifiers");throw"failure in setFeatureSpecifiers"}}}MQMapCommand.prototype.getClassName=function(){return"MQMapCommand"};MQMapCommand.prototype.getObjectVersion=function(){return 0};MQBestFit.prototype=new MQMapCommand();MQBestFit.prototype.constructor=MQBestFit;function MQBestFit(){MQMapCommand.call(this);this.setM_Xpath("BestFit");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getBESTFIT()));var A=new MQDTCollection();A.setM_Xpath("DisplayTypes");this.getDisplayTypes=function(){return A};this.setDisplayTypes=function(B){A.removeAll();A.append(B)}}MQBestFit.prototype.getClassName=function(){return"MQBestFit"};MQBestFit.prototype.getObjectVersion=function(){return 2};MQBestFit.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));var A=this.getDisplayTypes();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DisplayTypes")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DisplayTypes")))}};MQBestFit.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getDisplayTypes().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"DisplayTypes"));return mqXmlToStr(this.getM_XmlDoc())};MQBestFit.prototype.setIncludePrimitives=function(A){this.setProperty("IncludePrimitives",(A===true)?1:0)};MQBestFit.prototype.getIncludePrimitives=function(){return(this.getProperty("IncludePrimitives")==1)?true:false};MQBestFit.prototype.setKeepCenter=function(A){this.setProperty("KeepCenter",(A===true)?1:0)};MQBestFit.prototype.getKeepCenter=function(){return(this.getProperty("KeepCenter")==1)?true:false};MQBestFit.prototype.setSnapToZoomLevel=function(A){this.setProperty("SnapToZoomLevel",(A===true)?1:0)};MQBestFit.prototype.getSnapToZoomLevel=function(){return(this.getProperty("SnapToZoomLevel")==1)?true:false};MQBestFit.prototype.setScaleAdjustmentFactor=function(A){this.setProperty("ScaleAdjFactor",A)};MQBestFit.prototype.getScaleAdjustmentFactor=function(){return this.getProperty("ScaleAdjFactor")};MQBestFitLL.prototype=new MQMapCommand();MQBestFitLL.prototype.constructor=MQBestFitLL;function MQBestFitLL(){MQMapCommand.call(this);this.setM_Xpath("BestFitLL");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getBESTFITLL()));var A=new MQLatLngCollection();A.setM_Xpath("LatLngs");this.getLatLngs=function(){return A};this.setLatLngs=function(B){A.removeAll();A.append(B)}}MQBestFitLL.prototype.getClassName=function(){return"MQBestFitLL"};MQBestFitLL.prototype.getObjectVersion=function(){return 0};MQBestFitLL.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));var A=this.getLatLngs();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LatLngs")))}};MQBestFitLL.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getLatLngs().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"LatLngs"));
return mqXmlToStr(this.getM_XmlDoc())};MQBestFitLL.prototype.setKeepCenter=function(A){this.setProperty("KeepCenter",(A===true)?1:0)};MQBestFitLL.prototype.getKeepCenter=function(){return(this.getProperty("KeepCenter")==1)?true:false};MQBestFitLL.prototype.setSnapToZoomLevel=function(A){this.setProperty("SnapToZoomLevel",(A===true)?1:0)};MQBestFitLL.prototype.getSnapToZoomLevel=function(){return(this.getProperty("SnapToZoomLevel")==1)?true:false};MQBestFitLL.prototype.setScaleAdjustmentFactor=function(A){this.setProperty("ScaleAdjFactor",A)};MQBestFitLL.prototype.getScaleAdjustmentFactor=function(){return this.getProperty("ScaleAdjFactor")};MQCenter.prototype=new MQMapCommand();MQCenter.prototype.constructor=MQCenter;function MQCenter(){MQMapCommand.call(this);this.setM_Xpath("Center");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getCENTER()));var A=new MQPoint("CenterPoint");this.getCenter=function(){return A};this.setCenter=function(B){if(mqIsClass(A.getClassName(),B,false)){A=B.internalCopy(A)}}}MQCenter.prototype.getClassName=function(){return"MQCenter"};MQCenter.prototype.getObjectVersion=function(){return 0};MQCenter.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));var A=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")))}};MQCenter.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterPoint"));return mqXmlToStr(this.getM_XmlDoc())};MQCenterLatLng.prototype=new MQMapCommand();MQCenterLatLng.prototype.constructor=MQCenterLatLng;function MQCenterLatLng(){MQMapCommand.call(this);this.setM_Xpath("CenterLatLng");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getCENTERLATLNG()));var A=new MQLatLng("CenterLatLng");this.getCenter=function(){return A};this.setCenter=function(B){if(mqIsClass(A.getClassName(),B,false)){A=B.internalCopy(A)}}}MQCenterLatLng.prototype.getClassName=function(){return"MQCenterLatLng"};MQCenterLatLng.prototype.getObjectVersion=function(){return 0};MQCenterLatLng.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));var A=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterLatLng")))}};MQCenterLatLng.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterLatLng"));return mqXmlToStr(this.getM_XmlDoc())};MQPan.prototype=new MQMapCommand();MQPan.prototype.constructor=MQPan;function MQPan(){MQMapCommand.call(this);this.setM_Xpath("Pan");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getPAN()));var A=new MQPoint("DeltaPoint");this.getPoint=function(){return A};this.setDeltaXY=function(C,B){A.setXY(C,B)};this.setDeltaY=function(B){A.setY(B)};this.setDeltaX=function(B){A.setX(B)}}MQPan.prototype.getClassName=function(){return"MQPan"};MQPan.prototype.getObjectVersion=function(){return 0};MQPan.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));var A=this.getPoint();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DeltaPoint")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DeltaPoint")))}};MQPan.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getPoint().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"DeltaPoint"));return mqXmlToStr(this.getM_XmlDoc())};MQZoomIn.prototype=new MQMapCommand();MQZoomIn.prototype.constructor=MQZoomIn;function MQZoomIn(){MQMapCommand.call(this);this.setM_Xpath("ZoomIn");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getZOOMIN()));var A=new MQPoint("CenterPoint");this.getCenter=function(){return A};this.setCenter=function(B){A=B}}MQZoomIn.prototype.getClassName=function(){return"MQZoomIn"};MQZoomIn.prototype.getObjectVersion=function(){return 0
};MQZoomIn.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));var A=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")))}};MQZoomIn.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterPoint"));return mqXmlToStr(this.getM_XmlDoc())};MQZoomOut.prototype=new MQMapCommand();MQZoomOut.prototype.constructor=MQZoomOut;function MQZoomOut(){MQMapCommand.call(this);this.setM_Xpath("ZoomOut");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getZOOMOUT()));var A=new MQPoint("CenterPoint");this.getCenter=function(){return A};this.setCenter=function(B){A=B}}MQZoomOut.prototype.getClassName=function(){return"MQZoomOut"};MQZoomOut.prototype.getObjectVersion=function(){return 0};MQZoomOut.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));var A=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")))}};MQZoomOut.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterPoint"));return mqXmlToStr(this.getM_XmlDoc())};MQZoomTo.prototype=new MQMapCommand();MQZoomTo.prototype.constructor=MQZoomTo;function MQZoomTo(){MQMapCommand.call(this);this.setM_Xpath("ZoomTo");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getZOOMTO()));var A=new MQPoint("CenterPoint");this.getCenter=function(){return A};this.setCenter=function(B){A=B}}MQZoomTo.prototype.getClassName=function(){return"MQZoomTo"};MQZoomTo.prototype.getObjectVersion=function(){return 0};MQZoomTo.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));var A=this.getCenter();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/CenterPoint")))}};MQZoomTo.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getCenter().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"CenterPoint"));return mqXmlToStr(this.getM_XmlDoc())};MQZoomTo.prototype.getZoomLevel=function(){return this.getProperty("ZoomLevel")};MQZoomTo.prototype.setZoomLevel=function(A){this.setProperty("ZoomLevel",A)};MQZoomToRect.prototype=new MQMapCommand();MQZoomToRect.prototype.constructor=MQZoomToRect;function MQZoomToRect(){MQMapCommand.call(this);this.setM_Xpath("ZoomToRect");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getZOOMTORECT()));var A=new MQPoint("UpperLeftPoint");var B=new MQPoint("LowerRightPoint");this.getRect=function(C,D){C.loadXml(A.copy().saveXml());D.loadXml(B.copy().saveXml())};this.setRect=function(C,D){if(mqIsClass(A.getClassName(),C,false)&&mqIsClass(B.getClassName(),D,false)){A=C.internalCopy(A);B=D.internalCopy(B)}}}MQZoomToRect.prototype.getClassName=function(){return"MQZoomToRect"};MQZoomToRect.prototype.getObjectVersion=function(){return 0};MQZoomToRect.prototype.loadXml=function(C){this.setM_XmlDoc(MQA.createXMLDoc(C));var B=new MQPoint("UpperLeftPoint"),A=new MQPoint("LowerRightPoint");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftPoint")))}if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightPoint")))}this.setRect(B,A)};MQZoomToRect.prototype.saveXml=function(){var C=new MQPoint("UpperLeftPoint"),A=new MQPoint("LowerRightPoint");this.getRect(C,A);var B=MQA.createXMLDoc(C.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),B,"UpperLeftPoint"));B=MQA.createXMLDoc(A.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),B,"LowerRightPoint"));
return mqXmlToStr(this.getM_XmlDoc())};MQZoomToRectLatLng.prototype=new MQMapCommand();MQZoomToRectLatLng.prototype.constructor=MQZoomToRectLatLng;function MQZoomToRectLatLng(){MQMapCommand.call(this);this.setM_Xpath("ZoomToRectLatLng");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getZOOMTORECTLATLNG()));var A=new MQLatLng("UpperLeftLatLng");var B=new MQLatLng("LowerRightLatLng");this.getRect=function(C,D){C.loadXml(A.copy().saveXml());D.loadXml(B.copy().saveXml())};this.setRect=function(C,D){if(mqIsClass(A.getClassName(),C,false)&&mqIsClass(B.getClassName(),D,false)){A=C.internalCopy(A);B=D.internalCopy(B)}}}MQZoomToRectLatLng.prototype.getClassName=function(){return"MQZoomToRectLatLng"};MQZoomToRectLatLng.prototype.getObjectVersion=function(){return 0};MQZoomToRectLatLng.prototype.loadXml=function(C){this.setM_XmlDoc(MQA.createXMLDoc(C));var B=new MQLatLng("UpperLeftLatLng"),A=new MQLatLng("LowerRightLatLng");if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")!==null){B.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/UpperLeftLatLng")))}if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/LowerRightLatLng")))}this.setRect(B,A)};MQZoomToRectLatLng.prototype.saveXml=function(){var C=new MQLatLng("UpperLeftLatLng"),A=new MQLatLng("LowerRightLatLng");this.getRect(C,A);var B=MQA.createXMLDoc(C.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),B,"UpperLeftLatLng"));B=MQA.createXMLDoc(A.saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),B,"LowerRightLatLng"));return mqXmlToStr(this.getM_XmlDoc())};function MQType(){}MQType.prototype.equals=function(C){if(C){try{var B=C.getClassName()}catch(A){alert("Invalid type for this function!");throw"Invalid type for this function!"}if(B===this.getClassName()){return(this.intValue()===C.intValue())}else{alert("Invalid type for this function!");throw"Invalid type for this function!"}}else{alert("An MQType parameter must be provided for this function!");throw"An MQType parameter must be provided for this function!"}};MQRouteType.prototype=new MQType();MQRouteType.prototype.constructor=MQRouteType;function MQRouteType(B){var A=-1;switch(B){case MQCONSTANT.MQROUTETYPE_FASTEST:A=B;break;case MQCONSTANT.MQROUTETYPE_SHORTEST:A=B;break;case MQCONSTANT.MQROUTETYPE_PEDESTRIAN:A=B;break;case MQCONSTANT.MQROUTETYPE_OPTIMIZED:A=B;break;case MQCONSTANT.MQROUTETYPE_SELECT_DATASET_ONLY:A=B;break;default:alert(B+" is an invalid value for MQRouteType!");throw B+" invalid value for MQRouteType!"}this.intValue=function(){return A}}MQRouteType.prototype.getClassName=function(){return"MQRouteType"};MQRouteType.prototype.getObjectVersion=function(){return 0};MQNarrativeType.prototype=new MQType();MQNarrativeType.prototype.constructor=MQNarrativeType;function MQNarrativeType(B){var A=-2;switch(B){case MQCONSTANT.MQNARRATIVETYPE_DEFAULT:A=B;break;case MQCONSTANT.MQNARRATIVETYPE_HTML:A=B;break;case MQCONSTANT.MQNARRATIVETYPE_NONE:A=B;break;default:alert(B+" is an invalid value for MQNarrativeType!");throw B+" invalid value for MQNarrativeType!"}this.intValue=function(){return A}}MQNarrativeType.prototype.getClassName=function(){return"MQNarrativeType"};MQNarrativeType.prototype.getObjectVersion=function(){return 0};MQCoordinateType.prototype=new MQType();MQCoordinateType.prototype.constructor=MQCoordinateType;function MQCoordinateType(B){var A=-2;switch(B){case MQCONSTANT.MQCOORDINATETYPE_DISPLAY:A=B;break;case MQCONSTANT.MQCOORDINATETYPE_GEOGRAPHIC:A=B;break;default:alert(B+" is an invalid value for MQCoordinateType!");throw B+" invalid value for MQCoordinateType!"}this.intValue=function(){return A}}MQCoordinateType.prototype.getClassName=function(){return"MQCoordinateType"};MQCoordinateType.prototype.getObjectVersion=function(){return 0};MQFeatureSpeciferAttributeType.prototype=new MQType();MQFeatureSpeciferAttributeType.prototype.constructor=MQFeatureSpeciferAttributeType;
function MQFeatureSpeciferAttributeType(B){var A=-1;switch(B){case MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_GEFID:A=B;break;case MQCONSTANT.MQFEATURESPECIFERATTRIBUTETYPE_NAME:A=B;break;default:alert(B+" is an invalid value for MQFeatureSpeciferAttributeType!");throw B+" invalid value for MQFeatureSpeciferAttributeType!"}this.intValue=function(){return A}}MQFeatureSpeciferAttributeType.prototype.getClassName=function(){return"MQFeatureSpeciferAttributeType"};MQFeatureSpeciferAttributeType.prototype.getObjectVersion=function(){return 0};MQSymbolType.prototype=new MQType();MQSymbolType.prototype.constructor=MQSymbolType;function MQSymbolType(B){var A=-1;switch(B){case MQCONSTANT.MQSYMBOLTYPE_RASTER:A=B;break;case MQCONSTANT.MQSYMBOLTYPE_VECTOR:A=B;break;default:alert(B+" is an invalid value for MQSymbolType!");throw B+" invalid value for MQSymbolType!"}this.intValue=function(){return A}}MQSymbolType.prototype.getClassName=function(){return"MQSymbolType"};MQSymbolType.prototype.getObjectVersion=function(){return 0};MQMatchType.prototype=new MQType();MQMatchType.prototype.constructor=MQMatchType;function MQMatchType(B){var A=-1;switch(B){case MQCONSTANT.MQMATCHTYPE_LOC:A=B;break;case MQCONSTANT.MQMATCHTYPE_INTR:A=B;break;case MQCONSTANT.MQMATCHTYPE_NEARBLK:A=B;break;case MQCONSTANT.MQMATCHTYPE_REPBLK:A=B;break;case MQCONSTANT.MQMATCHTYPE_BLOCK:A=B;break;case MQCONSTANT.MQMATCHTYPE_AA1:A=B;break;case MQCONSTANT.MQMATCHTYPE_AA2:A=B;break;case MQCONSTANT.MQMATCHTYPE_AA3:A=B;break;case MQCONSTANT.MQMATCHTYPE_AA4:A=B;break;case MQCONSTANT.MQMATCHTYPE_AA5:A=B;break;case MQCONSTANT.MQMATCHTYPE_AA6:A=B;break;case MQCONSTANT.MQMATCHTYPE_AA7:A=B;break;case MQCONSTANT.MQMATCHTYPE_PC1:A=B;break;case MQCONSTANT.MQMATCHTYPE_PC2:A=B;break;case MQCONSTANT.MQMATCHTYPE_PC3:A=B;break;case MQCONSTANT.MQMATCHTYPE_PC4:A=B;break;case MQCONSTANT.MQMATCHTYPE_POI:A=B;break;default:alert(B+" is an invalid value for MQMatchType!");throw B+" invalid value for MQMatchType!"}this.intValue=function(){return A}}MQMatchType.prototype.getClassName=function(){return"MQMatchType"};MQMatchType.prototype.getObjectVersion=function(){return 0};MQQualityType.prototype=new MQType();MQQualityType.prototype.constructor=MQQualityType;function MQQualityType(B){var A=-1;switch(B){case MQCONSTANT.MQQUALITYTYPE_EXACT:A=B;break;case MQCONSTANT.MQQUALITYTYPE_GOOD:A=B;break;case MQCONSTANT.MQQUALITYTYPE_APPROX:A=B;break;default:alert(B+" is an invalid value for MQQualityType!");throw B+" invalid value for MQQualityType!"}this.intValue=function(){return A}}MQQualityType.prototype.getClassName=function(){return"MQQualityType"};MQQualityType.prototype.getObjectVersion=function(){return 0};MQDrawTrigger.prototype=new MQType();MQDrawTrigger.prototype.constructor=MQDrawTrigger;function MQDrawTrigger(B){var A=-1;switch(B){case MQCONSTANT.MQDRAWTRIGGER_AFTER_POLYGONS:A=B;break;case MQCONSTANT.MQDRAWTRIGGER_AFTER_ROUTE_HIGHLIGHT:A=B;break;case MQCONSTANT.MQDRAWTRIGGER_AFTER_TEXT:A=B;break;case MQCONSTANT.MQDRAWTRIGGER_BEFORE_POLYGONS:A=B;break;case MQCONSTANT.MQDRAWTRIGGER_BEFORE_ROUTE_HIGHLIGHT:A=B;break;case MQCONSTANT.MQDRAWTRIGGER_BEFORE_TEXT:A=B;break;default:alert(B+" is an invalid value for MQDrawTrigger!");throw B+" invalid value for MQDrawTrigger!"}this.intValue=function(){return A}}MQDrawTrigger.prototype.getClassName=function(){return"MQDrawTrigger"};MQDrawTrigger.prototype.getObjectVersion=function(){return 0};MQPenStyle.prototype=new MQType();MQPenStyle.prototype.constructor=MQPenStyle;function MQPenStyle(B){var A=-1;switch(B){case MQCONSTANT.MQPENSTYLE_DASH:A=B;break;case MQCONSTANT.MQPENSTYLE_DASH_DOT:A=B;break;case MQCONSTANT.MQPENSTYLE_DASH_DOT_DOT:A=B;break;case MQCONSTANT.MQPENSTYLE_SOLID:A=B;break;case MQCONSTANT.MQPENSTYLE_DOT:A=B;break;case MQCONSTANT.MQPENSTYLE_NONE:A=B;break;default:alert(B+" is an invalid value for MQPenStyle!");throw B+" invalid value for MQPenStyle!"}this.intValue=function(){return A}}MQPenStyle.prototype.getClassName=function(){return"MQPenStyle"};
MQPenStyle.prototype.getObjectVersion=function(){return 0};MQFontStyle.prototype=new MQType();MQFontStyle.prototype.constructor=MQFontStyle;function MQFontStyle(B){var A=-2;switch(B){case MQCONSTANT.MQFONTSTYLE_BOLD:A=B;break;case MQCONSTANT.MQFONTSTYLE_BOXED:A=B;break;case MQCONSTANT.MQFONTSTYLE_DOT:A=B;break;case MQCONSTANT.MQFONTSTYLE_ITALICS:A=B;break;case MQCONSTANT.MQFONTSTYLE_MAX_VALUE:A=B;break;case MQCONSTANT.MQFONTSTYLE_NORMAL:A=B;break;case MQCONSTANT.MQFONTSTYLE_OUTLINED:A=B;break;case MQCONSTANT.MQFONTSTYLE_SEMIBOLD:A=B;break;case MQCONSTANT.MQFONTSTYLE_STRIKEOUT:A=B;break;case MQCONSTANT.MQFONTSTYLE_THIN:A=B;break;case MQCONSTANT.MQFONTSTYLE_UNDERLINE:A=B;break;case MQCONSTANT.MQFONTSTYLE_INVALID:A=B;break;default:alert(B+" is an invalid value for MQFontStyle!");throw B+" invalid value for MQFontStyle!"}this.intValue=function(){return A}}MQFontStyle.prototype.getClassName=function(){return"MQFontStyle"};MQFontStyle.prototype.getObjectVersion=function(){return 0};MQColorStyle.prototype=new MQType();MQColorStyle.prototype.constructor=MQColorStyle;function MQColorStyle(B){var A=MQCONSTANT.MQCOLORSTYLE_INVALID;if(B!==null){A=B}this.intValue=function(){return A}}MQColorStyle.prototype.getClassName=function(){return"MQColorStyle"};MQColorStyle.prototype.getObjectVersion=function(){return 0};MQColorStyle.prototype.getRGB=function(){var C=-16777216;var B=parseInt(parseInt(this.intValue()/65536)%256);var A=parseInt(parseInt(parseInt(this.intValue()/256)%256)*256);var D=parseInt(parseInt(this.intValue()%256)*65536);return C+B+A+D};MQFillStyle.prototype=new MQType();MQFillStyle.prototype.constructor=MQFillStyle;function MQFillStyle(B){var A=-1;switch(B){case MQCONSTANT.MQFILLSTYLE_SOLID:A=B;break;case MQCONSTANT.MQFILLSTYLE_BDIAGONAL:A=B;break;case MQCONSTANT.MQFILLSTYLE_CROSS:A=B;break;case MQCONSTANT.MQFILLSTYLE_DIAG_CROSS:A=B;break;case MQCONSTANT.MQFILLSTYLE_FDIAGONAL:A=B;break;case MQCONSTANT.MQFILLSTYLE_HORIZONTAL:A=B;break;case MQCONSTANT.MQFILLSTYLE_VERTICAL:A=B;break;case MQCONSTANT.MQFILLSTYLE_NONE:A=B;break;default:alert(B+" is an invalid value for MQFillStyle!");throw B+" invalid value for MQFillStyle!"}this.intValue=function(){return A}}MQFillStyle.prototype.getClassName=function(){return"MQFillStyle"};MQFillStyle.prototype.getObjectVersion=function(){return 0};MQDistanceUnits.prototype=new MQType();MQDistanceUnits.prototype.constructor=MQDistanceUnits;function MQDistanceUnits(B){var A=0;B=B||0;switch(B){case MQCONSTANT.MQDISTANCEUNITS_MILES:A=B;break;case MQCONSTANT.MQDISTANCEUNITS_KILOMETERS:A=B;break;default:alert(B+" is an invalid value for MQDistanceUnits!");throw B+" invalid value for MQDistanceUnist!"}this.getValue=function(){return A}}MQDistanceUnits.prototype.getClassName=function(){return"MQDistanceUnits"};MQDistanceUnits.prototype.getObjectVersion=function(){return 0};MQRouteResultsCode.prototype=new MQType();MQRouteResultsCode.prototype.constructor=MQRouteResultsCode;function MQRouteResultsCode(B){var A=-2;switch(B){case MQCONSTANT.MQROUTERESULTSCODE_NOT_SPECIFIED:A=B;break;case MQCONSTANT.MQROUTERESULTSCODE_SUCCESS:A=B;break;case MQCONSTANT.MQROUTERESULTSCODE_INVALID_LOCATION:A=B;break;case MQCONSTANT.MQROUTERESULTSCODE_ROUTE_FAILURE:A=B;break;case MQCONSTANT.MQROUTERESULTSCODE_NO_DATASET_FOUND:A=B;break;default:alert(B+" is an invalid value for MQRouteResultsCode!");throw B+" invalid value for MQRouteResultsCode!"}this.intValue=function(){return A}}MQRouteResultsCode.prototype.getClassName=function(){return"MQRouteResultsCode"};MQRouteResultsCode.prototype.getObjectVersion=function(){return 0};MQRouteMatrixResultsCode.prototype=new MQType();MQRouteMatrixResultsCode.prototype.constructor=MQRouteMatrixResultsCode;function MQRouteMatrixResultsCode(B){var A=-2;switch(B){case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NOT_SPECIFIED:A=B;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_SUCCESS:A=B;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_INVALID_LOCATION:A=B;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_ROUTE_FAILURE:A=B;
break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_NO_DATASET_FOUND:A=B;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_INVALID_OPTION:A=B;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_PARTIAL_SUCCESS:A=B;break;case MQCONSTANT.MQROUTEMATRIXRESULTSCODE_EXCEEDED_MAX_LOCATIONS:A=B;break;default:alert(B+" is an invalid value for MQRouteMatrixResultsCode!");throw B+" invalid value for MQRouteMatrixResultsCode!"}this.intValue=function(){return A}}MQRouteMatrixResultsCode.prototype.getClassName=function(){return"MQRouteMatrixResultsCode"};MQRouteMatrixResultsCode.prototype.getObjectVersion=function(){return 0};MQLocationCollection.prototype=new MQObjectCollection(32678);MQLocationCollection.prototype.constructor=MQLocationCollection;function MQLocationCollection(){MQObjectCollection.call(this,32678);this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getLOCATIONCOLLECTION()));this.setM_Xpath("LocationCollection")}MQLocationCollection.prototype.getClassName=function(){return"MQLocationCollection"};MQLocationCollection.prototype.getObjectVersion=function(){return 0};MQLocationCollection.prototype.loadXml=function(H){this.removeAll();var F=MQA.createXMLDoc(H);this.setM_XmlDoc(F);if(F!==null){var A=F.documentElement;var B=A.childNodes;var E=B.length;E=(E<32678)?E:32678;var D=0;var G=null;for(var C=D;C<E;C++){if(B[C].nodeName==="Address"){G=new MQAddress();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="GeoAddress"){G=new MQGeoAddress();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="SingleLineAddress"){G=new MQSingleLineAddress();G.loadXml(mqXmlToStr(B[C]))}}}this.add(G)}}};MQLocationCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml()}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D};MQLocationCollection.prototype.isValidObject=function(A){if(A){if(A.getClassName()==="MQGeoAddress"||A.getClassName()==="MQAddress"||A.getClassName()==="MQSingleLineAddress"){return true}}return false};MQLocationCollectionCollection.prototype=new MQObjectCollection(32678);MQLocationCollectionCollection.prototype.constructor=MQLocationCollectionCollection;function MQLocationCollectionCollection(){MQObjectCollection.call(this,32678);this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getLOCATIONCOLLECTIONCOLLECTION()));this.setM_Xpath("LocationCollectionCollection")}MQLocationCollectionCollection.prototype.getClassName=function(){return"MQLocationCollectionCollection"};MQLocationCollectionCollection.prototype.getObjectVersion=function(){return 0};MQLocationCollectionCollection.prototype.loadXml=function(H){this.removeAll();var F=MQA.createXMLDoc(H);this.setM_XmlDoc(F);if(F!==null){var A=F.documentElement;var B=A.childNodes;var E=B.length;E=(E<32678)?E:32678;var D=0;var G=null;for(var C=D;C<E;C++){G=new MQLocationCollection();G.loadXml(mqXmlToStr(B[C]));this.add(G)}}};MQLocationCollectionCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml()}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D};MQLocationCollectionCollection.prototype.isValidObject=function(A){if(A){if(A.getClassName()==="MQLocationCollection"){return true}}return false};MQSignCollection.prototype=new MQObjectCollection(32678);MQSignCollection.prototype.constructor=MQSignCollection;function MQSignCollection(A){MQObjectCollection.call(this,32678);if(A){this.setM_itemXpath(A)}this.setValidClassName("MQSign");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getSIGNCOLLECTION()));this.setM_Xpath("SignCollection")}MQSignCollection.prototype.getClassName=function(){return"MQSignCollection"};MQSignCollection.prototype.getObjectVersion=function(){return 0};MQSignCollection.prototype.loadXml=function(H){this.removeAll();var G=MQA.createXMLDoc(H);this.setM_XmlDoc(G);if(G!==null){var B=G.documentElement;
var C=B.childNodes;var F=C.length;F=(F<32678)?F:32678;var E=0;var A=null;if(this.getValidClassName()==="MQSign"){for(var D=E;D<F;D++){A=new MQSign();A.setM_Xpath(this.getM_itemXpath());A.loadXml(mqXmlToStr(C[D]));this.add(A)}}}};MQSignCollection.prototype.loadXmlFromNode=function(F){var H=mqCreateXMLDocImportNode(F);this.setM_XmlDoc(H);if(H!==null){var B=H.documentElement;var C=B.childNodes;var G=C.length;G=(G<32678)?G:32678;var E=0;var A=null;if(this.getValidClassName()==="MQSign"){for(var D=E;D<G;D++){A=new MQSign();A.setM_Xpath(this.getM_itemXpath());A.loadXmlFromNode(C[D]);this.add(A)}}}};MQSignCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml()}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D};MQPointCollection.prototype=new MQObjectCollection(32678);MQPointCollection.prototype.constructor=MQPointCollection;function MQPointCollection(A){MQObjectCollection.call(this,32678);if(A){this.setM_itemXpath(A)}this.setValidClassName("MQPoint");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getPOINTCOLLECTION()));this.setM_Xpath("PointCollection")}MQPointCollection.prototype.getClassName=function(){return"MQPointCollection"};MQPointCollection.prototype.getObjectVersion=function(){return 0};MQPointCollection.prototype.loadXml=function(I){this.removeAll();var J=MQA.createXMLDoc(I);this.setM_XmlDoc(J);if(J!==null){var G=J.documentElement;var B=G.childNodes;var C=B.length;C=(C<32678)?C:32678;var D=0;var A=null;if(this.getValidClassName()==="MQPoint"){for(var E=D;E<C;E++){var H;var F;if(B[E].firstChild!==null){H=B[E].firstChild.nodeValue}E++;if(B[E].firstChild!==null){F=B[E].firstChild.nodeValue}A=new MQPoint(H,F);this.add(A)}}}};MQPointCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml()}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D};MQDBLayerQueryCollection.prototype=new MQObjectCollection(32678);MQDBLayerQueryCollection.prototype.constructor=MQDBLayerQueryCollection;function MQDBLayerQueryCollection(A){MQObjectCollection.call(this,32678);if(A){this.setM_itemXpath(A)}this.setValidClassName("MQDBLayerQuery");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getSIGNCOLLECTION()));this.setM_Xpath("DBLayerQueryCollection")}MQDBLayerQueryCollection.prototype.getClassName=function(){return"MQDBLayerQueryCollection"};MQDBLayerQueryCollection.prototype.getObjectVersion=function(){return 0};MQDBLayerQueryCollection.prototype.loadXml=function(H){this.removeAll();var G=MQA.createXMLDoc(H);this.setM_XmlDoc(G);if(G!==null){var B=G.documentElement;var C=B.childNodes;var F=C.length;F=(F<32678)?F:32678;var E=0;var A=null;if(this.getValidClassName()==="MQDBLayerQuery"){for(var D=E;D<F;D++){A=new MQDBLayerQuery();A.setM_Xpath(this.getM_itemXpath());A.loadXml(mqXmlToStr(C[D]));this.add(A)}}}};MQDBLayerQueryCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml()}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D};MQManeuverCollection.prototype=new MQObjectCollection(32678);MQManeuverCollection.prototype.constructor=MQManeuverCollection;function MQManeuverCollection(A){MQObjectCollection.call(this,32678);if(A){this.setM_itemXpath(A)}this.setValidClassName("MQManeuver");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getMANEUVERCOLLECTION()));this.setM_Xpath("ManeuverCollection")}MQManeuverCollection.prototype.getClassName=function(){return"MQManeuverCollection"};MQManeuverCollection.prototype.getObjectVersion=function(){return 0};MQManeuverCollection.prototype.loadXml=function(H){this.removeAll();var G=MQA.createXMLDoc(H);this.setM_XmlDoc(G);if(G!==null){var A=G.documentElement;
var B=A.childNodes;var F=B.length;F=(F<32678)?F:32678;var D=0;var E=null;if(this.getValidClassName()==="MQManeuver"){for(var C=D;C<F;C++){E=new MQManeuver();E.setM_Xpath(this.getM_itemXpath());E.loadXml(mqXmlToStr(B[C]));this.add(E)}}}};MQManeuverCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml()}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D};MQTrekRouteCollection.prototype=new MQObjectCollection(32678);MQTrekRouteCollection.prototype.constructor=MQTrekRouteCollection;function MQTrekRouteCollection(A){MQObjectCollection.call(this,32678);if(A){this.setM_itemXpath(A)}this.setValidClassName("MQTrekRoute");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getTREKROUTECOLLECTION()));this.setM_Xpath("TrekRouteCollection")}MQTrekRouteCollection.prototype.getClassName=function(){return"MQTrekRouteCollection"};MQTrekRouteCollection.prototype.getObjectVersion=function(){return 0};MQTrekRouteCollection.prototype.loadXml=function(H){this.removeAll();var G=MQA.createXMLDoc(H);this.setM_XmlDoc(G);if(G!==null){var A=G.documentElement;var B=A.childNodes;var F=B.length;F=(F<32678)?F:32678;var E=0;var C=null;if(this.getValidClassName()==="MQTrekRoute"){for(var D=E;D<F;D++){C=new MQTrekRoute();C.setM_Xpath(this.getM_itemXpath());C.loadXml(mqXmlToStr(B[D]));this.add(C)}}}};MQTrekRouteCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml()}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D};MQIntCollection.prototype=new MQObjectCollection(32678);MQIntCollection.prototype.constructor=MQIntCollection;function MQIntCollection(A){MQObjectCollection.call(this,32678);this.setValidClassName("int");if(A){this.setM_itemXpath(A)}if(this.getClassName()==="MQIntCollection"){this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getINTCOLLECTION()));this.setM_Xpath("IntCollection")}}MQIntCollection.prototype.getClassName=function(){return"MQIntCollection"};MQIntCollection.prototype.getObjectVersion=function(){return 0};MQIntCollection.prototype.loadXml=function(H){this.removeAll();var F=MQA.createXMLDoc(H);this.setM_XmlDoc(F);if(F!==null){var A=F.documentElement;var B=A.childNodes;var E=B.length;E=(E<32678)?E:32678;var D=0;var G=null;for(var C=D;C<E;C++){if(B[C].firstChild!==null){G=parseInt(B[C].firstChild.nodeValue)}else{G=0}this.add(G)}}};MQIntCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]="<"+this.getM_itemXpath()+">"+this.get(A)+"</"+this.getM_itemXpath()+">"}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D};MQDTCollection.prototype=new MQIntCollection("Item");MQDTCollection.prototype.constructor=MQDTCollection;function MQDTCollection(A){MQIntCollection.call(this,A);this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getDTCOLLECTION()));this.setM_Xpath("DTCollection")}MQDTCollection.prototype.getClassName=function(){return"MQDTCollection"};MQDTCollection.prototype.getObjectVersion=function(){return 1};MQFeatureCollection.prototype=new MQObjectCollection(32678);MQFeatureCollection.prototype.constructor=MQFeatureCollection;function MQFeatureCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("ALL");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getFEATURECOLLECTION()));this.setM_Xpath("FeatureCollection")}MQFeatureCollection.prototype.getClassName=function(){return"MQFeatureCollection"};MQFeatureCollection.prototype.getObjectVersion=function(){return 0};MQFeatureCollection.prototype.loadXml=function(H){this.removeAll();var I=MQA.createXMLDoc(H);this.setM_XmlDoc(I);if(I!==null){var F=I.documentElement;var A=F.childNodes;var B=A.length;B=(B<32678)?B:32678;var C=0;var E=null;var G="";
for(var D=C;D<B;D++){G=A[D].nodeName;if(G==="LineFeature"){E=new MQLineFeature();E.loadXml(mqXmlToStr(A[D]))}else{if(G==="PointFeature"){E=new MQPointFeature();E.loadXmlFromNode(A[D])}else{if(G==="PolygonFeature"){E=new MQPolygonFeature();E.loadXml(mqXmlToStr(A[D]))}}}this.add(E)}}};MQFeatureCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Version="'+this.getObjectVersion()+'" Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml()}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D};MQFeatureSpecifierCollection.prototype=new MQObjectCollection(32678);MQFeatureSpecifierCollection.prototype.constructor=MQFeatureSpecifierCollection;function MQFeatureSpecifierCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("MQFeatureSpecifier");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getFEATURESPECIFIERCOLLECTION()));this.setM_Xpath("FeatureCollection")}MQFeatureSpecifierCollection.prototype.getClassName=function(){return"MQFeatureSpecifierCollection"};MQFeatureSpecifierCollection.prototype.getObjectVersion=function(){return 0};MQFeatureSpecifierCollection.prototype.loadXml=function(H){this.removeAll();var G=MQA.createXMLDoc(H);this.setM_XmlDoc(G);if(G!==null){var A=G.documentElement;var B=A.childNodes;var F=B.length;F=(F<32678)?F:32678;var E=0;var C=null;for(var D=E;D<F;D++){if(B[D].nodeName==="FeatureSpecifier"){C=new MQFeatureSpecifier();C.loadXml(mqXmlToStr(B[D]))}this.add(C)}}};MQFeatureSpecifierCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml()}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D};MQGeocodeOptionsCollection.prototype=new MQObjectCollection(32678);MQGeocodeOptionsCollection.prototype.constructor=MQGeocodeOptionsCollection;function MQGeocodeOptionsCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("MQGeocodeOptions");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getGEOCODEOPTIONSCOLLECTION()));this.setM_Xpath("GeocodeOptionsCollection")}MQGeocodeOptionsCollection.prototype.getClassName=function(){return"MQGeocodeOptionsCollection"};MQGeocodeOptionsCollection.prototype.getObjectVersion=function(){return 0};MQGeocodeOptionsCollection.prototype.loadXml=function(H){this.removeAll();var G=MQA.createXMLDoc(H);this.setM_XmlDoc(G);if(G!==null){var B=G.documentElement;var C=B.childNodes;var F=C.length;F=(F<32678)?F:32678;var E=0;var A=null;for(var D=E;D<F;D++){if(C[D].nodeName==="GeocodeOptions"){A=new MQGeocodeOptions();A.loadXml(mqXmlToStr(C[D]))}this.add(A)}}};MQGeocodeOptionsCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml()}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D};MQCoverageStyle.prototype=new MQObjectCollection(32678);MQCoverageStyle.prototype.constructor=MQCoverageStyle;function MQCoverageStyle(){MQObjectCollection.call(this,32678);this.setValidClassName("ALL");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getCOVERAGESTYLE()));this.setM_Xpath("CoverageStyle")}MQCoverageStyle.prototype.getClassName=function(){return"MQCoverageStyle"};MQCoverageStyle.prototype.getObjectVersion=function(){return 0};MQCoverageStyle.prototype.loadXml=function(H){this.removeAll();var G=MQA.createXMLDoc(H);this.setM_XmlDoc(G);if(G!==null){var A=G.documentElement;var B=A.childNodes;var F=B.length;F=(F<32678)?F:32678;var E=0;var D=null;for(var C=E;C<F;C++){if(B[C].nodeName==="DTStyle"){D=new MQDTStyle();D.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="DTStyleEx"){D=new MQDTStyleEx();D.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="DTFeatureStyleEx"){D=new MQDTFeatureStyleEx();D.loadXml(mqXmlToStr(B[C]))}}}if(D!==null){this.add(D)}D=null}}};MQCoverageStyle.prototype.saveXml=function(){var C=new Array();
C[C.length]='<CoverageStyle Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml()}C[C.length]="<Name>"+this.getProperty("Name")+"</Name>";C[C.length]="</CoverageStyle>";var D=C.join("");return D};MQCoverageStyle.prototype.setName=function(A){this.setProperty("Name",A)};MQCoverageStyle.prototype.getName=function(){return this.getProperty("Name")};MQPrimitiveCollection.prototype=new MQObjectCollection(32678);MQPrimitiveCollection.prototype.constructor=MQPrimitiveCollection;function MQPrimitiveCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("ALL");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getPRIMITIVECOLLECTION()));this.setM_Xpath("PrimitiveCollection")}MQPrimitiveCollection.prototype.getClassName=function(){return"MQPrimitiveCollection"};MQPrimitiveCollection.prototype.getObjectVersion=function(){return 0};MQPrimitiveCollection.prototype.loadXml=function(H){this.removeAll();var G=MQA.createXMLDoc(H);this.setM_XmlDoc(G);if(G!==null){var B=G.documentElement;var C=B.childNodes;var F=C.length;F=(F<32678)?F:32678;var E=0;var A=null;for(var D=E;D<F;D++){if(C[D].nodeName==="EllipsePrimitive"){A=new MQEllipsePrimitive();A.loadXml(mqXmlToStr(C[D]))}else{if(C[D].nodeName==="LinePrimitive"){A=new MQLinePrimitive();A.loadXml(mqXmlToStr(C[D]))}else{if(C[D].nodeName==="PolygonPrimitive"){A=new MQPolygonPrimitive();A.loadXml(mqXmlToStr(C[D]))}else{if(C[D].nodeName==="RectanglePrimitive"){A=new MQRectanglePrimitive();A.loadXml(mqXmlToStr(C[D]))}else{if(C[D].nodeName==="TextPrimitive"){A=new MQTextPrimitive();A.loadXml(mqXmlToStr(C[D]))}else{if(C[D].nodeName==="SymbolPrimitive"){A=new MQSymbolPrimitive();A.loadXml(mqXmlToStr(C[D]))}}}}}}this.add(A)}}};MQPrimitiveCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml()}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D};MQStringCollection.prototype=new MQObjectCollection(32678);MQStringCollection.prototype.constructor=MQStringCollection;function MQStringCollection(A){MQObjectCollection.call(this,32678);this.setValidClassName("String");if(A){this.setM_itemXpath(A)}this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getSTRINGCOLLECTION()));this.setM_Xpath("StringCollection")}MQStringCollection.prototype.getClassName=function(){return"MQStringCollection"};MQStringCollection.prototype.getObjectVersion=function(){return 0};MQStringCollection.prototype.loadXml=function(H){this.removeAll();var F=MQA.createXMLDoc(H);this.setM_XmlDoc(F);if(F!==null){var A=F.documentElement;var B=A.childNodes;var E=B.length;E=(E<32678)?E:32678;var D=0;var G=null;for(var C=D;C<E;C++){if(B[C].firstChild!==null){G=B[C].firstChild.nodeValue}else{G=""}this.add(G)}}};MQStringCollection.prototype.loadXmlFromNode=function(E){this.setM_XmlDoc(mqCreateXMLDocImportNode(E));var G=this.getM_XmlDoc();if(G!==null){var A=G.documentElement;var B=A.childNodes;var F=B.length;F=(F<32678)?F:32678;var D=0;var H=null;for(var C=D;C<F;C++){if(B[C].firstChild!==null){H=B[C].firstChild.nodeValue}else{H=""}this.add(H)}}};MQStringCollection.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]="<"+this.getM_itemXpath()+">"+this.get(A)+"</"+this.getM_itemXpath()+">"}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D};MQStrColCollection.prototype=new MQObjectCollection(32678);MQStrColCollection.prototype.constructor=MQStrColCollection;function MQStrColCollection(){MQObjectCollection.call(this,32678);this.setValidClassName("MQStringCollection");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getSTRCOLCOLLECTION()))}MQStrColCollection.prototype.getClassName=function(){return"MQStrColCollection"};MQStrColCollection.prototype.getObjectVersion=function(){return 0};MQStrColCollection.prototype.saveXml=function(){var C=new Array();
var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml()}strRet=C.join("");return strRet};MQAutoGeocodeCovSwitch.prototype=new MQObject();MQAutoGeocodeCovSwitch.prototype.constructor=MQAutoGeocodeCovSwitch;function MQAutoGeocodeCovSwitch(){MQObject.call(this);this.setM_Xpath("AutoGeocodeCovSwitch");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getAUTOGEOCODECOVSWITCH()))}MQAutoGeocodeCovSwitch.prototype.getClassName=function(){return"MQAutoGeocodeCovSwitch"};MQAutoGeocodeCovSwitch.prototype.getObjectVersion=function(){return 0};MQAutoGeocodeCovSwitch.prototype.loadXml=function(A){this.setM_XmlDoc(MQA.createXMLDoc(A))};MQAutoGeocodeCovSwitch.prototype.saveXml=function(){return mqXmlToStr(this.getM_XmlDoc())};MQAutoGeocodeCovSwitch.prototype.setName=function(A){this.setProperty("Name",A)};MQAutoGeocodeCovSwitch.prototype.getName=function(){return this.getProperty("Name")};MQAutoGeocodeCovSwitch.prototype.setMaxMatches=function(A){this.setProperty("MaxMatches",A)};MQAutoGeocodeCovSwitch.prototype.getMaxMatches=function(){return this.getProperty("MaxMatches")};MQAutoRouteCovSwitch.prototype=new MQObject();MQAutoRouteCovSwitch.prototype.constructor=MQAutoRouteCovSwitch;function MQAutoRouteCovSwitch(B){MQObject.call(this);if(this.getClassName()==="MQAutoRouteCovSwitch"){if(B){this.setM_Xpath(B);this.setM_XmlDoc(MQA.createXMLDoc("<"+B+'><Name/><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count="0"/></'+B+">"))}else{this.setM_Xpath("AutoRouteCovSwitch");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getAUTOROUTECOVSWITCH()))}}var A=new MQIntCollection();A.setM_Xpath("DataVendorCodes");this.getDataVendorCodes=function(){return A}}MQAutoRouteCovSwitch.prototype.getClassName=function(){return"MQAutoRouteCovSwitch"};MQAutoRouteCovSwitch.prototype.getObjectVersion=function(){return 0};MQAutoRouteCovSwitch.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));var A=this.getDataVendorCodes();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")))}};MQAutoRouteCovSwitch.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getDataVendorCodes().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"DataVendorCodes"));return mqXmlToStr(this.getM_XmlDoc())};MQAutoRouteCovSwitch.prototype.setName=function(A){this.setProperty("Name",A)};MQAutoRouteCovSwitch.prototype.getName=function(){return this.getProperty("Name")};MQAutoRouteCovSwitch.prototype.setDataVendorCodeUsage=function(A){this.setProperty("DataVendorCodeUsage",A)};MQAutoRouteCovSwitch.prototype.getDataVendorCodeUsage=function(){return this.getProperty("DataVendorCodeUsage")};MQAutoMapCovSwitch.prototype=new MQAutoRouteCovSwitch();MQAutoMapCovSwitch.prototype.constructor=MQAutoMapCovSwitch;function MQAutoMapCovSwitch(B){MQAutoRouteCovSwitch.call(this);if(B){this.setM_Xpath(B);this.setM_XmlDoc(MQA.createXMLDoc("<"+B+'><Name/><Style/><DataVendorCodeUsage>0</DataVendorCodeUsage><DataVendorCodes Count="0"/><ZoomLevels Count="14"><Item>6000</Item><Item>12000</Item><Item>24000</Item><Item>48000</Item><Item>96000</Item><Item>192000</Item><Item>400000</Item><Item>800000</Item><Item>1600000</Item><Item>3000000</Item><Item>6000000</Item><Item>12000000</Item><Item>24000000</Item><Item>48000000</Item></ZoomLevels></'+B+">"))}else{this.setM_Xpath("AutoMapCovSwitch");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getAUTOMAPCOVSWITCH()))}var A=new MQIntCollection();A.setM_Xpath("ZoomLevels");A.add(6000);A.add(12000);A.add(24000);A.add(48000);A.add(96000);A.add(192000);A.add(400000);A.add(800000);A.add(1600000);A.add(3000000);A.add(6000000);A.add(12000000);A.add(24000000);A.add(48000000);this.getZoomLevels=function(){return A}}MQAutoMapCovSwitch.prototype.getClassName=function(){return"MQAutoMapCovSwitch"};MQAutoMapCovSwitch.prototype.getObjectVersion=function(){return 0};MQAutoMapCovSwitch.prototype.loadXml=function(B){this.setM_XmlDoc(MQA.createXMLDoc(B));
var A=this.getDataVendorCodes();if(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")!==null){A.loadXml(mqXmlToStr(mqGetNode(this.getM_XmlDoc(),"/"+this.getM_Xpath()+"/DataVendorCodes")))}};MQAutoMapCovSwitch.prototype.saveXml=function(){var A=MQA.createXMLDoc(this.getDataVendorCodes().saveXml());this.setM_XmlDoc(mqReplaceElementNode(this.getM_XmlDoc(),A,"DataVendorCodes"));return mqXmlToStr(this.getM_XmlDoc())};MQAutoMapCovSwitch.prototype.setStyle=function(A){this.setProperty("Style",A)};MQAutoMapCovSwitch.prototype.getStyle=function(){return this.getProperty("Style")};MQSession.prototype=new MQObjectCollection(32678);MQSession.prototype.constructor=MQSession;function MQSession(){MQObjectCollection.call(this,32678);this.setM_Xpath("Session");this.setM_XmlDoc(MQA.createXMLDocFromNode(MQA.MQXML.getSESSION()))}MQSession.prototype.getClassName=function(){return"MQSession"};MQSession.prototype.getObjectVersion=function(){return 0};MQSession.prototype.loadXml=function(H){var F=MQA.createXMLDoc(H);this.setM_XmlDoc(F);if(F!==null){var A=F.documentElement;var B=A.childNodes;var E=B.length;E=(E<32678)?E:32678;var D=0;var G=null;for(var C=D;C<E;C++){G=null;if(B[C].nodeName==="MapState"){G=new MQMapState();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="CoverageStyle"){G=new MQCoverageStyle();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="AutoMapCovSwitch"){G=new MQAutoMapCovSwitch();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="DBLayerQueryCollection"){G=new MQDBLayerQueryCollection();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="FeatureCollection"){G=new MQFeatureCollection();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="PrimitiveCollection"){G=new MQPrimitiveCollection();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="Center"){G=new MQCenter();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="CenterLL"){G=new MQCenterLL();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="ZoomIn"){G=new MQZoomIn();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="ZoomOut"){G=new MQZoomOut();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="ZoomTo"){G=new MQZoomTo();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="ZoomToRect"){G=new MQZoomToRect();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="ZoomToRectLL"){G=new MQZoomToRectLL();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="Pan"){G=new MQPan();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="BestFit"){G=new MQBestFit();G.loadXml(mqXmlToStr(B[C]))}else{if(B[C].nodeName==="BestFitLL"){G=new MQBestFitLL();G.loadXml(mqXmlToStr(B[C]))}}}}}}}}}}}}}}}}if(G!==null){this.add(G)}}}};MQSession.prototype.saveXml=function(){var C=new Array();C[C.length]="<"+this.getM_Xpath()+' Count="'+this.getSize()+'">';var B=this.getSize();for(var A=0;A<B;A++){C[C.length]=this.get(A).saveXml()}C[C.length]="</"+this.getM_Xpath()+">";var D=C.join("");return D};MQSession.prototype.add=function(A){return this.addOne(A,null)};MQSession.prototype.isMapCommandObject=function(B){if(B){var A=B.getClassName();if(A==="MQCenter"||A==="MQCenterLatLng"||A==="MQZoomIn"||A==="MQZoomOut"||A==="MQZoomTo"||A==="MQZoomToRect"||A==="MQZoomToRectLatLng"||A==="MQPan"||A==="MQBestFit"||A==="MQBestFitLL"){return true}else{return false}}};MQSession.prototype.addOne=function(E,C){var B=this.getSize();var D=E.getClassName();var A=0;if(this.isValidObject(E)){if(this.isMapCommandObject(E)){for(A=0;A<B;A++){if(isMapCommandObject(get(A))){break}}}else{for(A=0;A<B;A++){if(get(A).getClassId()==D){break}}}}else{alert("Invalid object for this collection.");throw ("Invalid object for this collection.")}if(A<B){C=this.set(A,E)}else{m_collection.add(E)}return A};MQSession.prototype.isValidObject=function(B){if(B){var A=B.getClassName();if(A==="MQCenter"||A==="MQCenterLatLng"||A==="MQZoomIn"||A==="MQZoomOut"||A==="MQZoomTo"||A==="MQZoomToRect"||A==="MQZoomToRectLatLng"||A==="MQPan"||A==="MQBestFit"||A==="MQBestFitLL"||A==="MQDBLayerQueryCollection"||A==="MQCoverageStyle"||A==="MQFeatureCollection"||A==="MQAutoMapCovSwitch"||A==="MQPrimitiveCollection"||A==="MQMapState"){return true
}else{return false}}};function MQAuthentication(B){var A=(B!=null)?B:"";this.getInfo=function(){return A}}MQAuthentication.prototype.saveXml=function(){return'<Authentication Version="'+this.getObjectVersion()+'"><TransactionInfo>'+this.getInfo()+"</TransactionInfo></Authentication>"};MQAuthentication.prototype.getClassName=function(){return"MQAuthentication"};MQAuthentication.prototype.getObjectVersion=function(){return 2};function MQXmlNodeObject(B,C){var D=B;var A=C;this.saveXml=function(){return"<"+D+">"+A+"</"+D+">"}};