UNPKG

@dp_unity/dpu-gis-viewer

Version:

DPU GIS Viewer version Beta

1 lines 216 kB
window.cesiumGoogleEarthDbRootParser=function(e){"use strict";var r,t,o=e.Reader,n=e.util,a=e.roots.default||(e.roots.default={});return a.keyhole=((t={}).dbroot=((r={}).StringEntryProto=function(){function r(e){if(e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.stringId=0,r.prototype.stringValue="",r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,l=new a.keyhole.dbroot.StringEntryProto;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:l.stringId=e.fixed32();break;case 2:l.stringValue=e.string();break;default:e.skipType(7&i)}}if(!l.hasOwnProperty("stringId"))throw n.ProtocolError("missing required 'stringId'",{instance:l});if(!l.hasOwnProperty("stringValue"))throw n.ProtocolError("missing required 'stringValue'",{instance:l});return l},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":n.isInteger(e.stringId)?n.isString(e.stringValue)?null:"stringValue: string expected":"stringId: integer expected"},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.StringEntryProto)return e;var r=new a.keyhole.dbroot.StringEntryProto;return null!=e.stringId&&(r.stringId=e.stringId>>>0),null!=e.stringValue&&(r.stringValue=String(e.stringValue)),r},r.toObject=function(e,r){r||(r={});var t={};return r.defaults&&(t.stringId=0,t.stringValue=""),null!=e.stringId&&e.hasOwnProperty("stringId")&&(t.stringId=e.stringId),null!=e.stringValue&&e.hasOwnProperty("stringValue")&&(t.stringValue=e.stringValue),t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.StringEntryProto"},r}(),r.StringIdOrValueProto=function(){function r(e){if(e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.stringId=0,r.prototype.value="",r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,n=new a.keyhole.dbroot.StringIdOrValueProto;e.pos<t;){var l=e.uint32();switch(l>>>3){case 1:n.stringId=e.fixed32();break;case 2:n.value=e.string();break;default:e.skipType(7&l)}}return n},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.stringId&&e.hasOwnProperty("stringId")&&!n.isInteger(e.stringId)?"stringId: integer expected":null!=e.value&&e.hasOwnProperty("value")&&!n.isString(e.value)?"value: string expected":null},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.StringIdOrValueProto)return e;var r=new a.keyhole.dbroot.StringIdOrValueProto;return null!=e.stringId&&(r.stringId=e.stringId>>>0),null!=e.value&&(r.value=String(e.value)),r},r.toObject=function(e,r){r||(r={});var t={};return r.defaults&&(t.stringId=0,t.value=""),null!=e.stringId&&e.hasOwnProperty("stringId")&&(t.stringId=e.stringId),null!=e.value&&e.hasOwnProperty("value")&&(t.value=e.value),t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.StringIdOrValueProto"},r}(),r.PlanetModelProto=function(){function r(e){if(e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.radius=6378.137,r.prototype.flattening=.00335281066474748,r.prototype.elevationBias=0,r.prototype.negativeAltitudeExponentBias=0,r.prototype.compressedNegativeAltitudeThreshold=0,r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,n=new a.keyhole.dbroot.PlanetModelProto;e.pos<t;){var l=e.uint32();switch(l>>>3){case 1:n.radius=e.double();break;case 2:n.flattening=e.double();break;case 4:n.elevationBias=e.double();break;case 5:n.negativeAltitudeExponentBias=e.int32();break;case 6:n.compressedNegativeAltitudeThreshold=e.double();break;default:e.skipType(7&l)}}return n},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.radius&&e.hasOwnProperty("radius")&&"number"!=typeof e.radius?"radius: number expected":null!=e.flattening&&e.hasOwnProperty("flattening")&&"number"!=typeof e.flattening?"flattening: number expected":null!=e.elevationBias&&e.hasOwnProperty("elevationBias")&&"number"!=typeof e.elevationBias?"elevationBias: number expected":null!=e.negativeAltitudeExponentBias&&e.hasOwnProperty("negativeAltitudeExponentBias")&&!n.isInteger(e.negativeAltitudeExponentBias)?"negativeAltitudeExponentBias: integer expected":null!=e.compressedNegativeAltitudeThreshold&&e.hasOwnProperty("compressedNegativeAltitudeThreshold")&&"number"!=typeof e.compressedNegativeAltitudeThreshold?"compressedNegativeAltitudeThreshold: number expected":null},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.PlanetModelProto)return e;var r=new a.keyhole.dbroot.PlanetModelProto;return null!=e.radius&&(r.radius=Number(e.radius)),null!=e.flattening&&(r.flattening=Number(e.flattening)),null!=e.elevationBias&&(r.elevationBias=Number(e.elevationBias)),null!=e.negativeAltitudeExponentBias&&(r.negativeAltitudeExponentBias=0|e.negativeAltitudeExponentBias),null!=e.compressedNegativeAltitudeThreshold&&(r.compressedNegativeAltitudeThreshold=Number(e.compressedNegativeAltitudeThreshold)),r},r.toObject=function(e,r){r||(r={});var t={};return r.defaults&&(t.radius=6378.137,t.flattening=.00335281066474748,t.elevationBias=0,t.negativeAltitudeExponentBias=0,t.compressedNegativeAltitudeThreshold=0),null!=e.radius&&e.hasOwnProperty("radius")&&(t.radius=r.json&&!isFinite(e.radius)?String(e.radius):e.radius),null!=e.flattening&&e.hasOwnProperty("flattening")&&(t.flattening=r.json&&!isFinite(e.flattening)?String(e.flattening):e.flattening),null!=e.elevationBias&&e.hasOwnProperty("elevationBias")&&(t.elevationBias=r.json&&!isFinite(e.elevationBias)?String(e.elevationBias):e.elevationBias),null!=e.negativeAltitudeExponentBias&&e.hasOwnProperty("negativeAltitudeExponentBias")&&(t.negativeAltitudeExponentBias=e.negativeAltitudeExponentBias),null!=e.compressedNegativeAltitudeThreshold&&e.hasOwnProperty("compressedNegativeAltitudeThreshold")&&(t.compressedNegativeAltitudeThreshold=r.json&&!isFinite(e.compressedNegativeAltitudeThreshold)?String(e.compressedNegativeAltitudeThreshold):e.compressedNegativeAltitudeThreshold),t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.PlanetModelProto"},r}(),r.ProviderInfoProto=function(){function r(e){if(e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.providerId=0,r.prototype.copyrightString=null,r.prototype.verticalPixelOffset=-1,r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,l=new a.keyhole.dbroot.ProviderInfoProto;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:l.providerId=e.int32();break;case 2:l.copyrightString=a.keyhole.dbroot.StringIdOrValueProto.decode(e,e.uint32());break;case 3:l.verticalPixelOffset=e.int32();break;default:e.skipType(7&i)}}if(!l.hasOwnProperty("providerId"))throw n.ProtocolError("missing required 'providerId'",{instance:l});return l},r.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(!n.isInteger(e.providerId))return"providerId: integer expected";if(null!=e.copyrightString&&e.hasOwnProperty("copyrightString")){var r=a.keyhole.dbroot.StringIdOrValueProto.verify(e.copyrightString);if(r)return"copyrightString."+r}return null!=e.verticalPixelOffset&&e.hasOwnProperty("verticalPixelOffset")&&!n.isInteger(e.verticalPixelOffset)?"verticalPixelOffset: integer expected":null},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.ProviderInfoProto)return e;var r=new a.keyhole.dbroot.ProviderInfoProto;if(null!=e.providerId&&(r.providerId=0|e.providerId),null!=e.copyrightString){if("object"!=typeof e.copyrightString)throw TypeError(".keyhole.dbroot.ProviderInfoProto.copyrightString: object expected");r.copyrightString=a.keyhole.dbroot.StringIdOrValueProto.fromObject(e.copyrightString)}return null!=e.verticalPixelOffset&&(r.verticalPixelOffset=0|e.verticalPixelOffset),r},r.toObject=function(e,r){r||(r={});var t={};return r.defaults&&(t.providerId=0,t.copyrightString=null,t.verticalPixelOffset=-1),null!=e.providerId&&e.hasOwnProperty("providerId")&&(t.providerId=e.providerId),null!=e.copyrightString&&e.hasOwnProperty("copyrightString")&&(t.copyrightString=a.keyhole.dbroot.StringIdOrValueProto.toObject(e.copyrightString,r)),null!=e.verticalPixelOffset&&e.hasOwnProperty("verticalPixelOffset")&&(t.verticalPixelOffset=e.verticalPixelOffset),t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.ProviderInfoProto"},r}(),r.PopUpProto=function(){function r(e){if(e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.isBalloonStyle=!1,r.prototype.text=null,r.prototype.backgroundColorAbgr=4294967295,r.prototype.textColorAbgr=4278190080,r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,n=new a.keyhole.dbroot.PopUpProto;e.pos<t;){var l=e.uint32();switch(l>>>3){case 1:n.isBalloonStyle=e.bool();break;case 2:n.text=a.keyhole.dbroot.StringIdOrValueProto.decode(e,e.uint32());break;case 3:n.backgroundColorAbgr=e.fixed32();break;case 4:n.textColorAbgr=e.fixed32();break;default:e.skipType(7&l)}}return n},r.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.isBalloonStyle&&e.hasOwnProperty("isBalloonStyle")&&"boolean"!=typeof e.isBalloonStyle)return"isBalloonStyle: boolean expected";if(null!=e.text&&e.hasOwnProperty("text")){var r=a.keyhole.dbroot.StringIdOrValueProto.verify(e.text);if(r)return"text."+r}return null!=e.backgroundColorAbgr&&e.hasOwnProperty("backgroundColorAbgr")&&!n.isInteger(e.backgroundColorAbgr)?"backgroundColorAbgr: integer expected":null!=e.textColorAbgr&&e.hasOwnProperty("textColorAbgr")&&!n.isInteger(e.textColorAbgr)?"textColorAbgr: integer expected":null},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.PopUpProto)return e;var r=new a.keyhole.dbroot.PopUpProto;if(null!=e.isBalloonStyle&&(r.isBalloonStyle=!!e.isBalloonStyle),null!=e.text){if("object"!=typeof e.text)throw TypeError(".keyhole.dbroot.PopUpProto.text: object expected");r.text=a.keyhole.dbroot.StringIdOrValueProto.fromObject(e.text)}return null!=e.backgroundColorAbgr&&(r.backgroundColorAbgr=e.backgroundColorAbgr>>>0),null!=e.textColorAbgr&&(r.textColorAbgr=e.textColorAbgr>>>0),r},r.toObject=function(e,r){r||(r={});var t={};return r.defaults&&(t.isBalloonStyle=!1,t.text=null,t.backgroundColorAbgr=4294967295,t.textColorAbgr=4278190080),null!=e.isBalloonStyle&&e.hasOwnProperty("isBalloonStyle")&&(t.isBalloonStyle=e.isBalloonStyle),null!=e.text&&e.hasOwnProperty("text")&&(t.text=a.keyhole.dbroot.StringIdOrValueProto.toObject(e.text,r)),null!=e.backgroundColorAbgr&&e.hasOwnProperty("backgroundColorAbgr")&&(t.backgroundColorAbgr=e.backgroundColorAbgr),null!=e.textColorAbgr&&e.hasOwnProperty("textColorAbgr")&&(t.textColorAbgr=e.textColorAbgr),t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.PopUpProto"},r}(),r.StyleAttributeProto=function(){function r(e){if(this.drawFlag=[],e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.styleId="",r.prototype.providerId=0,r.prototype.polyColorAbgr=4294967295,r.prototype.lineColorAbgr=4294967295,r.prototype.lineWidth=1,r.prototype.labelColorAbgr=4294967295,r.prototype.labelScale=1,r.prototype.placemarkIconColorAbgr=4294967295,r.prototype.placemarkIconScale=1,r.prototype.placemarkIconPath=null,r.prototype.placemarkIconX=0,r.prototype.placemarkIconY=0,r.prototype.placemarkIconWidth=32,r.prototype.placemarkIconHeight=32,r.prototype.popUp=null,r.prototype.drawFlag=n.emptyArray,r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,l=new a.keyhole.dbroot.StyleAttributeProto;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:l.styleId=e.string();break;case 3:l.providerId=e.int32();break;case 4:l.polyColorAbgr=e.fixed32();break;case 5:l.lineColorAbgr=e.fixed32();break;case 6:l.lineWidth=e.float();break;case 7:l.labelColorAbgr=e.fixed32();break;case 8:l.labelScale=e.float();break;case 9:l.placemarkIconColorAbgr=e.fixed32();break;case 10:l.placemarkIconScale=e.float();break;case 11:l.placemarkIconPath=a.keyhole.dbroot.StringIdOrValueProto.decode(e,e.uint32());break;case 12:l.placemarkIconX=e.int32();break;case 13:l.placemarkIconY=e.int32();break;case 14:l.placemarkIconWidth=e.int32();break;case 15:l.placemarkIconHeight=e.int32();break;case 16:l.popUp=a.keyhole.dbroot.PopUpProto.decode(e,e.uint32());break;case 17:l.drawFlag&&l.drawFlag.length||(l.drawFlag=[]),l.drawFlag.push(a.keyhole.dbroot.DrawFlagProto.decode(e,e.uint32()));break;default:e.skipType(7&i)}}if(!l.hasOwnProperty("styleId"))throw n.ProtocolError("missing required 'styleId'",{instance:l});return l},r.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(!n.isString(e.styleId))return"styleId: string expected";if(null!=e.providerId&&e.hasOwnProperty("providerId")&&!n.isInteger(e.providerId))return"providerId: integer expected";if(null!=e.polyColorAbgr&&e.hasOwnProperty("polyColorAbgr")&&!n.isInteger(e.polyColorAbgr))return"polyColorAbgr: integer expected";if(null!=e.lineColorAbgr&&e.hasOwnProperty("lineColorAbgr")&&!n.isInteger(e.lineColorAbgr))return"lineColorAbgr: integer expected";if(null!=e.lineWidth&&e.hasOwnProperty("lineWidth")&&"number"!=typeof e.lineWidth)return"lineWidth: number expected";if(null!=e.labelColorAbgr&&e.hasOwnProperty("labelColorAbgr")&&!n.isInteger(e.labelColorAbgr))return"labelColorAbgr: integer expected";if(null!=e.labelScale&&e.hasOwnProperty("labelScale")&&"number"!=typeof e.labelScale)return"labelScale: number expected";if(null!=e.placemarkIconColorAbgr&&e.hasOwnProperty("placemarkIconColorAbgr")&&!n.isInteger(e.placemarkIconColorAbgr))return"placemarkIconColorAbgr: integer expected";if(null!=e.placemarkIconScale&&e.hasOwnProperty("placemarkIconScale")&&"number"!=typeof e.placemarkIconScale)return"placemarkIconScale: number expected";if(null!=e.placemarkIconPath&&e.hasOwnProperty("placemarkIconPath")&&(t=a.keyhole.dbroot.StringIdOrValueProto.verify(e.placemarkIconPath)))return"placemarkIconPath."+t;if(null!=e.placemarkIconX&&e.hasOwnProperty("placemarkIconX")&&!n.isInteger(e.placemarkIconX))return"placemarkIconX: integer expected";if(null!=e.placemarkIconY&&e.hasOwnProperty("placemarkIconY")&&!n.isInteger(e.placemarkIconY))return"placemarkIconY: integer expected";if(null!=e.placemarkIconWidth&&e.hasOwnProperty("placemarkIconWidth")&&!n.isInteger(e.placemarkIconWidth))return"placemarkIconWidth: integer expected";if(null!=e.placemarkIconHeight&&e.hasOwnProperty("placemarkIconHeight")&&!n.isInteger(e.placemarkIconHeight))return"placemarkIconHeight: integer expected";if(null!=e.popUp&&e.hasOwnProperty("popUp")&&(t=a.keyhole.dbroot.PopUpProto.verify(e.popUp)))return"popUp."+t;if(null!=e.drawFlag&&e.hasOwnProperty("drawFlag")){if(!Array.isArray(e.drawFlag))return"drawFlag: array expected";for(var r=0;r<e.drawFlag.length;++r){var t;if(t=a.keyhole.dbroot.DrawFlagProto.verify(e.drawFlag[r]))return"drawFlag."+t}}return null},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.StyleAttributeProto)return e;var r=new a.keyhole.dbroot.StyleAttributeProto;if(null!=e.styleId&&(r.styleId=String(e.styleId)),null!=e.providerId&&(r.providerId=0|e.providerId),null!=e.polyColorAbgr&&(r.polyColorAbgr=e.polyColorAbgr>>>0),null!=e.lineColorAbgr&&(r.lineColorAbgr=e.lineColorAbgr>>>0),null!=e.lineWidth&&(r.lineWidth=Number(e.lineWidth)),null!=e.labelColorAbgr&&(r.labelColorAbgr=e.labelColorAbgr>>>0),null!=e.labelScale&&(r.labelScale=Number(e.labelScale)),null!=e.placemarkIconColorAbgr&&(r.placemarkIconColorAbgr=e.placemarkIconColorAbgr>>>0),null!=e.placemarkIconScale&&(r.placemarkIconScale=Number(e.placemarkIconScale)),null!=e.placemarkIconPath){if("object"!=typeof e.placemarkIconPath)throw TypeError(".keyhole.dbroot.StyleAttributeProto.placemarkIconPath: object expected");r.placemarkIconPath=a.keyhole.dbroot.StringIdOrValueProto.fromObject(e.placemarkIconPath)}if(null!=e.placemarkIconX&&(r.placemarkIconX=0|e.placemarkIconX),null!=e.placemarkIconY&&(r.placemarkIconY=0|e.placemarkIconY),null!=e.placemarkIconWidth&&(r.placemarkIconWidth=0|e.placemarkIconWidth),null!=e.placemarkIconHeight&&(r.placemarkIconHeight=0|e.placemarkIconHeight),null!=e.popUp){if("object"!=typeof e.popUp)throw TypeError(".keyhole.dbroot.StyleAttributeProto.popUp: object expected");r.popUp=a.keyhole.dbroot.PopUpProto.fromObject(e.popUp)}if(e.drawFlag){if(!Array.isArray(e.drawFlag))throw TypeError(".keyhole.dbroot.StyleAttributeProto.drawFlag: array expected");r.drawFlag=[];for(var t=0;t<e.drawFlag.length;++t){if("object"!=typeof e.drawFlag[t])throw TypeError(".keyhole.dbroot.StyleAttributeProto.drawFlag: object expected");r.drawFlag[t]=a.keyhole.dbroot.DrawFlagProto.fromObject(e.drawFlag[t])}}return r},r.toObject=function(e,r){r||(r={});var t={};if((r.arrays||r.defaults)&&(t.drawFlag=[]),r.defaults&&(t.styleId="",t.providerId=0,t.polyColorAbgr=4294967295,t.lineColorAbgr=4294967295,t.lineWidth=1,t.labelColorAbgr=4294967295,t.labelScale=1,t.placemarkIconColorAbgr=4294967295,t.placemarkIconScale=1,t.placemarkIconPath=null,t.placemarkIconX=0,t.placemarkIconY=0,t.placemarkIconWidth=32,t.placemarkIconHeight=32,t.popUp=null),null!=e.styleId&&e.hasOwnProperty("styleId")&&(t.styleId=e.styleId),null!=e.providerId&&e.hasOwnProperty("providerId")&&(t.providerId=e.providerId),null!=e.polyColorAbgr&&e.hasOwnProperty("polyColorAbgr")&&(t.polyColorAbgr=e.polyColorAbgr),null!=e.lineColorAbgr&&e.hasOwnProperty("lineColorAbgr")&&(t.lineColorAbgr=e.lineColorAbgr),null!=e.lineWidth&&e.hasOwnProperty("lineWidth")&&(t.lineWidth=r.json&&!isFinite(e.lineWidth)?String(e.lineWidth):e.lineWidth),null!=e.labelColorAbgr&&e.hasOwnProperty("labelColorAbgr")&&(t.labelColorAbgr=e.labelColorAbgr),null!=e.labelScale&&e.hasOwnProperty("labelScale")&&(t.labelScale=r.json&&!isFinite(e.labelScale)?String(e.labelScale):e.labelScale),null!=e.placemarkIconColorAbgr&&e.hasOwnProperty("placemarkIconColorAbgr")&&(t.placemarkIconColorAbgr=e.placemarkIconColorAbgr),null!=e.placemarkIconScale&&e.hasOwnProperty("placemarkIconScale")&&(t.placemarkIconScale=r.json&&!isFinite(e.placemarkIconScale)?String(e.placemarkIconScale):e.placemarkIconScale),null!=e.placemarkIconPath&&e.hasOwnProperty("placemarkIconPath")&&(t.placemarkIconPath=a.keyhole.dbroot.StringIdOrValueProto.toObject(e.placemarkIconPath,r)),null!=e.placemarkIconX&&e.hasOwnProperty("placemarkIconX")&&(t.placemarkIconX=e.placemarkIconX),null!=e.placemarkIconY&&e.hasOwnProperty("placemarkIconY")&&(t.placemarkIconY=e.placemarkIconY),null!=e.placemarkIconWidth&&e.hasOwnProperty("placemarkIconWidth")&&(t.placemarkIconWidth=e.placemarkIconWidth),null!=e.placemarkIconHeight&&e.hasOwnProperty("placemarkIconHeight")&&(t.placemarkIconHeight=e.placemarkIconHeight),null!=e.popUp&&e.hasOwnProperty("popUp")&&(t.popUp=a.keyhole.dbroot.PopUpProto.toObject(e.popUp,r)),e.drawFlag&&e.drawFlag.length){t.drawFlag=[];for(var o=0;o<e.drawFlag.length;++o)t.drawFlag[o]=a.keyhole.dbroot.DrawFlagProto.toObject(e.drawFlag[o],r)}return t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.StyleAttributeProto"},r}(),r.StyleMapProto=function(){function r(e){if(this.channelId=[],e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.styleMapId=0,r.prototype.channelId=n.emptyArray,r.prototype.normalStyleAttribute=0,r.prototype.highlightStyleAttribute=0,r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,l=new a.keyhole.dbroot.StyleMapProto;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:l.styleMapId=e.int32();break;case 2:if(l.channelId&&l.channelId.length||(l.channelId=[]),2==(7&i))for(var s=e.uint32()+e.pos;e.pos<s;)l.channelId.push(e.int32());else l.channelId.push(e.int32());break;case 3:l.normalStyleAttribute=e.int32();break;case 4:l.highlightStyleAttribute=e.int32();break;default:e.skipType(7&i)}}if(!l.hasOwnProperty("styleMapId"))throw n.ProtocolError("missing required 'styleMapId'",{instance:l});return l},r.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(!n.isInteger(e.styleMapId))return"styleMapId: integer expected";if(null!=e.channelId&&e.hasOwnProperty("channelId")){if(!Array.isArray(e.channelId))return"channelId: array expected";for(var r=0;r<e.channelId.length;++r)if(!n.isInteger(e.channelId[r]))return"channelId: integer[] expected"}return null!=e.normalStyleAttribute&&e.hasOwnProperty("normalStyleAttribute")&&!n.isInteger(e.normalStyleAttribute)?"normalStyleAttribute: integer expected":null!=e.highlightStyleAttribute&&e.hasOwnProperty("highlightStyleAttribute")&&!n.isInteger(e.highlightStyleAttribute)?"highlightStyleAttribute: integer expected":null},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.StyleMapProto)return e;var r=new a.keyhole.dbroot.StyleMapProto;if(null!=e.styleMapId&&(r.styleMapId=0|e.styleMapId),e.channelId){if(!Array.isArray(e.channelId))throw TypeError(".keyhole.dbroot.StyleMapProto.channelId: array expected");r.channelId=[];for(var t=0;t<e.channelId.length;++t)r.channelId[t]=0|e.channelId[t]}return null!=e.normalStyleAttribute&&(r.normalStyleAttribute=0|e.normalStyleAttribute),null!=e.highlightStyleAttribute&&(r.highlightStyleAttribute=0|e.highlightStyleAttribute),r},r.toObject=function(e,r){r||(r={});var t={};if((r.arrays||r.defaults)&&(t.channelId=[]),r.defaults&&(t.styleMapId=0,t.normalStyleAttribute=0,t.highlightStyleAttribute=0),null!=e.styleMapId&&e.hasOwnProperty("styleMapId")&&(t.styleMapId=e.styleMapId),e.channelId&&e.channelId.length){t.channelId=[];for(var o=0;o<e.channelId.length;++o)t.channelId[o]=e.channelId[o]}return null!=e.normalStyleAttribute&&e.hasOwnProperty("normalStyleAttribute")&&(t.normalStyleAttribute=e.normalStyleAttribute),null!=e.highlightStyleAttribute&&e.hasOwnProperty("highlightStyleAttribute")&&(t.highlightStyleAttribute=e.highlightStyleAttribute),t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.StyleMapProto"},r}(),r.ZoomRangeProto=function(){function r(e){if(e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.minZoom=0,r.prototype.maxZoom=0,r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,l=new a.keyhole.dbroot.ZoomRangeProto;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:l.minZoom=e.int32();break;case 2:l.maxZoom=e.int32();break;default:e.skipType(7&i)}}if(!l.hasOwnProperty("minZoom"))throw n.ProtocolError("missing required 'minZoom'",{instance:l});if(!l.hasOwnProperty("maxZoom"))throw n.ProtocolError("missing required 'maxZoom'",{instance:l});return l},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":n.isInteger(e.minZoom)?n.isInteger(e.maxZoom)?null:"maxZoom: integer expected":"minZoom: integer expected"},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.ZoomRangeProto)return e;var r=new a.keyhole.dbroot.ZoomRangeProto;return null!=e.minZoom&&(r.minZoom=0|e.minZoom),null!=e.maxZoom&&(r.maxZoom=0|e.maxZoom),r},r.toObject=function(e,r){r||(r={});var t={};return r.defaults&&(t.minZoom=0,t.maxZoom=0),null!=e.minZoom&&e.hasOwnProperty("minZoom")&&(t.minZoom=e.minZoom),null!=e.maxZoom&&e.hasOwnProperty("maxZoom")&&(t.maxZoom=e.maxZoom),t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.ZoomRangeProto"},r}(),r.DrawFlagProto=function(){function r(e){if(e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.drawFlagType=1,r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,l=new a.keyhole.dbroot.DrawFlagProto;e.pos<t;){var i=e.uint32();i>>>3==1?l.drawFlagType=e.int32():e.skipType(7&i)}if(!l.hasOwnProperty("drawFlagType"))throw n.ProtocolError("missing required 'drawFlagType'",{instance:l});return l},r.verify=function(e){if("object"!=typeof e||null===e)return"object expected";switch(e.drawFlagType){default:return"drawFlagType: enum value expected";case 1:case 2:case 3:case 4:case 5:}return null},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.DrawFlagProto)return e;var r=new a.keyhole.dbroot.DrawFlagProto;switch(e.drawFlagType){case"TYPE_FILL_ONLY":case 1:r.drawFlagType=1;break;case"TYPE_OUTLINE_ONLY":case 2:r.drawFlagType=2;break;case"TYPE_FILL_AND_OUTLINE":case 3:r.drawFlagType=3;break;case"TYPE_ANTIALIASING":case 4:r.drawFlagType=4;break;case"TYPE_CENTER_LABEL":case 5:r.drawFlagType=5}return r},r.toObject=function(e,r){r||(r={});var t={};return r.defaults&&(t.drawFlagType=r.enums===String?"TYPE_FILL_ONLY":1),null!=e.drawFlagType&&e.hasOwnProperty("drawFlagType")&&(t.drawFlagType=r.enums===String?a.keyhole.dbroot.DrawFlagProto.DrawFlagType[e.drawFlagType]:e.drawFlagType),t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.DrawFlagProto"},r.DrawFlagType=(t={},(l=Object.create(t))[t[1]="TYPE_FILL_ONLY"]=1,l[t[2]="TYPE_OUTLINE_ONLY"]=2,l[t[3]="TYPE_FILL_AND_OUTLINE"]=3,l[t[4]="TYPE_ANTIALIASING"]=4,l[t[5]="TYPE_CENTER_LABEL"]=5,l),r;var t,l}(),r.LayerProto=function(){function r(e){if(this.zoomRange=[],e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.zoomRange=n.emptyArray,r.prototype.preserveTextLevel=30,r.prototype.lodBeginTransition=!1,r.prototype.lodEndTransition=!1,r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,n=new a.keyhole.dbroot.LayerProto;e.pos<t;){var l=e.uint32();switch(l>>>3){case 1:n.zoomRange&&n.zoomRange.length||(n.zoomRange=[]),n.zoomRange.push(a.keyhole.dbroot.ZoomRangeProto.decode(e,e.uint32()));break;case 2:n.preserveTextLevel=e.int32();break;case 4:n.lodBeginTransition=e.bool();break;case 5:n.lodEndTransition=e.bool();break;default:e.skipType(7&l)}}return n},r.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.zoomRange&&e.hasOwnProperty("zoomRange")){if(!Array.isArray(e.zoomRange))return"zoomRange: array expected";for(var r=0;r<e.zoomRange.length;++r){var t=a.keyhole.dbroot.ZoomRangeProto.verify(e.zoomRange[r]);if(t)return"zoomRange."+t}}return null!=e.preserveTextLevel&&e.hasOwnProperty("preserveTextLevel")&&!n.isInteger(e.preserveTextLevel)?"preserveTextLevel: integer expected":null!=e.lodBeginTransition&&e.hasOwnProperty("lodBeginTransition")&&"boolean"!=typeof e.lodBeginTransition?"lodBeginTransition: boolean expected":null!=e.lodEndTransition&&e.hasOwnProperty("lodEndTransition")&&"boolean"!=typeof e.lodEndTransition?"lodEndTransition: boolean expected":null},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.LayerProto)return e;var r=new a.keyhole.dbroot.LayerProto;if(e.zoomRange){if(!Array.isArray(e.zoomRange))throw TypeError(".keyhole.dbroot.LayerProto.zoomRange: array expected");r.zoomRange=[];for(var t=0;t<e.zoomRange.length;++t){if("object"!=typeof e.zoomRange[t])throw TypeError(".keyhole.dbroot.LayerProto.zoomRange: object expected");r.zoomRange[t]=a.keyhole.dbroot.ZoomRangeProto.fromObject(e.zoomRange[t])}}return null!=e.preserveTextLevel&&(r.preserveTextLevel=0|e.preserveTextLevel),null!=e.lodBeginTransition&&(r.lodBeginTransition=!!e.lodBeginTransition),null!=e.lodEndTransition&&(r.lodEndTransition=!!e.lodEndTransition),r},r.toObject=function(e,r){r||(r={});var t={};if((r.arrays||r.defaults)&&(t.zoomRange=[]),r.defaults&&(t.preserveTextLevel=30,t.lodBeginTransition=!1,t.lodEndTransition=!1),e.zoomRange&&e.zoomRange.length){t.zoomRange=[];for(var o=0;o<e.zoomRange.length;++o)t.zoomRange[o]=a.keyhole.dbroot.ZoomRangeProto.toObject(e.zoomRange[o],r)}return null!=e.preserveTextLevel&&e.hasOwnProperty("preserveTextLevel")&&(t.preserveTextLevel=e.preserveTextLevel),null!=e.lodBeginTransition&&e.hasOwnProperty("lodBeginTransition")&&(t.lodBeginTransition=e.lodBeginTransition),null!=e.lodEndTransition&&e.hasOwnProperty("lodEndTransition")&&(t.lodEndTransition=e.lodEndTransition),t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.LayerProto"},r}(),r.FolderProto=function(){function r(e){if(e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.isExpandable=!0,r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,n=new a.keyhole.dbroot.FolderProto;e.pos<t;){var l=e.uint32();l>>>3==1?n.isExpandable=e.bool():e.skipType(7&l)}return n},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.isExpandable&&e.hasOwnProperty("isExpandable")&&"boolean"!=typeof e.isExpandable?"isExpandable: boolean expected":null},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.FolderProto)return e;var r=new a.keyhole.dbroot.FolderProto;return null!=e.isExpandable&&(r.isExpandable=!!e.isExpandable),r},r.toObject=function(e,r){r||(r={});var t={};return r.defaults&&(t.isExpandable=!0),null!=e.isExpandable&&e.hasOwnProperty("isExpandable")&&(t.isExpandable=e.isExpandable),t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.FolderProto"},r}(),r.RequirementProto=function(){function r(e){if(e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.requiredVram="",r.prototype.requiredClientVer="",r.prototype.probability="",r.prototype.requiredUserAgent="",r.prototype.requiredClientCapabilities="",r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,n=new a.keyhole.dbroot.RequirementProto;e.pos<t;){var l=e.uint32();switch(l>>>3){case 3:n.requiredVram=e.string();break;case 4:n.requiredClientVer=e.string();break;case 5:n.probability=e.string();break;case 6:n.requiredUserAgent=e.string();break;case 7:n.requiredClientCapabilities=e.string();break;default:e.skipType(7&l)}}return n},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":null!=e.requiredVram&&e.hasOwnProperty("requiredVram")&&!n.isString(e.requiredVram)?"requiredVram: string expected":null!=e.requiredClientVer&&e.hasOwnProperty("requiredClientVer")&&!n.isString(e.requiredClientVer)?"requiredClientVer: string expected":null!=e.probability&&e.hasOwnProperty("probability")&&!n.isString(e.probability)?"probability: string expected":null!=e.requiredUserAgent&&e.hasOwnProperty("requiredUserAgent")&&!n.isString(e.requiredUserAgent)?"requiredUserAgent: string expected":null!=e.requiredClientCapabilities&&e.hasOwnProperty("requiredClientCapabilities")&&!n.isString(e.requiredClientCapabilities)?"requiredClientCapabilities: string expected":null},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.RequirementProto)return e;var r=new a.keyhole.dbroot.RequirementProto;return null!=e.requiredVram&&(r.requiredVram=String(e.requiredVram)),null!=e.requiredClientVer&&(r.requiredClientVer=String(e.requiredClientVer)),null!=e.probability&&(r.probability=String(e.probability)),null!=e.requiredUserAgent&&(r.requiredUserAgent=String(e.requiredUserAgent)),null!=e.requiredClientCapabilities&&(r.requiredClientCapabilities=String(e.requiredClientCapabilities)),r},r.toObject=function(e,r){r||(r={});var t={};return r.defaults&&(t.requiredVram="",t.requiredClientVer="",t.probability="",t.requiredUserAgent="",t.requiredClientCapabilities=""),null!=e.requiredVram&&e.hasOwnProperty("requiredVram")&&(t.requiredVram=e.requiredVram),null!=e.requiredClientVer&&e.hasOwnProperty("requiredClientVer")&&(t.requiredClientVer=e.requiredClientVer),null!=e.probability&&e.hasOwnProperty("probability")&&(t.probability=e.probability),null!=e.requiredUserAgent&&e.hasOwnProperty("requiredUserAgent")&&(t.requiredUserAgent=e.requiredUserAgent),null!=e.requiredClientCapabilities&&e.hasOwnProperty("requiredClientCapabilities")&&(t.requiredClientCapabilities=e.requiredClientCapabilities),t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.RequirementProto"},r}(),r.LookAtProto=function(){function r(e){if(e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.longitude=0,r.prototype.latitude=0,r.prototype.range=0,r.prototype.tilt=0,r.prototype.heading=0,r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,l=new a.keyhole.dbroot.LookAtProto;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:l.longitude=e.float();break;case 2:l.latitude=e.float();break;case 3:l.range=e.float();break;case 4:l.tilt=e.float();break;case 5:l.heading=e.float();break;default:e.skipType(7&i)}}if(!l.hasOwnProperty("longitude"))throw n.ProtocolError("missing required 'longitude'",{instance:l});if(!l.hasOwnProperty("latitude"))throw n.ProtocolError("missing required 'latitude'",{instance:l});return l},r.verify=function(e){return"object"!=typeof e||null===e?"object expected":"number"!=typeof e.longitude?"longitude: number expected":"number"!=typeof e.latitude?"latitude: number expected":null!=e.range&&e.hasOwnProperty("range")&&"number"!=typeof e.range?"range: number expected":null!=e.tilt&&e.hasOwnProperty("tilt")&&"number"!=typeof e.tilt?"tilt: number expected":null!=e.heading&&e.hasOwnProperty("heading")&&"number"!=typeof e.heading?"heading: number expected":null},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.LookAtProto)return e;var r=new a.keyhole.dbroot.LookAtProto;return null!=e.longitude&&(r.longitude=Number(e.longitude)),null!=e.latitude&&(r.latitude=Number(e.latitude)),null!=e.range&&(r.range=Number(e.range)),null!=e.tilt&&(r.tilt=Number(e.tilt)),null!=e.heading&&(r.heading=Number(e.heading)),r},r.toObject=function(e,r){r||(r={});var t={};return r.defaults&&(t.longitude=0,t.latitude=0,t.range=0,t.tilt=0,t.heading=0),null!=e.longitude&&e.hasOwnProperty("longitude")&&(t.longitude=r.json&&!isFinite(e.longitude)?String(e.longitude):e.longitude),null!=e.latitude&&e.hasOwnProperty("latitude")&&(t.latitude=r.json&&!isFinite(e.latitude)?String(e.latitude):e.latitude),null!=e.range&&e.hasOwnProperty("range")&&(t.range=r.json&&!isFinite(e.range)?String(e.range):e.range),null!=e.tilt&&e.hasOwnProperty("tilt")&&(t.tilt=r.json&&!isFinite(e.tilt)?String(e.tilt):e.tilt),null!=e.heading&&e.hasOwnProperty("heading")&&(t.heading=r.json&&!isFinite(e.heading)?String(e.heading):e.heading),t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.LookAtProto"},r}(),r.NestedFeatureProto=function(){function r(e){if(this.children=[],e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.featureType=1,r.prototype.kmlUrl=null,r.prototype.databaseUrl="",r.prototype.layer=null,r.prototype.folder=null,r.prototype.requirement=null,r.prototype.channelId=0,r.prototype.displayName=null,r.prototype.isVisible=!0,r.prototype.isEnabled=!0,r.prototype.isChecked=!1,r.prototype.layerMenuIconPath="icons/773_l.png",r.prototype.description=null,r.prototype.lookAt=null,r.prototype.assetUuid="",r.prototype.isSaveLocked=!0,r.prototype.children=n.emptyArray,r.prototype.clientConfigScriptName="",r.prototype.dioramaDataChannelBase=-1,r.prototype.replicaDataChannelBase=-1,r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,l=new a.keyhole.dbroot.NestedFeatureProto;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:l.featureType=e.int32();break;case 2:l.kmlUrl=a.keyhole.dbroot.StringIdOrValueProto.decode(e,e.uint32());break;case 21:l.databaseUrl=e.string();break;case 3:l.layer=a.keyhole.dbroot.LayerProto.decode(e,e.uint32());break;case 4:l.folder=a.keyhole.dbroot.FolderProto.decode(e,e.uint32());break;case 5:l.requirement=a.keyhole.dbroot.RequirementProto.decode(e,e.uint32());break;case 6:l.channelId=e.int32();break;case 7:l.displayName=a.keyhole.dbroot.StringIdOrValueProto.decode(e,e.uint32());break;case 8:l.isVisible=e.bool();break;case 9:l.isEnabled=e.bool();break;case 10:l.isChecked=e.bool();break;case 11:l.layerMenuIconPath=e.string();break;case 12:l.description=a.keyhole.dbroot.StringIdOrValueProto.decode(e,e.uint32());break;case 13:l.lookAt=a.keyhole.dbroot.LookAtProto.decode(e,e.uint32());break;case 15:l.assetUuid=e.string();break;case 16:l.isSaveLocked=e.bool();break;case 17:l.children&&l.children.length||(l.children=[]),l.children.push(a.keyhole.dbroot.NestedFeatureProto.decode(e,e.uint32()));break;case 18:l.clientConfigScriptName=e.string();break;case 19:l.dioramaDataChannelBase=e.int32();break;case 20:l.replicaDataChannelBase=e.int32();break;default:e.skipType(7&i)}}if(!l.hasOwnProperty("channelId"))throw n.ProtocolError("missing required 'channelId'",{instance:l});return l},r.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(null!=e.featureType&&e.hasOwnProperty("featureType"))switch(e.featureType){default:return"featureType: enum value expected";case 1:case 2:case 3:case 4:}if(null!=e.kmlUrl&&e.hasOwnProperty("kmlUrl")&&(t=a.keyhole.dbroot.StringIdOrValueProto.verify(e.kmlUrl)))return"kmlUrl."+t;if(null!=e.databaseUrl&&e.hasOwnProperty("databaseUrl")&&!n.isString(e.databaseUrl))return"databaseUrl: string expected";if(null!=e.layer&&e.hasOwnProperty("layer")&&(t=a.keyhole.dbroot.LayerProto.verify(e.layer)))return"layer."+t;if(null!=e.folder&&e.hasOwnProperty("folder")&&(t=a.keyhole.dbroot.FolderProto.verify(e.folder)))return"folder."+t;if(null!=e.requirement&&e.hasOwnProperty("requirement")&&(t=a.keyhole.dbroot.RequirementProto.verify(e.requirement)))return"requirement."+t;if(!n.isInteger(e.channelId))return"channelId: integer expected";if(null!=e.displayName&&e.hasOwnProperty("displayName")&&(t=a.keyhole.dbroot.StringIdOrValueProto.verify(e.displayName)))return"displayName."+t;if(null!=e.isVisible&&e.hasOwnProperty("isVisible")&&"boolean"!=typeof e.isVisible)return"isVisible: boolean expected";if(null!=e.isEnabled&&e.hasOwnProperty("isEnabled")&&"boolean"!=typeof e.isEnabled)return"isEnabled: boolean expected";if(null!=e.isChecked&&e.hasOwnProperty("isChecked")&&"boolean"!=typeof e.isChecked)return"isChecked: boolean expected";if(null!=e.layerMenuIconPath&&e.hasOwnProperty("layerMenuIconPath")&&!n.isString(e.layerMenuIconPath))return"layerMenuIconPath: string expected";if(null!=e.description&&e.hasOwnProperty("description")&&(t=a.keyhole.dbroot.StringIdOrValueProto.verify(e.description)))return"description."+t;if(null!=e.lookAt&&e.hasOwnProperty("lookAt")&&(t=a.keyhole.dbroot.LookAtProto.verify(e.lookAt)))return"lookAt."+t;if(null!=e.assetUuid&&e.hasOwnProperty("assetUuid")&&!n.isString(e.assetUuid))return"assetUuid: string expected";if(null!=e.isSaveLocked&&e.hasOwnProperty("isSaveLocked")&&"boolean"!=typeof e.isSaveLocked)return"isSaveLocked: boolean expected";if(null!=e.children&&e.hasOwnProperty("children")){if(!Array.isArray(e.children))return"children: array expected";for(var r=0;r<e.children.length;++r){var t;if(t=a.keyhole.dbroot.NestedFeatureProto.verify(e.children[r]))return"children."+t}}return null!=e.clientConfigScriptName&&e.hasOwnProperty("clientConfigScriptName")&&!n.isString(e.clientConfigScriptName)?"clientConfigScriptName: string expected":null!=e.dioramaDataChannelBase&&e.hasOwnProperty("dioramaDataChannelBase")&&!n.isInteger(e.dioramaDataChannelBase)?"dioramaDataChannelBase: integer expected":null!=e.replicaDataChannelBase&&e.hasOwnProperty("replicaDataChannelBase")&&!n.isInteger(e.replicaDataChannelBase)?"replicaDataChannelBase: integer expected":null},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.NestedFeatureProto)return e;var r=new a.keyhole.dbroot.NestedFeatureProto;switch(e.featureType){case"TYPE_POINT_Z":case 1:r.featureType=1;break;case"TYPE_POLYGON_Z":case 2:r.featureType=2;break;case"TYPE_LINE_Z":case 3:r.featureType=3;break;case"TYPE_TERRAIN":case 4:r.featureType=4}if(null!=e.kmlUrl){if("object"!=typeof e.kmlUrl)throw TypeError(".keyhole.dbroot.NestedFeatureProto.kmlUrl: object expected");r.kmlUrl=a.keyhole.dbroot.StringIdOrValueProto.fromObject(e.kmlUrl)}if(null!=e.databaseUrl&&(r.databaseUrl=String(e.databaseUrl)),null!=e.layer){if("object"!=typeof e.layer)throw TypeError(".keyhole.dbroot.NestedFeatureProto.layer: object expected");r.layer=a.keyhole.dbroot.LayerProto.fromObject(e.layer)}if(null!=e.folder){if("object"!=typeof e.folder)throw TypeError(".keyhole.dbroot.NestedFeatureProto.folder: object expected");r.folder=a.keyhole.dbroot.FolderProto.fromObject(e.folder)}if(null!=e.requirement){if("object"!=typeof e.requirement)throw TypeError(".keyhole.dbroot.NestedFeatureProto.requirement: object expected");r.requirement=a.keyhole.dbroot.RequirementProto.fromObject(e.requirement)}if(null!=e.channelId&&(r.channelId=0|e.channelId),null!=e.displayName){if("object"!=typeof e.displayName)throw TypeError(".keyhole.dbroot.NestedFeatureProto.displayName: object expected");r.displayName=a.keyhole.dbroot.StringIdOrValueProto.fromObject(e.displayName)}if(null!=e.isVisible&&(r.isVisible=!!e.isVisible),null!=e.isEnabled&&(r.isEnabled=!!e.isEnabled),null!=e.isChecked&&(r.isChecked=!!e.isChecked),null!=e.layerMenuIconPath&&(r.layerMenuIconPath=String(e.layerMenuIconPath)),null!=e.description){if("object"!=typeof e.description)throw TypeError(".keyhole.dbroot.NestedFeatureProto.description: object expected");r.description=a.keyhole.dbroot.StringIdOrValueProto.fromObject(e.description)}if(null!=e.lookAt){if("object"!=typeof e.lookAt)throw TypeError(".keyhole.dbroot.NestedFeatureProto.lookAt: object expected");r.lookAt=a.keyhole.dbroot.LookAtProto.fromObject(e.lookAt)}if(null!=e.assetUuid&&(r.assetUuid=String(e.assetUuid)),null!=e.isSaveLocked&&(r.isSaveLocked=!!e.isSaveLocked),e.children){if(!Array.isArray(e.children))throw TypeError(".keyhole.dbroot.NestedFeatureProto.children: array expected");r.children=[];for(var t=0;t<e.children.length;++t){if("object"!=typeof e.children[t])throw TypeError(".keyhole.dbroot.NestedFeatureProto.children: object expected");r.children[t]=a.keyhole.dbroot.NestedFeatureProto.fromObject(e.children[t])}}return null!=e.clientConfigScriptName&&(r.clientConfigScriptName=String(e.clientConfigScriptName)),null!=e.dioramaDataChannelBase&&(r.dioramaDataChannelBase=0|e.dioramaDataChannelBase),null!=e.replicaDataChannelBase&&(r.replicaDataChannelBase=0|e.replicaDataChannelBase),r},r.toObject=function(e,r){r||(r={});var t={};if((r.arrays||r.defaults)&&(t.children=[]),r.defaults&&(t.featureType=r.enums===String?"TYPE_POINT_Z":1,t.kmlUrl=null,t.layer=null,t.folder=null,t.requirement=null,t.channelId=0,t.displayName=null,t.isVisible=!0,t.isEnabled=!0,t.isChecked=!1,t.layerMenuIconPath="icons/773_l.png",t.description=null,t.lookAt=null,t.assetUuid="",t.isSaveLocked=!0,t.clientConfigScriptName="",t.dioramaDataChannelBase=-1,t.replicaDataChannelBase=-1,t.databaseUrl=""),null!=e.featureType&&e.hasOwnProperty("featureType")&&(t.featureType=r.enums===String?a.keyhole.dbroot.NestedFeatureProto.FeatureType[e.featureType]:e.featureType),null!=e.kmlUrl&&e.hasOwnProperty("kmlUrl")&&(t.kmlUrl=a.keyhole.dbroot.StringIdOrValueProto.toObject(e.kmlUrl,r)),null!=e.layer&&e.hasOwnProperty("layer")&&(t.layer=a.keyhole.dbroot.LayerProto.toObject(e.layer,r)),null!=e.folder&&e.hasOwnProperty("folder")&&(t.folder=a.keyhole.dbroot.FolderProto.toObject(e.folder,r)),null!=e.requirement&&e.hasOwnProperty("requirement")&&(t.requirement=a.keyhole.dbroot.RequirementProto.toObject(e.requirement,r)),null!=e.channelId&&e.hasOwnProperty("channelId")&&(t.channelId=e.channelId),null!=e.displayName&&e.hasOwnProperty("displayName")&&(t.displayName=a.keyhole.dbroot.StringIdOrValueProto.toObject(e.displayName,r)),null!=e.isVisible&&e.hasOwnProperty("isVisible")&&(t.isVisible=e.isVisible),null!=e.isEnabled&&e.hasOwnProperty("isEnabled")&&(t.isEnabled=e.isEnabled),null!=e.isChecked&&e.hasOwnProperty("isChecked")&&(t.isChecked=e.isChecked),null!=e.layerMenuIconPath&&e.hasOwnProperty("layerMenuIconPath")&&(t.layerMenuIconPath=e.layerMenuIconPath),null!=e.description&&e.hasOwnProperty("description")&&(t.description=a.keyhole.dbroot.StringIdOrValueProto.toObject(e.description,r)),null!=e.lookAt&&e.hasOwnProperty("lookAt")&&(t.lookAt=a.keyhole.dbroot.LookAtProto.toObject(e.lookAt,r)),null!=e.assetUuid&&e.hasOwnProperty("assetUuid")&&(t.assetUuid=e.assetUuid),null!=e.isSaveLocked&&e.hasOwnProperty("isSaveLocked")&&(t.isSaveLocked=e.isSaveLocked),e.children&&e.children.length){t.children=[];for(var o=0;o<e.children.length;++o)t.children[o]=a.keyhole.dbroot.NestedFeatureProto.toObject(e.children[o],r)}return null!=e.clientConfigScriptName&&e.hasOwnProperty("clientConfigScriptName")&&(t.clientConfigScriptName=e.clientConfigScriptName),null!=e.dioramaDataChannelBase&&e.hasOwnProperty("dioramaDataChannelBase")&&(t.dioramaDataChannelBase=e.dioramaDataChannelBase),null!=e.replicaDataChannelBase&&e.hasOwnProperty("replicaDataChannelBase")&&(t.replicaDataChannelBase=e.replicaDataChannelBase),null!=e.databaseUrl&&e.hasOwnProperty("databaseUrl")&&(t.databaseUrl=e.databaseUrl),t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.NestedFeatureProto"},r.FeatureType=(t={},(l=Object.create(t))[t[1]="TYPE_POINT_Z"]=1,l[t[2]="TYPE_POLYGON_Z"]=2,l[t[3]="TYPE_LINE_Z"]=3,l[t[4]="TYPE_TERRAIN"]=4,l),r;var t,l}(),r.MfeDomainFeaturesProto=function(){function r(e){if(this.supportedFeatures=[],e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.countryCode="",r.prototype.domainName="",r.prototype.supportedFeatures=n.emptyArray,r.decode=function(e,r){e instanceof o||(e=o.create(e));for(var t=void 0===r?e.len:e.pos+r,l=new a.keyhole.dbroot.MfeDomainFeaturesProto;e.pos<t;){var i=e.uint32();switch(i>>>3){case 1:l.countryCode=e.string();break;case 2:l.domainName=e.string();break;case 3:if(l.supportedFeatures&&l.supportedFeatures.length||(l.supportedFeatures=[]),2==(7&i))for(var s=e.uint32()+e.pos;e.pos<s;)l.supportedFeatures.push(e.int32());else l.supportedFeatures.push(e.int32());break;default:e.skipType(7&i)}}if(!l.hasOwnProperty("countryCode"))throw n.ProtocolError("missing required 'countryCode'",{instance:l});if(!l.hasOwnProperty("domainName"))throw n.ProtocolError("missing required 'domainName'",{instance:l});return l},r.verify=function(e){if("object"!=typeof e||null===e)return"object expected";if(!n.isString(e.countryCode))return"countryCode: string expected";if(!n.isString(e.domainName))return"domainName: string expected";if(null!=e.supportedFeatures&&e.hasOwnProperty("supportedFeatures")){if(!Array.isArray(e.supportedFeatures))return"supportedFeatures: array expected";for(var r=0;r<e.supportedFeatures.length;++r)switch(e.supportedFeatures[r]){default:return"supportedFeatures: enum value[] expected";case 0:case 1:case 2:}}return null},r.fromObject=function(e){if(e instanceof a.keyhole.dbroot.MfeDomainFeaturesProto)return e;var r=new a.keyhole.dbroot.MfeDomainFeaturesProto;if(null!=e.countryCode&&(r.countryCode=String(e.countryCode)),null!=e.domainName&&(r.domainName=String(e.domainName)),e.supportedFeatures){if(!Array.isArray(e.supportedFeatures))throw TypeError(".keyhole.dbroot.MfeDomainFeaturesProto.supportedFeatures: array expected");r.supportedFeatures=[];for(var t=0;t<e.supportedFeatures.length;++t)switch(e.supportedFeatures[t]){default:case"GEOCODING":case 0:r.supportedFeatures[t]=0;break;case"LOCAL_SEARCH":case 1:r.supportedFeatures[t]=1;break;case"DRIVING_DIRECTIONS":case 2:r.supportedFeatures[t]=2}}return r},r.toObject=function(e,r){r||(r={});var t={};if((r.arrays||r.defaults)&&(t.supportedFeatures=[]),r.defaults&&(t.countryCode="",t.domainName=""),null!=e.countryCode&&e.hasOwnProperty("countryCode")&&(t.countryCode=e.countryCode),null!=e.domainName&&e.hasOwnProperty("domainName")&&(t.domainName=e.domainName),e.supportedFeatures&&e.supportedFeatures.length){t.supportedFeatures=[];for(var o=0;o<e.supportedFeatures.length;++o)t.supportedFeatures[o]=r.enums===String?a.keyhole.dbroot.MfeDomainFeaturesProto.SupportedFeature[e.supportedFeatures[o]]:e.supportedFeatures[o]}return t},r.prototype.toJSON=function(){return this.constructor.toObject(this,e.util.toJSONOptions)},r.getTypeUrl=function(e){return void 0===e&&(e="type.googleapis.com"),e+"/keyhole.dbroot.MfeDomainFeaturesProto"},r.SupportedFeature=(t={},(l=Object.create(t))[t[0]="GEOCODING"]=0,l[t[1]="LOCAL_SEARCH"]=1,l[t[2]="DRIVING_DIRECTIONS"]=2,l),r;var t,l}(),r.ClientOptionsProto=function(){function r(e){if(e)for(var r=Object.keys(e),t=0;t<r.length;++t)null!=e[r[t]]&&(this[r[t]]=e[r[t]])}return r.prototype.disableDiskCache=!1,r.prototype.disableEmbeddedBrowserVista=!1,r.prototype.drawAtmosphere=!0,r.prototype.drawStars=!0,r.prototype.shaderFilePrefix="",r.prototype.useProtobufQuadtreePackets=!1,r.prototype.useExtendedCopyrightIds=!0,r.prototype.precipitationsOptions=null,r.prototype.capture