iclient9-leaflet.min.js 1.8 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706
  1. /*!
  2. *
  3. * iclient9-leaflet.(http://iclient.supermap.io)
  4. * Copyright© 2000 - 2019 SuperMap Software Co.Ltd
  5. * license: Apache-2.0
  6. * version: v10.0.0-beta
  7. *
  8. */!function(e){var t={};function r(i){if(t[i])return t[i].exports;var n=t[i]={i:i,l:!1,exports:{}};return e[i].call(n.exports,n,n.exports,r),n.l=!0,n.exports}r.m=e,r.c=t,r.d=function(e,t,i){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=579)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),(t.SuperMap=window.SuperMap=window.SuperMap||{}).Widgets=window.SuperMap.Widgets||{}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Util=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=r(0);
  9. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  10. * This program are made available under the terms of the Apache License, Version 2.0
  11. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(67);var a,o,s;t.Util=n.SuperMap.Util=n.SuperMap.Util||{};n.SuperMap.Util.extend=function(e,t){if(e=e||{},t){for(var r in t){var i=t[r];void 0!==i&&(e[r]=i)}!("function"==typeof window.Event&&t instanceof window.Event)&&t.hasOwnProperty&&t.hasOwnProperty("toString")&&(e.toString=t.toString)}return e},n.SuperMap.Util.copy=function(e,t){var r;if(e=e||{},t)for(var i in e)void 0!==(r=t[i])&&(e[i]=r)},n.SuperMap.Util.reset=function(e){for(var t in e=e||{})if(e.hasOwnProperty(t)){if("object"===i(e[t])&&e[t]instanceof Array){for(var r in e[t])e[t][r].destroy&&e[t][r].destroy();e[t].length=0}else"object"===i(e[t])&&e[t]instanceof Object&&e[t].destroy&&e[t].destroy();e[t]=null}},n.SuperMap.Util.getElement=function(){for(var e=[],t=0,r=arguments.length;t<r;t++){var i=arguments[t];if("string"==typeof i&&(i=document.getElementById(i)),1===arguments.length)return i;e.push(i)}return e},n.SuperMap.Util.isElement=function(e){return!(!e||1!==e.nodeType)},n.SuperMap.Util.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},n.SuperMap.Util.removeItem=function(e,t){for(var r=e.length-1;r>=0;r--)e[r]===t&&e.splice(r,1);return e},n.SuperMap.Util.indexOf=function(e,t){if(null==e)return-1;if("function"==typeof e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1},n.SuperMap.Util.modifyDOMElement=function(e,t,r,i,n,a,o,s){t&&(e.id=t),r&&(e.style.left=r.x+"px",e.style.top=r.y+"px"),i&&(e.style.width=i.w+"px",e.style.height=i.h+"px"),n&&(e.style.position=n),a&&(e.style.border=a),o&&(e.style.overflow=o),parseFloat(s)>=0&&parseFloat(s)<1?(e.style.filter="alpha(opacity="+100*s+")",e.style.opacity=s):1===parseFloat(s)&&(e.style.filter="",e.style.opacity="")},n.SuperMap.Util.applyDefaults=function(e,t){e=e||{};var r="function"==typeof window.Event&&t instanceof window.Event;for(var i in t)(void 0===e[i]||!r&&t.hasOwnProperty&&t.hasOwnProperty(i)&&!e.hasOwnProperty(i))&&(e[i]=t[i]);return!r&&t&&t.hasOwnProperty&&t.hasOwnProperty("toString")&&!e.hasOwnProperty("toString")&&(e.toString=t.toString),e},n.SuperMap.Util.getParameterString=function(e){var t=[];for(var r in e){var n=e[r];if(null!=n&&"function"!=typeof n){var a;if("object"===(void 0===n?"undefined":i(n))&&n.constructor===Array){for(var o,s=[],l=0,u=n.length;l<u;l++)o=n[l],s.push(encodeURIComponent(null===o||void 0===o?"":o));a=s.join(",")}else a=encodeURIComponent(n);t.push(encodeURIComponent(r)+"="+a)}}return t.join("&")},n.SuperMap.Util.urlAppend=function(e,t){var r=e;if(t){var i=(e+" ").split(/[?&]/);r+=" "===i.pop()?t:i.length?"&"+t:"?"+t}return r},n.SuperMap.Util.DEFAULT_PRECISION=14,n.SuperMap.Util.toFloat=function(e,t){return null==t&&(t=n.SuperMap.Util.DEFAULT_PRECISION),"number"!=typeof e&&(e=parseFloat(e)),0===t?e:parseFloat(e.toPrecision(t))},n.SuperMap.Util.rad=function(e){return e*Math.PI/180},n.SuperMap.Util.getParameters=function(e){e=null===e||void 0===e?window.location.href:e;var t="";if(n.SuperMap.String.contains(e,"?")){var r=e.indexOf("?")+1,i=n.SuperMap.String.contains(e,"#")?e.indexOf("#"):e.length;t=e.substring(r,i)}for(var a={},o=t.split(/[&;]/),s=0,l=o.length;s<l;++s){var u=o[s].split("=");if(u[0]){var c=u[0];try{c=decodeURIComponent(c)}catch(e){c=unescape(c)}var p=(u[1]||"").replace(/\+/g," ");try{p=decodeURIComponent(p)}catch(e){p=unescape(p)}1==(p=p.split(",")).length&&(p=p[0]),a[c]=p}}return a},n.SuperMap.Util.lastSeqID=0,n.SuperMap.Util.createUniqueID=function(e){return null==e&&(e="id_"),n.SuperMap.Util.lastSeqID+=1,e+n.SuperMap.Util.lastSeqID},n.SuperMap.INCHES_PER_UNIT={inches:1,ft:12,mi:63360,m:39.3701,km:39370.1,dd:4374754,yd:36},n.SuperMap.INCHES_PER_UNIT.in=n.SuperMap.INCHES_PER_UNIT.inches,n.SuperMap.INCHES_PER_UNIT.degrees=n.SuperMap.INCHES_PER_UNIT.dd,n.SuperMap.INCHES_PER_UNIT.nmi=1852*n.SuperMap.INCHES_PER_UNIT.m,n.SuperMap.METERS_PER_INCH=.0254000508001016,n.SuperMap.Util.extend(n.SuperMap.INCHES_PER_UNIT,{Inch:n.SuperMap.INCHES_PER_UNIT.inches,Meter:1/n.SuperMap.METERS_PER_INCH,Foot:.3048006096012192/n.SuperMap.METERS_PER_INCH,IFoot:.3048/n.SuperMap.METERS_PER_INCH,ClarkeFoot:.3047972651151/n.SuperMap.METERS_PER_INCH,SearsFoot:.30479947153867626/n.SuperMap.METERS_PER_INCH,GoldCoastFoot:.3047997101815088/n.SuperMap.METERS_PER_INCH,IInch:.0254/n.SuperMap.METERS_PER_INCH,MicroInch:254e-7/n.SuperMap.METERS_PER_INCH,Mil:2.54e-8/n.SuperMap.METERS_PER_INCH,Centimeter:.01/n.SuperMap.METERS_PER_INCH,Kilometer:1e3/n.SuperMap.METERS_PER_INCH,Yard:.9144018288036576/n.SuperMap.METERS_PER_INCH,SearsYard:.914398414616029/n.SuperMap.METERS_PER_INCH,IndianYard:.9143985307444408/n.SuperMap.METERS_PER_INCH,IndianYd37:.91439523/n.SuperMap.METERS_PER_INCH,IndianYd62:.9143988/n.SuperMap.METERS_PER_INCH,IndianYd75:.9143985/n.SuperMap.METERS_PER_INCH,IndianFoot:.30479951/n.SuperMap.METERS_PER_INCH,IndianFt37:.30479841/n.SuperMap.METERS_PER_INCH,IndianFt62:.3047996/n.SuperMap.METERS_PER_INCH,IndianFt75:.3047995/n.SuperMap.METERS_PER_INCH,Mile:1609.3472186944373/n.SuperMap.METERS_PER_INCH,IYard:.9144/n.SuperMap.METERS_PER_INCH,IMile:1609.344/n.SuperMap.METERS_PER_INCH,NautM:1852/n.SuperMap.METERS_PER_INCH,"Lat-66":110943.31648893273/n.SuperMap.METERS_PER_INCH,"Lat-83":110946.25736872235/n.SuperMap.METERS_PER_INCH,Decimeter:.1/n.SuperMap.METERS_PER_INCH,Millimeter:.001/n.SuperMap.METERS_PER_INCH,Dekameter:10/n.SuperMap.METERS_PER_INCH,Decameter:10/n.SuperMap.METERS_PER_INCH,Hectometer:100/n.SuperMap.METERS_PER_INCH,GermanMeter:1.0000135965/n.SuperMap.METERS_PER_INCH,CaGrid:.999738/n.SuperMap.METERS_PER_INCH,ClarkeChain:20.1166194976/n.SuperMap.METERS_PER_INCH,GunterChain:20.11684023368047/n.SuperMap.METERS_PER_INCH,BenoitChain:20.116782494375872/n.SuperMap.METERS_PER_INCH,SearsChain:20.11676512155/n.SuperMap.METERS_PER_INCH,ClarkeLink:.201166194976/n.SuperMap.METERS_PER_INCH,GunterLink:.2011684023368047/n.SuperMap.METERS_PER_INCH,BenoitLink:.20116782494375873/n.SuperMap.METERS_PER_INCH,SearsLink:.2011676512155/n.SuperMap.METERS_PER_INCH,Rod:5.02921005842012/n.SuperMap.METERS_PER_INCH,IntnlChain:20.1168/n.SuperMap.METERS_PER_INCH,IntnlLink:.201168/n.SuperMap.METERS_PER_INCH,Perch:5.02921005842012/n.SuperMap.METERS_PER_INCH,Pole:5.02921005842012/n.SuperMap.METERS_PER_INCH,Furlong:201.1684023368046/n.SuperMap.METERS_PER_INCH,Rood:3.778266898/n.SuperMap.METERS_PER_INCH,CapeFoot:.3047972615/n.SuperMap.METERS_PER_INCH,Brealey:375/n.SuperMap.METERS_PER_INCH,ModAmFt:.304812252984506/n.SuperMap.METERS_PER_INCH,Fathom:1.8288/n.SuperMap.METERS_PER_INCH,"NautM-UK":1853.184/n.SuperMap.METERS_PER_INCH,"50kilometers":5e4/n.SuperMap.METERS_PER_INCH,"150kilometers":15e4/n.SuperMap.METERS_PER_INCH}),n.SuperMap.Util.extend(n.SuperMap.INCHES_PER_UNIT,{mm:n.SuperMap.INCHES_PER_UNIT.Meter/1e3,cm:n.SuperMap.INCHES_PER_UNIT.Meter/100,dm:100*n.SuperMap.INCHES_PER_UNIT.Meter,km:1e3*n.SuperMap.INCHES_PER_UNIT.Meter,kmi:n.SuperMap.INCHES_PER_UNIT.nmi,fath:n.SuperMap.INCHES_PER_UNIT.Fathom,ch:n.SuperMap.INCHES_PER_UNIT.IntnlChain,link:n.SuperMap.INCHES_PER_UNIT.IntnlLink,"us-in":n.SuperMap.INCHES_PER_UNIT.inches,"us-ft":n.SuperMap.INCHES_PER_UNIT.Foot,"us-yd":n.SuperMap.INCHES_PER_UNIT.Yard,"us-ch":n.SuperMap.INCHES_PER_UNIT.GunterChain,"us-mi":n.SuperMap.INCHES_PER_UNIT.Mile,"ind-yd":n.SuperMap.INCHES_PER_UNIT.IndianYd37,"ind-ft":n.SuperMap.INCHES_PER_UNIT.IndianFt37,"ind-ch":20.11669506/n.SuperMap.METERS_PER_INCH}),n.SuperMap.DOTS_PER_INCH=96,n.SuperMap.Util.normalizeScale=function(e){return e>1?1/e:e},n.SuperMap.Util.getResolutionFromScale=function(e,t){var r;e&&(null==t&&(t="degrees"),r=1/(n.SuperMap.Util.normalizeScale(e)*n.SuperMap.INCHES_PER_UNIT[t]*n.SuperMap.DOTS_PER_INCH));return r},n.SuperMap.Util.getScaleFromResolution=function(e,t){return null==t&&(t="degrees"),e*n.SuperMap.INCHES_PER_UNIT[t]*n.SuperMap.DOTS_PER_INCH},n.SuperMap.IS_GECKO=-1===(a=navigator.userAgent.toLowerCase()).indexOf("webkit")&&-1!==a.indexOf("gecko"),n.SuperMap.Browser=function(){var e,t="",r="",i="pc",n=navigator.userAgent.toLowerCase();return n.indexOf("msie")>-1||n.indexOf("trident")>-1&&n.indexOf("rv")>-1?(t="msie",e=n.match(/msie ([\d.]+)/)||n.match(/rv:([\d.]+)/)):n.indexOf("chrome")>-1?(t="chrome",e=n.match(/chrome\/([\d.]+)/)):n.indexOf("firefox")>-1?(t="firefox",e=n.match(/firefox\/([\d.]+)/)):n.indexOf("opera")>-1?(t="opera",e=n.match(/version\/([\d.]+)/)):n.indexOf("safari")>-1&&(t="safari",e=n.match(/version\/([\d.]+)/)),r=e?e[1]:"",n.indexOf("ipad")>-1||n.indexOf("ipod")>-1||n.indexOf("iphone")>-1?i="apple":n.indexOf("android")>-1&&(r=(e=n.match(/version\/([\d.]+)/))?e[1]:"",i="android"),{name:t,version:r,device:i}}(),n.SuperMap.Util.getBrowser=function(){return n.SuperMap.Browser},n.SuperMap.Util.isSupportCanvas=(o=!0,s=n.SuperMap.Util.getBrowser(),document.createElement("canvas").getContext?("firefox"===s.name&&parseFloat(s.version)<5&&(o=!1),"safari"===s.name&&parseFloat(s.version)<4&&(o=!1),"opera"===s.name&&parseFloat(s.version)<10&&(o=!1),"msie"===s.name&&parseFloat(s.version)<9&&(o=!1)):o=!1,o),n.SuperMap.Util.supportCanvas=function(){return n.SuperMap.Util.isSupportCanvas},n.SuperMap.INCHES_PER_UNIT.degree=n.SuperMap.INCHES_PER_UNIT.dd,n.SuperMap.INCHES_PER_UNIT.meter=n.SuperMap.INCHES_PER_UNIT.m,n.SuperMap.INCHES_PER_UNIT.foot=n.SuperMap.INCHES_PER_UNIT.ft,n.SuperMap.INCHES_PER_UNIT.inch=n.SuperMap.INCHES_PER_UNIT.inches,n.SuperMap.INCHES_PER_UNIT.mile=n.SuperMap.INCHES_PER_UNIT.mi,n.SuperMap.INCHES_PER_UNIT.kilometer=n.SuperMap.INCHES_PER_UNIT.km,n.SuperMap.INCHES_PER_UNIT.yard=n.SuperMap.INCHES_PER_UNIT.yd,n.SuperMap.Util.isInTheSameDomain=function(e){if(!e)return!0;var t=e.indexOf("//"),r=document.location.toString(),i=r.indexOf("//");if(-1===t)return!0;var n,a=n=e.substring(0,t),o=r.substring(i+2);i=o.indexOf("/");var s=o.indexOf(":"),l=o.substring(0,i),u=document.location.protocol;if(-1!==s||(l+=":"+("http:"===u.toLowerCase()?80:443)),u.toLowerCase()!==a.toLowerCase())return!1;var c=(a=e.substring(t+2)).indexOf(":");t=a.indexOf("/");var p,h=a.substring(0,t);return-1!==c?p=a.substring(0,c):(p=a.substring(0,t),h+=":"+("http:"===n.toLowerCase()?80:443)),p===document.domain&&h===l},n.SuperMap.Util.calculateDpi=function(e,t,r,i,n){if(e&&t&&r){var a,o=e.getWidth(),s=e.getHeight(),l=t.w,u=t.h;if(n=n||6378137,"degree"===(i=i||"degrees").toLowerCase()||"degrees"===i.toLowerCase()||"dd"===i.toLowerCase()){var c=o/l,p=s/u;a=254/(c>p?c:p)/r/(2*Math.PI*n/360)/1e4}else{a=254/(o/l)/r/1e4}return a}},n.SuperMap.Util.toJSON=function(e){var t=e;if(null==t)return null;switch(t.constructor){case String:return t=(t=(t=(t=(t=(t=(t='"'+t.replace(/(["\\])/g,"\\$1")+'"').replace(/\n/g,"\\n")).replace(/\r/g,"\\r")).replace("<","&lt;")).replace(">","&gt;")).replace(/%/g,"%25")).replace(/&/g,"%26");case Array:for(var r=[],a=0,o=t.length;a<o;a++)r.push(n.SuperMap.Util.toJSON(t[a]));return"["+r.join(",")+"]";case Number:return isFinite(t)?String(t):null;case Boolean:return String(t);case Date:return"{'__type':\"System.DateTime\",'Year':"+t.getFullYear()+",'Month':"+(t.getMonth()+1)+",'Day':"+t.getDate()+",'Hour':"+t.getHours()+",'Minute':"+t.getMinutes()+",'Second':"+t.getSeconds()+",'Millisecond':"+t.getMilliseconds()+",'TimezoneOffset':"+t.getTimezoneOffset()+"}";default:if(null!=t.toJSON&&"function"==typeof t.toJSON)return t.toJSON();if("object"===(void 0===t?"undefined":i(t))){if(t.length){for(var s=[],l=0,u=t.length;l<u;l++)s.push(n.SuperMap.Util.toJSON(t[l]));return"["+s.join(",")+"]"}var c=[];for(var p in t)"function"!=typeof t[p]&&"CLASS_NAME"!==p&&"parent"!==p&&c.push("'"+p+"':"+n.SuperMap.Util.toJSON(t[p]));return c.length>0?"{"+c.join(",")+"}":"{}"}return t.toString()}},n.SuperMap.Util.getResolutionFromScaleDpi=function(e,t,r,i){return i=i||6378137,r=r||"",e>0&&t>0?(e=n.SuperMap.Util.normalizeScale(e),"degree"===r.toLowerCase()||"degrees"===r.toLowerCase()||"dd"===r.toLowerCase()?254/t/e/(2*Math.PI*i/360)/1e4:254/t/e/1e4):-1},n.SuperMap.Util.getScaleFromResolutionDpi=function(e,t,r,i){return i=i||6378137,r=r||"",e>0&&t>0?"degree"===r.toLowerCase()||"degrees"===r.toLowerCase()||"dd"===r.toLowerCase()?254/t/e/(2*Math.PI*i/360)/1e4:254/t/e/1e4:-1},n.SuperMap.Util.transformResult=function(e){return e.responseText&&"string"==typeof e.responseText&&(e=JSON.parse(e.responseText)),e},n.SuperMap.Util.copyAttributes=function(e,t){if(e=e||{},t)for(var r in t){var i=t[r];void 0!==i&&"CLASS_NAME"!==r&&"function"!=typeof i&&(e[r]=i)}return e},n.SuperMap.Util.copyAttributesWithClip=function(e,t,r){if(e=e||{},t)for(var i in t){var n=!1;if(r&&r.length)for(var a=0,o=r.length;a<o;a++)if(i===r[a]){n=!0;break}if(!0!==n){var s=t[i];void 0!==s&&"CLASS_NAME"!==i&&"function"!=typeof s&&(e[i]=s)}}return e},n.SuperMap.Util.cloneObject=function(e){if(null===e||"object"!==(void 0===e?"undefined":i(e)))return e;if(e instanceof Date){var t=new Date;return t.setTime(e.getTime()),t}if(e instanceof Array)return e.slice(0);if(e instanceof Object){var r={};for(var a in e)e.hasOwnProperty(a)&&(r[a]=n.SuperMap.Util.cloneObject(e[a]));return r}throw new Error("Unable to copy obj! Its type isn't supported.")},n.SuperMap.Util.lineIntersection=function(e,t,r,i){var a,o,s=null,l=(i.x-r.x)*(e.y-r.y)-(i.y-r.y)*(e.x-r.x),u=(t.x-e.x)*(e.y-r.y)-(t.y-e.y)*(e.x-r.x),c=(i.y-r.y)*(t.x-e.x)-(i.x-r.x)*(t.y-e.y);if(0!=c)o=u/c,s=(a=l/c)>=0&&o<=1&&a<=1&&o>=0?new n.SuperMap.Geometry.Point(e.x+a*(t.x-e.x),e.y+a*(t.y-e.y)):"No Intersection";else if(0==l&&0==u){var p=Math.max(e.y,t.y),h=Math.min(e.y,t.y),f=Math.max(e.x,t.x),d=Math.min(e.x,t.x);s=(r.y>=h&&r.y<=p||i.y>=h&&i.y<=p)&&r.x>=d&&r.x<=f||i.x>=d&&i.x<=f?"Coincident":"Parallel"}else s="Parallel";return s},n.SuperMap.Util.getTextBounds=function(e,t,r){document.body.appendChild(r),r.style.width="auto",r.style.height="auto",e.fontSize&&(r.style.fontSize=e.fontSize),e.fontFamily&&(r.style.fontFamily=e.fontFamily),e.fontWeight&&(r.style.fontWeight=e.fontWeight),r.style.position="relative",r.style.visibility="hidden",r.style.display="inline-block",r.innerHTML=t;var i=r.clientWidth,n=r.clientHeight;return document.body.removeChild(r),{textWidth:i,textHeight:n}}},function(e,t){e.exports=L},function(e,t,r){"use strict";var i=a(r(2));r(109),r(186),r(176);var n=a(r(11));function a(e){return e&&e.__esModule?e:{default:e}}i.default.supermap=i.default.supermap||{},
  12. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  13. * This program are made available under the terms of the Apache License, Version 2.0
  14. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  15. i.default.supermap.control=i.default.supermap.control||{},i.default.supermap.widgets=i.default.supermap.widgets||{},i.default.Control.Attribution.include({options:{position:"bottomright",prefix:n.default.Prefix}}),i.default.Map.include({latLngToAccurateContainerPoint:function(e){var t=this.project(i.default.latLng(e))._subtract(this.getPixelOrigin());return i.default.point(t).add(this._getMapPanePos())}}),[i.default.Polyline,i.default.Polygon,i.default.Marker,i.default.CircleMarker,i.default.Circle,i.default.LayerGroup].map(function(e){return e.defaultFunction=e.prototype.toGeoJSON,e.include({toGeoJSON:function(t){return e.defaultFunction.call(this,t||10)}}),e})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetFeatureMode=t.AggregationQueryBuilderType=t.AggregationType=t.TopologyValidatorRule=t.SummaryType=t.StatisticAnalystMode=t.AnalystSizeUnit=t.AnalystAreaUnit=t.ClipAnalystMode=t.ChartType=t.ClientType=t.Exponent=t.VariogramMode=t.InterpolationAlgorithmType=t.SearchMode=t.PixelFormat=t.StatisticMode=t.UGCLayerType=t.LayerType=t.ColorSpaceType=t.GridType=t.TransferPreference=t.TransferTactic=t.EditType=t.DataReturnMode=t.SurfaceAnalystMethod=t.SmoothMethod=t.OutputType=t.OverlayOperationType=t.BufferEndType=t.TurnType=t.SupplyCenterType=t.SideType=t.DirectionType=t.LabelOverLengthMode=t.LabelBackShape=t.AlongLineDirection=t.FillGradientMode=t.TextAlignment=t.ColorGradientType=t.ThemeType=t.RangeMode=t.GraduatedMode=t.GraphAxesTextDisplayMode=t.ThemeGraphType=t.ThemeGraphTextFormat=t.EngineType=t.BufferRadiusUnit=t.Unit=t.MeasureMode=t.SpatialRelationType=t.SpatialQueryMode=t.JoinType=t.QueryOption=t.GeometryType=t.ServerType=t.DataFormat=void 0;var i=r(0),n=i.SuperMap.DataFormat={GEOJSON:"GEOJSON",ISERVER:"ISERVER"};
  16. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  17. * This program are made available under the terms of the Apache License, Version 2.0
  18. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  19. t.DataFormat=n;var a=i.SuperMap.ServerType={ISERVER:"ISERVER",IPORTAL:"IPORTAL",ONLINE:"ONLINE"};t.ServerType=a;var o=i.SuperMap.GeometryType={LINE:"LINE",LINEM:"LINEM",POINT:"POINT",REGION:"REGION",POINTEPS:"POINTEPS",LINEEPS:"LINEEPS",REGIONEPS:"REGIONEPS",ELLIPSE:"ELLIPSE",CIRCLE:"CIRCLE",TEXT:"TEXT",RECTANGLE:"RECTANGLE",UNKNOWN:"UNKNOWN"};t.GeometryType=o;var s=i.SuperMap.QueryOption={ATTRIBUTE:"ATTRIBUTE",ATTRIBUTEANDGEOMETRY:"ATTRIBUTEANDGEOMETRY",GEOMETRY:"GEOMETRY"};t.QueryOption=s;var l=i.SuperMap.JoinType={INNERJOIN:"INNERJOIN",LEFTJOIN:"LEFTJOIN"};t.JoinType=l;var u=i.SuperMap.SpatialQueryMode={CONTAIN:"CONTAIN",CROSS:"CROSS",DISJOINT:"DISJOINT",IDENTITY:"IDENTITY",INTERSECT:"INTERSECT",NONE:"NONE",OVERLAP:"OVERLAP",TOUCH:"TOUCH",WITHIN:"WITHIN"};t.SpatialQueryMode=u;var c=i.SuperMap.SpatialRelationType={CONTAIN:"CONTAIN",INTERSECT:"INTERSECT",WITHIN:"WITHIN"};t.SpatialRelationType=c;var p=i.SuperMap.MeasureMode={DISTANCE:"DISTANCE",AREA:"AREA"};t.MeasureMode=p;var h=i.SuperMap.Unit={METER:"METER",KILOMETER:"KILOMETER",MILE:"MILE",YARD:"YARD",DEGREE:"DEGREE",MILLIMETER:"MILLIMETER",CENTIMETER:"CENTIMETER",INCH:"INCH",DECIMETER:"DECIMETER",FOOT:"FOOT",SECOND:"SECOND",MINUTE:"MINUTE",RADIAN:"RADIAN"};t.Unit=h;var f=i.SuperMap.BufferRadiusUnit={CENTIMETER:"CENTIMETER",DECIMETER:"DECIMETER",FOOT:"FOOT",INCH:"INCH",KILOMETER:"KILOMETER",METER:"METER",MILE:"MILE",MILLIMETER:"MILLIMETER",YARD:"YARD"};t.BufferRadiusUnit=f;var d=i.SuperMap.EngineType={IMAGEPLUGINS:"IMAGEPLUGINS",OGC:"OGC",ORACLEPLUS:"ORACLEPLUS",SDBPLUS:"SDBPLUS",SQLPLUS:"SQLPLUS",UDB:"UDB"};t.EngineType=d;var y=i.SuperMap.ThemeGraphTextFormat={CAPTION:"CAPTION",CAPTION_PERCENT:"CAPTION_PERCENT",CAPTION_VALUE:"CAPTION_VALUE",PERCENT:"PERCENT",VALUE:"VALUE"};t.ThemeGraphTextFormat=y;var v=i.SuperMap.ThemeGraphType={AREA:"AREA",BAR:"BAR",BAR3D:"BAR3D",LINE:"LINE",PIE:"PIE",PIE3D:"PIE3D",POINT:"POINT",RING:"RING",ROSE:"ROSE",ROSE3D:"ROSE3D",STACK_BAR:"STACK_BAR",STACK_BAR3D:"STACK_BAR3D",STEP:"STEP"};t.ThemeGraphType=v;var m=i.SuperMap.GraphAxesTextDisplayMode={ALL:"ALL",NONE:"NONE",YAXES:"YAXES"};t.GraphAxesTextDisplayMode=m;var g=i.SuperMap.GraduatedMode={CONSTANT:"CONSTANT",LOGARITHM:"LOGARITHM",SQUAREROOT:"SQUAREROOT"};t.GraduatedMode=g;var b=i.SuperMap.RangeMode={CUSTOMINTERVAL:"CUSTOMINTERVAL",EQUALINTERVAL:"EQUALINTERVAL",LOGARITHM:"LOGARITHM",QUANTILE:"QUANTILE",SQUAREROOT:"SQUAREROOT",STDDEVIATION:"STDDEVIATION"};t.RangeMode=b;var S=i.SuperMap.ThemeType={DOTDENSITY:"DOTDENSITY",GRADUATEDSYMBOL:"GRADUATEDSYMBOL",GRAPH:"GRAPH",LABEL:"LABEL",RANGE:"RANGE",UNIQUE:"UNIQUE"};t.ThemeType=S;var _=i.SuperMap.ColorGradientType={BLACK_WHITE:"BLACKWHITE",BLUE_BLACK:"BLUEBLACK",BLUE_RED:"BLUERED",BLUE_WHITE:"BLUEWHITE",CYAN_BLACK:"CYANBLACK",CYAN_BLUE:"CYANBLUE",CYAN_GREEN:"CYANGREEN",CYAN_WHITE:"CYANWHITE",GREEN_BLACK:"GREENBLACK",GREEN_BLUE:"GREENBLUE",GREEN_ORANGE_VIOLET:"GREENORANGEVIOLET",GREEN_RED:"GREENRED",GREEN_WHITE:"GREENWHITE",PINK_BLACK:"PINKBLACK",PINK_BLUE:"PINKBLUE",PINK_RED:"PINKRED",PINK_WHITE:"PINKWHITE",RAIN_BOW:"RAINBOW",RED_BLACK:"REDBLACK",RED_WHITE:"REDWHITE",SPECTRUM:"SPECTRUM",TERRAIN:"TERRAIN",YELLOW_BLACK:"YELLOWBLACK",YELLOW_BLUE:"YELLOWBLUE",YELLOW_GREEN:"YELLOWGREEN",YELLOW_RED:"YELLOWRED",YELLOW_WHITE:"YELLOWWHITE"};t.ColorGradientType=_;var P=i.SuperMap.TextAlignment={TOPLEFT:"TOPLEFT",TOPCENTER:"TOPCENTER",TOPRIGHT:"TOPRIGHT",BASELINELEFT:"BASELINELEFT",BASELINECENTER:"BASELINECENTER",BASELINERIGHT:"BASELINERIGHT",BOTTOMLEFT:"BOTTOMLEFT",BOTTOMCENTER:"BOTTOMCENTER",BOTTOMRIGHT:"BOTTOMRIGHT",MIDDLELEFT:"MIDDLELEFT",MIDDLECENTER:"MIDDLECENTER",MIDDLERIGHT:"MIDDLERIGHT"};t.TextAlignment=P;var w=i.SuperMap.FillGradientMode={NONE:"NONE",LINEAR:"LINEAR",RADIAL:"RADIAL",CONICAL:"CONICAL",SQUARE:"SQUARE"};t.FillGradientMode=w;var O=i.SuperMap.AlongLineDirection={NORMAL:"ALONG_LINE_NORMAL",LB_TO_RT:"LEFT_BOTTOM_TO_RIGHT_TOP",LT_TO_RB:"LEFT_TOP_TO_RIGHT_BOTTOM",RB_TO_LT:"RIGHT_BOTTOM_TO_LEFT_TOP",RT_TO_LB:"RIGHT_TOP_TO_LEFT_BOTTOM"};t.AlongLineDirection=O;var T=i.SuperMap.LabelBackShape={DIAMOND:"DIAMOND",ELLIPSE:"ELLIPSE",MARKER:"MARKER",NONE:"NONE",RECT:"RECT",ROUNDRECT:"ROUNDRECT",TRIANGLE:"TRIANGLE"};t.LabelBackShape=T;var M=i.SuperMap.LabelOverLengthMode={NEWLINE:"NEWLINE",NONE:"NONE",OMIT:"OMIT"};t.LabelOverLengthMode=M;var C=i.SuperMap.DirectionType={EAST:"EAST",NONE:"NONE",NORTH:"NORTH",SOURTH:"SOURTH",WEST:"WEST"};t.DirectionType=C;var x=i.SuperMap.SideType={LEFT:"LEFT",MIDDLE:"MIDDLE",NONE:"NONE",RIGHT:"RIGHT"};t.SideType=x;var E=i.SuperMap.SupplyCenterType={FIXEDCENTER:"FIXEDCENTER",NULL:"NULL",OPTIONALCENTER:"OPTIONALCENTER"};t.SupplyCenterType=E;var L=i.SuperMap.TurnType={AHEAD:"AHEAD",BACK:"BACK",END:"END",LEFT:"LEFT",NONE:"NONE",RIGHT:"RIGHT"};t.TurnType=L;var A=i.SuperMap.BufferEndType={FLAT:"FLAT",ROUND:"ROUND"};t.BufferEndType=A;var k=i.SuperMap.OverlayOperationType={CLIP:"CLIP",ERASE:"ERASE",IDENTITY:"IDENTITY",INTERSECT:"INTERSECT",UNION:"UNION",UPDATE:"UPDATE",XOR:"XOR"};t.OverlayOperationType=k;var F=i.SuperMap.OutputType={INDEXEDHDFS:"INDEXEDHDFS",UDB:"UDB",MONGODB:"MONGODB",PG:"PG"};t.OutputType=F;var j=i.SuperMap.SmoothMethod={BSPLINE:"BSPLINE",POLISH:"POLISH"};t.SmoothMethod=j;var I=i.SuperMap.SurfaceAnalystMethod={ISOLINE:"ISOLINE",ISOREGION:"ISOREGION"};t.SurfaceAnalystMethod=I;var N=i.SuperMap.DataReturnMode={DATASET_AND_RECORDSET:"DATASET_AND_RECORDSET",DATASET_ONLY:"DATASET_ONLY",RECORDSET_ONLY:"RECORDSET_ONLY"};t.DataReturnMode=N;var D=i.SuperMap.EditType={ADD:"add",UPDATE:"update",DELETE:"delete"};t.EditType=D;var R=i.SuperMap.TransferTactic={LESS_TIME:"LESS_TIME",LESS_TRANSFER:"LESS_TRANSFER",LESS_WALK:"LESS_WALK",MIN_DISTANCE:"MIN_DISTANCE"};t.TransferTactic=R;var G=i.SuperMap.TransferPreference={BUS:"BUS",SUBWAY:"SUBWAY",NO_SUBWAY:"NO_SUBWAY",NONE:"NONE"};t.TransferPreference=G;var B=i.SuperMap.GridType={CROSS:"CROSS",GRID:"GRID",POINT:"POINT"};t.GridType=B;var U=i.SuperMap.ColorSpaceType={CMYK:"CMYK",RGB:"RGB"};t.ColorSpaceType=U;var V=i.SuperMap.LayerType={UGC:"UGC",WMS:"WMS",WFS:"WFS",CUSTOM:"CUSTOM"};t.LayerType=V;var J=i.SuperMap.UGCLayerType={THEME:"THEME",VECTOR:"VECTOR",GRID:"GRID",IMAGE:"IMAGE"};t.UGCLayerType=J;var z=i.SuperMap.StatisticMode={AVERAGE:"AVERAGE",MAX:"MAX",MIN:"MIN",STDDEVIATION:"STDDEVIATION",SUM:"SUM",VARIANCE:"VARIANCE"};t.StatisticMode=z;var q=i.SuperMap.PixelFormat={BIT16:"BIT16",BIT32:"BIT32",BIT64:"BIT64",SINGLE:"SINGLE",DOUBLE:"DOUBLE",UBIT1:"UBIT1",UBIT4:"UBIT4",UBIT8:"UBIT8",UBIT24:"UBIT24",UBIT32:"UBIT32"};t.PixelFormat=q;var H=i.SuperMap.SearchMode={KDTREE_FIXED_COUNT:"KDTREE_FIXED_COUNT",KDTREE_FIXED_RADIUS:"KDTREE_FIXED_RADIUS",NONE:"NONE",QUADTREE:"QUADTREE"};t.SearchMode=H;var W=i.SuperMap.InterpolationAlgorithmType={KRIGING:"KRIGING",SimpleKriging:"SimpleKriging",UniversalKriging:"UniversalKriging"};t.InterpolationAlgorithmType=W;var Q=i.SuperMap.VariogramMode={EXPONENTIAL:"EXPONENTIAL",GAUSSIAN:"GAUSSIAN",SPHERICAL:"SPHERICAL"};t.VariogramMode=Q;var Y=i.SuperMap.Exponent={EXP1:"EXP1",EXP2:"EXP2"};t.Exponent=Y;var X=i.SuperMap.ClientType={IP:"IP",REFERER:"Referer",REQUESTIP:"RequestIP",NONE:"NONE",SERVER:"SERVER",WEB:"WEB"};t.ClientType=X;var K=i.SuperMap.ChartType={BAR:"Bar",BAR3D:"Bar3D",CIRCLE:"Circle",PIE:"Pie",POINT:"Point",LINE:"Line",RING:"Ring"};t.ChartType=K;var Z=i.SuperMap.ClipAnalystMode={CLIP:"clip",INTERSECT:"intersect"};t.ClipAnalystMode=Z;var $=i.SuperMap.AnalystAreaUnit={SQUAREMETER:"SquareMeter",SQUAREKILOMETER:"SquareKiloMeter",HECTARE:"Hectare",ARE:"Are",ACRE:"Acre",SQUAREFOOT:"SquareFoot",SQUAREYARD:"SquareYard",SQUAREMILE:"SquareMile"};t.AnalystAreaUnit=$;var ee=i.SuperMap.AnalystSizeUnit={METER:"Meter",KILOMETER:"Kilometer",YARD:"Yard",FOOT:"Foot",MILE:"Mile"};t.AnalystSizeUnit=ee;var te=i.SuperMap.StatisticAnalystMode={MAX:"max",MIN:"min",AVERAGE:"average",SUM:"sum",VARIANCE:"variance",STDDEVIATION:"stdDeviation"};t.StatisticAnalystMode=te;var re=i.SuperMap.SummaryType={SUMMARYMESH:"SUMMARYMESH",SUMMARYREGION:"SUMMARYREGION"};t.SummaryType=re;var ie=i.SuperMap.TopologyValidatorRule={REGIONNOOVERLAP:"REGIONNOOVERLAP",REGIONNOOVERLAPWITH:"REGIONNOOVERLAPWITH",REGIONCONTAINEDBYREGION:"REGIONCONTAINEDBYREGION",REGIONCOVEREDBYREGION:"REGIONCOVEREDBYREGION",LINENOOVERLAP:"LINENOOVERLAP",LINENOOVERLAPWITH:"LINENOOVERLAPWITH",POINTNOIDENTICAL:"POINTNOIDENTICAL"};t.TopologyValidatorRule=ie;var ne=i.SuperMap.AggregationType={GEOHASH_GRID:"geohash_grid",FILTER:"filter"};t.AggregationType=ne;var ae=i.SuperMap.AggregationQueryBuilderType={GEO_BOUNDING_BOX:"geo_bounding_box"};t.AggregationQueryBuilderType=ae;var oe=i.SuperMap.GetFeatureMode={BOUNDS:"BOUNDS",BUFFER:"BUFFER",ID:"ID",SPATIAL:"SPATIAL",SQL:"SQL"};t.GetFeatureMode=oe},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zh=t.en=t.Lang=t.ElasticSearch=t.ThemeStyle=t.CartoCSS=t.TokenServiceParameter=t.ServerInfo=t.SecurityManager=t.KeyServiceParameter=t.SUtil=t.LevelRendererVector=t.Util=t.Transformable=t.Storage=t.SmicText=t.SmicStar=t.SmicSector=t.SmicRing=t.SmicRectangle=t.SmicPolygon=t.SmicPoint=void 0,t.SmicIsogon=t.SmicImage=t.SmicEllipse=t.SmicCircle=t.SmicBrokenLine=t.Shape=t.PaintLayer=t.Painter=t.Matrix=t.Math=t.Log=t.Http=t.Handler=t.Group=t.Eventful=t.LevelRendererEvent=t.Env=t.Easing=t.LevelRendererCurve=t.Config=t.ComputeBoundingBox=t.Color=t.Clip=t.Area=t.Animator=t.Animation=t.Render=t.LevelRenderer=t.FeatureTheme=t.Sector=t.FeatureRectangle=t.FeaturePolygon=t.Point=t.FeatureLine=t.Label=t.Image=t.FeatureCircle=t.ShapeParameters=t.ShapeFactory=t.ThemeVector=t.Ring=t.RankSymbol=t.OverlayPoint=t.Pie=t.Line=t.Graph=t.Circle=t.Bar3D=t.Bar=t.OnlineServiceBase=t.FilterField=t.DataItemOrderBy=t.DataItemType=t.ServiceStatus=t.OnlineQueryDatasParameter=t.OnlineData=t.Online=t.VectorClipJobsService=t.VectorClipJobsParameter=t.Vector=t.UpdateTurnNodeWeightService=t.UpdateTurnNodeWeightParameters=t.UpdateEdgeWeightService=t.UpdateEdgeWeightParameters=t.UGCSubLayer=t.UGCMapLayer=t.UGCLayer=t.TransferSolutionParameters=t.TransportationAnalystResultSetting=t.TransportationAnalystParameter=t.TransferSolutionService=t.TransferPathService=t.TransferPathParameters=t.TransferLine=t.TopologyValidatorJobsService=t.TopologyValidatorJobsParameter=t.TilesetsService=t.GeometryBatchAnalystService=t.ThiessenAnalystService=t.ThiessenAnalystParameters=t.ThemeUniqueItem=t.ThemeUnique=t.ThemeService=t.ThemeRangeItem=t.ThemeRange=t.ThemeParameters=t.ThemeOffset=t.ThemeMemoryData=t.ThemeLabelUniqueItem=t.ThemeLabelText=t.ThemeLabelItem=t.ThemeLabelBackground=t.ThemeLabelAlongLine=t.ThemeLabel=t.ThemeGridUniqueItem=t.ThemeGridUnique=t.ThemeGridRangeItem=t.ThemeGridRange=t.ThemeGraphText=t.ThemeGraphSize=void 0,t.ThemeGraphItem=t.ThemeGraphAxes=t.ThemeGraph=t.ThemeGraduatedSymbolStyle=t.ThemeGraduatedSymbol=t.ThemeFlow=t.ThemeDotDensity=t.Theme=t.TerrainCurvatureCalculationService=t.TerrainCurvatureCalculationParameters=t.SurfaceAnalystService=t.SurfaceAnalystParametersSetting=t.SurfaceAnalystParameters=t.SupplyCenter=t.SummaryRegionJobsService=t.SummaryRegionJobParameter=t.SummaryMeshJobsService=t.SummaryMeshJobParameter=t.SummaryAttributesJobsService=t.SummaryAttributesJobsParameter=t.StopQueryService=t.StopQueryParameters=t.SpatialAnalystBase=t.SingleObjectQueryJobsService=t.SingleObjectQueryJobsParameter=t.SetLayerStatusService=t.SetLayerStatusParameters=t.SetLayersInfoService=t.SetLayersInfoParameters=t.SetLayerInfoService=t.SetLayerInfoParameters=t.ServerTheme=t.ServerTextStyle=t.ServerStyle=t.ServerGeometry=t.ServerFeature=t.ServerColor=t.RouteLocatorService=t.RouteLocatorParameters=t.RouteCalculateMeasureService=t.RouteCalculateMeasureParameters=t.Route=t.QueryService=t.QueryParameters=t.QueryBySQLService=t.QueryBySQLParameters=t.QueryByGeometryService=t.QueryByGeometryParameters=t.QueryByDistanceService=t.QueryByDistanceParameters=t.QueryByBoundsService=t.QueryByBoundsParameters=t.ProcessingServiceBase=t.PointWithMeasure=t.OverlayGeoJobsService=t.OverlayGeoJobParameter=t.OverlayAnalystService=t.OverlayAnalystParameters=t.OverlapDisplayedOptions=t.MappingParameters=t.OutputSetting=t.NetworkAnalystServiceBase=t.MeasureService=t.MeasureParameters=t.MathExpressionAnalysisService=t.MathExpressionAnalysisParameters=t.MapService=t.LinkItem=t.LayerStatus=t.LabelThemeCell=t.LabelSymbolCell=t.LabelMixedTextStyle=t.LabelMatrixCell=t.LabelImageCell=t.KernelDensityJobsService=t.KernelDensityJobParameter=t.JoinItem=t.InterpolationRBFAnalystParameters=t.InterpolationKrigingAnalystParameters=t.InterpolationIDWAnalystParameters=t.InterpolationAnalystService=t.InterpolationAnalystParameters=t.UGCImage=t.Grid=t.GetLayersInfoService=t.GetGridCellInfosService=t.GetGridCellInfosParameters=t.GetFieldsService=t.GetFeaturesServiceBase=t.GetFeaturesParametersBase=t.GetFeaturesBySQLService=t.GetFeaturesBySQLParameters=t.GetFeaturesByIDsService=t.GetFeaturesByIDsParameters=t.GetFeaturesByGeometryService=t.GetFeaturesByGeometryParameters=t.GetFeaturesByBufferService=t.GetFeaturesByBufferParameters=t.GetFeaturesByBoundsService=t.GetFeaturesByBoundsParameters=void 0,t.GeoRelationAnalystService=t.GeoRelationAnalystParameters=t.GeometryThiessenAnalystParameters=t.GeometrySurfaceAnalystParameters=t.GeometryOverlayAnalystParameters=t.GeometryBufferAnalystParameters=t.GeoHashGridAggParameter=t.GeoDecodingParameter=t.GeoCodingParameter=t.GeoBoundingBoxQueryBuilderParameter=t.GenerateSpatialDataService=t.GenerateSpatialDataParameters=t.FindTSPPathsService=t.FindTSPPathsParameters=t.FindServiceAreasService=t.FindServiceAreasParameters=t.FindPathService=t.FindPathParameters=t.FindMTSPPathsService=t.FindMTSPPathsParameters=t.FindLocationService=t.FindLocationParameters=t.FindClosestFacilitiesService=t.FindClosestFacilitiesParameters=t.FilterParameter=t.FilterAggParameter=t.FieldStatisticsParameters=t.FieldStatisticService=t.FieldParameters=t.FacilityAnalystUpstream3DService=t.FacilityAnalystUpstream3DParameters=t.FacilityAnalystTraceup3DService=t.FacilityAnalystTraceup3DParameters=t.FacilityAnalystTracedown3DService=t.FacilityAnalystTracedown3DParameters=t.FacilityAnalystStreamService=t.FacilityAnalystStreamParameters=t.FacilityAnalystSources3DService=t.FacilityAnalystSources3DParameters=t.FacilityAnalystSinks3DService=t.FacilityAnalystSinks3DParameters=t.FacilityAnalyst3DParameters=t.EditFeaturesService=t.EditFeaturesParameters=t.DensityKernelAnalystParameters=t.DensityAnalystService=t.DatasourceConnectionInfo=t.DatasetThiessenAnalystParameters=t.DatasetSurfaceAnalystParameters=t.DatasetOverlayAnalystParameters=t.DatasetInfo=t.DatasetBufferAnalystParameters=t.DataReturnOption=t.DataFlowService=t.ComputeWeightMatrixService=t.ComputeWeightMatrixParameters=t.CommonServiceBase=t.ColorDictionary=t.ClipParameter=t.ChartQueryService=t.ChartQueryParameters=t.ChartQueryFilterParameter=t.ChartFeatureInfoSpecsService=t.BurstPipelineAnalystService=t.BurstPipelineAnalystParameters=t.BuffersAnalystJobsService=t.BuffersAnalystJobsParameter=t.BufferSetting=t.BufferDistance=t.BufferAnalystService=t.BufferAnalystParameters=t.AreaSolarRadiationService=t.AreaSolarRadiationParameters=t.AggQueryBuilderParameter=t.AggregationParameter=t.AddressMatchService=t.IPortalServicesQueryParam=t.IPortalServiceBase=t.IPortalService=t.IPortalMapsQueryParam=t.IPortalMap=t.IPortal=t.IManagerServiceBase=t.IManagerCreateNodeParam=t.IManager=t.ArrayStatistic=t.ColorsPickerUtil=t.FetchRequest=t.getRequestTimeout=t.setRequestTimeout=t.isCORS=t.setCORS=t.WKT=t.JSONFormat=t.GeoJSON=t.Format=t.TimeFlowControl=t.TimeControlBase=t.GeometryVector=t.CommonUtil=void 0,t.Size=t.Pixel=t.LonLat=t.Geometry=t.Feature=t.Events=t.Event=t.DateExt=t.Credential=t.Bounds=t.ArrayExt=t.FunctionExt=t.NumberExt=t.StringExt=t.Rectangle=t.Polygon=t.GeometryPoint=t.MultiPolygon=t.MultiPoint=t.MultiLineString=t.LineString=t.LinearRing=t.GeoText=t.Curve=t.Collection=t.GetFeatureMode=t.AggregationType=t.AggregationQueryBuilderType=t.OutputType=t.TopologyValidatorRule=t.StatisticAnalystMode=t.AnalystSizeUnit=t.AnalystAreaUnit=t.ClipAnalystMode=t.Exponent=t.VariogramMode=t.InterpolationAlgorithmType=t.SummaryType=t.SearchMode=t.PixelFormat=t.StatisticMode=t.UGCLayerType=t.LayerType=t.ClientType=t.GridType=t.TransferPreference=t.TransferTactic=t.EditType=t.ChartType=t.ColorSpaceType=t.SurfaceAnalystMethod=t.SmoothMethod=t.BufferEndType=t.TurnType=t.SupplyCenterType=t.OverlayOperationType=t.DirectionType=t.LabelOverLengthMode=t.LabelBackShape=t.AlongLineDirection=t.SideType=t.FillGradientMode=t.TextAlignment=t.ColorGradientType=t.ThemeType=t.RangeMode=t.GraduatedMode=t.GraphAxesTextDisplayMode=t.ThemeGraphType=t.ThemeGraphTextFormat=t.SpatialQueryMode=t.BufferRadiusUnit=t.Unit=t.DataReturnMode=t.SpatialRelationType=t.MeasureMode=t.EngineType=t.JoinType=t.QueryOption=t.GeometryType=t.ServerType=t.DataFormat=t.SuperMap=t.ChartViewModel=t.ChartView=t.FileReaderUtil=t.widgetsUtil=t.PaginationContainer=t.NavTabsPage=t.CityTabsPage=t.IndexTabsPageContainer=t.PopContainer=t.AttributesPopContainer=t.Select=t.DropDownBox=t.CommonContainer=t.MessageBox=t.FileModel=t.FileConfig=t.FileTypes=void 0;var i=r(0),n=r(4),a=r(577),o=r(574),s=r(572),l=r(570),u=r(561),c=r(559),p=r(486),h=r(483),f=r(479),d=r(475),y=r(472),v=r(468),m=r(452),g=r(438);
  20. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  21. * This program are made available under the terms of the Apache License, Version 2.0
  22. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  23. t.FileTypes=m.FileTypes,t.FileConfig=m.FileConfig,t.FileModel=m.FileModel,t.MessageBox=m.MessageBox,t.CommonContainer=m.CommonContainer,t.DropDownBox=m.DropDownBox,t.Select=m.Select,t.AttributesPopContainer=m.AttributesPopContainer,t.PopContainer=m.PopContainer,t.IndexTabsPageContainer=m.IndexTabsPageContainer,t.CityTabsPage=m.CityTabsPage,t.NavTabsPage=m.NavTabsPage,t.PaginationContainer=m.PaginationContainer,t.widgetsUtil=m.widgetsUtil,t.FileReaderUtil=m.FileReaderUtil,t.ChartView=m.ChartView,t.ChartViewModel=m.ChartViewModel,t.SuperMap=i.SuperMap,t.DataFormat=n.DataFormat,t.ServerType=n.ServerType,t.GeometryType=n.GeometryType,t.QueryOption=n.QueryOption,t.JoinType=n.JoinType,t.EngineType=n.EngineType,t.MeasureMode=n.MeasureMode,t.SpatialRelationType=n.SpatialRelationType,t.DataReturnMode=n.DataReturnMode,t.Unit=n.Unit,t.BufferRadiusUnit=n.BufferRadiusUnit,t.SpatialQueryMode=n.SpatialQueryMode,t.ThemeGraphTextFormat=n.ThemeGraphTextFormat,t.ThemeGraphType=n.ThemeGraphType,t.GraphAxesTextDisplayMode=n.GraphAxesTextDisplayMode,t.GraduatedMode=n.GraduatedMode,t.RangeMode=n.RangeMode,t.ThemeType=n.ThemeType,t.ColorGradientType=n.ColorGradientType,t.TextAlignment=n.TextAlignment,t.FillGradientMode=n.FillGradientMode,t.SideType=n.SideType,t.AlongLineDirection=n.AlongLineDirection,t.LabelBackShape=n.LabelBackShape,t.LabelOverLengthMode=n.LabelOverLengthMode,t.DirectionType=n.DirectionType,t.OverlayOperationType=n.OverlayOperationType,t.SupplyCenterType=n.SupplyCenterType,t.TurnType=n.TurnType,t.BufferEndType=n.BufferEndType,t.SmoothMethod=n.SmoothMethod,t.SurfaceAnalystMethod=n.SurfaceAnalystMethod,t.ColorSpaceType=n.ColorSpaceType,t.ChartType=n.ChartType,t.EditType=n.EditType,t.TransferTactic=n.TransferTactic,t.TransferPreference=n.TransferPreference,t.GridType=n.GridType,t.ClientType=n.ClientType,t.LayerType=n.LayerType,t.UGCLayerType=n.UGCLayerType,t.StatisticMode=n.StatisticMode,t.PixelFormat=n.PixelFormat,t.SearchMode=n.SearchMode,t.SummaryType=n.SummaryType,t.InterpolationAlgorithmType=n.InterpolationAlgorithmType,t.VariogramMode=n.VariogramMode,t.Exponent=n.Exponent,t.ClipAnalystMode=n.ClipAnalystMode,t.AnalystAreaUnit=n.AnalystAreaUnit,t.AnalystSizeUnit=n.AnalystSizeUnit,t.StatisticAnalystMode=n.StatisticAnalystMode,t.TopologyValidatorRule=n.TopologyValidatorRule,t.OutputType=n.OutputType,t.AggregationQueryBuilderType=n.AggregationQueryBuilderType,t.AggregationType=n.AggregationType,t.GetFeatureMode=n.GetFeatureMode,t.Collection=a.Collection,t.Curve=a.Curve,t.GeoText=a.GeoText,t.LinearRing=a.LinearRing,t.LineString=a.LineString,t.MultiLineString=a.MultiLineString,t.MultiPoint=a.MultiPoint,t.MultiPolygon=a.MultiPolygon,t.GeometryPoint=a.GeometryPoint,t.Polygon=a.Polygon,t.Rectangle=a.Rectangle,t.StringExt=a.StringExt,t.NumberExt=a.NumberExt,t.FunctionExt=a.FunctionExt,t.ArrayExt=a.ArrayExt,t.Bounds=a.Bounds,t.Credential=a.Credential,t.DateExt=a.DateExt,t.Event=a.Event,t.Events=a.Events,t.Feature=a.Feature,t.Geometry=a.Geometry,t.LonLat=a.LonLat,t.Pixel=a.Pixel,t.Size=a.Size,t.CommonUtil=a.CommonUtil,t.GeometryVector=a.GeometryVector,t.TimeControlBase=s.TimeControlBase,t.TimeFlowControl=s.TimeFlowControl,t.Format=o.Format,t.GeoJSON=o.GeoJSON,t.JSONFormat=o.JSONFormat,t.WKT=o.WKT,t.setCORS=d.setCORS,t.isCORS=d.isCORS,t.setRequestTimeout=d.setRequestTimeout,t.getRequestTimeout=d.getRequestTimeout,t.FetchRequest=d.FetchRequest,t.ColorsPickerUtil=d.ColorsPickerUtil,t.ArrayStatistic=d.ArrayStatistic,t.IManager=l.IManager,t.IManagerCreateNodeParam=l.IManagerCreateNodeParam,t.IManagerServiceBase=l.IManagerServiceBase,t.IPortal=u.IPortal,t.IPortalMap=u.IPortalMap,t.IPortalMapsQueryParam=u.IPortalMapsQueryParam,t.IPortalService=u.IPortalService,t.IPortalServiceBase=u.IPortalServiceBase,t.IPortalServicesQueryParam=u.IPortalServicesQueryParam,t.AddressMatchService=c.AddressMatchService,t.AggregationParameter=c.AggregationParameter,t.AggQueryBuilderParameter=c.AggQueryBuilderParameter,t.AreaSolarRadiationParameters=c.AreaSolarRadiationParameters,t.AreaSolarRadiationService=c.AreaSolarRadiationService,t.BufferAnalystParameters=c.BufferAnalystParameters,t.BufferAnalystService=c.BufferAnalystService,t.BufferDistance=c.BufferDistance,t.BufferSetting=c.BufferSetting,t.BuffersAnalystJobsParameter=c.BuffersAnalystJobsParameter,t.BuffersAnalystJobsService=c.BuffersAnalystJobsService,t.BurstPipelineAnalystParameters=c.BurstPipelineAnalystParameters,t.BurstPipelineAnalystService=c.BurstPipelineAnalystService,t.ChartFeatureInfoSpecsService=c.ChartFeatureInfoSpecsService,t.ChartQueryFilterParameter=c.ChartQueryFilterParameter,t.ChartQueryParameters=c.ChartQueryParameters,t.ChartQueryService=c.ChartQueryService,t.ClipParameter=c.ClipParameter,t.ColorDictionary=c.ColorDictionary,t.CommonServiceBase=c.CommonServiceBase,t.ComputeWeightMatrixParameters=c.ComputeWeightMatrixParameters,t.ComputeWeightMatrixService=c.ComputeWeightMatrixService,t.DataFlowService=c.DataFlowService,t.DataReturnOption=c.DataReturnOption,t.DatasetBufferAnalystParameters=c.DatasetBufferAnalystParameters,t.DatasetInfo=c.DatasetInfo,t.DatasetOverlayAnalystParameters=c.DatasetOverlayAnalystParameters,t.DatasetSurfaceAnalystParameters=c.DatasetSurfaceAnalystParameters,t.DatasetThiessenAnalystParameters=c.DatasetThiessenAnalystParameters,t.DatasourceConnectionInfo=c.DatasourceConnectionInfo,t.DensityAnalystService=c.DensityAnalystService,t.DensityKernelAnalystParameters=c.DensityKernelAnalystParameters,t.EditFeaturesParameters=c.EditFeaturesParameters,t.EditFeaturesService=c.EditFeaturesService,t.FacilityAnalyst3DParameters=c.FacilityAnalyst3DParameters,t.FacilityAnalystSinks3DParameters=c.FacilityAnalystSinks3DParameters,t.FacilityAnalystSinks3DService=c.FacilityAnalystSinks3DService,t.FacilityAnalystSources3DParameters=c.FacilityAnalystSources3DParameters,t.FacilityAnalystSources3DService=c.FacilityAnalystSources3DService,t.FacilityAnalystStreamParameters=c.FacilityAnalystStreamParameters,t.FacilityAnalystStreamService=c.FacilityAnalystStreamService,t.FacilityAnalystTracedown3DParameters=c.FacilityAnalystTracedown3DParameters,t.FacilityAnalystTracedown3DService=c.FacilityAnalystTracedown3DService,t.FacilityAnalystTraceup3DParameters=c.FacilityAnalystTraceup3DParameters,t.FacilityAnalystTraceup3DService=c.FacilityAnalystTraceup3DService,t.FacilityAnalystUpstream3DParameters=c.FacilityAnalystUpstream3DParameters,t.FacilityAnalystUpstream3DService=c.FacilityAnalystUpstream3DService,t.FieldParameters=c.FieldParameters,t.FieldStatisticService=c.FieldStatisticService,t.FieldStatisticsParameters=c.FieldStatisticsParameters,t.FilterAggParameter=c.FilterAggParameter,t.FilterParameter=c.FilterParameter,t.FindClosestFacilitiesParameters=c.FindClosestFacilitiesParameters,t.FindClosestFacilitiesService=c.FindClosestFacilitiesService,t.FindLocationParameters=c.FindLocationParameters,t.FindLocationService=c.FindLocationService,t.FindMTSPPathsParameters=c.FindMTSPPathsParameters,t.FindMTSPPathsService=c.FindMTSPPathsService,t.FindPathParameters=c.FindPathParameters,t.FindPathService=c.FindPathService,t.FindServiceAreasParameters=c.FindServiceAreasParameters,t.FindServiceAreasService=c.FindServiceAreasService,t.FindTSPPathsParameters=c.FindTSPPathsParameters,t.FindTSPPathsService=c.FindTSPPathsService,t.GenerateSpatialDataParameters=c.GenerateSpatialDataParameters,t.GenerateSpatialDataService=c.GenerateSpatialDataService,t.GeoBoundingBoxQueryBuilderParameter=c.GeoBoundingBoxQueryBuilderParameter,t.GeoCodingParameter=c.GeoCodingParameter,t.GeoDecodingParameter=c.GeoDecodingParameter,t.GeoHashGridAggParameter=c.GeoHashGridAggParameter,t.GeometryBufferAnalystParameters=c.GeometryBufferAnalystParameters,t.GeometryOverlayAnalystParameters=c.GeometryOverlayAnalystParameters,t.GeometrySurfaceAnalystParameters=c.GeometrySurfaceAnalystParameters,t.GeometryThiessenAnalystParameters=c.GeometryThiessenAnalystParameters,t.GeoRelationAnalystParameters=c.GeoRelationAnalystParameters,t.GeoRelationAnalystService=c.GeoRelationAnalystService,t.GetFeaturesByBoundsParameters=c.GetFeaturesByBoundsParameters,t.GetFeaturesByBoundsService=c.GetFeaturesByBoundsService,t.GetFeaturesByBufferParameters=c.GetFeaturesByBufferParameters,t.GetFeaturesByBufferService=c.GetFeaturesByBufferService,t.GetFeaturesByGeometryParameters=c.GetFeaturesByGeometryParameters,t.GetFeaturesByGeometryService=c.GetFeaturesByGeometryService,t.GetFeaturesByIDsParameters=c.GetFeaturesByIDsParameters,t.GetFeaturesByIDsService=c.GetFeaturesByIDsService,t.GetFeaturesBySQLParameters=c.GetFeaturesBySQLParameters,t.GetFeaturesBySQLService=c.GetFeaturesBySQLService,t.GetFeaturesParametersBase=c.GetFeaturesParametersBase,t.GetFeaturesServiceBase=c.GetFeaturesServiceBase,t.GetFieldsService=c.GetFieldsService,t.GetGridCellInfosParameters=c.GetGridCellInfosParameters,t.GetGridCellInfosService=c.GetGridCellInfosService,t.GetLayersInfoService=c.GetLayersInfoService,t.Grid=c.Grid,t.UGCImage=c.UGCImage,t.InterpolationAnalystParameters=c.InterpolationAnalystParameters,t.InterpolationAnalystService=c.InterpolationAnalystService,t.InterpolationIDWAnalystParameters=c.InterpolationIDWAnalystParameters,t.InterpolationKrigingAnalystParameters=c.InterpolationKrigingAnalystParameters,t.InterpolationRBFAnalystParameters=c.InterpolationRBFAnalystParameters,t.JoinItem=c.JoinItem,t.KernelDensityJobParameter=c.KernelDensityJobParameter,t.KernelDensityJobsService=c.KernelDensityJobsService,t.LabelImageCell=c.LabelImageCell,t.LabelMatrixCell=c.LabelMatrixCell,t.LabelMixedTextStyle=c.LabelMixedTextStyle,t.LabelSymbolCell=c.LabelSymbolCell,t.LabelThemeCell=c.LabelThemeCell,t.LayerStatus=c.LayerStatus,t.LinkItem=c.LinkItem,t.MapService=c.MapService,t.MathExpressionAnalysisParameters=c.MathExpressionAnalysisParameters,t.MathExpressionAnalysisService=c.MathExpressionAnalysisService,t.MeasureParameters=c.MeasureParameters,t.MeasureService=c.MeasureService,t.NetworkAnalystServiceBase=c.NetworkAnalystServiceBase,t.OutputSetting=c.OutputSetting,t.MappingParameters=c.MappingParameters,t.OverlapDisplayedOptions=c.OverlapDisplayedOptions,t.OverlayAnalystParameters=c.OverlayAnalystParameters,t.OverlayAnalystService=c.OverlayAnalystService,t.OverlayGeoJobParameter=c.OverlayGeoJobParameter,t.OverlayGeoJobsService=c.OverlayGeoJobsService,t.PointWithMeasure=c.PointWithMeasure,t.ProcessingServiceBase=c.ProcessingServiceBase,t.QueryByBoundsParameters=c.QueryByBoundsParameters,t.QueryByBoundsService=c.QueryByBoundsService,t.QueryByDistanceParameters=c.QueryByDistanceParameters,t.QueryByDistanceService=c.QueryByDistanceService,t.QueryByGeometryParameters=c.QueryByGeometryParameters,t.QueryByGeometryService=c.QueryByGeometryService,t.QueryBySQLParameters=c.QueryBySQLParameters,t.QueryBySQLService=c.QueryBySQLService,t.QueryParameters=c.QueryParameters,t.QueryService=c.QueryService,t.Route=c.Route,t.RouteCalculateMeasureParameters=c.RouteCalculateMeasureParameters,t.RouteCalculateMeasureService=c.RouteCalculateMeasureService,t.RouteLocatorParameters=c.RouteLocatorParameters,t.RouteLocatorService=c.RouteLocatorService,t.ServerColor=c.ServerColor,t.ServerFeature=c.ServerFeature,t.ServerGeometry=c.ServerGeometry,t.ServerStyle=c.ServerStyle,t.ServerTextStyle=c.ServerTextStyle,t.ServerTheme=c.ServerTheme,t.SetLayerInfoParameters=c.SetLayerInfoParameters,t.SetLayerInfoService=c.SetLayerInfoService,t.SetLayersInfoParameters=c.SetLayersInfoParameters,t.SetLayersInfoService=c.SetLayersInfoService,t.SetLayerStatusParameters=c.SetLayerStatusParameters,t.SetLayerStatusService=c.SetLayerStatusService,t.SingleObjectQueryJobsParameter=c.SingleObjectQueryJobsParameter,t.SingleObjectQueryJobsService=c.SingleObjectQueryJobsService,t.SpatialAnalystBase=c.SpatialAnalystBase,t.StopQueryParameters=c.StopQueryParameters,t.StopQueryService=c.StopQueryService,t.SummaryAttributesJobsParameter=c.SummaryAttributesJobsParameter,t.SummaryAttributesJobsService=c.SummaryAttributesJobsService,t.SummaryMeshJobParameter=c.SummaryMeshJobParameter,t.SummaryMeshJobsService=c.SummaryMeshJobsService,t.SummaryRegionJobParameter=c.SummaryRegionJobParameter,t.SummaryRegionJobsService=c.SummaryRegionJobsService,t.SupplyCenter=c.SupplyCenter,t.SurfaceAnalystParameters=c.SurfaceAnalystParameters,t.SurfaceAnalystParametersSetting=c.SurfaceAnalystParametersSetting,t.SurfaceAnalystService=c.SurfaceAnalystService,t.TerrainCurvatureCalculationParameters=c.TerrainCurvatureCalculationParameters,t.TerrainCurvatureCalculationService=c.TerrainCurvatureCalculationService,t.Theme=c.Theme,t.ThemeDotDensity=c.ThemeDotDensity,t.ThemeFlow=c.ThemeFlow,t.ThemeGraduatedSymbol=c.ThemeGraduatedSymbol,t.ThemeGraduatedSymbolStyle=c.ThemeGraduatedSymbolStyle,t.ThemeGraph=c.ThemeGraph,t.ThemeGraphAxes=c.ThemeGraphAxes,t.ThemeGraphItem=c.ThemeGraphItem,t.ThemeGraphSize=c.ThemeGraphSize,t.ThemeGraphText=c.ThemeGraphText,t.ThemeGridRange=c.ThemeGridRange,t.ThemeGridRangeItem=c.ThemeGridRangeItem,t.ThemeGridUnique=c.ThemeGridUnique,t.ThemeGridUniqueItem=c.ThemeGridUniqueItem,t.ThemeLabel=c.ThemeLabel,t.ThemeLabelAlongLine=c.ThemeLabelAlongLine,t.ThemeLabelBackground=c.ThemeLabelBackground,t.ThemeLabelItem=c.ThemeLabelItem,t.ThemeLabelText=c.ThemeLabelText,t.ThemeLabelUniqueItem=c.ThemeLabelUniqueItem,t.ThemeMemoryData=c.ThemeMemoryData,t.ThemeOffset=c.ThemeOffset,t.ThemeParameters=c.ThemeParameters,t.ThemeRange=c.ThemeRange,t.ThemeRangeItem=c.ThemeRangeItem,t.ThemeService=c.ThemeService,t.ThemeUnique=c.ThemeUnique,t.ThemeUniqueItem=c.ThemeUniqueItem,t.ThiessenAnalystParameters=c.ThiessenAnalystParameters,t.ThiessenAnalystService=c.ThiessenAnalystService,t.GeometryBatchAnalystService=c.GeometryBatchAnalystService,t.TilesetsService=c.TilesetsService,t.TopologyValidatorJobsParameter=c.TopologyValidatorJobsParameter,t.TopologyValidatorJobsService=c.TopologyValidatorJobsService,t.TransferLine=c.TransferLine,t.TransferPathParameters=c.TransferPathParameters,t.TransferPathService=c.TransferPathService,t.TransferSolutionService=c.TransferSolutionService,t.TransportationAnalystParameter=c.TransportationAnalystParameter,t.TransportationAnalystResultSetting=c.TransportationAnalystResultSetting,t.TransferSolutionParameters=c.TransferSolutionParameters,t.UGCLayer=c.UGCLayer,t.UGCMapLayer=c.UGCMapLayer,t.UGCSubLayer=c.UGCSubLayer,t.UpdateEdgeWeightParameters=c.UpdateEdgeWeightParameters,t.UpdateEdgeWeightService=c.UpdateEdgeWeightService,t.UpdateTurnNodeWeightParameters=c.UpdateTurnNodeWeightParameters,t.UpdateTurnNodeWeightService=c.UpdateTurnNodeWeightService,t.Vector=c.Vector,t.VectorClipJobsParameter=c.VectorClipJobsParameter,t.VectorClipJobsService=c.VectorClipJobsService,t.Online=p.Online,t.OnlineData=p.OnlineData,t.OnlineQueryDatasParameter=p.OnlineQueryDatasParameter,t.ServiceStatus=p.ServiceStatus,t.DataItemType=p.DataItemType,t.DataItemOrderBy=p.DataItemOrderBy,t.FilterField=p.FilterField,t.OnlineServiceBase=p.OnlineServiceBase,t.Bar=v.Bar,t.Bar3D=v.Bar3D,t.Circle=v.Circle,t.Graph=v.Graph,t.Line=v.Line,t.Pie=v.Pie,t.OverlayPoint=v.OverlayPoint,t.RankSymbol=v.RankSymbol,t.Ring=v.Ring,t.ThemeVector=v.ThemeVector,t.ShapeFactory=v.ShapeFactory,t.ShapeParameters=v.ShapeParameters,t.FeatureCircle=v.FeatureCircle,t.Image=v.Image,t.Label=v.Label,t.FeatureLine=v.FeatureLine,t.Point=v.Point,t.FeaturePolygon=v.FeaturePolygon,t.FeatureRectangle=v.FeatureRectangle,t.Sector=v.Sector,t.FeatureTheme=v.FeatureTheme,t.LevelRenderer=v.LevelRenderer,t.Render=v.Render,t.Animation=v.Animation,t.Animator=v.Animator,t.Area=v.Area,t.Clip=v.Clip,t.Color=v.Color,t.ComputeBoundingBox=v.ComputeBoundingBox,t.Config=v.Config,t.LevelRendererCurve=v.LevelRendererCurve,t.Easing=v.Easing,t.Env=v.Env,t.LevelRendererEvent=v.LevelRendererEvent,t.Eventful=v.Eventful,t.Group=v.Group,t.Handler=v.Handler,t.Http=v.Http,t.Log=v.Log,t.Math=v.Math,t.Matrix=v.Matrix,t.Painter=v.Painter,t.PaintLayer=v.PaintLayer,t.Shape=v.Shape,t.SmicBrokenLine=v.SmicBrokenLine,t.SmicCircle=v.SmicCircle,t.SmicEllipse=v.SmicEllipse,t.SmicImage=v.SmicImage,t.SmicIsogon=v.SmicIsogon,t.SmicPoint=v.SmicPoint,t.SmicPolygon=v.SmicPolygon,t.SmicRectangle=v.SmicRectangle,t.SmicRing=v.SmicRing,t.SmicSector=v.SmicSector,t.SmicStar=v.SmicStar,t.SmicText=v.SmicText,t.Storage=v.Storage,t.Transformable=v.Transformable,t.Util=v.Util,t.LevelRendererVector=v.LevelRendererVector,t.SUtil=v.SUtil,t.KeyServiceParameter=h.KeyServiceParameter,t.SecurityManager=h.SecurityManager,t.ServerInfo=h.ServerInfo,t.TokenServiceParameter=h.TokenServiceParameter,t.CartoCSS=y.CartoCSS,t.ThemeStyle=y.ThemeStyle,t.ElasticSearch=f.ElasticSearch,t.Lang=g.Lang,t.en=g.en,t.zh=g.zh},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommonServiceBase=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(17),o=r(48),s=r(138),l=r(40),u=r(1),c=r(4),p=r(136),h=r(67);
  24. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  25. * This program are made available under the terms of the Apache License, Version 2.0
  26. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var f=t.CommonServiceBase=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var i=this;this.EVENT_TYPES=["processCompleted","processFailed"],this.events=null,this.eventListeners=null,this.url=null,this.urls=null,this.proxy=null,this.serverType=null,this.index=null,this.length=null,this.options=null,this.totalTimes=null,this.POLLING_TIMES=3,this._processSuccess=null,this._processFailed=null,this.isInTheSameDomain=null,this.withCredentials=!1,u.Util.isArray(t)?(i.urls=t,i.length=t.length,i.totalTimes=i.length,1===i.length?i.url=t[0]:(i.index=parseInt(Math.random()*i.length),i.url=t[i.index])):(i.totalTimes=1,i.url=t),u.Util.isArray(t)&&!i.isServiceSupportPolling()&&(i.url=t[0],i.totalTimes=1),i.serverType=i.serverType||c.ServerType.ISERVER,r=r||{},this.crossOrigin=r.crossOrigin,u.Util.extend(this,r),i.isInTheSameDomain=u.Util.isInTheSameDomain(i.url),i.events=new o.Events(i,null,i.EVENT_TYPES,!0),i.eventListeners instanceof Object&&i.events.on(i.eventListeners),this.CLASS_NAME="SuperMap.CommonServiceBase"}return i(e,[{key:"destroy",value:function(){var e=this;u.Util.isArray(e.urls)&&(e.urls=null,e.index=null,e.length=null,e.totalTimes=null),e.url=null,e.options=null,e._processSuccess=null,e._processFailed=null,e.isInTheSameDomain=null,e.EVENT_TYPES=null,e.events&&(e.events.destroy(),e.events=null),e.eventListeners&&(e.eventListeners=null)}},{key:"request",value:function(e){var t=this;e.url=e.url||t.url,e.proxy=e.proxy||t.proxy,e.withCredentials=void 0!=e.withCredentials?e.withCredentials:t.withCredentials,e.crossOrigin=void 0!=e.crossOrigin?e.crossOrigin:t.crossOrigin,e.isInTheSameDomain=t.isInTheSameDomain;var r=this.getCredential(e.url);if(r){var i=e.url.substring(e.url.length-1,e.url.length);e.url.indexOf("?")>-1&&"?"===i?e.url+=r.getUrlParameters():e.url.indexOf("?")>-1&&"?"!==i?e.url+="&"+r.getUrlParameters():e.url+="?"+r.getUrlParameters()}t.calculatePollingTimes(),t._processSuccess=e.success,t._processFailed=e.failure,e.scope=t,e.success=t.getUrlCompleted,e.failure=t.getUrlFailed,t.options=e,t._commit(t.options)}},{key:"getCredential",value:function(e){var t=e,r=void 0,i=void 0;switch(this.serverType){case c.ServerType.IPORTAL:(r=(i=l.SecurityManager.getToken(t))?new s.Credential(i,"token"):null)||(r=(i=l.SecurityManager.getKey(t))?new s.Credential(i,"key"):null);break;case c.ServerType.ONLINE:r=(i=l.SecurityManager.getKey(t))?new s.Credential(i,"key"):null;break;default:r=(i=l.SecurityManager.getToken(t))?new s.Credential(i,"token"):null}return r}},{key:"getUrlCompleted",value:function(e){this._processSuccess(e)}},{key:"getUrlFailed",value:function(e){this.totalTimes>0?(this.totalTimes--,this.ajaxPolling()):this._processFailed(e)}},{key:"ajaxPolling",value:function(){var e=this,t=e.options.url,r=/^http:\/\/([a-z]{9}|(\d+\.){3}\d+):\d{0,4}/;e.index=parseInt(Math.random()*e.length),e.url=e.urls[e.index],t=t.replace(r,r.exec(e.url)[0]),e.options.url=t,e.options.isInTheSameDomain=u.Util.isInTheSameDomain(t),e._commit(e.options)}},{key:"calculatePollingTimes",value:function(){var e=this;e.times?e.totalTimes>e.POLLING_TIMES?e.times>e.POLLING_TIMES?e.totalTimes=e.POLLING_TIMES:e.totalTimes=e.times:e.times<e.totalTimes&&(e.totalTimes=e.times):e.totalTimes>e.POLLING_TIMES&&(e.totalTimes=e.POLLING_TIMES),e.totalTimes--}},{key:"isServiceSupportPolling",value:function(){return!("SuperMap.REST.ThemeService"===this.CLASS_NAME||"SuperMap.REST.EditFeaturesService"===this.CLASS_NAME)}},{key:"serviceProcessCompleted",value:function(e){e=u.Util.transformResult(e),this.events.triggerEvent("processCompleted",{result:e})}},{key:"serviceProcessFailed",value:function(e){var t=(e=u.Util.transformResult(e)).error||e;this.events.triggerEvent("processFailed",{error:t})}},{key:"_commit",value:function(e){"POST"!==e.method&&"PUT"!==e.method||(e.params&&(e.url=u.Util.urlAppend(e.url,u.Util.getParameterString(e.params||{}))),e.params=e.data),a.FetchRequest.commit(e.method,e.url,e.params,{headers:e.headers,withCredentials:e.withCredentials,crossOrigin:e.crossOrigin,timeout:e.async?0:null,proxy:e.proxy}).then(function(e){return e.text?e.text():e.json?e.json():e}).then(function(t){var r=t;("string"==typeof t&&(r=(new p.JSONFormat).read(t)),(!r||r.error||r.code>=300&&304!==r.code)&&(r=r&&r.error?{error:r.error}:{error:r}),r.error)?(e.scope?h.FunctionExt.bind(e.failure,e.scope):e.failure)(r):(r.succeed=void 0==r.succeed||r.succeed,(e.scope?h.FunctionExt.bind(e.success,e.scope):e.success)(r))}).catch(function(t){(e.scope?h.FunctionExt.bind(e.failure,e.scope):e.failure)(t)})}}]),e}();n.SuperMap.CommonServiceBase=f},function(e,t,r){"use strict";var i=2*Math.PI,n=r(59);e.exports=function(e){return Math.abs(e)<=3.14159265359?e:e-n(e)*i}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServiceBase=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};var o=t.ServiceBase=a.default.Evented.extend({options:{url:null,proxy:null,serverType:null,withCredentials:!1,crossOrigin:null},initialize:function(e,t){e&&(e=e.indexOf("/")!==e.length-1?e:e.substr(0,e.length-1)),this.url=e,a.default.setOptions(this,t),this.fire("initialized",this)},destroy:function(){this.fire("destroy",this)}});
  27. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  28. * This program are made available under the terms of the Apache License, Version 2.0
  29. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/a.default.supermap.ServiceBase=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerGeometry=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(24),o=r(49),s=r(41),l=r(23),u=r(66),c=r(64),p=r(65),h=r(14),f=r(91),d=r(1),y=r(4);
  30. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  31. * This program are made available under the terms of the Apache License, Version 2.0
  32. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var v=t.ServerGeometry=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=0,this.style=null,this.parts=null,this.points=null,this.type=null,this.prjCoordSys=null,t&&d.Util.extend(this,t),this.CLASS_NAME="SuperMap.ServerGeometry"}return i(e,[{key:"destroy",value:function(){var e=this;e.id=null,e.style=null,e.parts=null,e.partTopo=null,e.points=null,e.type=null,e.prjCoordSys=null}},{key:"toGeometry",value:function(){var e=this;switch(e.type.toUpperCase()){case y.GeometryType.POINT:return e.toGeoPoint();case y.GeometryType.LINE:return e.toGeoLine();case y.GeometryType.LINEM:return e.toGeoLinem();case y.GeometryType.REGION:return e.toGeoRegion();case y.GeometryType.POINTEPS:return e.toGeoPoint();case y.GeometryType.LINEEPS:return e.toGeoLineEPS();case y.GeometryType.REGIONEPS:return e.toGeoRegionEPS()}}},{key:"toGeoPoint",value:function(){var e=this.parts||[],t=this.points||[],r=e.length;if(r>0){if(1===r)return new a.Point(t[0].x,t[0].y);for(var i=[],n=0;n<r;n++)i.push(new a.Point(t[n].x,t[n].y));return new o.MultiPoint(i)}return null}},{key:"toGeoLine",value:function(){var e=this.parts||[],t=this.points||[],r=e.length;if(r>0){if(1===r){for(var i=[],n=0;n<e[0];n++)i.push(new a.Point(t[n].x,t[n].y));return i[0].equals(i[e[0]-1])?new s.LinearRing(i):new l.LineString(i)}for(var o=[],c=0;c<r;c++){for(var p=[],h=0;h<e[c];h++)p.push(new a.Point(t[h].x,t[h].y));o.push(new l.LineString(p)),t.splice(0,e[c])}return new u.MultiLineString(o)}return null}},{key:"toGeoLineEPS",value:function(){var e,t,r,i,n,o=this.parts||[],c=this.points||[],p=o.length;if(p>0){if(1===p){for(e=0,r=[];e<o[0];e++)r.push(new a.Point(c[e].x,c[e].y,c[e].type));return r[0].equals(r[o[0]-1])?(n=l.LineString.createLineEPS(r),new s.LinearRing(n)):(n=l.LineString.createLineEPS(r),new l.LineString(n))}for(e=0,i=[];e<p;e++){for(t=0,r=[];t<o[e];t++)r.push(new a.Point(c[t].x,c[t].y));n=l.LineString.createLineEPS(r),i.push(new l.LineString(n)),c.splice(0,o[e])}return new u.MultiLineString(i)}return null}},{key:"toGeoLinem",value:function(){return f.Route.fromJson(this)}},{key:"toGeoRegion",value:function(){var t=this.parts||[],r=this.partTopo||[],i=this.points||[],n=t.length;if(n<=0)return null;var o=[],l=[];if(1==n){for(var u=0;u<i.length;u++)l.push(new a.Point(i[u].x,i[u].y));return o.push(new c.Polygon([new s.LinearRing(l)])),new p.MultiPolygon(o)}for(var h=[],f=[],d=[],y=[],v=[],m=0,g=0;m<n;m++){for(var b=0;b<t[m];b++)l.push(new a.Point(i[g+b].x,i[g+b].y));g+=t[m];var S=new c.Polygon([new s.LinearRing(l)]);l=[],d.push(S),0===r.length&&y.push(S.getBounds()),v.push(1),f.push(S.getArea())}if(e.bubbleSort(f,d,r,y),0===r.length){for(var _=[],P=1;P<d.length;P++)for(var w=P-1;w>=0;w--)if(_[P]=-1,y[w].containsBounds(y[P])){v[P]=-1*v[w],v[P]<0&&(_[P]=w);break}for(var O=0;O<d.length;O++)v[O]>0?o.push(d[O]):(o[_[O]].components=o[_[O]].components.concat(d[O].components),o.push(""))}else{o=new Array;for(var T=0;T<d.length;T++)if(r[T]&&-1==r[T]?h=h.concat(d[T].components):(h.length>0&&o.length>0&&(o[o.length-1].components=o[o.length-1].components.concat(h),h=[]),o.push(d[T])),T==n-1){var M=o.length;if(M)o[M-1].components=o[M-1].components.concat(h);else for(var C=0,x=h.length;C<x;C++)o.push(new c.Polygon(h))}}return new p.MultiPolygon(o)}},{key:"toGeoRegionEPS",value:function(){var t=this.parts||[],r=this.partTopo||[],i=this.points||[],n=t.length;if(n<=0)return null;var o,u=[],h=[];if(1==n){for(var f=0;f<i.length;f++)h.push(new a.Point(i[f].x,i[f].y));return o=l.LineString.createLineEPS(h),u.push(new c.Polygon([new s.LinearRing(o)])),new p.MultiPolygon(u)}for(var d=[],y=[],v=[],m=[],g=[],b=0,S=0;b<n;b++){for(var _=0;_<t[b];_++)h.push(new a.Point(i[S+_].x,i[S+_].y));S+=t[b],o=l.LineString.createLineEPS(h);var P=new c.Polygon([new s.LinearRing(o)]);h=[],v.push(P),0===r.length&&m.push(P.getBounds()),g.push(1),y.push(P.getArea())}if(e.bubbleSort(y,v,r,m),0===r.length){for(var w=[],O=1;O<v.length;O++)for(var T=O-1;T>=0;T--)if(w[O]=-1,m[T].containsBounds(m[O])){g[O]=-1*g[T],g[O]<0&&(w[O]=T);break}for(var M=0;M<v.length;M++)g[M]>0?u.push(v[M]):(u[w[M]].components=u[w[M]].components.concat(v[M].components),u.push(""))}else{u=new Array;for(var C=0;C<v.length;C++)if(r[C]&&-1==r[C]?d=d.concat(v[C].components):(d.length>0&&u.length>0&&(u[u.length-1].components=u[u.length-1].components.concat(d),d=[]),u.push(v[C])),C==n-1){var x=u.length;if(x)u[x-1].components=u[x-1].components.concat(d);else for(var E=0,L=d.length;E<L;E++)u.push(new c.Polygon(d))}}return new p.MultiPolygon(u)}}],[{key:"fromJson",value:function(t){if(t)return new e({id:t.id,style:h.ServerStyle.fromJson(t.style),parts:t.parts,partTopo:t.partTopo,points:t.points,center:t.center,length:t.length,maxM:t.maxM,minM:t.minM,type:t.type})}},{key:"fromGeometry",value:function(t){if(t){var r=0,i=[],n=[],l=null,h=t.components,f=t.CLASS_NAME,d={epsgCode:t.SRID};if(isNaN(t.id)||(r=t.id),"SuperMap.Geometry.LinearRing"!=f&&"SuperMap.Geometry.LineString"!=f&&(t instanceof o.MultiPoint||t instanceof u.MultiLineString)){for(var v=h.length,m=0;m<v;m++){var g=h[m].getVertices().length;i.push(g);for(var b=0;b<g;b++)n.push(new a.Point(h[m].getVertices()[b].x,h[m].getVertices()[b].y))}l="SuperMap.Geometry.MultiPoint"==f?y.GeometryType.POINT:y.GeometryType.LINE}else if(t instanceof p.MultiPolygon){for(var S=h.length,_=0;_<S;_++)for(var P=h[_].components,w=P.length,O=0;O<w;O++){var T=P[O].getVertices().length+1;i.push(T);for(var M=0;M<T-1;M++)n.push(new a.Point(P[O].getVertices()[M].x,P[O].getVertices()[M].y));n.push(new a.Point(P[O].getVertices()[0].x,P[O].getVertices()[0].y))}l=y.GeometryType.REGION}else if(t instanceof c.Polygon){for(var C=h.length,x=0;x<C;x++){var E=h[x].getVertices().length+1;i.push(E);for(var L=0;L<E-1;L++)n.push(new a.Point(h[x].getVertices()[L].x,h[x].getVertices()[L].y));n.push(new a.Point(h[x].getVertices()[0].x,h[x].getVertices()[0].y))}l=y.GeometryType.REGION}else{for(var A=t.getVertices().length,k=0;k<A;k++)n.push(new a.Point(t.getVertices()[k].x,t.getVertices()[k].y));t instanceof s.LinearRing&&(n.push(new a.Point(t.getVertices()[0].x,t.getVertices()[0].y)),A++),i.push(A),l=t instanceof a.Point?y.GeometryType.POINT:y.GeometryType.LINE}return new e({id:r,style:null,parts:i,points:n,type:l,prjCoordSys:d})}}},{key:"IsClockWise",value:function(e){var t=e.length;if(t<3)return 0;var r=e[0].y*(e[t-1].x-e[1].x);e.push(e[0]);for(var i=1;i<t;i++)r+=e[i].y*(e[i-1].x-e[i+1].x);return.5*r}},{key:"bubbleSort",value:function(e,t,r,i){for(var n=0;n<e.length;n++)for(var a=0;a<e.length;a++)if(e[n]>e[a]){var o=e[a];e[a]=e[n],e[n]=o;var s=t[a];if(t[a]=t[n],t[n]=s,r&&r.length>0){var l=r[a];r[a]=r[n],r[n]=l}if(i&&i.length>0){var u=i[a];i[a]=i[n],i[n]=u}}}}]),e}();n.SuperMap.ServerGeometry=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SpatialAnalystBase=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(6),l=r(18);
  33. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  34. * This program are made available under the terms of the Apache License, Version 2.0
  35. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  36. var u=t.SpatialAnalystBase=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.format=o.DataFormat.GEOJSON,i.CLASS_NAME="SuperMap.SpatialAnalystBase",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.format=null}},{key:"serviceProcessCompleted",value:function(e){var t,r=this;if((e=a.Util.transformResult(e))&&r.format===o.DataFormat.GEOJSON&&"function"==typeof r.toGeoJSONResult)if(a.Util.isArray(e)){for(var i=0;i<e.length;i++)e[i]=r.toGeoJSONResult(e[i]);t=e}else t=r.toGeoJSONResult(e);t||(t=e),r.events.triggerEvent("processCompleted",{result:t})}},{key:"toGeoJSONResult",value:function(e){if(!e)return null;e.result&&e.result.resultGeometry&&(e=e.result);var t=new l.GeoJSON;if(e.recordsets)for(var r=0,i=e.recordsets,n=i.length;r<n;r++)i[r].features&&(i[r].features=t.toGeoJSON(i[r].features));else e.recordset&&e.recordset.features&&(e.recordset.features=t.toGeoJSON(e.recordset.features));return e.resultGeometry&&(e.resultGeometry=t.toGeoJSON(e.resultGeometry)),e.regions&&(e.regions=t.toGeoJSON(e.regions)),e}}]),t}();n.SuperMap.SpatialAnalystBase=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={Prefix:"<a href='http://leafletjs.com' title='A JS library for interactive maps'>Leaflet</a>\n with <span>© <a href='http://iclient.supermap.io' title='SuperMap iClient' target='_blank'>SuperMap iClient</a></span>",Common:{attribution:"Map Data <span>© <a href='http://support.supermap.com.cn/product/iServer.aspx' title='SuperMap iServer' target='_blank'>SuperMap iServer</a></span>"},Online:{attribution:"Map Data <span>© <a href='http://www.supermapol.com' title='SuperMap Online' target='_blank'>SuperMap Online</a></span>"},ECharts:{attribution:"© 2018 百度 ECharts"},MapV:{attribution:"© 2018 百度 MapV "},Turf:{attribution:"<span>© <a href='http://turfjs.org/' title='turfjs' target='_blank'>turfjs</a></span>"},Baidu:{attribution:"Map Data © 2018 Baidu - GS(2016)2089号 - Data © 长地万方"},Cloud:{attribution:"Map Data ©2014 SuperMap - GS(2014)6070号-data©Navinfo"},Tianditu:{attribution:"Map Data <a href='http://www.tianditu.com' target='_blank'><img style='background-color:transparent;bottom:2px;opacity:1;' src='http://api.tianditu.com/img/map/logo.png' width='53px' height='22px' opacity='0'></a>"}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUtil=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(211),a=r(82),o=r(210),s=r(76),l=r(209),u=r(208),c=r(207),p=r(206),h=r(205),f=r(204),d=r(33),y=r(75);
  37. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  38. * This program are made available under the terms of the Apache License, Version 2.0
  39. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var v=t.SUtil=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return i(e,null,[{key:"SUtil_smoothBezier",value:function(t,r,i,n,a){a&&2===a||(a=[0,0]);var o,s,l=a,u=[],c=[],p=[],h=[],f=!!n;if(f){o=[1/0,1/0],s=[-1/0,-1/0];for(var d=t.length,y=0;y<d;y++)e.Util_vector.min(o,o,[t[y][0]+l[0],t[y][1]+l[1]]),e.Util_vector.max(s,s,[t[y][0]+l[0],t[y][1]+l[1]]);e.Util_vector.min(o,o,n[0]),e.Util_vector.max(s,s,n[1])}for(var v=t.length,m=0;m<v;m++){var g=[t[m][0]+l[0],t[m][1]+l[1]],b=void 0,S=void 0;if(i)b=[t[m?m-1:v-1][0]+l[0],t[m?m-1:v-1][1]+l[1]],S=[t[(m+1)%v][0]+l[0],t[(m+1)%v][1]+l[1]];else{if(0===m||m===v-1){u.push([t[m][0]+l[0],t[m][1]+l[1]]);continue}b=[t[m-1][0]+l[0],t[m-1][1]+l[1]],S=[t[m+1][0]+l[0],t[m+1][1]+l[1]]}e.Util_vector.sub(c,S,b),e.Util_vector.scale(c,c,r);var _=e.Util_vector.distance(g,b),P=e.Util_vector.distance(g,S),w=_+P;0!==w&&(_/=w,P/=w),e.Util_vector.scale(p,c,-_),e.Util_vector.scale(h,c,P);var O=e.Util_vector.add([],g,p),T=e.Util_vector.add([],g,h);f&&(e.Util_vector.max(O,O,o),e.Util_vector.min(O,O,s),e.Util_vector.max(T,T,o),e.Util_vector.min(T,T,s)),u.push(O),u.push(T)}return i&&u.push(u.shift()),u}},{key:"SUtil_smoothSpline",value:function(t,r,i,n){n&&2===n||(n=[0,0]);for(var a=n,o=t.length,s=[],l=0,u=1;u<o;u++)l+=e.Util_vector.distance([t[u-1][0]+a[0],t[u-1][1]+a[1]],[t[u][0]+a[0],t[u][1]+a[1]]);var c=l/5;c=c<o?o:c;for(var p=0;p<c;p++){var h=p/(c-1)*(r?o:o-1),f=Math.floor(h),d=h-f,y=void 0,v=[t[f%o][0]+a[0],t[f%o][1]+a[1]],m=void 0,g=void 0;r?(y=[t[(f-1+o)%o][0]+a[0],t[(f-1+o)%o][1]+a[1]],m=[t[(f+1)%o][0]+a[0],t[(f+1)%o][1]+a[1]],g=[t[(f+2)%o][0]+a[0],t[(f+2)%o][1]+a[1]]):(y=[t[0===f?f:f-1][0]+a[0],t[0===f?f:f-1][1]+a[1]],m=[t[f>o-2?o-1:f+1][0]+a[0],t[f>o-2?o-1:f+1][1]+a[1]],g=[t[f>o-3?o-1:f+2][0]+a[0],t[f>o-3?o-1:f+2][1]+a[1]]);var b=d*d,S=d*b;s.push([_(y[0],v[0],m[0],g[0],d,b,S),_(y[1],v[1],m[1],g[1],d,b,S)])}return s;function _(e,t,r,i,n,a,o){var s=.5*(r-e),l=.5*(i-t);return(2*(t-r)+s+l)*o+(-3*(t-r)-2*s-l)*a+s*n+t}}},{key:"SUtil_dashedLineTo",value:function(e,t,r,i,n,a,o){var s=[5,5];if(a="number"!=typeof a?5:a,e.setLineDash)return s[0]=a,s[1]=a,o&&o instanceof Array?e.setLineDash(o):e.setLineDash(s),e.moveTo(t,r),void e.lineTo(i,n);var l=i-t,u=n-r,c=Math.floor(Math.sqrt(l*l+u*u)/a);l/=c,u/=c;for(var p=!0,h=0;h<c;++h)p?e.moveTo(t,r):e.lineTo(t,r),p=!p,t+=l,r+=u;e.lineTo(i,n)}}]),e}();v.Util_area=new n.Area,v.Util_color=new a.Color,v.Util_computeBoundingBox=new o.ComputeBoundingBox,v.Util_curve=new s.Curve,v.Util_env=new l.Env,v.Util_event=new u.Event,v.Util_http=new c.Http,v.Util_log=new p.Log,v.Util_math=new h.Math,v.Util_matrix=new f.Matrix,v.Util=new d.Util,v.Util_vector=new y.Vector},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Shape=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(60),o=r(77),s=r(1),l=r(12);
  40. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  41. * This program are made available under the terms of the Apache License, Version 2.0
  42. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  43. t.Shape=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r,i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=e||{},i.id=null,i.style={},i.highlightStyle=null,i.parent=null,i.__dirty=!0,i.__clipShapes=[],i.invisible=!1,i.ignore=!1,i.zlevel=0,i.draggable=!1,i.clickable=!1,i.hoverable=!0,i.z=0,i.refOriginalPosition=[0,0],i.refDataID=null,i.isHoverByRefDataID=!1,i.refDataHoverGroup=null,i.dataInfo=null,s.Util.extend(i,e),i.id=i.id||s.Util.createUniqueID("smShape_"),i.CLASS_NAME="SuperMap.LevelRenderer.Shape",i.getTansform=(r=[],function(e,t){var i=[e,t];return this.needTransform&&this.transform&&(l.SUtil.Util_matrix.invert(r,this.transform),l.SUtil.Util_matrix.mulVector(i,r,[e,t,1]),e==i[0]&&t==i[1]&&this.updateNeedTransform()),i}),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.SuperMap.mixin(a.Eventful,o.Transformable)),i(t,[{key:"destroy",value:function(){this.id=null,this.style=null,this.highlightStyle=null,this.parent=null,this.__dirty=null,this.__clipShapes=null,this.invisible=null,this.ignore=null,this.zlevel=null,this.draggable=null,this.clickable=null,this.hoverable=null,this.z=null,this.refOriginalPosition=null,this.refDataID=null,this.refDataHoverGroup=null,this.isHoverByRefDataID=null,this.dataInfo=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"brush",value:function(e,t){var r=this.beforeBrush(e,t);switch(e.beginPath(),this.buildPath(e,r),r.brushType){case"both":this.setCtxGlobalAlpha(e,"fill",r),e.fill(),r.lineWidth>0&&(this.setCtxGlobalAlpha(e,"stroke",r),e.stroke()),this.setCtxGlobalAlpha(e,"reset",r);break;case"stroke":this.setCtxGlobalAlpha(e,"stroke",r),r.lineWidth>0&&e.stroke(),this.setCtxGlobalAlpha(e,"reset",r);break;default:this.setCtxGlobalAlpha(e,"fill",r),e.fill(),this.setCtxGlobalAlpha(e,"reset",r)}this.drawText(e,r,this.style),this.afterBrush(e)}},{key:"beforeBrush",value:function(e,t){var r=this.style;return this.brushTypeOnly&&(r.brushType=this.brushTypeOnly),t&&(r=this.getHighlightStyle(r,this.highlightStyle||{},this.brushTypeOnly)),"stroke"==this.brushTypeOnly&&(r.strokeColor=r.strokeColor||r.color),e.save(),this.doClip(e),this.setContext(e,r),this.setTransform(e),r}},{key:"afterBrush",value:function(e){e.restore()}},{key:"setContext",value:function(e,t){for(var r=[["color","fillStyle"],["strokeColor","strokeStyle"],["opacity","globalAlpha"],["lineCap","lineCap"],["lineJoin","lineJoin"],["miterLimit","miterLimit"],["lineWidth","lineWidth"],["shadowBlur","shadowBlur"],["shadowColor","shadowColor"],["shadowOffsetX","shadowOffsetX"],["shadowOffsetY","shadowOffsetY"]],i=0,n=r.length;i<n;i++){var a=t[r[i][0]],o=r[i][1];void 0!==a&&(e[o]=a)}}},{key:"doClip",value:function(e){var t=l.SUtil.Util_matrix.create();if(this.__clipShapes)for(var r=0;r<this.__clipShapes.length;r++){var i=this.__clipShapes[r];if(i.needTransform){var n=i.transform;l.SUtil.Util_matrix.invert(t,n),e.transform(n[0],n[1],n[2],n[3],n[4],n[5])}if(e.beginPath(),i.buildPath(e,i.style),e.clip(),i.needTransform){var a=t;e.transform(a[0],a[1],a[2],a[3],a[4],a[5])}}}},{key:"getHighlightStyle",value:function(e,t,r){var i={};for(var n in e)i[n]=e[n];var a=l.SUtil.Util_color.getHighlightColor();for(var o in"stroke"!=e.brushType?(i.strokeColor=a,i.lineWidth=e.lineWidth||1,i.brushType="both"):"stroke"!=r?(i.strokeColor=a,i.lineWidth=e.lineWidth||1):i.strokeColor=t.strokeColor||l.SUtil.Util_color.mix(e.strokeColor,l.SUtil.Util_color.toRGB(a)),t)void 0!==t[o]&&(i[o]=t[o]);return i}},{key:"getHighlightZoom",value:function(){return"text"!=this.type?6:2}},{key:"drift",value:function(e,t){this.position[0]+=e,this.position[1]+=t}},{key:"buildPath",value:function(e,t){l.SUtil.Util_log("buildPath not implemented in "+this.type)}},{key:"getRect",value:function(e){l.SUtil.Util_log("getRect not implemented in "+this.type)}},{key:"isCover",value:function(e,t){var r=this.getTansform(e,t);e=r[0],t=r[1];var i=this.style.__rect;return i||(i=this.style.__rect=this.getRect(this.style)),e>=i.x&&e<=i.x+i.width&&t>=i.y&&t<=i.y+i.height&&l.SUtil.Util_area.isInside(this,this.style,e,t)}},{key:"drawText",value:function(e,r,i){if(void 0!==r.text&&!1!==r.text){var n=r.textColor||r.color||r.strokeColor;e.fillStyle=n;var a,o,s,l,u=10,c=r.textPosition||this.textPosition||"top",p=[];switch(p=this.refOriginalPosition&&2===this.refOriginalPosition.length?this.refOriginalPosition:[0,0],c){case"inside":case"top":case"bottom":case"left":case"right":if(this.getRect){var h=(i||r).__rect||this.getRect(i||r);switch(c){case"inside":s=h.x+h.width/2,l=h.y+h.height/2,a="center",o="middle","stroke"!=r.brushType&&n==r.color&&(e.fillStyle="#fff");break;case"left":s=h.x-u,l=h.y+h.height/2,a="end",o="middle";break;case"right":s=h.x+h.width+u,l=h.y+h.height/2,a="start",o="middle";break;case"top":s=h.x+h.width/2,l=h.y-u,a="center",o="bottom";break;case"bottom":s=h.x+h.width/2,l=h.y+h.height+u,a="center",o="top"}}break;case"start":case"end":var f=0,d=0,y=0,v=0;if(void 0!==r.pointList){var m=r.pointList;if(m.length<2)return;var g=m.length;switch(c){case"start":f=m[0][0]+p[0],d=m[1][0]+p[0],y=m[0][1]+p[1],v=m[1][1]+p[1];break;case"end":f=m[g-2][0]+p[0],d=m[g-1][0]+p[0],y=m[g-2][1]+p[1],v=m[g-1][1]+p[1]}}else f=r.xStart+p[0]||0,d=r.xEnd+p[0]||0,y=r.yStart+p[1]||0,v=r.yEnd+p[1]||0;switch(c){case"start":a=f<d?"end":"start",o=y<v?"bottom":"top",s=f,l=y;break;case"end":a=f<d?"start":"end",o=y<v?"top":"bottom",s=d,l=v}u-=4,f&&d&&f!=d?s-="end"==a?u:-u:a="center",y!=v?l-="bottom"==o?u:-u:o="middle";break;case"specific":s=r.textX||0,l=r.textY||0,a="start",o="middle"}r.labelXOffset&&!isNaN(r.labelXOffset)&&(s+=r.labelXOffset),r.labelYOffset&&!isNaN(r.labelYOffset)&&(l+=r.labelYOffset),null!=s&&null!=l&&t._fillText(e,r.text,s,l,r.textFont,r.textAlign||a,r.textBaseline||o)}}},{key:"modSelf",value:function(){this.__dirty=!0,this.style&&(this.style.__rect=null),this.highlightStyle&&(this.highlightStyle.__rect=null)}},{key:"isSilent",value:function(){return!(this.hoverable||this.draggable||this.clickable||this.onmousemove||this.onmouseover||this.onmouseout||this.onmousedown||this.onmouseup||this.onclick||this.ondragenter||this.ondragover||this.ondragleave||this.ondrop)}},{key:"setCtxGlobalAlpha",value:function(e,t,r){e.globalAlpha="fill"===t?void 0===r.fillOpacity?void 0===r.opacity?1:r.opacity:r.fillOpacity:"stroke"===t?void 0===r.strokeOpacity?void 0===r.opacity?1:r.opacity:r.strokeOpacity:void 0===r.opacity?1:r.opacity}}],[{key:"_fillText",value:function(e,r,i,n,a,o,s){a&&(e.font=a),e.textAlign=o,e.textBaseline=s;var u=t._getTextRect(r,i,n,a,o,s);r=(r+"").split("\n");var c=l.SUtil.Util_area.getTextHeight("ZH",a);switch(s){case"top":n=u.y;break;case"bottom":n=u.y+c;break;default:n=u.y+c/2}for(var p=0,h=r.length;p<h;p++)e.fillText(r[p],i,n),n+=c}},{key:"_getTextRect",value:function(e,t,r,i,n,a){var o=l.SUtil.Util_area.getTextWidth(e,i),s=l.SUtil.Util_area.getTextHeight("ZH",i);switch(e=(e+"").split("\n"),n){case"end":case"right":t-=o;break;case"center":t-=o/2}switch(a){case"top":break;case"bottom":r-=s*e.length;break;default:r-=s*e.length/2}return{x:t,y:r,width:o,height:s*e.length}}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerStyle=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(22);
  44. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  45. * This program are made available under the terms of the Apache License, Version 2.0
  46. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ServerStyle=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fillBackColor=new o.ServerColor(255,255,255),this.fillBackOpaque=!1,this.fillForeColor=new o.ServerColor(255,0,0),this.fillGradientMode=null,this.fillGradientAngle=0,this.fillGradientOffsetRatioX=0,this.fillGradientOffsetRatioY=0,this.fillOpaqueRate=100,this.fillSymbolID=0,this.lineColor=new o.ServerColor(0,0,0),this.lineSymbolID=0,this.lineWidth=1,this.markerAngle=0,this.markerSize=1,this.markerSymbolID=-1,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ServerStyle"}return i(e,[{key:"destroy",value:function(){var e=this;e.fillBackColor&&(e.fillBackColor.destroy(),e.fillBackColor=null),e.fillBackOpaque=null,e.fillForeColor&&(e.fillForeColor.destroy(),e.fillForeColor=null),e.fillGradientMode=null,e.fillGradientAngle=null,e.fillGradientOffsetRatioX=null,e.fillGradientOffsetRatioY=null,e.fillOpaqueRate=null,e.fillSymbolID=null,e.lineColor&&(e.lineColor.destroy(),e.lineColor=null),e.lineSymbolID=null,e.lineWidth=null,e.markerAngle=null,e.markerSize=null,e.markerSymbolID=null}},{key:"toServerJSONObject",value:function(){var e={};return e=a.Util.copyAttributes(e,this)}}],[{key:"fromJson",value:function(t){if(t)return new e({fillBackColor:o.ServerColor.fromJson(t.fillBackColor),fillBackOpaque:t.fillBackOpaque,fillForeColor:o.ServerColor.fromJson(t.fillForeColor),fillGradientMode:t.fillGradientMode,fillGradientAngle:t.fillGradientAngle,fillGradientOffsetRatioX:t.fillGradientOffsetRatioX,fillGradientOffsetRatioY:t.fillGradientOffsetRatioY,fillOpaqueRate:t.fillOpaqueRate,fillSymbolID:t.fillSymbolID,lineColor:o.ServerColor.fromJson(t.lineColor),lineSymbolID:t.lineSymbolID,lineWidth:t.lineWidth,markerAngle:t.markerAngle,markerSize:t.markerSize,markerSymbolID:t.markerSymbolID})}}]),e}();n.SuperMap.ServerStyle=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NetworkAnalystServiceBase=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(6);
  47. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  48. * This program are made available under the terms of the Apache License, Version 2.0
  49. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  50. var l=t.NetworkAnalystServiceBase=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.format=o.DataFormat.GEOJSON,i.CLASS_NAME="SuperMap.NetworkAnalystServiceBase",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.format=null}},{key:"serviceProcessCompleted",value:function(e){var t;(e=a.Util.transformResult(e))&&this.format===o.DataFormat.GEOJSON&&"function"==typeof this.toGeoJSONResult&&(t=this.toGeoJSONResult(e)),t||(t=e),this.events.triggerEvent("processCompleted",{result:t})}},{key:"toGeoJSONResult",value:function(e){return null}}]),t}();n.SuperMap.NetworkAnalystServiceBase=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  51. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  52. * This program are made available under the terms of the Apache License, Version 2.0
  53. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(89),r(311);var o=t.FilterParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.attributeFilter=null,this.name=null,this.joinItems=null,this.linkItems=null,this.ids=null,this.orderBy=null,this.groupBy=null,this.fields=null,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.FilterParameter"}return i(e,[{key:"destroy",value:function(){var e=this;if(e.attributeFilter=null,e.name=null,e.joinItems){for(var t=0,r=e.joinItems,i=r.length;t<i;t++)r[t].destroy();e.joinItems=null}if(e.linkItems){for(var n=0,a=e.linkItems,o=a.length;n<o;n++)a[n].destroy();e.linkItems=null}e.ids=null,e.orderBy=null,e.groupBy=null,e.fields=null}}]),e}();n.SuperMap.FilterParameter=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FetchRequest=t.getRequestTimeout=t.setRequestTimeout=t.isCORS=t.setCORS=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};
  54. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  55. * This program are made available under the terms of the Apache License, Version 2.0
  56. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(568),r(563);var n,a=r(562),o=(n=a)&&n.__esModule?n:{default:n},s=r(0),l=r(1);var u=window.fetch,c=(t.setCORS=s.SuperMap.setCORS=function(e){s.SuperMap.CORS=e},t.isCORS=s.SuperMap.isCORS=function(){return void 0!=s.SuperMap.CORS?s.SuperMap.CORS:window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest}),p=(t.setRequestTimeout=s.SuperMap.setRequestTimeout=function(e){return s.SuperMap.RequestTimeout=e},t.getRequestTimeout=s.SuperMap.getRequestTimeout=function(){return s.SuperMap.RequestTimeout||45e3});t.FetchRequest=s.SuperMap.FetchRequest={commit:function(e,t,r,i){switch(e=e?e.toUpperCase():e){case"GET":return this.get(t,r,i);case"POST":return this.post(t,r,i);case"PUT":return this.put(t,r,i);case"DELETE":return this.delete(t,r,i);default:return this.get(t,r,i)}},supportDirectRequest:function(e,t){return!!l.Util.isInTheSameDomain(e)||(void 0!=t.crossOrigin?t.crossOrigin:c()||t.proxy)},get:function(e,t,r){r=r||{};if(e=this._processUrl(e,r),e=l.Util.urlAppend(e,this._getParameterString(t||{})),!this.supportDirectRequest(e,r)){var i={url:e=e.replace(".json",".jsonp"),data:t};return s.SuperMap.Util.RequestJSONPPromise.GET(i)}return this.urlIsLong(e)?this._postSimulatie("GET",e.substring(0,e.indexOf("?")-1),t,r):this._fetch(e,t,r,"GET")},delete:function(e,t,r){r=r||{};if(e=this._processUrl(e,r),e=l.Util.urlAppend(e,this._getParameterString(t||{})),!this.supportDirectRequest(e,r)){e=e.replace(".json",".jsonp");var i={url:e+="&_method=DELETE",data:t};return s.SuperMap.Util.RequestJSONPPromise.DELETE(i)}return this.urlIsLong(e)?this._postSimulatie("DELETE",e.substring(0,e.indexOf("?")-1),t,r):this._fetch(e,t,r,"DELETE")},post:function(e,t,r){if(r=r||{},!this.supportDirectRequest(e,r)){e=e.replace(".json",".jsonp");var i={url:e+="&_method=POST",data:t};return s.SuperMap.Util.RequestJSONPPromise.POST(i)}return this._fetch(this._processUrl(e,r),t,r,"POST")},put:function(e,t,r){if(r=r||{},e=this._processUrl(e,r),!this.supportDirectRequest(e,r)){e=e.replace(".json",".jsonp");var i={url:e+="&_method=PUT",data:t};return s.SuperMap.Util.RequestJSONPPromise.PUT(i)}return this._fetch(e,t,r,"PUT")},urlIsLong:function(e){for(var t=0,r=null,i=0,n=e.length;i<n;i++)(r=e.charCodeAt(i))<127?t++:128<=r&&r<=2047?t+=2:2048<=r&&r<=65535&&(t+=3);return!(t<2e3)},_postSimulatie:function(e,t,r,i){return t+=(t.indexOf("?")>-1?"&":"?")+"_method="+e,"string"!=typeof r&&(r=JSON.stringify(r)),this.post(t,r,i)},_processUrl:function(e,t){if(this._isMVTRequest(e))return e;if(-1===e.indexOf(".json")&&!t.withoutFormatSuffix)if(e.indexOf("?")<0)e+=".json";else{var r=e.split("?");2===r.length&&(e=r[0]+".json?"+r[1])}return t&&t.proxy&&("function"==typeof t.proxy?e=t.proxy(e):(e=decodeURIComponent(e),e=t.proxy+encodeURIComponent(e))),e},_fetch:function(e,t,r,i){return(r=r||{}).headers=r.headers||{},r.headers["Content-Type"]||(r.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8"),r.timeout?this._timeout(r.timeout,u(e,{method:i,headers:r.headers,body:"PUT"===i||"POST"===i?t:void 0,credentials:r.withCredentials?"include":"omit",mode:"cors",timeout:p()}).then(function(e){return e})):u(e,{method:i,body:"PUT"===i||"POST"===i?t:void 0,headers:r.headers,credentials:r.withCredentials?"include":"omit",mode:"cors",timeout:p()}).then(function(e){return e})},_fetchJsonp:function(e,t){return t=t||{},(0,o.default)(e,{method:"GET",timeout:t.timeout}).then(function(e){return e})},_timeout:function(e,t){return new Promise(function(r,i){setTimeout(function(){i(new Error("timeout"))},e),t.then(r,i)})},_getParameterString:function(e){var t=[];for(var r in e){var n=e[r];if(null!=n&&"function"!=typeof n){var a;if("object"===(void 0===n?"undefined":i(n))&&n.constructor===Array){for(var o,s=[],l=0,u=n.length;l<u;l++)o=n[l],s.push(encodeURIComponent(null===o||void 0===o?"":o));a="["+s.join(",")+"]"}else a=encodeURIComponent(n);t.push(encodeURIComponent(r)+"="+a)}}return t.join("&")},_isMVTRequest:function(e){return e.indexOf(".mvt")>-1||e.indexOf(".pbf")>-1}};s.SuperMap.Util.RequestJSONPPromise={limitLength:1500,queryKeys:[],queryValues:[],supermap_callbacks:{},addQueryStrings:function(e){for(var t in e){this.queryKeys.push(t),"string"!=typeof e[t]&&(e[t]=s.SuperMap.Util.toJSON(e[t]));var r=encodeURIComponent(e[t]);this.queryValues.push(r)}},issue:function(e){for(var t=this,r=t.getUid(),i=e.url,n=[],a=new Promise(function(e){t.supermap_callbacks[r]=function(i){delete t.supermap_callbacks[r],e(i)}}),o=i,s=0,l=t.queryKeys?t.queryKeys.length:0,u=0;u<l;u++)if(o.length+t.queryKeys[u].length+2>=t.limitLength){if(0==s)return!1;n.push(o),o=i,s=0,u--}else if(o.length+t.queryKeys[u].length+2+t.queryValues[u].length>t.limitLength)for(var c=t.queryValues[u];c.length>0;){var p=t.limitLength-o.length-t.queryKeys[u].length-2;o.indexOf("?")>-1?o+="&":o+="?";var h=c.substring(0,p);"%"===h.substring(p-1,p)?(p-=1,h=c.substring(0,p)):"%"===h.substring(p-2,p-1)&&(p-=2,h=c.substring(0,p)),o+=t.queryKeys[u]+"="+h,c=c.substring(p),h.length>0&&(n.push(o),o=i,s=0)}else s++,o.indexOf("?")>-1?o+="&":o+="?",o+=t.queryKeys[u]+"="+t.queryValues[u];return n.push(o),t.send(n,"SuperMap.Util.RequestJSONPPromise.supermap_callbacks["+r+"]",e&&e.proxy),a},getUid:function(){return 1e3*(new Date).getTime()+Math.floor(1e17*Math.random())},send:function(e,t,r){var i=e.length;if(i>0)for(var n=(new Date).getTime(),a=0;a<i;a++){var s=e[a];s.indexOf("?")>-1?s+="&":s+="?",s+="sectionCount="+i,s+="&sectionIndex="+a,s+="&jsonpUserID="+n,r&&(s=decodeURIComponent(s),s=r+encodeURIComponent(s)),(0,o.default)(s,{jsonpCallbackFunction:t,timeout:3e4})}},GET:function(e){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings(e.params),this.issue(e)},POST:function(e){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings({requestEntity:e.data}),this.issue(e)},PUT:function(e){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings({requestEntity:e.data}),this.issue(e)},DELETE:function(e){return this.queryKeys.length=0,this.queryValues.length=0,this.addQueryStrings({requestEntity:e.data}),this.issue(e)}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeoJSON=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(92),s=r(1),l=r(30),u=r(34),c=r(136),p=r(24),h=r(49),f=r(23),d=r(66),y=r(41),v=r(64),m=r(65),g=r(9);
  57. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  58. * This program are made available under the terms of the Apache License, Version 2.0
  59. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  60. var b=t.GeoJSON=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.ignoreExtraDims=!0,r.CLASS_NAME="SuperMap.Format.GeoJSON",r.parseCoords={point:function(e){if(0==this.ignoreExtraDims&&2!=e.length)throw"Only 2D points are supported: "+e;return new p.Point(e[0],e[1])},multipoint:function(e){for(var t=[],r=null,i=0,n=e.length;i<n;++i){try{r=this.parseCoords.point.apply(this,[e[i]])}catch(e){throw e}t.push(r)}return new h.MultiPoint(t)},linestring:function(e){for(var t=[],r=null,i=0,n=e.length;i<n;++i){try{r=this.parseCoords.point.apply(this,[e[i]])}catch(e){throw e}t.push(r)}return new f.LineString(t)},multilinestring:function(e){for(var t=[],r=null,i=0,n=e.length;i<n;++i){try{r=this.parseCoords.linestring.apply(this,[e[i]])}catch(e){throw e}t.push(r)}return new d.MultiLineString(t)},polygon:function(e){for(var t,r,i=[],n=0,a=e.length;n<a;++n){try{r=this.parseCoords.linestring.apply(this,[e[n]])}catch(e){throw e}t=new y.LinearRing(r.components),i.push(t)}return new v.Polygon(i)},multipolygon:function(e){for(var t=[],r=null,i=0,n=e.length;i<n;++i){try{r=this.parseCoords.polygon.apply(this,[e[i]])}catch(e){throw e}t.push(r)}return new m.MultiPolygon(t)},box:function(e){if(2!=e.length)throw"GeoJSON box coordinates must have 2 elements";return new v.Polygon([new y.LinearRing([new p.Point(e[0][0],e[0][1]),new p.Point(e[1][0],e[0][1]),new p.Point(e[1][0],e[1][1]),new p.Point(e[0][0],e[1][1]),new p.Point(e[0][0],e[0][1])])])}},r.extract={feature:function(e){var t=this.extract.geometry.apply(this,[e.geometry]),r={type:"Feature",properties:this.createAttributes(e),geometry:t};return e.geometry&&"TEXT"===e.geometry.type&&(r.properties.texts=e.geometry.texts,r.properties.textStyle=e.geometry.textStyle),e.fid&&(r.id=e.fid),e.ID&&(r.id=e.ID),r},geometry:function(e){if(null==e)return null;!e.parts&&e.points&&(e.parts=[e.points.length]);var t,r=new g.ServerGeometry(e).toGeometry()||e,i=r.geometryType||r.type;return"LinearRing"===i&&(i="LineString"),"LINEM"===i&&(i="MultiLineString"),t=this.extract[i.toLowerCase()].apply(this,[r]),"Collection"===(i="TEXT"===i?"Point":i)?{type:"GeometryCollection",geometries:t}:{type:i,coordinates:t}},point:function(e){var t=[e.x,e.y];for(var r in e)"x"===r||"y"===r||null===e[r]||isNaN(e[r])||t.push(e[r]);return t},text:function(e){return[e.points[0].x,e.points[0].y]},multipoint:function(e){for(var t=[],r=0,i=e.components.length;r<i;++r)t.push(this.extract.point.apply(this,[e.components[r]]));return t},linestring:function(e){for(var t=[],r=0,i=e.components.length;r<i;++r)t.push(this.extract.point.apply(this,[e.components[r]]));return t},multilinestring:function(e){for(var t=[],r=0,i=e.components.length;r<i;++r)t.push(this.extract.linestring.apply(this,[e.components[r]]));return t},polygon:function(e){for(var t=[],r=0,i=e.components.length;r<i;++r)t.push(this.extract.linestring.apply(this,[e.components[r]]));return t},multipolygon:function(e){for(var t=[],r=0,i=e.components.length;r<i;++r)t.push(this.extract.polygon.apply(this,[e.components[r]]));return t},collection:function(e){for(var t=e.components.length,r=new Array(t),i=0;i<t;++i)r[i]=this.extract.geometry.apply(this,[e.components[i]]);return r}},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.JSONFormat),i(t,[{key:"read",value:function(e,r,i){r=r||"FeatureCollection";var a=null,s=null;if(s="string"==typeof e?n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"read",this).call(this,e,i):e){if("string"!=typeof s.type);else if(this.isValidType(s,r))switch(r){case"Geometry":try{a=this.parseGeometry(s)}catch(e){}break;case"Feature":try{(a=this.parseFeature(s)).type="Feature"}catch(e){}break;case"FeatureCollection":switch(a=[],s.type){case"Feature":try{a.push(this.parseFeature(s))}catch(e){a=null}break;case"FeatureCollection":for(var l=0,u=s.features.length;l<u;++l)try{a.push(this.parseFeature(s.features[l]))}catch(e){a=null}break;default:try{var c=this.parseGeometry(s);a.push(new o.Vector(c))}catch(e){a=null}}}}else;return a}},{key:"write",value:function(e,r){return n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"write",this).call(this,this.toGeoJSON(e),r)}},{key:"fromGeoJSON",value:function(e,t,r){var i=this,n=this.read(e,t,r);return s.Util.isArray(n)?n.map(function(e){return i._toiSevrerFeature(e)}):this._toiSevrerFeature(n)}},{key:"toGeoJSON",value:function(e){var t={type:null};if(s.Util.isArray(e)){t.type="FeatureCollection";var r=e.length;t.features=new Array(r);for(var i=0;i<r;++i){var n=e[i];if(l(n)){var a={};a.geometry=n,t.features[i]=this.extract.feature.apply(this,[a])}else t.features[i]=this.extract.feature.apply(this,[n])}}else if(l(e)){var o={};o.geometry=e,t=this.extract.feature.apply(this,[o])}else t=this.extract.feature.apply(this,[e]);function l(e){return e.hasOwnProperty("parts")&&e.hasOwnProperty("points")}return t}},{key:"isValidType",value:function(e,t){var r=!1;switch(t){case"Geometry":-1==s.Util.indexOf(["Point","MultiPoint","LineString","MultiLineString","Polygon","MultiPolygon","Box","GeometryCollection"],e.type)||(r=!0);break;case"FeatureCollection":r=!0;break;default:e.type==t&&(r=!0)}return r}},{key:"parseFeature",value:function(e){var t,r,i,n;i=e.properties?e.properties:{},n=e.geometry&&e.geometry.bbox||e.bbox;try{r=this.parseGeometry(e.geometry)}catch(e){throw e}return t=new o.Vector(r,i),n&&(t.bounds=l.Bounds.fromArray(n)),e.id&&(t.fid=e.id),t}},{key:"parseGeometry",value:function(e){if(null==e)return null;var t;if("GeometryCollection"==e.type){if(!s.Util.isArray(e.geometries))throw"GeometryCollection must have geometries array: "+e;for(var r=e.geometries.length,i=new Array(r),n=0;n<r;++n)i[n]=this.parseGeometry.apply(this,[e.geometries[n]]);t=new u.Collection(i)}else{if(!s.Util.isArray(e.coordinates))throw"Geometry must have coordinates array: "+e;if(!this.parseCoords[e.type.toLowerCase()])throw"Unsupported geometry type: "+e.type;try{t=this.parseCoords[e.type.toLowerCase()].apply(this,[e.coordinates])}catch(e){throw e}}return t}},{key:"createCRSObject",value:function(e){var t=e.layer.projection.toString(),r={};if(t.match(/epsg:/i)){var i=parseInt(t.substring(t.indexOf(":")+1));r=4326==i?{type:"name",properties:{name:"urn:ogc:def:crs:OGC:1.3:CRS84"}}:{type:"name",properties:{name:"EPSG:"+i}}}return r}},{key:"_toiSevrerFeature",value:function(e){var t=e.attributes,r=[],i=[];for(var n in t)r.push(n),i.push(t[n]);var a={fieldNames:r,fieldValues:i,geometry:g.ServerGeometry.fromGeometry(e.geometry)};return a.geometry.id=e.fid,a}},{key:"createAttributes",value:function(e){if(!e)return null;var t={};!function(e,t){if(!e.hasOwnProperty("fieldNames")||!e.hasOwnProperty("fieldValues"))return;var r=e.fieldNames,i=e.fieldValues;for(var n in r)t[r[n]]=i[n]}(e,t);var r=["fieldNames","fieldValues","geometry","stringID","ID"];for(var i in e)r.indexOf(i)>-1||(t[i]=e[i]);return t}}]),t}();a.SuperMap.Format.GeoJSON=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProcessingServiceBase=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(6),s=r(17),l=r(1),u=r(40);
  61. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  62. * This program are made available under the terms of the Apache License, Version 2.0
  63. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  64. var c=t.ProcessingServiceBase=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=r||{}).EVENT_TYPES=["processCompleted","processFailed","processRunning"];var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.ProcessingServiceBase",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getJobs",value:function(e){var t=this;s.FetchRequest.get(t._processUrl(e),null,{proxy:t.proxy}).then(function(e){return e.json()}).then(function(e){t.events.triggerEvent("processCompleted",{result:e})}).catch(function(e){t.eventListeners.processFailed({error:e})})}},{key:"addJob",value:function(e,t,r,i){var n=this,a=null;t&&t instanceof r&&(a=new Object,r.toObject(t,a));var o={proxy:n.proxy,headers:{"Content-Type":"application/x-www-form-urlencoded"},withCredentials:n.withCredentials,crossOrigin:n.crossOrigin,isInTheSameDomain:n.isInTheSameDomain};s.FetchRequest.post(n._processUrl(e),JSON.stringify(a),o).then(function(e){return e.json()}).then(function(e){e.succeed?n.serviceProcessCompleted(e,i):n.serviceProcessFailed(e)}).catch(function(e){n.serviceProcessFailed({error:e})})}},{key:"serviceProcessCompleted",value:function(e,t){e=l.Util.transformResult(e),t=t||1e3;var r=this;if(e)var i=setInterval(function(){s.FetchRequest.get(r._processUrl(e.newResourceLocation),{_t:(new Date).getTime()}).then(function(e){return e.json()}).then(function(e){r.events.triggerEvent("processRunning",{id:e.id,state:e.state}),"LOST"!==e.state.runState&&"KILLED"!==e.state.runState&&"FAILED"!==e.state.runState||(clearInterval(i),r.events.triggerEvent("processFailed",{error:e.state.errorMsg,state:e.state.runState})),"FINISHED"===e.state.runState&&e.setting.serviceInfo&&(clearInterval(i),r.events.triggerEvent("processCompleted",{result:e}))}).catch(function(e){clearInterval(i),r.events.triggerEvent("processFailed",{error:e})})},t)}},{key:"serviceProcessFailed",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"serviceProcessFailed",this).call(this,e)}},{key:"_processUrl",value:function(e){return-1===e.indexOf(".json")&&(e+=".json"),u.SecurityManager.getToken(e)&&(e+="?token="+u.SecurityManager.getToken(e)),e}}]),t}();a.SuperMap.ProcessingServiceBase=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MappingParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4);
  65. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  66. * This program are made available under the terms of the Apache License, Version 2.0
  67. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.MappingParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.items=null,this.numericPrecision=1,this.rangeMode=o.RangeMode.EQUALINTERVAL,this.rangeCount="",this.colorGradientType=o.ColorGradientType.YELLOW_RED,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.MappingParameters"}return i(e,[{key:"destroy",value:function(){var e=this;if(e.items){if(e.items.length>0)for(var t in e.items)e.items[t].destroy(),e.items[t]=null;e.items=null}e.numericPrecision=null,e.rangeMode=null,e.rangeCount=null,e.colorGradientType=null}}]),e}();n.SuperMap.MappingParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OutputSetting=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(131),s=r(4);
  68. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  69. * This program are made available under the terms of the Apache License, Version 2.0
  70. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.OutputSetting=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=s.OutputType.UDB,this.datasetName="analystResult",this.datasourceInfo=null,this.outputPath="",a.Util.extend(this,t),this.CLASS_NAME="SuperMap.OutputSetting"}return i(e,[{key:"destroy",value:function(){var e=this;e.type=null,e.datasetName=null,e.outputPath=null,e.datasourceInfo instanceof o.DatasourceConnectionInfo&&(e.datasourceInfo.destroy(),e.datasourceInfo=null)}}]),e}();n.SuperMap.OutputSetting=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerColor=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0);
  71. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  72. * This program are made available under the terms of the Apache License, Version 2.0
  73. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var a=t.ServerColor=function(){function e(t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.red=t||0==t?t:255,this.green=r||0,this.blue=i||0,this.CLASS_NAME="SuperMap.ServerColor"}return i(e,[{key:"destroy",value:function(){this.red=null,this.green=null,this.blue=null}}],[{key:"fromJson",value:function(t){if(t){var r=new e,i=255;null!==t.red&&(i=Number(t.red)),r.red=i;var n=0;null!==t.green&&(n=Number(t.green)),r.green=n;var a=0;return null!==t.blue&&(a=Number(t.blue)),r.blue=a,r}}}]),e}();n.SuperMap.ServerColor=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LineString=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(24),o=r(140);
  74. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  75. * This program are made available under the terms of the Apache License, Version 2.0
  76. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  77. var s=t.LineString=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.CLASS_NAME="SuperMap.Geometry.LineString",r.geometryType="LineString",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Curve),i(t,[{key:"removeComponent",value:function(e){var r=this.components&&this.components.length>2;return r&&function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeComponent",this).apply(this,arguments),r}},{key:"getSortedSegments",value:function(){for(var e,t,r=this.components.length-1,i=new Array(r),n=0;n<r;++n)e=this.components[n],t=this.components[n+1],e.x<t.x?i[n]={x1:e.x,y1:e.y,x2:t.x,y2:t.y}:i[n]={x1:t.x,y1:t.y,x2:e.x,y2:e.y};return i.sort(function(e,t){return e.x1-t.x1})}},{key:"getVertices",value:function(e){return!0===e?[this.components[0],this.components[this.components.length-1]]:!1===e?this.components.slice(1,this.components.length-1):this.components.slice()}}],[{key:"calculateCircle",value:function(e){if(e.length<3)return e;var t={},r=e[0],i=e[1],n=e[2],o=0,s=0,l=!0,u=0,c=0,p=0,h=[],f=(n.y-r.y)/(n.x-r.x),d=n.y-f*n.x;if(n.x!=r.x&&n.y!=r.y&&i.y==f*i.x+d||n.x==r.x&&i.x==r.x||n.y==r.y&&i.y==r.y||n.x==r.x&&n.y==r.y||n.x==i.x&&n.y==i.y||r.x==i.x&&r.y==i.y)h.push(r),h.push(i),h.push(n);else{var y=(i.x*i.x+i.y*i.y-(r.x*r.x+r.y*r.y))*(2*(n.y-r.y))-(n.x*n.x+n.y*n.y-(r.x*r.x+r.y*r.y))*(2*(i.y-r.y)),v=2*(i.x-r.x)*(n.x*n.x+n.y*n.y-(r.x*r.x+r.y*r.y))-2*(n.x-r.x)*(i.x*i.x+i.y*i.y-(r.x*r.x+r.y*r.y)),m=4*((i.x-r.x)*(n.y-r.y)-(n.x-r.x)*(i.y-r.y));t.x=y/m,t.y=v/m;var g=(2*(o=Math.sqrt((r.x-t.x)*(r.x-t.x)+(r.y-t.y)*(r.y-t.y)))*o-((r.x-n.x)*(r.x-n.x)+(r.y-n.y)*(r.y-n.y)))/(2*o*o);g=(g=g>=1?1:g)<=-1?-1:g,p=180*Math.acos(g)/Math.PI,s=(p=n.x==r.x?t.x>r.x&&i.x>r.x||t.x<r.x&&i.x<r.x?360-p:p:t.y>f*t.x+d&&i.y>f*i.x+d||t.y<f*t.x+d&&i.y<f*i.x+d?360-p:p)/72,n.y!=r.y?n.x==r.x?n.y>r.y?i.x<r.x&&(l=!1):i.x>r.x&&(l=!1):n.x<r.x?i.y<f*i.x+d&&(l=!1):i.y>f*i.x+d&&(l=!1):n.x>r.x?i.y>r.y&&(l=!1):i.y<r.y&&(l=!1);var b=(r.y-t.y)/(r.x-t.x),S=b>=0?180*Math.atan(b)/Math.PI:Math.abs(180*Math.atan(b)/Math.PI)+90,_=Math.abs(t.y);r.y==_&&_==n.y&&r.x<n.x&&(S+=180);var P=r.y-t.y;h.push(r);for(var w=1;w<72;w++){u=s*w,c=S,l?P>=0?b>=0?c+=u:c=180-(c-90)+u:c=b>0?c-180+u:90-c+u:P>=0?b>=0?c-=u:c=180-(c-90)-u:c=b>=0?c-180-u:90-c-u,c=c*Math.PI/180;var O=t.x+o*Math.cos(c),T=t.y+o*Math.sin(c);h.push(new a.Point(O,T))}h.push(n)}return h}},{key:"createLineEPS",value:function(e){var r=[],i=e.length;if(i<2)return e;for(var n=0;n<i;){if("LTypeArc"==e[n].type){var a=t.createLineArc(r,n,i,e);r=a[0],n=a[1]}else r.push(e[n]),n++}return r}},{key:"createLineArc",value:function(e,r,i,n){if(0==r){var a=t.addPointEPS(n,r,i,"LTypeArc");Array.prototype.push.apply(e,a[0]),r=a[1]+1}else if(r==i-1){var o=[n[r-1],n[r]],s=t.calculateCircle(o);Array.prototype.push.apply(e,s),r++}else{var l=t.addPointEPS(n,r,i,"LTypeArc");e.pop(),Array.prototype.push.apply(e,l[0]),r=l[1]+1}return[e,r]}},{key:"addPointEPS",value:function(e,r,i,n){var a,o=[],s=r+1;return 0==r?Array.prototype.push.apply(o,[e[r],e[r+1]]):r==i-1?Array.prototype.push.apply(o,[e[r-1],e[r]]):Array.prototype.push.apply(o,[e[r-1],e[r],e[r+1]]),"LTypeCurve"==n?a=t.calculatePointsFBZN(o):"LTypeArc"==n&&(a=t.calculateCircle(o)),[a,s]}}]),t}();n.SuperMap.Geometry.LineString=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Point=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(29),o=r(30),s=r(1);
  78. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  79. * This program are made available under the terms of the Apache License, Version 2.0
  80. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  81. var l=t.Point=function(e){function t(e,r,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i,n));return a.x=parseFloat(e),a.y=parseFloat(r),a.tag=n||0==n?parseFloat(n):null,a.type=i||"Point",a.CLASS_NAME="SuperMap.Geometry.Point",a.geometryType="Point",a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Geometry),i(t,[{key:"clone",value:function(e){return null==e&&(e=new t(this.x,this.y)),s.Util.applyDefaults(e,this),e}},{key:"calculateBounds",value:function(){this.bounds=new o.Bounds(this.x,this.y,this.x,this.y)}},{key:"equals",value:function(e){var t=!1;return null!=e&&(t=this.x===e.x&&this.y===e.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(e.x)&&isNaN(e.y)),t}},{key:"move",value:function(e,t){this.x=this.x+e,this.y=this.y+t,this.clearBounds()}},{key:"toShortString",value:function(){return this.x+", "+this.y}},{key:"destroy",value:function(){this.x=null,this.y=null,this.tag=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getVertices",value:function(e){return[this]}}]),t}();n.SuperMap.Geometry.Point=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommontypesConversion=void 0;var i,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=r(2),o=(i=a)&&i.__esModule?i:{default:i};
  82. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  83. * This program are made available under the terms of the Apache License, Version 2.0
  84. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(3);var s=r(5);var l=t.CommontypesConversion=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return n(e,null,[{key:"toSuperMapBounds",value:function(e){return e&&-1!==["FeatureCollection","Feature"].indexOf(e.type)&&(e=o.default.geoJSON(e).getBounds()),e instanceof o.default.LatLngBounds?new s.Bounds(e.getSouthWest().lng,e.getSouthWest().lat,e.getNorthEast().lng,e.getNorthEast().lat):e instanceof o.default.Bounds?new s.Bounds(e.min.x,e.min.y,e.max.x,e.max.y):this.isArray(e)?new s.Bounds(e[0],e[1],e[2],e[3]):new s.Bounds}},{key:"isArray",value:function(e){return"[object Array]"==Object.prototype.toString.call(e)}},{key:"toProcessingParam",value:function(e){var t={};if(e.length<1)t="";else{for(var r=[],i=0;i<e.length;i++){var n={};n.x=e[i][0],n.y=e[i][1],r.push(n)}t.type="REGION",t.points=r}return t}}]),e}();o.default.supermap.CommontypesConversion=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShapeParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0);
  85. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  86. * This program are made available under the terms of the Apache License, Version 2.0
  87. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var a=t.ShapeParameters=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.refOriginalPosition=[0,0],this.refDataID=null,this.isHoverByRefDataID=!1,this.refDataHoverGroup=null,this.dataInfo=null,this.clickable=!0,this.hoverable=!0,this.style=null,this.highlightStyle={},this.CLASS_NAME="SuperMap.Feature.ShapeParameters"}return i(e,[{key:"destroy",value:function(){this.refOriginalPosition=null,this.refDataID=null,this.isHoverByRefDataID=null,this.refDataHoverGroup=null,this.dataInfo=null,this.clickable=null,this.hoverable=null,this.style=null,this.highlightStyle=null}}]),e}();n.SuperMap.Feature=n.SuperMap.Feature||{},n.SuperMap.Feature.ShapeParameters=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ShapeFactory=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(81),o=r(80),s=r(79),l=r(213),u=r(78),c=r(117),p=r(212),h=r(116),f=r(115),d=r(114),y=r(203),v=r(113),m=r(112),g=r(73),b=r(111),S=r(202),_=r(1);
  88. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  89. * This program are made available under the terms of the Apache License, Version 2.0
  90. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var P=t.ShapeFactory=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.shapeParameters=t,this.CLASS_NAME="SuperMap.Feature.ShapeFactory"}return i(e,[{key:"destroy",value:function(){this.shapeParameters=null}},{key:"createShape",value:function(t){if(t&&(this.shapeParameters=t),!this.shapeParameters)return null;var r=this.shapeParameters;if(r instanceof a.Point){var i=new Object;i.x=r.x,i.y=r.y,i.r=r.r,i=_.Util.copyAttributesWithClip(i,r.style,["x","y"]);var n=new f.SmicPoint;return n.style=e.transformStyle(i),n.highlightStyle=e.transformStyle(r.highlightStyle),_.Util.copyAttributesWithClip(n,r,["x","y","style","highlightStyle"]),n}if(r instanceof o.Line){if(!r.pointList)return null;var P=new Object;P.pointList=r.pointList,P=_.Util.copyAttributesWithClip(P,r.style,["pointList"]);var w=new v.SmicBrokenLine;return w.style=e.transformStyle(P),w.highlightStyle=e.transformStyle(r.highlightStyle),_.Util.copyAttributesWithClip(w,r,["pointList","style","highlightStyle"]),w}if(r instanceof s.Polygon){if(!r.pointList)return null;var O=new Object;O.pointList=r.pointList,O=_.Util.copyAttributesWithClip(O,r.style,["pointList"]);var T=new g.SmicPolygon;return T.style=e.transformStyle(O),T.highlightStyle=e.transformStyle(r.highlightStyle),_.Util.copyAttributesWithClip(T,r,["pointList","style","highlightStyle"]),T}if(r instanceof l.Rectangle){if(!r.x&&!r.y&!r.width&!r.height)return null;var M=new Object;M.x=r.x,M.y=r.y,M.width=r.width,M.height=r.height,M=_.Util.copyAttributesWithClip(M,r.style,["x","y","width","height"]);var C=new b.SmicRectangle;return C.style=e.transformStyle(M),C.highlightStyle=e.transformStyle(r.highlightStyle),_.Util.copyAttributesWithClip(C,r,["x","y","width","height","style","highlightStyle"]),C}if(r instanceof u.Sector){var x=new Object;x.x=r.x,x.y=r.y,x.r=r.r,x.startAngle=r.startAngle,x.endAngle=r.endAngle,r.r0&&(x.r0=r.r0),r.clockWise&&(x.clockWise=r.clockWise),x=_.Util.copyAttributesWithClip(x,r.style,["x","y","r","startAngle","endAngle","r0","endAngle"]);var E=new S.SmicSector;return E.style=e.transformStyle(x),E.highlightStyle=e.transformStyle(r.highlightStyle),_.Util.copyAttributesWithClip(E,r,["x","y","r","startAngle","endAngle","r0","endAngle","style","highlightStyle"]),E}if(r instanceof c.Label){var L=new Object;L.x=r.x,L.y=r.y,L.text=r.text,L=_.Util.copyAttributesWithClip(L,r.style,["x","y","text"]);var A=new d.SmicText;return A.style=e.transformStyle(L),A.highlightStyle=e.transformStyle(r.highlightStyle),_.Util.copyAttributesWithClip(A,r,["x","y","text","style","highlightStyle"]),A}if(r instanceof p.Image){var k=new Object;k.x=r.x,k.y=r.y,r.image&&(k.image=r.image),r.width&&(k.width=r.width),r.height&&(k.height=r.height),r.sx&&(k.sx=r.sx),r.sy&&(k.sy=r.sy),r.sWidth&&(k.sWidth=r.sWidth),r.sHeight&&(k.sHeight=r.sHeight),k=_.Util.copyAttributesWithClip(k,r.style,["x","y","image","width","height","sx","sy","sWidth","sHeight"]);var F=new m.SmicImage;return F.style=e.transformStyle(k),F.highlightStyle=e.transformStyle(r.highlightStyle),_.Util.copyAttributesWithClip(F,r,["x","y","image","width","height","style","highlightStyle"]),F}if(r instanceof h.Circle){var j=new Object;j.x=r.x,j.r=r.r,j.y=r.y,j=_.Util.copyAttributesWithClip(j,r.style,["x","y","r"]);var I=new y.SmicCircle;return I.style=e.transformStyle(j),I.highlightStyle=e.transformStyle(r.highlightStyle),_.Util.copyAttributesWithClip(I,r,["x","y","r","style","highlightStyle","lineWidth","text","textPosition"]),I}return null}}],[{key:"transformStyle",value:function(e){var t={},r=["normal","normal","normal","12","arial,sans-serif"],i=[!0,!1];for(var n in e)switch(n){case"fill":i[0]=e[n];break;case"fillColor":t.color=e[n];break;case"stroke":i[1]=e[n];break;case"strokeWidth":t.lineWidth=e[n];break;case"strokeLinecap":t.lineCap=e[n];break;case"strokeLineJoin":t.lineJoin=e[n];break;case"strokeDashstyle":t.lineType=e[n];break;case"pointRadius":t.r=e[n];break;case"label":t.text=e[n];break;case"labelRect":t.labelRect=e[n];break;case"fontColor":t.textColor=e[n];break;case"fontStyle":r[0]=e[n];break;case"fontVariant":r[1]=e[n];break;case"fontWeight":r[2]=e[n];break;case"fontSize":var a="";e[n]&&e[n].toString().indexOf("px")<0&&(a="px"),r[3]=e[n]+a;break;case"fontFamily":r[4]=e[n];break;case"fontOpacity":t.opacity=e[n];break;case"labelPosition":t.textPosition=e[n];break;case"labelAlign":t.textAlign=e[n];break;case"labelBaseline":t.textBaseline=e[n];break;case"labelRotation":t.textRotation=e[n];break;default:t[n]=e[n]}return t.textFont=r.join(" "),!0===i[0]&&!1===i[1]?t.brushType="fill":!1===i[0]&&!0===i[1]?t.brushType="stroke":!0===i[0]&&!0===i[1]?t.brushType="both":t.brushType="fill",null==t.lineWidth&&(t.lineWidth=1),t}},{key:"Background",value:function(e,t,r){var i=r||{},n=new l.Rectangle(t[0],t[3],Math.abs(t[2]-t[0]),Math.abs(t[3]-t[1]));return n.style={fillColor:"#f3f3f3"},i.backgroundStyle&&_.Util.copyAttributesWithClip(n.style,i.backgroundStyle),i.backgroundRadius&&(n.style.radius=i.backgroundRadius),n.clickable=!1,n.hoverable=!1,e.createShape(n)}},{key:"GraphAxis",value:function(e,t,r,i){var n,a=t,l=r||{},u=[],p=[],h=!!l.useXReferenceLine&&l.useXReferenceLine,f=l.axisYTick&&!isNaN(l.axisYTick)?l.axisYTick:0,d=[],y=[];if(0==f){if(y.push([a[0],a[3]-5]),y.push([a[0],a[1]]),l.axis3DParameter&&!isNaN(l.axis3DParameter)&&l.axis3DParameter>=15){var v=parseInt(l.axis3DParameter),m=[a[0]-v,a[1]+v];l.axisUseArrow?(d.push([m[0]+1.5,m[1]-7.5]),d.push([m[0]-1,m[1]+1]),d.push([m[0]+7.5,m[1]-1.5]),y.push([m[0],m[1]])):y.push([m[0],m[1]]),y.push([a[0],a[1]])}y.push([a[2]+5,a[1]])}else{var g=Math.abs(a[1]-a[3])/f,b=a[3];y.push([a[0],b-5]);for(var S=0;S<f;S++){if(y.push([a[0],b]),y.push([a[0]-5,b]),y.push([a[0],b]),h){var P=new o.Line([[a[0],b],[a[2],b]]);P.style={strokeColor:"#cfcfcf",strokeLinecap:"butt",strokeLineJoin:"round",strokeWidth:1},P.clickable=!1,P.hoverable=!1,l.xReferenceLineStyle&&_.Util.copyAttributesWithClip(P.style,l.xReferenceLineStyle),u.push(e.createShape(P))}b+=g}if(y.push([a[0],a[1]]),l.axis3DParameter&&!isNaN(l.axis3DParameter)&&l.axis3DParameter>=15){var w=parseInt(l.axis3DParameter),O=[a[0]-w,a[1]+w];l.axisUseArrow?(d.push([O[0]+1.5,O[1]-7.5]),d.push([O[0]-1,O[1]+1]),d.push([O[0]+7.5,O[1]-1.5]),y.push([O[0],O[1]])):y.push([O[0],O[1]]),y.push([a[0],a[1]])}y.push([a[2]+5,a[1]])}if(l.axisUseArrow){var T=[[a[2]+5,a[1]+4],[a[2]+13,a[1]],[a[2]+5,a[1]-4]],M=[[a[0]-4,a[3]-5],[a[0],a[3]-13],[a[0]+4,a[3]-5]],C=new s.Polygon(T);C.style={fillColor:"#008acd"},_.Util.copyAttributesWithClip(C.style,l.axisStyle),p.push(e.createShape(C));var x=new s.Polygon(M);if(x.style={fillColor:"#008acd"},_.Util.copyAttributesWithClip(x.style,l.axisStyle),p.push(e.createShape(x)),l.axis3DParameter&&!isNaN(l.axis3DParameter)&&l.axis3DParameter>=15){var E=new s.Polygon(d);E.style={fillColor:"#008acd"},_.Util.copyAttributesWithClip(E.style,l.axisStyle),p.push(e.createShape(E))}}n=y;var L=new o.Line(n);L.style={strokeLinecap:"butt",strokeLineJoin:"round",strokeColor:"#008acd",strokeWidth:1},l.axisStyle&&_.Util.copyAttributesWithClip(L.style,l.axisStyle),L.clickable=!1,L.hoverable=!1;var A=[e.createShape(L)],k=[];if(l.axisYLabels&&l.axisYLabels.length&&l.axisYLabels.length>0){var F=l.axisYLabels,j=F.length,I=[0,0];if(l.axisYLabelsOffset&&l.axisYLabelsOffset.length&&(I=l.axisYLabelsOffset),1==j){var N=new c.Label(a[0]-5+I[0],a[3]+I[1],F[0]);N.style={labelAlign:"right"},l.axisYLabelsStyle&&_.Util.copyAttributesWithClip(N.style,l.axisYLabelsStyle),N.clickable=!1,N.hoverable=!1,k.push(e.createShape(N))}else for(var D=a[3],R=Math.abs(a[1]-a[3])/(j-1),G=0;G<j;G++){var B=new c.Label(a[0]-5+I[0],D+I[1],F[G]);B.style={labelAlign:"right"},l.axisYLabelsStyle&&_.Util.copyAttributesWithClip(B.style,l.axisYLabelsStyle),B.clickable=!1,B.hoverable=!1,k.push(e.createShape(B)),D+=R}}var U=[];if(l.axisXLabels&&l.axisXLabels.length&&l.axisXLabels.length>0){var V=l.axisXLabels,J=V.length,z=[0,0];if(l.axisXLabelsOffset&&l.axisXLabelsOffset.length&&(z=l.axisXLabelsOffset),i&&i.xPositions&&i.xPositions.length&&i.xPositions.length==J)for(var q=i.xPositions,H=0;H<J;H++){var W=new c.Label(q[H]+z[0],a[1]+z[1],V[H]);W.style={labelAlign:"center",labelBaseline:"top"},l.axisXLabelsStyle&&_.Util.copyAttributesWithClip(W.style,l.axisXLabelsStyle),W.clickable=!1,W.hoverable=!1,U.push(e.createShape(W))}else if(1==J){var Q=new c.Label(a[0]-5+z[0],a[1]+z[0],V[0]);Q.style={labelAlign:"center",labelBaseline:"top"},l.axisXLabelsStyle&&_.Util.copyAttributesWithClip(Q.style,l.axisXLabelsStyle),Q.clickable=!1,Q.hoverable=!1,U.push(e.createShape(Q))}else for(var Y=a[0],X=Math.abs(a[2]-a[0])/(J-1),K=0;K<J;K++){var Z=new c.Label(Y+z[0],a[1]+z[1],V[K]);Z.style={labelAlign:"center",labelBaseline:"top"},l.axisXLabelsStyle&&_.Util.copyAttributesWithClip(Z.style,l.axisXLabelsStyle),Z.clickable=!1,Z.hoverable=!1,U.push(e.createShape(Z)),Y+=X}}return u.concat(A).concat(k).concat(U).concat(p)}},{key:"ShapeStyleTool",value:function(e,t,r,i,n,a){var o=e||{};if(t&&_.Util.copyAttributesWithClip(o,t),r&&r.length&&void 0!==n&&!isNaN(n)&&n>=0&&r[n]&&_.Util.copyAttributesWithClip(o,r[n]),i&&i.length&&void 0!==a)for(var s=i,l=s.length,u=parseFloat(a),c=0;c<l;c++)if(s[c].start<=u&&u<s[c].end){_.Util.copyAttributesWithClip(o,s[c].style);break}return o}}]),e}();n.SuperMap.Feature=n.SuperMap.Feature||{},n.SuperMap.Feature.ShapeFactory=P},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Theme=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  91. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  92. * This program are made available under the terms of the Apache License, Version 2.0
  93. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(271);var o=t.Theme=function(){function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)return this;this.memoryData=null,this.type=t,r&&a.Util.extend(this,r),this.CLASS_NAME="SuperMap.Theme"}return i(e,[{key:"destroy",value:function(){this.memoryData&&(this.memoryData.destroy(),this.memoryData=null),this.type=null}},{key:"toServerJSONObject",value:function(){}}]),e}();n.SuperMap.Theme=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Geometry=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  94. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  95. * This program are made available under the terms of the Apache License, Version 2.0
  96. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.Geometry=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.CLASS_NAME="SuperMap.Geometry",this.id=a.Util.createUniqueID(this.CLASS_NAME+"_"),this.parent=null,this.bounds=null,this.SRID=null}return i(e,[{key:"destroy",value:function(){this.id=null,this.bounds=null,this.SRID=null}},{key:"clone",value:function(){return new e}},{key:"setBounds",value:function(e){e&&(this.bounds=e.clone())}},{key:"clearBounds",value:function(){this.bounds=null,this.parent&&this.parent.clearBounds()}},{key:"extendBounds",value:function(e){this.getBounds()?this.bounds.extend(e):this.setBounds(e)}},{key:"getBounds",value:function(){return null==this.bounds&&this.calculateBounds(),this.bounds}},{key:"calculateBounds",value:function(){}},{key:"getVertices",value:function(e){}},{key:"getArea",value:function(){return 0}}]),e}();n.SuperMap.Geometry=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bounds=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(330),o=r(93),s=r(50),l=r(1);
  97. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  98. * This program are made available under the terms of the Apache License, Version 2.0
  99. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var u=t.Bounds=function(){function e(t,r,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),l.Util.isArray(t)&&(n=t[3],i=t[2],r=t[1],t=t[0]),this.left=null!=t?l.Util.toFloat(t):this.left,this.bottom=null!=r?l.Util.toFloat(r):this.bottom,this.right=null!=i?l.Util.toFloat(i):this.right,this.top=null!=n?l.Util.toFloat(n):this.top,this.centerLonLat=null,this.CLASS_NAME="SuperMap.Bounds"}return i(e,[{key:"clone",value:function(){return new e(this.left,this.bottom,this.right,this.top)}},{key:"equals",value:function(e){var t=!1;return null!=e&&(t=this.left===e.left&&this.right===e.right&&this.top===e.top&&this.bottom===e.bottom),t}},{key:"toString",value:function(){return[this.left,this.bottom,this.right,this.top].join(",")}},{key:"toArray",value:function(e){return!0===e?[this.bottom,this.left,this.top,this.right]:[this.left,this.bottom,this.right,this.top]}},{key:"toBBOX",value:function(e,t){null==e&&(e=6);var r=Math.pow(10,e),i=Math.round(this.left*r)/r,n=Math.round(this.bottom*r)/r,a=Math.round(this.right*r)/r,o=Math.round(this.top*r)/r;return!0===t?n+","+i+","+o+","+a:i+","+n+","+a+","+o}},{key:"getWidth",value:function(){return this.right-this.left}},{key:"getHeight",value:function(){return this.top-this.bottom}},{key:"getSize",value:function(){return new a.Size(this.getWidth(),this.getHeight())}},{key:"getCenterPixel",value:function(){return new o.Pixel((this.left+this.right)/2,(this.bottom+this.top)/2)}},{key:"getCenterLonLat",value:function(){return this.centerLonLat||(this.centerLonLat=new s.LonLat((this.left+this.right)/2,(this.bottom+this.top)/2)),this.centerLonLat}},{key:"scale",value:function(t,r){var i,n;return t=t||1,null==r&&(r=this.getCenterLonLat()),"SuperMap.LonLat"===r.CLASS_NAME?(i=r.lon,n=r.lat):(i=r.x,n=r.y),new e((this.left-i)*t+i,(this.bottom-n)*t+n,(this.right-i)*t+i,(this.top-n)*t+n)}},{key:"add",value:function(t,r){if(null==t||null==r)throw new TypeError("Bounds.add cannot receive null values");return new e(this.left+t,this.bottom+r,this.right+t,this.top+r)}},{key:"extend",value:function(t){var r=null;if(t){switch(t.CLASS_NAME){case"SuperMap.LonLat":r=new e(t.lon,t.lat,t.lon,t.lat);break;case"SuperMap.Geometry.Point":r=new e(t.x,t.y,t.x,t.y);break;case"SuperMap.Bounds":r=t}r&&(this.centerLonLat=null,(null==this.left||r.left<this.left)&&(this.left=r.left),(null==this.bottom||r.bottom<this.bottom)&&(this.bottom=r.bottom),(null==this.right||r.right>this.right)&&(this.right=r.right),(null==this.top||r.top>this.top)&&(this.top=r.top))}}},{key:"containsLonLat",value:function(e,t){"boolean"==typeof t&&(t={inclusive:t}),t=t||{};var r=this.contains(e.lon,e.lat,t.inclusive),i=t.worldBounds;if(i&&!r){var n=i.getWidth(),a=(i.left+i.right)/2,o=Math.round((e.lon-a)/n);r=this.containsLonLat({lon:e.lon-o*n,lat:e.lat},{inclusive:t.inclusive})}return r}},{key:"containsPixel",value:function(e,t){return this.contains(e.x,e.y,t)}},{key:"contains",value:function(e,t,r){if(null==r&&(r=!0),null==e||null==t)return!1;var i=!1;return i=r?e>=this.left&&e<=this.right&&t>=this.bottom&&t<=this.top:e>this.left&&e<this.right&&t>this.bottom&&t<this.top,i}},{key:"intersectsBounds",value:function(e,t){if("boolean"==typeof t&&(t={inclusive:t}),(t=t||{}).worldBounds){var r=this.wrapDateLine(t.worldBounds);e=e.wrapDateLine(t.worldBounds)}else r=this;null==t.inclusive&&(t.inclusive=!0);var i=!1,n=r.left===e.right||r.right===e.left||r.top===e.bottom||r.bottom===e.top;if(t.inclusive||!n){var a=e.bottom>=r.bottom&&e.bottom<=r.top||r.bottom>=e.bottom&&r.bottom<=e.top,o=e.top>=r.bottom&&e.top<=r.top||r.top>e.bottom&&r.top<e.top,s=e.left>=r.left&&e.left<=r.right||r.left>=e.left&&r.left<=e.right,l=e.right>=r.left&&e.right<=r.right||r.right>=e.left&&r.right<=e.right;i=(a||o)&&(s||l)}if(t.worldBounds&&!i){var u=t.worldBounds,c=u.getWidth(),p=!u.containsBounds(r),h=!u.containsBounds(e);p&&!h?(e=e.add(-c,0),i=r.intersectsBounds(e,{inclusive:t.inclusive})):h&&!p&&(r=r.add(-c,0),i=e.intersectsBounds(r,{inclusive:t.inclusive}))}return i}},{key:"containsBounds",value:function(e,t,r){null==t&&(t=!1),null==r&&(r=!0);var i=this.contains(e.left,e.bottom,r),n=this.contains(e.right,e.bottom,r),a=this.contains(e.left,e.top,r),o=this.contains(e.right,e.top,r);return t?i||n||a||o:i&&n&&a&&o}},{key:"determineQuadrant",value:function(e){var t="",r=this.getCenterLonLat();return t+=e.lat<r.lat?"b":"t",t+=e.lon<r.lon?"l":"r"}},{key:"wrapDateLine",value:function(e,t){var r=(t=t||{}).leftTolerance||0,i=t.rightTolerance||0,n=this.clone();if(e){for(var a=e.getWidth();n.left<e.left&&n.right-i<=e.left;)n=n.add(a,0);for(;n.left+r>=e.right&&n.right>e.right;)n=n.add(-a,0);var o=n.left+r;o<e.right&&o>e.left&&n.right-i>e.right&&(n=n.add(-a,0))}return n}},{key:"toServerJSONObject",value:function(){return{rightTop:{x:this.right,y:this.top},leftBottom:{x:this.left,y:this.bottom},left:this.left,right:this.right,top:this.top,bottom:this.bottom}}},{key:"destroy",value:function(){this.left=null,this.right=null,this.top=null,this.bottom=null,this.centerLonLat=null}}],[{key:"fromString",value:function(t,r){var i=t.split(",");return e.fromArray(i,r)}},{key:"fromArray",value:function(t,r){return!0===r?new e(t[1],t[0],t[3],t[2]):new e(t[0],t[1],t[2],t[3])}},{key:"fromSize",value:function(t){return new e(0,t.h,t.w,0)}},{key:"oppositeQuadrant",value:function(e){var t="";return t+="t"===e.charAt(0)?"b":"t",t+="l"===e.charAt(1)?"r":"l"}}]),e}();n.SuperMap.Bounds=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NormalizeScale=t.GetResolutionFromScaleDpi=t.scaleToResolution=t.resolutionToScale=t.getMeterPerMapUnit=t.toSuperMapGeometry=t.toGeoJSON=t.supermap_callbacks=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(5);
  100. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  101. * This program are made available under the terms of the Apache License, Version 2.0
  102. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  103. var s=t.supermap_callbacks={};a.default.Util.supermap_callbacks=s;var l=t.toGeoJSON=function(e){return e?(new o.GeoJSON).toGeoJSON(e):e},u=t.toSuperMapGeometry=function(e){if(!e)return e;var t,r=new o.GeoJSON;if(-1!=["FeatureCollection","Feature","Geometry"].indexOf(e.type))t=r.read(e,e.type);else if("function"==typeof e.toGeoJSON){var i=e.toGeoJSON();t=i?r.read(i,i.type):e}var n=t;return a.default.Util.isArray(t)&&(1===t.length?n=t[0]:t.length>1&&(n=[],t.map(function(e){return n.push(e.geometry),e}))),n&&n.geometry?n.geometry:n},c=t.getMeterPerMapUnit=function(e){var t;if(e===o.Unit.METER)t=1;else if(e===o.Unit.DEGREE)t=2*Math.PI*6378137/360;else if(e===o.Unit.KILOMETER)t=.001;else if(e===o.Unit.INCH)t=1/.025399999918;else{if(e!==o.Unit.FOOT)return t;t=.3048}return t},p=t.resolutionToScale=function(e,t,r){var i=e*t*(1/.0254)*c(r);return i=1/i},h=t.scaleToResolution=function(e,t,r){var i=e*t*(1/.0254)*c(r);return i=1/i},f=t.GetResolutionFromScaleDpi=function(e,t,r,i){return i=i||6378137,r=r||"",e>0&&t>0?(e=a.default.Util.NormalizeScale(e),"degree"===r.toLowerCase()||"degrees"===r.toLowerCase()||"dd"===r.toLowerCase()?254/t/e/(2*Math.PI*i/360)/1e4:254/t/e/1e4):-1},d=t.NormalizeScale=function(e){return e>1?1/e:e};a.default.Util.toGeoJSON=l,a.default.Util.toSuperMapGeometry=u,a.default.Util.resolutionToScale=p,a.default.Util.scaleToResolution=h,a.default.Util.getMeterPerMapUnit=c,a.default.Util.GetResolutionFromScaleDpi=f,a.default.Util.NormalizeScale=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Graph=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(30),o=r(72),s=r(27);
  104. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  105. * This program are made available under the terms of the Apache License, Version 2.0
  106. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  107. var l=t.Graph=function(e){function t(e,r,i,n,a,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i,n,a,o));return l.shapeFactory=new s.ShapeFactory,l.shapeParameters=null,l.RelativeCoordinate=!1,l.setting=null,l.origonPoint=null,l.chartBox=null,l.chartBounds=null,l.width=null,l.height=null,l.XOffset=0,l.YOffset=0,l.DVBParameter=null,l.dataViewBox=null,l.DVBCodomain=null,l.DVBCenterPoint=null,l.DVBUnitValue=null,l.DVBOrigonPoint=null,l.DVBWidth=null,l.DVBHeight=null,l.origonPointOffset=null,l.fields=i||[],l.dataValues=null,l.lonlat=a||l.data.geometry.getBounds().getCenterLonLat(),n&&n.width&&n.height&&n.codomain&&(l.setting=n),l.CLASS_NAME="SuperMap.Feature.Theme.Graph",l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Theme),i(t,[{key:"destroy",value:function(){this.shapeFactory=null,this.shapeParameters=null,this.width=null,this.height=null,this.origonPoint=null,this.chartBox=null,this.dataViewBox=null,this.chartBounds=null,this.DVBParameter=null,this.DVBOrigonPoint=null,this.DVBCenterPoint=null,this.DVBWidth=null,this.DVBHeight=null,this.DVBCodomain=null,this.DVBUnitValue=null,this.origonPointOffset=null,this.XOffset=null,this.YOffset=null,this.fields=null,this.dataValues=null,this.setting=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"initBaseParameter",value:function(){if(!this.setting)return!1;var e=this.setting;if(!(e.width&&e.height&&e.codomain))return!1;var t=void 0===e.decimalNumber||isNaN(e.decimalNumber)?-1:e.decimalNumber,r=o.Theme.getDataValues(this.data,this.fields,t);this.dataValues=r||[],this.width=parseFloat(e.width),this.height=parseFloat(e.height),this.DVBCodomain=e.codomain,this.XOffset=e.XOffset?e.XOffset:0,this.YOffset=e.YOffset?e.YOffset:0,this.origonPoint=[],this.chartBox=[],this.dataViewBox=[],this.DVBParameter=e.dataViewBoxParameter?e.dataViewBoxParameter:[0,0,0,0],this.DVBOrigonPoint=[],this.DVBCenterPoint=[],this.origonPointOffset=[],this.resetLocation();var i=this.width,n=this.height,a=this.location;this.origonPoint=[a[0]-i/2,a[1]-n/2];var s=this.origonPoint;this.chartBox=[s[0],s[1]+n,s[0]+i,s[1]];var l=this.chartBox,u=this.DVBParameter;this.dataViewBox=[l[0]+u[0],l[1]-u[1],l[2]-u[2],l[3]+u[3]];var c=this.dataViewBox;return!(c[0]>=c[2]||c[1]<=c[3])&&(this.DVBOrigonPoint=[c[0],c[3]],this.DVBWidth=Math.abs(c[2]-c[0]),this.DVBHeight=Math.abs(c[1]-c[3]),this.DVBCenterPoint=[this.DVBOrigonPoint[0]+this.DVBWidth/2,this.DVBOrigonPoint[1]+this.DVBHeight/2],this.origonPointOffset=[this.DVBOrigonPoint[0]-s[0],this.DVBOrigonPoint[1]-s[1]],!0)}},{key:"resetLocation",value:function(e){e&&(this.lonlat=e);var t=this.getLocalXY(this.lonlat);t[0]+=this.XOffset,t[1]+=this.YOffset,this.location=t;var r=this.width,i=this.height,n=this.location;return this.chartBounds=new a.Bounds(n[0]-r/2,n[1]+i/2,n[0]+r/2,n[1]-i/2),this.resetLinearGradient(),n}},{key:"resetLinearGradient",value:function(){}},{key:"shapesConvertToRelativeCoordinate",value:function(){for(var e=this.shapes,t=this.location,r=0,i=e.length;r<i;r++){e[r].refOriginalPosition=t;var n=e[r].style;for(var a in n)switch(a){case"pointList":for(var o=n[a],s=0,l=o.length;s<l;s++)o[s][0]-=t[0],o[s][1]-=t[1];break;case"x":n[a]-=t[0];break;case"y":n[a]-=t[1]}}this.RelativeCoordinate=!0}},{key:"assembleShapes",value:function(){}},{key:"getLocalXY",value:function(e){return this.layer.getLocalXY(e)}}]),t}();o.Theme.getDataValues=function(e,t,r){if(!e.attributes)return!1;for(var i=[],n=e.attributes,a=0;a<t.length;a++)for(var o in n)if(o===t[a])try{!isNaN(r)&&r>=0?i.push(parseFloat(n[o].toString()).toFixed(r)):i.push(parseFloat(n[o].toString()))}catch(e){throw new Error("not a number")}return i.length===t.length&&i},n.SuperMap.Feature.Theme.Graph=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}();
  108. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  109. * This program are made available under the terms of the Apache License, Version 2.0
  110. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  111. t.Util=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.BUILTIN_OBJECT={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1},this._ctx=null,this._canvas=null,this._pixelCtx=null,this._width=null,this._height=null,this._offsetX=0,this._offsetY=0,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Util"}return n(e,[{key:"clone",value:function(e){var t=this.BUILTIN_OBJECT;if("object"==(void 0===e?"undefined":i(e))&&null!==e){var r=e;if(e instanceof Array){r=[];for(var n=0,a=e.length;n<a;n++)r[n]=this.clone(e[n])}else if(!t[Object.prototype.toString.call(e)])for(var o in r={},e)e.hasOwnProperty(o)&&(r[o]=this.clone(e[o]));return r}return e}},{key:"mergeItem",value:function(e,t,r,n){var a=this.BUILTIN_OBJECT;t.hasOwnProperty(r)&&("object"!=i(e[r])||a[Object.prototype.toString.call(e[r])]?!n&&r in e||(e[r]=t[r]):this.merge(e[r],t[r],n))}},{key:"merge",value:function(e,t,r){for(var i in t)this.mergeItem(e,t,i,r);return e}},{key:"getContext",value:function(){return this._ctx||(this._ctx=document.createElement("canvas").getContext("2d")),this._ctx}},{key:"getPixelContext",value:function(){return this._pixelCtx||(this._canvas=document.createElement("canvas"),this._width=this._canvas.width,this._height=this._canvas.height,this._pixelCtx=this._canvas.getContext("2d")),this._pixelCtx}},{key:"adjustCanvasSize",value:function(e,t){var r,i=this._canvas,n=this._pixelCtx,a=this._width,o=this._height,s=this._offsetX,l=this._offsetY;e+s>a&&(a=e+s+100,i.width=a,r=!0),t+l>o&&(o=t+l+100,i.height=o,r=!0),e<-s&&(a+=s=100*Math.ceil(-e/100),i.width=a,r=!0),t<-l&&(o+=l=100*Math.ceil(-t/100),i.height=o,r=!0),r&&n.translate(s,l)}},{key:"getPixelOffset",value:function(){return{x:this._offsetX,y:this._offsetY}}},{key:"indexOf",value:function(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}},{key:"inherits",value:function(e,t){var r=e.prototype;function i(){}for(var n in i.prototype=t.prototype,e.prototype=new i,r)e.prototype[n]=r[n];e.constructor=e}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(30),o=r(29),s=r(1);
  112. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  113. * This program are made available under the terms of the Apache License, Version 2.0
  114. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  115. var l=t.Collection=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.components=[],r.componentTypes=null,null!=e&&r.addComponents(e),r.CLASS_NAME="SuperMap.Geometry.Collection",r.geometryType="Collection",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Geometry),i(t,[{key:"destroy",value:function(){this.components.length=0,this.components=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"clone",value:function(){for(var e=new t,r=0,i=this.components.length;r<i;r++)e.addComponent(this.components[r].clone());return s.Util.applyDefaults(e,this),e}},{key:"getComponentsString",value:function(){for(var e=[],t=0,r=this.components.length;t<r;t++)e.push(this.components[t].toShortString());return e.join(",")}},{key:"calculateBounds",value:function(){this.bounds=null;var e=new a.Bounds,t=this.components;if(t)for(var r=0,i=t.length;r<i;r++)e.extend(t[r].getBounds());null!=e.left&&null!=e.bottom&&null!=e.right&&null!=e.top&&this.setBounds(e)}},{key:"addComponents",value:function(e){s.Util.isArray(e)||(e=[e]);for(var t=0,r=e.length;t<r;t++)this.addComponent(e[t])}},{key:"addComponent",value:function(e,t){var r=!1;if(e&&(null==this.componentTypes||s.Util.indexOf(this.componentTypes,e.CLASS_NAME)>-1)){if(null!=t&&t<this.components.length){var i=this.components.slice(0,t),n=this.components.slice(t,this.components.length);i.push(e),this.components=i.concat(n)}else this.components.push(e);e.parent=this,this.clearBounds(),r=!0}return r}},{key:"removeComponents",value:function(e){var t=!1;s.Util.isArray(e)||(e=[e]);for(var r=e.length-1;r>=0;--r)t=this.removeComponent(e[r])||t;return t}},{key:"removeComponent",value:function(e){return s.Util.removeItem(this.components,e),this.clearBounds(),!0}},{key:"getArea",value:function(){for(var e=0,t=0,r=this.components.length;t<r;t++)e+=this.components[t].getArea();return e}},{key:"equals",value:function(e){var t=!0;if(e&&e.CLASS_NAME&&this.CLASS_NAME===e.CLASS_NAME)if(s.Util.isArray(e.components)&&e.components.length===this.components.length){for(var r=0,i=this.components.length;r<i;++r)if(!this.components[r].equals(e.components[r])){t=!1;break}}else t=!1;else t=!1;return t}},{key:"getVertices",value:function(e){for(var t=[],r=0,i=this.components.length;r<i;++r)Array.prototype.push.apply(t,this.components[r].getVertices(e));return t}}]),t}();n.SuperMap.Geometry.Collection=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TemplateBase=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0);
  116. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  117. * This program are made available under the terms of the Apache License, Version 2.0
  118. * which accompanies this distribution and is available at/r* http://www.apache.org/licenses/LICENSE-2.0.html.*/var a=t.TemplateBase=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.id=t.id?t.id:null,this.rootContainer=null}return i(e,[{key:"getElement",value:function(){return this.id&&(this.rootContainer.id=this.id),this.rootContainer}},{key:"_initView",value:function(){}},{key:"showView",value:function(){this.rootContainer.hidden=!1}},{key:"closeView",value:function(){this.rootContainer.hidden=!0}}]),e}();n.SuperMap.Widgets.TemplateBase=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InterpolationAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  119. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  120. * This program are made available under the terms of the Apache License, Version 2.0
  121. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(306);var o=t.InterpolationAnalystParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.bounds=null,this.searchRadius=0,this.zValueFieldName=null,this.zValueScale=1,this.resolution=null,this.filterQueryParameter=null,this.outputDatasetName=null,this.outputDatasourceName=null,this.pixelFormat=null,this.dataset=null,this.inputPoints=null,this.InterpolationAnalystType="dataset",this.clipParam=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.InterpolationAnalystParameters")}return i(e,[{key:"destroy",value:function(){var e=this;e.bounds=null,e.searchRadius=null,e.zValueFieldName=null,e.zValueScale=null,e.resolution=null,e.filterQueryParameter=null,e.outputDatasetName=null,e.pixelFormat=null}}],[{key:"toObject",value:function(e,t){for(var r in e)if("inputPoints"===r&&"geometry"===e.InterpolationAnalystType){for(var i=[],n=0;n<e.inputPoints.length;n++){var a=e.inputPoints[n],o={x:a.x,y:a.y,z:a.tag};i.push(o)}t[r]=i}else t[r]=e[r]}}]),e}();n.SuperMap.InterpolationAnalystParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerTextStyle=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(22);
  122. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  123. * This program are made available under the terms of the Apache License, Version 2.0
  124. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.ServerTextStyle=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.align=o.TextAlignment.BASELINECENTER,this.backColor=new s.ServerColor(255,255,255),this.foreColor=new s.ServerColor(0,0,0),this.backOpaque=!1,this.sizeFixed=!0,this.fontHeight=6,this.fontWidth=0,this.fontWeight=400,this.fontName="Times New Roman",this.bold=!1,this.italic=!1,this.italicAngle=0,this.shadow=!1,this.strikeout=!1,this.outline=!1,this.opaqueRate=0,this.underline=!1,this.rotation=0,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ServerTextStyle"}return i(e,[{key:"destroy",value:function(){var e=this;e.align=null,e.backColor&&(e.backColor.destroy(),e.backColor=null),e.foreColor&&(e.foreColor.destroy(),e.foreColor=null),e.backOpaque=null,e.sizeFixed=null,e.fontHeight=null,e.fontWidth=null,e.fontWeight=null,e.fontName=null,e.bold=null,e.italic=null,e.italicAngle=null,e.shadow=null,e.strikeout=null,e.outline=null,e.opaqueRate=null,e.underline=null,e.rotation=null}}],[{key:"fromObj",value:function(t){var r=new e(t);return a.Util.copy(r,t),r.backColor=s.ServerColor.fromJson(t.backColor),r.foreColor=s.ServerColor.fromJson(t.foreColor),r}}]),e}();n.SuperMap.ServerTextStyle=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransportationAnalystParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(303);
  125. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  126. * This program are made available under the terms of the Apache License, Version 2.0
  127. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.TransportationAnalystParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.barrierEdgeIDs=null,this.barrierNodeIDs=null,this.barrierPoints=null,this.weightFieldName=null,this.turnWeightField=null,this.resultSetting=new o.TransportationAnalystResultSetting,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.TransportationAnalystParameter")}return i(e,[{key:"destroy",value:function(){var e=this;if(e.barrierEdgeIDs=null,e.barrierNodeIDs=null,e.weightFieldName=null,e.turnWeightField=null,e.resultSetting&&(e.resultSetting.destroy(),e.resultSetting=null),e.barrierPoints&&e.barrierPoints.length)for(var t in e.barrierPoints)e.barrierPoints[t].destroy();e.barrierPoints=null}}]),e}();n.SuperMap.TransportationAnalystParameter=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  128. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  129. * This program are made available under the terms of the Apache License, Version 2.0
  130. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(16);var o=r(4);var s=t.QueryParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.customParams=null,this.prjCoordSys=null,this.expectCount=1e5,this.networkType=o.GeometryType.LINE,this.queryOption=o.QueryOption.ATTRIBUTEANDGEOMETRY,this.queryParams=null,this.startRecord=0,this.holdTime=10,this.returnCustomResult=!1,this.returnFeatureWithFieldCaption=!1,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.QueryParameters")}return i(e,[{key:"destroy",value:function(){var e=this;if(e.customParams=null,e.expectCount=null,e.networkType=null,e.queryOption=null,e.queryParams){for(var t=0,r=e.queryParams,i=r.length;t<i;t++)r[t].destroy();e.queryParams=null}e.startRecord=null,e.holdTime=null,e.returnCustomResult=null,e.prjCoordSys=null}}]),e}();n.SuperMap.QueryParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecurityManager=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(17);
  131. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  132. * This program are made available under the terms of the Apache License, Version 2.0
  133. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.SecurityManager=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return i(e,null,[{key:"generateToken",value:function(e,t){var r=this.servers[e];if(r)return o.FetchRequest.post(r.tokenServiceUrl,JSON.stringify(t.toJSON())).then(function(e){return e.text()})}},{key:"registerServers",value:function(e){this.servers=this.servers||{},a.Util.isArray(e)||(e=[e]);for(var t=0;t<e.length;t++){var r=e[t];this.servers[r.server]=r}}},{key:"registerToken",value:function(e,t){if(this.tokens=this.tokens||{},e&&t){var r=this._getTokenStorageKey(e);this.tokens[r]=t}}},{key:"registerKey",value:function(e,t){if(this.keys=this.keys||{},e&&!(e.length<1)&&t){e=a.Util.isArray(e)?e:[e];for(var r=0;r<e.length;r++){var i=this._getUrlRestString(e[0])||e[0];this.keys[i]=t}}}},{key:"getServerInfo",value:function(e){return this.servers=this.servers||{},this.servers[e]}},{key:"getToken",value:function(e){if(e){this.tokens=this.tokens||{};var t=this._getTokenStorageKey(e);return this.tokens[t]}}},{key:"getKey",value:function(e){this.keys=this.keys||{};var t=this._getUrlRestString(e)||e;return this.keys[t]}},{key:"loginiServer",value:function(e,t,r,i){e+="/"===e.substr(e.length-1,1)?"services/security/login.json":"/services/security/login.json";var n={username:t&&t.toString(),password:r&&r.toString(),rememberme:i};n=JSON.stringify(n);return o.FetchRequest.post(e,n,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}).then(function(e){return e.json()})}},{key:"logoutiServer",value:function(e){e+="/"===e.substr(e.length-1,1)?"services/security/logout":"/services/security/logout";return o.FetchRequest.get(e,"",{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withoutFormatSuffix:!0}).then(function(){return!0}).catch(function(){return!1})}},{key:"loginOnline",value:function(t,r){var i=e.SSO+"/login?service="+t;this._open(i,r)}},{key:"loginiPortal",value:function(e,t,r){e+="/"===e.substr(e.length-1,1)?"web/login.json":"/web/login.json";var i={username:t&&t.toString(),password:r&&r.toString()};i=JSON.stringify(i);return o.FetchRequest.post(e,i,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0}).then(function(e){return e.json()})}},{key:"logoutiPortal",value:function(e){e+="/"===e.substr(e.length-1,1)?"services/security/logout":"/services/security/logout";return o.FetchRequest.get(e,"",{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0,withoutFormatSuffix:!0}).then(function(){return!0}).catch(function(){return!1})}},{key:"loginManager",value:function(e,t,r){if(a.Util.isInTheSameDomain(e)){var i="/"===e.substr(e.length-1,1)?e+"icloud/security/tokens.json":e+"/icloud/security/tokens.json",n=t||{},s={username:n.userName&&n.userName.toString(),password:n.password&&n.password.toString()};s=JSON.stringify(s);var l=this;return o.FetchRequest.post(i,s,{headers:{Accept:"*/*","Content-Type":"application/json"}}).then(function(e){e.text().then(function(e){return l.imanagerToken=e,e})})}var u=!r||r.isNewTab;this._open(e,u)}},{key:"destroyAllCredentials",value:function(){this.keys=null,this.tokens=null,this.servers=null}},{key:"destroyToken",value:function(e){if(e){var t=this._getTokenStorageKey(e);this.tokens=this.tokens||{},this.tokens[t]&&delete this.tokens[t]}}},{key:"destroyKey",value:function(e){if(e){this.keys=this.keys||{};var t=this._getUrlRestString(e)||e;this.keys[t]&&delete this.keys[t]}}},{key:"_open",value:function(e,t){t=null==t||t;var r=window.screen.availWidth/2-this.INNER_WINDOW_WIDTH/2,i=window.screen.availHeight/2-this.INNER_WINDOW_HEIGHT/2,n="height="+this.INNER_WINDOW_HEIGHT+", width="+this.INNER_WINDOW_WIDTH+",top="+i+", left="+r+",toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no";t?window.open(e,"login"):window.open(e,"login",n)}},{key:"_getTokenStorageKey",value:function(e){var t=e.match(/(.*?):\/\/([^\/]+)/i);return t?t[0]:e}},{key:"_getUrlRestString",value:function(e){if(!e)return e;var t=e.match(/http:\/\/(.*\/rest)/i);return t?t[0]:e}}]),e}();s.INNER_WINDOW_WIDTH=600,s.INNER_WINDOW_HEIGHT=600,s.SSO="https://sso.supermap.com",s.ONLINE="http://www.supermapol.com",n.SuperMap.SecurityManager=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinearRing=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(23);
  134. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  135. * This program are made available under the terms of the Apache License, Version 2.0
  136. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  137. var s=t.LinearRing=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.componentTypes=["SuperMap.Geometry.Point"],r.CLASS_NAME="SuperMap.Geometry.LinearRing",r.geometryType="LinearRing",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.LineString),i(t,[{key:"addComponent",value:function(e,r){var i=!1,a=this.components.pop();null==r&&e.equals(a)||(i=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addComponent",this).apply(this,arguments));var o=this.components[0];return n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addComponent",this).apply(this,[o]),i}},{key:"removeComponent",value:function(e){var r=this.components&&this.components.length>3;if(r){this.components.pop(),n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeComponent",this).apply(this,arguments);var i=this.components[0];n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addComponent",this).apply(this,[i])}return r}},{key:"getArea",value:function(){var e=0;if(this.components&&this.components.length>2){for(var t=0,r=0,i=this.components.length;r<i-1;r++){var n=this.components[r],a=this.components[r+1];t+=(n.x+a.x)*(a.y-n.y)}e=-t/2}return e}},{key:"getVertices",value:function(e){return!0===e?[]:this.components.slice(0,this.components.length-1)}}]),t}();a.SuperMap.Geometry.LinearRing=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.widgetsViewBase=t.WidgetsViewBase=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);
  138. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  139. * This program are made available under the terms of the Apache License, Version 2.0
  140. * which accompanies this distribution and is available at/r* http://www.apache.org/licenses/LICENSE-2.0.html.*/
  141. var o=t.WidgetsViewBase=a.default.Control.extend({options:{position:"topright",style:function(e,t){return t?a.default.circleMarker(t,{fillColor:"blue",weight:1,opacity:1,color:"blue",fillOpacity:.6}):{fillColor:"blue",weight:1,opacity:1,color:"blue",fillOpacity:.6}},onEachFeature:null},initialize:function(e){a.default.setOptions(this,e),this._event=new a.default.Evented,this.rootContainer=null},onAdd:function(e){return this.map=e,this.rootContainer=this._initView(),this.rootContainer},on:function(e,t){this._event.on(e,t)},off:function(e,t){this._event.off(e,t)},_initView:function(){},_preventMapEvent:function(e,t){e&&t&&(e.addEventListener("mouseover",function(){t.dragging.disable(),t.scrollWheelZoom.disable(),t.doubleClickZoom.disable()}),e.addEventListener("mouseout",function(){t.dragging.enable(),t.scrollWheelZoom.enable(),t.doubleClickZoom.enable()}))}}),s=t.widgetsViewBase=function(e){return new o(e)};a.default.supermap.widgets.widgetsViewBase=s},function(e,t,r){"use strict";e.exports=function(e){return Math.abs(e)>1&&(e=e>1?1:-1),Math.asin(e)}},function(e,t,r){"use strict";e.exports=function(e,t,r){var i=e*t;return r/Math.sqrt(1-i*i)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetFeaturesServiceBase=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(6),l=r(18);
  142. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  143. * This program are made available under the terms of the Apache License, Version 2.0
  144. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  145. var u=t.GetFeaturesServiceBase=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));r=r||{},i.returnContent=!0,i.fromIndex=0,i.toIndex=19,i.maxFeatures=null,i.format=o.DataFormat.GEOJSON,a.Util.extend(i,r);var n,s=i;return r.format&&(s.format=r.format.toUpperCase()),n=s.url.substr(s.url.length-1,1),s.url+="/"==n?"featureResults.json?":"/featureResults.json?",i.CLASS_NAME="SuperMap.GetFeaturesServiceBase",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;e.returnContent=null,e.fromIndex=null,e.toIndex=null,e.maxFeatures=null,e.format=null}},{key:"processAsync",value:function(e){if(e){var t,r=this,i=!0;r.returnContent=e.returnContent,r.fromIndex=e.fromIndex,r.toIndex=e.toIndex,r.maxFeatures=e.maxFeatures,r.returnContent&&(r.url+="returnContent="+r.returnContent,i=!1),null!=r.fromIndex&&null!=r.toIndex&&!isNaN(r.fromIndex)&&!isNaN(r.toIndex)&&r.fromIndex>=0&&r.toIndex>=0&&!i&&(r.url+="&fromIndex="+r.fromIndex+"&toIndex="+r.toIndex),e.returnCountOnly&&(r.url+="&returnCountOnly="+e.returnContent),t=r.getJsonParameters(e),r.request({method:"POST",data:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"serviceProcessCompleted",value:function(e){if(e=a.Util.transformResult(e),this.format===o.DataFormat.GEOJSON&&e.features){var t=new l.GeoJSON;e.features=t.toGeoJSON(e.features)}this.events.triggerEvent("processCompleted",{result:e})}}]),t}();n.SuperMap.GetFeaturesServiceBase=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetFeaturesParametersBase=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  146. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  147. * This program are made available under the terms of the Apache License, Version 2.0
  148. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.GetFeaturesParametersBase=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.datasetNames=null,this.returnContent=!0,this.fromIndex=0,this.toIndex=19,this.returnCountOnly=!1,this.maxFeatures=null,this.aggregations=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.GetFeaturesParametersBase"}return i(e,[{key:"destroy",value:function(){var e=this;e.datasetNames=null,e.returnContent=null,e.fromIndex=null,e.toIndex=null,e.maxFeatures=null,e.aggregation&&(e.aggregation=null)}}]),e}();n.SuperMap.GetFeaturesParametersBase=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FacilityAnalyst3DParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  149. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  150. * This program are made available under the terms of the Apache License, Version 2.0
  151. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.FacilityAnalyst3DParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.edgeID=null,this.nodeID=null,this.weightName=null,this.isUncertainDirectionValid=!1,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.FacilityAnalyst3DParameters"}return i(e,[{key:"destroy",value:function(){this.edgeID=null,this.nodeID=null,this.weightName=null,this.isUncertainDirectionValid=null}}]),e}();n.SuperMap.FacilityAnalyst3DParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Events=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=r(0),o=r(93),s=r(328),l=r(67),u=r(1);var c=t.Events=function(){function e(t,r,i,n,a){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.BROWSER_EVENTS=["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur","touchstart","touchmove","touchend","keydown","MSPointerDown","MSPointerUp","pointerdown","pointerup","MSGestureStart","MSGestureChange","MSGestureEnd","contextmenu"],this.listeners={},this.object=t,this.element=null,this.eventTypes=[],this.eventHandler=null,this.fallThrough=n,this.includeXY=!1,this.extensions={},this.extensionCount={},this.clearMouseListener=null,u.Util.extend(this,a),null!=i)for(var o=0,s=i.length;o<s;o++)this.addEventType(i[o]);null!=r&&this.attachToElement(r),this.CLASS_NAME="SuperMap.Events"}return n(e,[{key:"destroy",value:function(){for(var e in this.extensions)"boolean"!=typeof this.extensions[e]&&this.extensions[e].destroy();this.extensions=null,this.element&&(s.Event.stopObservingElement(this.element),this.element.hasScrollEvent&&s.Event.stopObserving(window,"scroll",this.clearMouseListener)),this.element=null,this.listeners=null,this.object=null,this.eventTypes=null,this.fallThrough=null,this.eventHandler=null}},{key:"addEventType",value:function(e){this.listeners[e]||(this.eventTypes.push(e),this.listeners[e]=[])}},{key:"attachToElement",value:function(e){this.element?s.Event.stopObservingElement(this.element):(this.eventHandler=l.FunctionExt.bindAsEventListener(this.handleBrowserEvent,this),this.clearMouseListener=l.FunctionExt.bind(this.clearMouseCache,this)),this.element=e;for(var t=0,r=this.BROWSER_EVENTS.length;t<r;t++){var i=this.BROWSER_EVENTS[t];this.addEventType(i),s.Event.observe(e,i,this.eventHandler)}s.Event.observe(e,"dragstart",s.Event.stop)}},{key:"on",value:function(e){for(var t in e)"scope"!==t&&e.hasOwnProperty(t)&&this.register(t,e.scope,e[t])}},{key:"register",value:function(t,r,n,a){if(t in e&&!this.extensions[t]&&(this.extensions[t]=new e[t](this)),null!=n&&-1!==u.Util.indexOf(this.eventTypes,t)){null==r&&(r=this.object);var o=this.listeners[t];o||(o=[],this.listeners[t]=o,this.extensionCount[t]=0);var s={obj:r,func:n};a?(o.splice(this.extensionCount[t],0,s),"object"===(void 0===a?"undefined":i(a))&&a.extension&&this.extensionCount[t]++):o.push(s)}}},{key:"registerPriority",value:function(e,t,r){this.register(e,t,r,!0)}},{key:"un",value:function(e){for(var t in e)"scope"!==t&&e.hasOwnProperty(t)&&this.unregister(t,e.scope,e[t])}},{key:"unregister",value:function(e,t,r){null==t&&(t=this.object);var i=this.listeners[e];if(null!=i)for(var n=0,a=i.length;n<a;n++)if(i[n].obj===t&&i[n].func===r){i.splice(n,1);break}}},{key:"remove",value:function(e){null!=this.listeners[e]&&(this.listeners[e]=[])}},{key:"triggerEvent",value:function(e,t){var r=this.listeners[e];if(r&&0!=r.length){var i;null==t&&(t={}),t.object=this.object,t.element=this.element,t.type||(t.type=e);for(var n=0,a=(r=r.slice()).length;n<a;n++){var o=r[n];if(void 0!=(i=o.func.apply(o.obj,[t]))&&0==i)break}return this.fallThrough||s.Event.stop(t,!0),i}}},{key:"handleBrowserEvent",value:function(e){var t=e.type,r=this.listeners[t];if(r&&0!=r.length){var i=e.touches;if(i&&i[0]){for(var n,a=0,o=0,s=i.length,l=0;l<s;++l)a+=(n=i[l]).clientX,o+=n.clientY;e.clientX=a/s,e.clientY=o/s}this.includeXY&&(e.xy=this.getMousePosition(e)),this.triggerEvent(t,e)}}},{key:"clearMouseCache",value:function(){this.element.scrolls=null,this.element.lefttop=null;var e=document.body;e&&(0==e.scrollTop&&0==e.scrollLeft||!navigator.userAgent.match(/iPhone/i))&&(this.element.offsets=null)}},{key:"getMousePosition",value:function(e){if(this.includeXY?this.element.hasScrollEvent||(s.Event.observe(window,"scroll",this.clearMouseListener),this.element.hasScrollEvent=!0):this.clearMouseCache(),!this.element.scrolls){var t=u.Util.getViewportElement();this.element.scrolls=[t.scrollLeft,t.scrollTop]}return this.element.lefttop||(this.element.lefttop=[document.documentElement.clientLeft||0,document.documentElement.clientTop||0]),this.element.offsets||(this.element.offsets=u.Util.pagePosition(this.element)),new o.Pixel(e.clientX+this.element.scrolls[0]-this.element.offsets[0]-this.element.lefttop[0],e.clientY+this.element.scrolls[1]-this.element.offsets[1]-this.element.lefttop[1])}}]),e}();a.SuperMap.Events=c,a.SuperMap.Events.prototype.BROWSER_EVENTS=["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur","touchstart","touchmove","touchend","keydown","MSPointerDown","MSPointerUp","pointerdown","pointerup","MSGestureStart","MSGestureChange","MSGestureEnd","contextmenu"]},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiPoint=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(34);
  152. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  153. * This program are made available under the terms of the Apache License, Version 2.0
  154. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  155. var o=t.MultiPoint=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.componentTypes=["SuperMap.Geometry.Point"],r.CLASS_NAME="SuperMap.Geometry.MultiPoint",r.geometryType="MultiPoint",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Collection),i(t,[{key:"addPoint",value:function(e,t){this.addComponent(e,t)}},{key:"removePoint",value:function(e){this.removeComponent(e)}}]),t}();n.SuperMap.Geometry.MultiPoint=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LonLat=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(1);
  156. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  157. * This program are made available under the terms of the Apache License, Version 2.0
  158. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.LonLat=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.Util.isArray(t)&&(r=t[1],t=t[0]),this.lon=t?n.Util.toFloat(t):0,this.lat=r?n.Util.toFloat(r):0,this.CLASS_NAME="SuperMap.LonLat"}return i(e,[{key:"toString",value:function(){return"lon="+this.lon+",lat="+this.lat}},{key:"toShortString",value:function(){return this.lon+","+this.lat}},{key:"clone",value:function(){return new e(this.lon,this.lat)}},{key:"add",value:function(t,r){if(null==t||null==r)throw new TypeError("LonLat.add cannot receive null values");return new e(this.lon+n.Util.toFloat(t),this.lat+n.Util.toFloat(r))}},{key:"equals",value:function(e){var t=!1;return null!=e&&(t=this.lon===e.lon&&this.lat===e.lat||isNaN(this.lon)&&isNaN(this.lat)&&isNaN(e.lon)&&isNaN(e.lat)),t}},{key:"wrapDateLine",value:function(e){var t=this.clone();if(e){for(;t.lon<e.left;)t.lon+=e.getWidth();for(;t.lon>e.right;)t.lon-=e.getWidth()}return t}},{key:"destroy",value:function(){this.lon=null,this.lat=null}}],[{key:"fromString",value:function(t){var r=t.split(",");return new e(r[0],r[1])}},{key:"fromArray",value:function(t){var r=n.Util.isArray(t);return new e(r&&t[0],r&&t[1])}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Symbolizer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};t.Symbolizer=a.default.Class.extend({initialize:function(e){this.properties=e.properties,this.type=e.type,this.layerName=e.layerName},render:function(e,t){this._renderer=e,this._container=e._container,this.options=t,e._initPath(this),e._updateStyle(this);var r=this.getElement();r&&this.layerName&&a.default.DomUtil.addClass(r,this.layerName)},updateStyle:function(e,t){this.options=t,e._updateStyle(this)},getElement:function(){return this._path||this._renderer._container},_getPixelBounds:function(){for(var e=this._parts,t=a.default.bounds([]),r=0;r<e.length;r++)for(var i=e[r],n=0;n<i.length;n++)t.extend(i[n]);var o=this._clickTolerance(),s=new a.default.Point(o,o);return t.min._subtract(s),t.max._add(s),t},_clickTolerance:a.default.Path.prototype._clickTolerance});
  159. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  160. * This program are made available under the terms of the Apache License, Version 2.0
  161. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
  162. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  163. * This program are made available under the terms of the Apache License, Version 2.0
  164. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  165. t.VectorFeatureType={LABEL:"LABEL",TEXT:"TEXT",POINT:"POINT",LINE:"LINE",REGION:"REGION"}},function(e,t,r){"use strict";var i=Math.PI/2,n=r(59);e.exports=function(e){return Math.abs(e)<i?e:e-n(e)*Math.PI}},function(e,t,r){"use strict";e.exports=function(e,t,r,i,n){return e*n-t*Math.sin(2*n)+r*Math.sin(4*n)-i*Math.sin(6*n)}},function(e,t,r){"use strict";e.exports=function(e){return e*e*e*(35/3072)}},function(e,t,r){"use strict";e.exports=function(e){return.05859375*e*e*(1+.75*e)}},function(e,t,r){"use strict";e.exports=function(e){return.375*e*(1+.25*e*(1+.46875*e))}},function(e,t,r){"use strict";e.exports=function(e){return 1-.25*e*(1+e/16*(3+1.25*e))}},function(e,t,r){"use strict";e.exports=function(e){return e<0?-1:1}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}();
  166. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  167. * This program are made available under the terms of the Apache License, Version 2.0
  168. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  169. t.Eventful=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._handlers={},this.CLASS_NAME="SuperMap.LevelRenderer.Eventful"}return i(e,[{key:"destroy",value:function(){this._handlers=null}},{key:"one",value:function(e,t,r){var i=this._handlers;return t&&e?(i[e]||(i[e]=[]),i[e].push({h:t,one:!0,ctx:r||this}),this):this}},{key:"bind",value:function(e,t,r){var i=this._handlers;return t&&e?(i[e]||(i[e]=[]),i[e].push({h:t,one:!1,ctx:r||this}),this):this}},{key:"unbind",value:function(e,t){var r=this._handlers;if(!e)return this._handlers={},this;if(t){if(r[e]){for(var i=[],n=0,a=r[e].length;n<a;n++)r[e][n].h!=t&&i.push(r[e][n]);r[e]=i}r[e]&&0===r[e].length&&delete r[e]}else delete r[e];return this}},{key:"dispatch",value:function(e){if(this._handlers[e]){var t=arguments,r=t.length;r>3&&(t=Array.prototype.slice.call(t,1));for(var i=this._handlers[e],n=i.length,a=0;a<n;){switch(r){case 1:i[a].h.call(i[a].ctx);break;case 2:i[a].h.call(i[a].ctx,t[1]);break;case 3:i[a].h.call(i[a].ctx,t[1],t[2]);break;default:i[a].h.apply(i[a].ctx,t)}i[a].one?(i.splice(a,1),n--):a++}}return this}},{key:"dispatchWithContext",value:function(e){if(this._handlers[e]){var t=arguments,r=t.length;r>4&&(t=Array.prototype.slice.call(t,1,t.length-1));for(var i=t[t.length-1],n=this._handlers[e],a=n.length,o=0;o<a;){switch(r){case 1:n[o].h.call(i);break;case 2:n[o].h.call(i,t[1]);break;case 3:n[o].h.call(i,t[1],t[2]);break;default:n[o].h.apply(i,t)}n[o].one?(n.splice(o,1),a--):o++}}return this}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(6),s=r(39),l=r(18),u=r(4);function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}
  170. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  171. * This program are made available under the terms of the Apache License, Version 2.0
  172. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  173. var p=t.QueryService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));i.returnContent=!1,i.format=u.DataFormat.GEOJSON,i.returnFeatureWithFieldCaption=!1,r&&a.Util.extend(i,r),i.CLASS_NAME="SuperMap.QueryService";var n,o=i;return o.url?(r&&r.format&&(o.format=r.format.toUpperCase()),n=o.url.substr(o.url.length-1,1),o.url+="/"===n?"queryResults.json?":"/queryResults.json?",i):c(i)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.returnContent=null,this.format=null}},{key:"processAsync",value:function(e){if(e instanceof s.QueryParameters){var t,r=this,i=null;r.returnContent=e.returnContent,t=r.getJsonParameters(e),r.returnContent?r.url+="returnContent="+r.returnContent:(i=e.returnCustomResult)&&(r.url+="returnCustomResult="+i),r.returnFeatureWithFieldCaption=e.returnFeatureWithFieldCaption,r.request({method:"POST",data:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"serviceProcessCompleted",value:function(e){e=a.Util.transformResult(e);var t=new l.GeoJSON;if(e&&e.recordsets)for(var r=0,i=e.recordsets,n=i.length;r<n;r++)i[r].features&&(!0===this.returnFeatureWithFieldCaption&&i[r].features.map(function(e){return e.fieldNames=i[r].fieldCaptions,e}),this.format===u.DataFormat.GEOJSON&&(i[r].features=t.toGeoJSON(i[r].features)));this.events.triggerEvent("processCompleted",{result:e})}},{key:"getQueryParameters",value:function(e){return new s.QueryParameters({customParams:e.customParams,expectCount:e.expectCount,networkType:e.networkType,queryOption:e.queryOption,queryParams:e.queryParams,startRecord:e.startRecord,prjCoordSys:e.prjCoordSys,holdTime:e.holdTime})}}]),t}();n.SuperMap.QueryService=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UGCSubLayer=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(1),s=r(259),l=r(89),u=r(302);r(4);
  174. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  175. * This program are made available under the terms of the Apache License, Version 2.0
  176. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  177. var c=t.UGCSubLayer=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{};var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.datasetInfo=null,r.displayFilter=null,r.joinItems=null,r.representationField=null,r.ugcLayerType=null,r.CLASS_NAME="SuperMap.UGCSubLayer",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.UGCMapLayer),i(t,[{key:"fromJson",value:function(e){if(n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"fromJson",this).call(this,e),this.datasetInfo&&(this.datasetInfo=new u.DatasetInfo(this.datasetInfo)),this.joinItems&&this.joinItems.length){for(var r=[],i=0;i<this.joinItems.length;i++)r[i]=new l.JoinItem(this.joinItems[i]);this.joinItems=r}}},{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),o.Util.reset(this)}},{key:"toServerJSONObject",value:function(){var e=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toServerJSONObject",this).call(this);if(e.joinItems){for(var r=[],i=0;i<e.joinItems.length;i++)e.joinItems[i].toServerJSONObject&&(r[i]=e.joinItems[i].toServerJSONObject());e.joinItems=r}return e.datasetInfo&&e.datasetInfo.toServerJSONObject&&(e.datasetInfo=e.datasetInfo.toServerJSONObject()),e}}]),t}();a.SuperMap.UGCSubLayer=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataReturnOption=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4);
  178. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  179. * This program are made available under the terms of the Apache License, Version 2.0
  180. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.DataReturnOption=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.expectCount=1e3,this.dataset=null,this.dataReturnMode=o.DataReturnMode.RECORDSET_ONLY,this.deleteExistResultDataset=!0,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.DataReturnOption"}return i(e,[{key:"destroy",value:function(){this.expectCount=null,this.dataset=null,this.dataReturnMode=null,this.deleteExistResultDataset=null}}]),e}();n.SuperMap.DataReturnOption=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Polygon=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(34);r(24),r(23),r(41);
  181. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  182. * This program are made available under the terms of the Apache License, Version 2.0
  183. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  184. var o=t.Polygon=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.componentTypes=["SuperMap.Geometry.LinearRing"],r.CLASS_NAME="SuperMap.Geometry.Polygon",r.geometryType="Polygon",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Collection),i(t,[{key:"getArea",value:function(){var e=0;if(this.components&&this.components.length>0){e+=Math.abs(this.components[0].getArea());for(var t=1,r=this.components.length;t<r;t++)e-=Math.abs(this.components[t].getArea())}return e}}]),t}();n.SuperMap.Geometry.Polygon=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiPolygon=void 0;var i=r(0),n=r(34);
  185. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  186. * This program are made available under the terms of the Apache License, Version 2.0
  187. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  188. var a=t.MultiPolygon=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.componentTypes=["SuperMap.Geometry.Polygon"],r.CLASS_NAME="SuperMap.Geometry.MultiPolygon",r.geometryType="MultiPolygon",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Collection),t}();i.SuperMap.Geometry.MultiPolygon=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MultiLineString=void 0;var i=r(0),n=r(34);r(23);
  189. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  190. * This program are made available under the terms of the Apache License, Version 2.0
  191. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  192. var a=t.MultiLineString=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.componentTypes=["SuperMap.Geometry.LineString"],r.CLASS_NAME="SuperMap.Geometry.MultiLineString",r.geometryType="MultiLineString",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Collection),t}();i.SuperMap.Geometry.MultiLineString=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayExt=t.FunctionExt=t.NumberExt=t.StringExt=void 0;var i=r(0);
  193. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  194. * This program are made available under the terms of the Apache License, Version 2.0
  195. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  196. i.SuperMap.inherit=function(e,t){var r,n,a,o=function(){};for(o.prototype=t.prototype,e.prototype=new o,r=2,n=arguments.length;r<n;r++)"function"==typeof(a=arguments[r])&&(a=a.prototype),i.SuperMap.Util.extend(e.prototype,a)},i.SuperMap.mixin=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];for(var i=function e(r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);for(var i=0;i<t.length;i++)o(this,new t[i](r))},n=0;n<t.length;n++){var a=t[n];o(i,a),o(i.prototype,a.prototype),o(i.prototype,new a)}return i;function o(e,t){var r=Object.getOwnPropertyNames(t);Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(t)));for(var i=0;i<r.length;i++){var n=r[i];if("constructor"!==n&&"prototype"!==n&&"name"!==n&&"length"!==n){var a=Object.getOwnPropertyDescriptor(t,n);window.ActiveXObject?Object.defineProperty(e,n,a||{}):Object.defineProperty(e,n,a)}}}};t.StringExt=i.SuperMap.String={startsWith:function(e,t){return 0==e.indexOf(t)},contains:function(e,t){return-1!=e.indexOf(t)},trim:function(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")},camelize:function(e){for(var t=e.split("-"),r=t[0],i=1,n=t.length;i<n;i++){var a=t[i];r+=a.charAt(0).toUpperCase()+a.substring(1)}return r},format:function(e,t,r){t||(t=window);return e.replace(i.SuperMap.String.tokenRegEx,function(e,i){for(var n,a=i.split(/\.+/),o=0;o<a.length;o++)0==o&&(n=t),n=n[a[o]];return"function"==typeof n&&(n=r?n.apply(null,r):n()),void 0===n?"undefined":n})},tokenRegEx:/\$\{([\w.]+?)\}/g,numberRegEx:/^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/,isNumeric:function(e){return i.SuperMap.String.numberRegEx.test(e)},numericIf:function(e){return i.SuperMap.String.isNumeric(e)?parseFloat(e):e}};var n=t.NumberExt=i.SuperMap.Number={decimalSeparator:".",thousandsSeparator:",",limitSigDigs:function(e,t){var r=0;return t>0&&(r=parseFloat(e.toPrecision(t))),r},format:function(e,t,r,n){t=void 0!==t?t:0,r=void 0!==r?r:i.SuperMap.Number.thousandsSeparator,n=void 0!==n?n:i.SuperMap.Number.decimalSeparator,null!=t&&(e=parseFloat(e.toFixed(t)));var a=e.toString().split(".");1===a.length&&null==t&&(t=0);var o,s=a[0];if(r)for(var l=/(-?[0-9]+)([0-9]{3})/;l.test(s);)s=s.replace(l,"$1"+r+"$2");if(0==t)o=s;else{var u=a.length>1?a[1]:"0";null!=t&&(u+=new Array(t-u.length+1).join("0")),o=s+n+u}return o}};Number.prototype.limitSigDigs||(Number.prototype.limitSigDigs=function(e){return n.limitSigDigs(this,e)});t.FunctionExt=i.SuperMap.Function={bind:function(e,t){var r=Array.prototype.slice.apply(arguments,[2]);return function(){var i=r.concat(Array.prototype.slice.apply(arguments,[0]));return e.apply(t,i)}},bindAsEventListener:function(e,t){return function(r){return e.call(t,r||window.event)}},False:function(){return!1},True:function(){return!0},Void:function(){}},t.ArrayExt=i.SuperMap.Array={filter:function(e,t,r){var i=[];if(Array.prototype.filter)i=e.filter(t,r);else{var n=e.length;if("function"!=typeof t)throw new TypeError;for(var a=0;a<n;a++)if(a in e){var o=e[a];t.call(r,o,a,e)&&i.push(o)}}return i}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeoFeatureThemeLayer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(5),s=r(101),l=r(25);
  197. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  198. * This program are made available under the terms of the Apache License, Version 2.0
  199. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  200. t.GeoFeatureThemeLayer=s.ThemeLayer.extend({options:{nodesClipPixel:2,isHoverAble:!1,isMultiHover:!1,isClickAble:!0,isAllowFeatureStyle:!1},initialize:function(e,t){s.ThemeLayer.prototype.initialize.call(this,e,t),a.default.Util.setOptions(this,t);this.cache={},this.cacheFields=[],this.style={},this.highlightStyle={}},addFeatures:function(e){var t=this;t.fire("beforefeaturesadded",{features:e}),this.features=this.toiClientFeature(e),t.isCustomSetMaxCacheCount||(t.maxCacheCount=5*t.features.length),t.renderer&&(t._map?t.redrawThematicFeatures(t._map.getBounds()):t.redrawThematicFeatures())},removeFeatures:function(e){this.clearCache(),s.ThemeLayer.prototype.removeFeatures.call(this,arguments)},removeAllFeatures:function(){this.clearCache(),s.ThemeLayer.prototype.removeAllFeatures.call(this,arguments)},redrawThematicFeatures:function(e){var t=this,r=t.renderer.getHoverOne(),i=null;if(r&&r.refDataID&&(i=r.refDataID),this.options.alwaysMapCRS&&e&&e instanceof a.default.LatLngBounds){var n=this._map.options.crs;e=a.default.bounds(n.project(e.getSouthWest()),n.project(e.getNorthEast()))}e=l.CommontypesConversion.toSuperMapBounds(e),t.renderer.clearAll();for(var o=t.features,s=t.cache,u=t.cacheFields,c=t._map.getZoom(),p=t.maxCacheCount,h=0,f=o.length;h<f;h++){var d=o[h],y=d.geometry.getBounds();if(!e||e.intersectsBounds(y)){var v=d.id+"_zoom_"+c.toString();if(s[v])s[v].updateAndAddShapes();else{var m=t.createThematicFeature(o[h]);if(!(m.getShapesCount()<1)&&(s[v]=m,u.push(v),u.length>p)){var g=u[0];u.splice(0,1),delete s[g]}}}}if(t.renderer.render(),i&&t.options.isHoverAble&&t.options.isMultiHover){var b=this.getShapesByFeatureID(i);this.renderer.updateHoverShapes(b)}},createThematicFeature:function(e){var t=this,r=t.getStyleByData(e);e.style&&t.isAllowFeatureStyle&&(r=o.CommonUtil.copyAttributesWithClip(e.style));var i={};i.nodesClipPixel=t.options.nodesClipPixel,i.isHoverAble=t.options.isHoverAble,i.isMultiHover=t.options.isMultiHover,i.isClickAble=t.options.isClickAble,i.highlightStyle=o.ShapeFactory.transformStyle(t.highlightStyle);for(var n=new o.ThemeVector(e,t,o.ShapeFactory.transformStyle(r),i),a=0;a<n.shapes.length;a++)t.renderer.addShape(n.shapes[a]);return n},redraw:function(){return this.clearCache(),s.ThemeLayer.prototype.redraw.apply(this,arguments)},clearCache:function(){this.cache={},this.cacheFields=[]},clear:function(){this.renderer.clearAll(),this.renderer.refresh(),this.removeAllFeatures(),this.clearCache()},getCacheCount:function(){return this.cacheFields.length},setMaxCacheCount:function(e){isNaN(e)||(this.maxCacheCount=e,this.isCustomSetMaxCacheCount=!0)},getShapesByFeatureID:function(e){var t=[],r=this.renderer.getAllShapes();if(!e)return r;for(var i=0,n=r.length;i<n;i++){var a=r[i];a.refDataID&&e===a.refDataID&&t.push(a)}return t}})},function(e,t,r){"use strict";var i=Math.PI/2;e.exports=function(e,t){for(var r,n,a=.5*e,o=i-2*Math.atan(t),s=0;s<=15;s++)if(r=e*Math.sin(o),o+=n=i-2*Math.atan(t*Math.pow((1-r)/(1+r),a))-o,Math.abs(n)<=1e-10)return o;return-9999}},function(e,t,r){"use strict";var i=Math.PI/2;e.exports=function(e,t,r){var n=e*r,a=.5*e;return n=Math.pow((1-n)/(1+n),a),Math.tan(.5*(i-t))/n}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
  201. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  202. * This program are made available under the terms of the Apache License, Version 2.0
  203. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  204. t.FileTypes={EXCEL:"EXCEL",CSV:"CSV",ISERVER:"ISERVER",GEOJSON:"GEOJSON",JSON:"JSON"},t.FileConfig={fileMaxSize:10485760}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Theme=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(24),o=r(139),s=r(50),l=r(1);
  205. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  206. * This program are made available under the terms of the Apache License, Version 2.0
  207. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var u=t.Theme=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&r&&r.map&&r.renderer&&(this.id=l.Util.createUniqueID(this.CLASS_NAME+"_"),this.lonlat=null,this.location=[],this.data=t,this.shapes=[],this.layer=r,this.CLASS_NAME="SuperMap.Feature.Theme")}return i(e,[{key:"destroy",value:function(){this.data=null,this.id=null,this.lonlat=null,this.location=null,this.shapes=null,this.layer=null}},{key:"getLocalXY",value:function(e){var t=this.layer.map.getResolution(),r=this.layer.map.getExtent();return e instanceof a.Point||e instanceof o.GeoText?[e.x/t+-r.left/t,r.top/t-e.y/t]:e instanceof s.LonLat?[e.lon/t+-r.left/t,r.top/t-e.lat/t]:null}}]),e}();n.SuperMap.Feature=n.SuperMap.Feature||{},n.SuperMap.Feature.Theme=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmicPolygon=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(13),a=r(1),o=r(12);
  208. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  209. * This program are made available under the terms of the Apache License, Version 2.0
  210. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  211. t.SmicPolygon=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="smicpolygon",r.holePolygonPointLists=null,r.refOriginalPosition&&2===r.refOriginalPosition.length||(r.refOriginalPosition=[0,0]),r.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicPolygon",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Shape),i(t,[{key:"destroy",value:function(){this.type=null,this.holePolygonPointLists=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"brush",value:function(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r=this.style;t&&(r=this.getHighlightStyle(r,this.highlightStyle||{})),e.save(),this.setContext(e,r),this.setTransform(e);var i=!1;"fill"!=r.brushType&&"both"!=r.brushType&&void 0!==r.brushType||(e.beginPath(),"dashed"==r.lineType||"dotted"==r.lineType||"dot"==r.lineType||"dash"==r.lineType||"dashdot"==r.lineType||"longdash"==r.lineType||"longdashdot"==r.lineType?this.buildPath(e,{lineType:"solid",lineWidth:r.lineWidth,pointList:r.pointList}):(this.buildPath(e,r),i=!0),e.closePath(),this.setCtxGlobalAlpha(e,"fill",r),e.fill(),this.setCtxGlobalAlpha(e,"reset",r)),r.lineWidth>0&&("stroke"==r.brushType||"both"==r.brushType)&&(i||(e.beginPath(),this.buildPath(e,r)),this.setCtxGlobalAlpha(e,"stroke",r),e.stroke(),this.setCtxGlobalAlpha(e,"reset",r)),this.drawText(e,r,this.style);var n=a.Util.cloneObject(r);if(n.pointList&&this.holePolygonPointLists&&this.holePolygonPointLists.length>0)for(var o=this.holePolygonPointLists,s=o.length,l=0;l<s;l++){var u=o[l];n.pointList=u,e.globalCompositeOperation="destination-out",i=!1,"fill"!=n.brushType&&"both"!=n.brushType&&void 0!==n.brushType||(e.beginPath(),"dashed"==n.lineType||"dotted"==n.lineType||"dot"==n.lineType||"dash"==n.lineType||"dashdot"==n.lineType||"longdash"==n.lineType||"longdashdot"==n.lineType?this.buildPath(e,{lineType:"solid",lineWidth:n.lineWidth,pointList:n.pointList}):(this.buildPath(e,n),i=!0),e.closePath(),this.setCtxGlobalAlpha(e,"fill",n),e.fill(),this.setCtxGlobalAlpha(e,"reset",n)),n.lineWidth>0&&("stroke"==n.brushType||"both"==n.brushType)?(i||(e.beginPath(),this.buildPath(e,n)),e.globalCompositeOperation="source-over",this.setCtxGlobalAlpha(e,"stroke",n),e.stroke(),this.setCtxGlobalAlpha(e,"reset",n)):e.globalCompositeOperation="source-over"}e.restore()}},{key:"buildPath",value:function(e,t){t.showShadow&&(e.shadowBlur=t.shadowBlur,e.shadowColor=t.shadowColor,e.shadowOffsetX=t.shadowOffsetX,e.shadowOffsetY=t.shadowOffsetY),this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition,i=t.pointList;if(!(i.length<2))if(t.smooth&&"spline"!==t.smooth){var n,a,s,l=o.SUtil.SUtil_smoothBezier(i,t.smooth,!0,t.smoothConstraint,r);e.moveTo(i[0][0]+r[0],i[0][1]+r[1]);for(var u=i.length,c=0;c<u;c++)n=l[2*c],a=l[2*c+1],s=[i[(c+1)%u][0]+r[0],i[(c+1)%u][1]+r[1]],e.bezierCurveTo(n[0],n[1],a[0],a[1],s[0],s[1])}else if("spline"===t.smooth&&(i=o.SUtil.SUtil_smoothSpline(i,!0,null,r)),t.lineType&&"solid"!=t.lineType){if("dashed"===t.lineType||"dotted"===t.lineType||"dot"===t.lineType||"dash"===t.lineType||"longdash"===t.lineType){var p=t._dashLength||(t.lineWidth||1)*("dashed"==t.lineType?5:1);t._dashLength=p;var h=t.lineWidth||1,f=h,d=h;"dashed"===t.lineType&&(f*=5,d*=5,t.lineCap&&"butt"!==t.lineCap&&(f-=h,d+=h)),"dotted"===t.lineType&&t.lineCap&&"butt"!==t.lineCap&&(f=1,d+=h),"dot"===t.lineType&&(d*=4,t.lineCap&&"butt"!==t.lineCap&&(f=1,d+=h)),"dash"===t.lineType&&(f*=4,d*=4,t.lineCap&&"butt"!==t.lineCap&&(f-=h,d+=h)),"longdash"===t.lineType&&(f*=8,d*=4,t.lineCap&&"butt"!==t.lineCap&&(f-=h,d+=h)),e.moveTo(i[0][0]+r[0],i[0][1]+r[1]);for(var y=1;y<i.length;y++)o.SUtil.SUtil_dashedLineTo(e,i[y-1][0]+r[0],i[y-1][1]+r[1],i[y][0]+r[0],i[y][1]+r[1],h,[f,d]);o.SUtil.SUtil_dashedLineTo(e,i[i.length-1][0]+r[0],i[i.length-1][1]+r[1],i[0][0]+r[0],i[0][1]+r[1],h,[f,d])}else if("dashdot"===t.lineType||"longdashdot"===t.lineType){var v=t._dashLength||(t.lineWidth||1)*("dashed"==t.lineType?5:1);t._dashLength=v;var m=t.lineWidth||1,g=m,b=m,S=m,_=m;"dashdot"===t.lineType&&(g*=4,b*=4,_*=4,t.lineCap&&"butt"!==t.lineCap&&(g-=m,b+=m,S=1,_+=m)),"longdashdot"===t.lineType&&(g*=8,b*=4,_*=4,t.lineCap&&"butt"!==t.lineCap&&(g-=m,b+=m,S=1,_+=m)),e.moveTo(i[0][0]+r[0],i[0][1]+r[1]);for(var P=1;P<i.length;P++)o.SUtil.SUtil_dashedLineTo(e,i[P-1][0]+r[0],i[P-1][1]+r[1],i[P][0]+r[0],i[P][1]+r[1],m,[g,b,S,_]);o.SUtil.SUtil_dashedLineTo(e,i[i.length-1][0]+r[0],i[i.length-1][1]+r[1],i[0][0]+r[0],i[0][1]+r[1],m,[g,b,S,_])}}else{e.moveTo(i[0][0]+r[0],i[0][1]+r[1]);for(var w=1;w<i.length;w++)e.lineTo(i[w][0]+r[0],i[w][1]+r[1]);e.lineTo(i[0][0]+r[0],i[0][1]+r[1])}}},{key:"getRect",value:function(e,t){var r;if(t?r=t:(this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]),r=this.refOriginalPosition),e.__rect)return e.__rect;for(var i,n=Number.MAX_VALUE,a=Number.MIN_VALUE,o=Number.MAX_VALUE,s=Number.MIN_VALUE,l=e.pointList,u=0,c=l.length;u<c;u++)l[u][0]+r[0]<n&&(n=l[u][0]+r[0]),l[u][0]+r[0]>a&&(a=l[u][0]+r[0]),l[u][1]+r[1]<o&&(o=l[u][1]+r[1]),l[u][1]+r[1]>s&&(s=l[u][1]+r[1]);return i="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(n-i/2),y:Math.round(o-i/2),width:a-n+i,height:s-o+i},e.__rect}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
  212. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  213. * This program are made available under the terms of the Apache License, Version 2.0
  214. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  215. var i=t.Config=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)};i.EVENT={RESIZE:"resize",CLICK:"click",DBLCLICK:"dblclick",MOUSEWHEEL:"mousewheel",MOUSEMOVE:"mousemove",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEDOWN:"mousedown",MOUSEUP:"mouseup",GLOBALOUT:"globalout",DRAGSTART:"dragstart",DRAGEND:"dragend",DRAGENTER:"dragenter",DRAGOVER:"dragover",DRAGLEAVE:"dragleave",DROP:"drop",touchClickDelay:300},i.catchBrushException=!1,i.debugMode=0},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}();
  216. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  217. * This program are made available under the terms of the Apache License, Version 2.0
  218. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  219. t.Vector=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ArrayCtor="undefined"==typeof Float32Array?Array:Float32Array,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Vector"}return i(e,[{key:"create",value:function(e,t){var r=new(0,this.ArrayCtor)(2);return r[0]=e||0,r[1]=t||0,r}},{key:"copy",value:function(e,t){return e[0]=t[0],e[1]=t[1],e}},{key:"set",value:function(e,t,r){return e[0]=t,e[1]=r,e}},{key:"add",value:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}},{key:"scaleAndAdd",value:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e}},{key:"sub",value:function(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}},{key:"len",value:function(e){return Math.sqrt(this.lenSquare(e))}},{key:"lenSquare",value:function(e){return e[0]*e[0]+e[1]*e[1]}},{key:"mul",value:function(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e}},{key:"div",value:function(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e}},{key:"dot",value:function(e,t){return e[0]*t[0]+e[1]*t[1]}},{key:"scale",value:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}},{key:"normalize",value:function(e,t){var r=this.len(t);return 0===r?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}},{key:"distance",value:function(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}},{key:"distanceSquare",value:function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}},{key:"negate",value:function(e,t){return e[0]=-t[0],e[1]=-t[1],e}},{key:"lerp",value:function(e,t,r,i){return e[0]=t[0]+i*(r[0]-t[0]),e[1]=t[1]+i*(r[1]-t[1]),e}},{key:"applyTransform",value:function(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e}},{key:"min",value:function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}},{key:"max",value:function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}},{key:"length",value:function(e){return this.len(e)}},{key:"lengthSquare",value:function(e){return this.lenSquare(e)}},{key:"dist",value:function(e,t){return this.distance(e,t)}},{key:"distSquare",value:function(e,t){return this.distanceSquare(e,t)}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Curve=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(75);
  220. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  221. * This program are made available under the terms of the Apache License, Version 2.0
  222. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.Curve=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.vector=new n.Vector,this.EPSILON=1e-4,this.THREE_SQRT=Math.sqrt(3),this.ONE_THIRD=1/3,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Curve"}return i(e,[{key:"isAroundZero",value:function(e){return e>-this.EPSILON&&e<this.EPSILON}},{key:"isNotAroundZero",value:function(e){return e>this.EPSILON||e<-this.EPSILON}},{key:"cubicAt",value:function(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}},{key:"cubicDerivativeAt",value:function(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}},{key:"cubicRootAt",value:function(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-2*t+e),l=3*(t-e),u=e-n,c=s*s-3*o*l,p=s*l-9*o*u,h=l*l-3*s*u,f=0;if(this.isAroundZero(c)&&this.isAroundZero(p))if(this.isAroundZero(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[f++]=d)}else{var y=p*p-4*c*h;if(this.isAroundZero(y)){var v=p/c,m=-s/o+v,g=-v/2;m>=0&&m<=1&&(a[f++]=m),g>=0&&g<=1&&(a[f++]=g)}else if(y>0){var b=Math.sqrt(y),S=c*s+1.5*o*(-p+b),_=c*s+1.5*o*(-p-b),P=(-s-((S=S<0?-Math.pow(-S,this.ONE_THIRD):Math.pow(S,this.ONE_THIRD))+(_=_<0?-Math.pow(-_,this.ONE_THIRD):Math.pow(_,this.ONE_THIRD))))/(3*o);P>=0&&P<=1&&(a[f++]=P)}else{var w=(2*c*s-3*o*p)/(2*Math.sqrt(c*c*c)),O=Math.acos(w)/3,T=Math.sqrt(c),M=Math.cos(O),C=(-s-2*T*M)/(3*o),x=(-s+T*(M+this.THREE_SQRT*Math.sin(O)))/(3*o),E=(-s+T*(M-this.THREE_SQRT*Math.sin(O)))/(3*o);C>=0&&C<=1&&(a[f++]=C),x>=0&&x<=1&&(a[f++]=x),E>=0&&E<=1&&(a[f++]=E)}}return f}},{key:"cubicExtrema",value:function(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,l=0;if(this.isAroundZero(o)){if(this.isNotAroundZero(a)){var u=-s/a;u>=0&&u<=1&&(n[l++]=u)}}else{var c=a*a-4*o*s;if(this.isAroundZero(c))n[0]=-a/(2*o);else if(c>0){var p=Math.sqrt(c),h=(-a+p)/(2*o),f=(-a-p)/(2*o);h>=0&&h<=1&&(n[l++]=h),f>=0&&f<=1&&(n[l++]=f)}}return l}},{key:"cubicSubdivide",value:function(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,l=(i-r)*n+r,u=(s-o)*n+o,c=(l-s)*n+s,p=(c-u)*n+u;a[0]=e,a[1]=o,a[2]=u,a[3]=p,a[4]=p,a[5]=c,a[6]=l,a[7]=i}},{key:"cubicProjectPoint",value:function(e,t,r,i,n,a,o,s,l,u,c){var p,h=this.vector.create(),f=this.vector.create(),d=this.vector.create(),y=.005,v=1/0;h[0]=l,h[1]=u;for(var m=0;m<1;m+=.05){f[0]=this.cubicAt(e,r,n,o,m),f[1]=this.cubicAt(t,i,a,s,m);var g=this.vector.distSquare(h,f);g<v&&(p=m,v=g)}v=1/0;for(var b=0;b<32&&!(y<this.EPSILON);b++){var S=p-y,_=p+y;f[0]=this.cubicAt(e,r,n,o,S),f[1]=this.cubicAt(t,i,a,s,S);var P=this.vector.distSquare(f,h);if(S>=0&&P<v)p=S,v=P;else{d[0]=this.cubicAt(e,r,n,o,_),d[1]=this.cubicAt(t,i,a,s,_);var w=this.vector.distSquare(d,h);_<=1&&w<v?(p=_,v=w):y*=.5}}return c&&(c[0]=this.cubicAt(e,r,n,o,p),c[1]=this.cubicAt(t,i,a,s,p)),Math.sqrt(v)}},{key:"quadraticAt",value:function(e,t,r,i){var n=1-i;return n*(n*e+2*i*t)+i*i*r}},{key:"quadraticDerivativeAt",value:function(e,t,r,i){return 2*((1-i)*(t-e)+i*(r-t))}},{key:"quadraticRootAt",value:function(e,t,r,i,n){var a=e-2*t+r,o=2*(t-e),s=e-i,l=0;if(this.isAroundZero(a)){if(this.isNotAroundZero(o)){var u=-s/o;u>=0&&u<=1&&(n[l++]=u)}}else{var c=o*o-4*a*s;if(this.isAroundZero(c)){var p=-o/(2*a);p>=0&&p<=1&&(n[l++]=p)}else if(c>0){var h=Math.sqrt(c),f=(-o+h)/(2*a),d=(-o-h)/(2*a);f>=0&&f<=1&&(n[l++]=f),d>=0&&d<=1&&(n[l++]=d)}}return l}},{key:"quadraticExtremum",value:function(e,t,r){var i=e+r-2*t;return 0===i?.5:(e-t)/i}},{key:"quadraticProjectPoint",value:function(e,t,r,i,n,a,o,s,l){var u,c=this.vector.create(),p=this.vector.create(),h=this.vector.create(),f=.005,d=1/0;c[0]=o,c[1]=s;for(var y=0;y<1;y+=.05){p[0]=this.quadraticAt(e,r,n,y),p[1]=this.quadraticAt(t,i,a,y);var v=this.vector.distSquare(c,p);v<d&&(u=y,d=v)}d=1/0;for(var m=0;m<32&&!(f<this.EPSILON);m++){var g=u-f,b=u+f;p[0]=this.quadraticAt(e,r,n,g),p[1]=this.quadraticAt(t,i,a,g);var S=this.vector.distSquare(p,c);if(g>=0&&S<d)u=g,d=S;else{h[0]=this.quadraticAt(e,r,n,b),h[1]=this.quadraticAt(t,i,a,b);var _=this.vector.distSquare(h,c);b<=1&&_<d?(u=b,d=_):f*=.5}}return l&&(l[0]=this.quadraticAt(e,r,n,u),l[1]=this.quadraticAt(t,i,a,u)),Math.sqrt(d)}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Transformable=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(12);
  223. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  224. * This program are made available under the terms of the Apache License, Version 2.0
  225. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.Transformable=function(){function e(){var t;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.position=[0,0],this.rotation=[0,0,0],this.scale=[1,1,0,0],this.needLocalTransform=!1,this.needTransform=!1,this.CLASS_NAME="SuperMap.LevelRenderer.Transformable",this.lookAt=(t=n.SUtil.Util_vector.create(),function(e){this.transform||(this.transform=n.SUtil.Util_matrix.create());var r=this.transform;function i(e){return e>-5e-5&&e<5e-5}n.SUtil.Util_vector.sub(t,e,this.position),i(t[0])&&i(t[1])||(n.SUtil.Util_vector.normalize(t,t),r[2]=t[0]*this.scale[1],r[3]=t[1]*this.scale[1],r[0]=t[1]*this.scale[0],r[1]=-t[0]*this.scale[0],r[4]=this.position[0],r[5]=this.position[1],this.decomposeTransform())})}return i(e,[{key:"destroy",value:function(){this.position=null,this.rotation=null,this.scale=null,this.needLocalTransform=null,this.needTransform=null}},{key:"updateNeedTransform",value:function(){function e(e){return e>5e-5||e<-5e-5}this.needLocalTransform=e(this.rotation[0])||e(this.position[0])||e(this.position[1])||e(this.scale[0]-1)||e(this.scale[1]-1)}},{key:"updateTransform",value:function(){if(this.updateNeedTransform(),this.parent?this.needTransform=this.needLocalTransform||this.parent.needTransform:this.needTransform=this.needLocalTransform,this.needTransform){var e=[0,0],t=this.transform||n.SUtil.Util_matrix.create();if(n.SUtil.Util_matrix.identity(t),this.needLocalTransform){if(a(this.scale[0])||a(this.scale[1])){e[0]=-this.scale[2]||0,e[1]=-this.scale[3]||0;var r=a(e[0])||a(e[1]);r&&n.SUtil.Util_matrix.translate(t,t,e),n.SUtil.Util_matrix.scale(t,t,this.scale),r&&(e[0]=-e[0],e[1]=-e[1],n.SUtil.Util_matrix.translate(t,t,e))}if(this.rotation instanceof Array){if(0!==this.rotation[0]){e[0]=-this.rotation[1]||0,e[1]=-this.rotation[2]||0;var i=a(e[0])||a(e[1]);i&&n.SUtil.Util_matrix.translate(t,t,e),n.SUtil.Util_matrix.rotate(t,t,this.rotation[0]),i&&(e[0]=-e[0],e[1]=-e[1],n.SUtil.Util_matrix.translate(t,t,e))}}else 0!==this.rotation&&n.SUtil.Util_matrix.rotate(t,t,this.rotation);(a(this.position[0])||a(this.position[1]))&&n.SUtil.Util_matrix.translate(t,t,this.position)}this.transform=t,this.parent&&this.parent.needTransform&&(this.needLocalTransform?n.SUtil.Util_matrix.mul(this.transform,this.parent.transform,this.transform):n.SUtil.Util_matrix.copy(this.transform,this.parent.transform))}function a(e){return e>5e-5||e<-5e-5}}},{key:"setTransform",value:function(e){if(this.needTransform){var t=this.transform;e.transform(t[0],t[1],t[2],t[3],t[4],t[5])}}},{key:"decomposeTransform",value:function(){if(this.transform){var e=this.transform,t=e[0]*e[0]+e[1]*e[1],r=this.position,i=this.scale,n=this.rotation;o(t-1)&&(t=Math.sqrt(t));var a=e[2]*e[2]+e[3]*e[3];o(a-1)&&(a=Math.sqrt(a)),r[0]=e[4],r[1]=e[5],i[0]=t,i[1]=a,i[2]=i[3]=0,n[0]=Math.atan2(-e[1]/a,e[0]/t),n[1]=n[2]=0}function o(e){return e>5e-5||e<-5e-5}}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Sector=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(26);
  226. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  227. * This program are made available under the terms of the Apache License, Version 2.0
  228. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  229. var o=t.Sector=function(e){function t(e,r,i,n,a,o,s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i,n,a,o,s));return l.x=isNaN(e)?0:e,l.y=isNaN(r)?0:r,l.r=isNaN(i)?0:i,l.startAngle=isNaN(n)?0:n,l.endAngle=isNaN(a)?0:a,l.r0=isNaN(o)?0:o,l.clockWise=s,l.CLASS_NAME="SuperMap.Feature.ShapeParameters.Sector",l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.ShapeParameters),i(t,[{key:"destroy",value:function(){this.x=null,this.y=null,this.r=null,this.startAngle=null,this.endAngle=null,this.r0=null,this.clockWise=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();n.SuperMap.Feature=n.SuperMap.Feature||{},n.SuperMap.Feature.ShapeParameters.Sector=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Polygon=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(26);
  230. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  231. * This program are made available under the terms of the Apache License, Version 2.0
  232. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  233. var o=t.Polygon=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.pointList=e,r.holePolygonPointLists=null,r.CLASS_NAME="SuperMap.Feature.ShapeParameters.Polygon",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.ShapeParameters),i(t,[{key:"destroy",value:function(){this.pointList=null,this.holePolygonPointLists=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();n.SuperMap.Feature=n.SuperMap.Feature||{},n.SuperMap.Feature.ShapeParameters.Polygon=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Line=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(26);
  234. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  235. * This program are made available under the terms of the Apache License, Version 2.0
  236. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  237. var o=t.Line=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.pointList=e,r.CLASS_NAME="SuperMap.Feature.ShapeParameters.Line",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.ShapeParameters),i(t,[{key:"destroy",value:function(){this.pointList=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();n.SuperMap.Feature=n.SuperMap.Feature||{},n.SuperMap.Feature.ShapeParameters.Line=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Point=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(26);
  238. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  239. * This program are made available under the terms of the Apache License, Version 2.0
  240. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  241. var o=t.Point=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.x=isNaN(e)?0:e,i.y=isNaN(r)?0:r,i.r=6,i.CLASS_NAME="SuperMap.Feature.ShapeParameters.Point",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.ShapeParameters),i(t,[{key:"destroy",value:function(){this.x=null,this.y=null,this.r=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();n.SuperMap.Feature=n.SuperMap.Feature||{},n.SuperMap.Feature.ShapeParameters.Point=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Color=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(33);
  242. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  243. * This program are made available under the terms of the Apache License, Version 2.0
  244. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.Color=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.util=new n.Util,this._ctx=null,this.palette=["#ff9277"," #dddd00"," #ffc877"," #bbe3ff"," #d5ffbb","#bbbbff"," #ddb000"," #b0dd00"," #e2bbff"," #ffbbe3","#ff7777"," #ff9900"," #83dd00"," #77e3ff"," #778fff","#c877ff"," #ff77ab"," #ff6600"," #aa8800"," #77c7ff","#ad77ff"," #ff77ff"," #dd0083"," #777700"," #00aa00","#0088aa"," #8400dd"," #aa0088"," #dd0000"," #772e00"],this._palette=this.palette,this.highlightColor="rgba(0,0,255,1)",this._highlightColor=this.highlightColor,this.colorRegExp=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,this._nameColors={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#0ff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000",blanchedalmond:"#ffebcd",blue:"#00f",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#0ff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#f0f",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#789",lightslategrey:"#789",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#0f0",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#f0f",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#f00",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#fff",whitesmoke:"#f5f5f5",yellow:"#ff0",yellowgreen:"#9acd32"},this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Color"}return i(e,[{key:"customPalette",value:function(e){this.palette=e}},{key:"resetPalette",value:function(){this.palette=this._palette}},{key:"getColor",value:function(e,t){return e|=0,(t=t||this.palette)[e%t.length]}},{key:"customHighlight",value:function(e){this.highlightColor=e}},{key:"resetHighlight",value:function(){this.highlightColor=this._highlightColor}},{key:"getHighlightColor",value:function(){return this.highlightColor}},{key:"getRadialGradient",value:function(e,t,r,i,n,a,o){var s=this.util;this._ctx||(this._ctx=s.getContext());for(var l=this._ctx.createRadialGradient(e,t,r,i,n,a),u=0,c=o.length;u<c;u++)l.addColorStop(o[u][0],o[u][1]);return l.__nonRecursion=!0,l}},{key:"getLinearGradient",value:function(e,t,r,i,n){var a=this.util;this._ctx||(this._ctx=a.getContext());for(var o=this._ctx.createLinearGradient(e,t,r,i),s=0,l=n.length;s<l;s++)o.addColorStop(n[s][0],n[s][1]);return o.__nonRecursion=!0,o}},{key:"getStepColors",value:function(e,t,r){e=this.toRGBA(e),t=this.toRGBA(t),e=this.getData(e);for(var i=[],n=((t=this.getData(t))[0]-e[0])/r,a=(t[1]-e[1])/r,o=(t[2]-e[2])/r,s=(t[3]-e[3])/r,l=0,u=e[0],c=e[1],p=e[2],h=e[3];l<r;l++)i[l]=this.toColor([this.adjust(Math.floor(u),[0,255]),this.adjust(Math.floor(c),[0,255]),this.adjust(Math.floor(p),[0,255]),h.toFixed(4)-0],"rgba"),u+=n,c+=a,p+=o,h+=s;return u=t[0],c=t[1],p=t[2],h=t[3],i[l]=this.toColor([u,c,p,h],"rgba"),i}},{key:"getGradientColors",value:function(e,t){var r=[],i=e.length;if(void 0===t&&(t=20),1===i)r=this.getStepColors(e[0],e[0],t);else if(i>1)for(var n=0,a=i-1;n<a;n++){var o=this.getStepColors(e[n],e[n+1],t);n<a-1&&o.pop(),r=r.concat(o)}return r}},{key:"toColor",value:function(e,t){if(t=t||"rgb",e&&(3===e.length||4===e.length)){if(e=this.map(e,function(e){return e>1?Math.ceil(e):e}),t.indexOf("hex")>-1)return"#"+((1<<24)+(e[0]<<16)+(e[1]<<8)+ +e[2]).toString(16).slice(1);if(t.indexOf("hs")>-1){var r=this.map(e.slice(1,3),function(e){return e+"%"});e[1]=r[0],e[2]=r[1]}return t.indexOf("a")>-1?(3===e.length&&e.push(1),e[3]=this.adjust(e[3],[0,1]),t+"("+e.slice(0,4).join(",")+")"):t+"("+e.slice(0,3).join(",")+")"}}},{key:"toArray",value:function(e){(e=this.trim(e)).indexOf("rgba")<0&&(e=this.toRGBA(e));var t=[],r=0;return e.replace(/[\d.]+/g,function(e){r<3?e|=0:e=+e,t[r++]=e}),t}},{key:"convert",value:function(e,t){if(!this.isCalculableColor(e))return e;var r=this.getData(e),i=r[3];return void 0===i&&(i=1),e.indexOf("hsb")>-1?r=this._HSV_2_RGB(r):e.indexOf("hsl")>-1&&(r=this._HSL_2_RGB(r)),t.indexOf("hsb")>-1||t.indexOf("hsv")>-1?r=this._RGB_2_HSB(r):t.indexOf("hsl")>-1&&(r=this._RGB_2_HSL(r)),r[3]=i,this.toColor(r,t)}},{key:"toRGBA",value:function(e){return this.convert(e,"rgba")}},{key:"toRGB",value:function(e){return this.convert(e,"rgb")}},{key:"toHex",value:function(e){return this.convert(e,"hex")}},{key:"toHSVA",value:function(e){return this.convert(e,"hsva")}},{key:"toHSV",value:function(e){return this.convert(e,"hsv")}},{key:"toHSBA",value:function(e){return this.convert(e,"hsba")}},{key:"toHSB",value:function(e){return this.convert(e,"hsb")}},{key:"toHSLA",value:function(e){return this.convert(e,"hsla")}},{key:"toHSL",value:function(e){return this.convert(e,"hsl")}},{key:"toName",value:function(e){for(var t in this._nameColors)if(this.toHex(this._nameColors[t])===this.toHex(e))return t;return null}},{key:"trim",value:function(e){return String(e).replace(/\s+/g,"")}},{key:"normalize",value:function(e){if(this._nameColors[e]&&(e=this._nameColors[e]),e=(e=this.trim(e)).replace(/hsv/i,"hsb"),/^#[\da-f]{3}$/i.test(e)){var t=(3840&(e=parseInt(e.slice(1),16)))<<8,r=(240&e)<<4,i=15&e;e="#"+((1<<24)+(t<<4)+t+(r<<4)+r+(i<<4)+i).toString(16).slice(1)}return e}},{key:"lift",value:function(e,t){if(!this.isCalculableColor(e))return e;var r=t>0?1:-1;void 0===t&&(t=0),t=Math.abs(t)>1?1:Math.abs(t),e=this.toRGB(e);for(var i=this.getData(e),n=0;n<3;n++)i[n]=1===r?i[n]*(1-t)|0:(255-i[n])*t+i[n]|0;return"rgb("+i.join(",")+")"}},{key:"reverse",value:function(e){if(!this.isCalculableColor(e))return e;var t=this.getData(this.toRGBA(e));return t=this.map(t,function(e){return 255-e}),this.toColor(t,"rgb")}},{key:"mix",value:function(e,t,r){if(!this.isCalculableColor(e)||!this.isCalculableColor(t))return e;void 0===r&&(r=.5);for(var i=2*(r=1-this.adjust(r,[0,1]))-1,n=this.getData(this.toRGBA(e)),a=this.getData(this.toRGBA(t)),o=n[3]-a[3],s=((i*o==-1?i:(i+o)/(1+i*o))+1)/2,l=1-s,u=[],c=0;c<3;c++)u[c]=n[c]*s+a[c]*l;var p=n[3]*r+a[3]*(1-r);return p=Math.max(0,Math.min(1,p)),1===n[3]&&1===a[3]?this.toColor(u,"rgb"):(u[3]=p,this.toColor(u,"rgba"))}},{key:"random",value:function(){return"#"+Math.random().toString(16).slice(2,8)}},{key:"getData",value:function(t){var r,i,n=(t=this.normalize(t)).match(this.colorRegExp);if(null===n)throw new Error("The color format error");var a,o=[];if(n[2])a=[(r=n[2].replace("#","").split(""))[0]+r[1],r[2]+r[3],r[4]+r[5]],o=this.map(a,function(t){return e.prototype.adjust.call(this,parseInt(t,16),[0,255])});else if(n[4]){var s=n[4].split(",");i=s[3],a=s.slice(0,3),o=this.map(a,function(t){return t=Math.floor(t.indexOf("%")>0?2.55*parseInt(t,0):t),e.prototype.adjust.call(this,t,[0,255])}),void 0!==i&&o.push(this.adjust(parseFloat(i),[0,1]))}else if(n[5]||n[6]){var l=(n[5]||n[6]).split(","),u=parseInt(l[0],0)/360,c=l[1],p=l[2];i=l[3],(o=this.map([c,p],function(t){return e.prototype.adjust.call(this,parseFloat(t)/100,[0,1])})).unshift(u),void 0!==i&&o.push(this.adjust(parseFloat(i),[0,1]))}return o}},{key:"alpha",value:function(e,t){if(!this.isCalculableColor(e))return e;null===t&&(t=1);var r=this.getData(this.toRGBA(e));return r[3]=this.adjust(Number(t).toFixed(4),[0,1]),this.toColor(r,"rgba")}},{key:"map",value:function(e,t){if("function"!=typeof t)throw new TypeError;for(var r=e?e.length:0,i=0;i<r;i++)e[i]=t(e[i]);return e}},{key:"adjust",value:function(e,t){return e<=t[0]?e=t[0]:e>=t[1]&&(e=t[1]),e}},{key:"isCalculableColor",value:function(e){return e instanceof Array||"string"==typeof e}},{key:"_HSV_2_RGB",value:function(e){var t,r,i,n=e[0],a=e[1],o=e[2];if(0===a)t=255*o,r=255*o,i=255*o;else{var s=6*n;6===s&&(s=0);var l=0|s,u=o*(1-a),c=o*(1-a*(s-l)),p=o*(1-a*(1-(s-l))),h=0,f=0,d=0;0===l?(h=o,f=p,d=u):1===l?(h=c,f=o,d=u):2===l?(h=u,f=o,d=p):3===l?(h=u,f=c,d=o):4===l?(h=p,f=u,d=o):(h=o,f=u,d=c),t=255*h,r=255*f,i=255*d}return[t,r,i]}},{key:"_HSL_2_RGB",value:function(e){var t,r,i,n=e[0],a=e[1],o=e[2];if(0===a)t=255*o,r=255*o,i=255*o;else{var s,l=2*o-(s=o<.5?o*(1+a):o+a-a*o);t=255*this._HUE_2_RGB(l,s,n+1/3),r=255*this._HUE_2_RGB(l,s,n),i=255*this._HUE_2_RGB(l,s,n-1/3)}return[t,r,i]}},{key:"_HUE_2_RGB",value:function(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),6*r<1?e+6*(t-e)*r:2*r<1?t:3*r<2?e+(t-e)*(2/3-r)*6:e}},{key:"_RGB_2_HSB",value:function(e){var t,r,i=e[0]/255,n=e[1]/255,a=e[2]/255,o=Math.min(i,n,a),s=Math.max(i,n,a),l=s-o,u=s;if(0===l)t=0,r=0;else{r=l/s;var c=((s-i)/6+l/2)/l,p=((s-n)/6+l/2)/l,h=((s-a)/6+l/2)/l;i===s?t=h-p:n===s?t=1/3+c-h:a===s&&(t=2/3+p-c),t<0&&(t+=1),t>1&&(t-=1)}return[t*=360,r*=100,u*=100]}},{key:"_RGB_2_HSL",value:function(e){var t,r,i=e[0]/255,n=e[1]/255,a=e[2]/255,o=Math.min(i,n,a),s=Math.max(i,n,a),l=s-o,u=(s+o)/2;if(0===l)t=0,r=0;else{r=u<.5?l/(s+o):l/(2-s-o);var c=((s-i)/6+l/2)/l,p=((s-n)/6+l/2)/l,h=((s-a)/6+l/2)/l;i===s?t=h-p:n===s?t=1/3+c-h:a===s&&(t=2/3+p-c),t<0&&(t+=1),t>1&&(t-=1)}return[t*=360,r*=100,u*=100]}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LabelMatrixCell=void 0;var i=r(0);
  245. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  246. * This program are made available under the terms of the Apache License, Version 2.0
  247. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  248. var n=t.LabelMatrixCell=function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.CLASS_NAME="LabelMatrixCell"};i.SuperMap.LabelMatrixCell=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeOffset=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  249. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  250. * This program are made available under the terms of the Apache License, Version 2.0
  251. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.ThemeOffset=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.offsetFixed=!1,this.offsetX="0.0",this.offsetY="0.0",t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeOffset"}return i(e,[{key:"destroy",value:function(){this.offsetFixed=null,this.offsetX=null,this.offsetY=null}}],[{key:"fromObj",value:function(t){if(t){var r=new e;return a.Util.copy(r,t),r}}}]),e}();n.SuperMap.ThemeOffset=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeFlow=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(14);
  252. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  253. * This program are made available under the terms of the Apache License, Version 2.0
  254. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ThemeFlow=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.flowEnabled=!1,this.leaderLineDisplayed=!1,this.leaderLineStyle=new o.ServerStyle,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeFlow"}return i(e,[{key:"destroy",value:function(){var e=this;e.flowEnabled=null,e.leaderLineDisplayed=null,e.leaderLineStyle&&(e.leaderLineStyle.destroy(),e.leaderLineStyle=null)}}],[{key:"fromObj",value:function(t){if(t){var r=new e;return a.Util.copy(r,t),r.leaderLineStyle=o.ServerStyle.fromJson(t.leaderLineStyle),r}}}]),e}();n.SuperMap.ThemeFlow=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeLabel=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(28),s=r(270),l=r(125),u=r(85),c=r(84),p=r(269),h=r(267),f=r(266),d=r(4);
  255. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  256. * This program are made available under the terms of the Apache License, Version 2.0
  257. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  258. var y=t.ThemeLabel=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"LABEL",e));return r.alongLine=new h.ThemeLabelAlongLine,r.background=new f.ThemeLabelBackground,r.flow=new u.ThemeFlow,r.items=null,r.uniqueItems=null,r.labelExpression=null,r.labelOverLengthMode=d.LabelOverLengthMode.NONE,r.matrixCells=null,r.maxLabelLength=256,r.numericPrecision=0,r.offset=new c.ThemeOffset,r.overlapAvoided=!0,r.rangeExpression=null,r.uniqueExpression=null,r.smallGeometryLabeled=!1,r.text=new p.ThemeLabelText,r.textSpace=0,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.ThemeLabel",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Theme),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;if(e.alongLine=null,e.background&&(e.background.destroy(),e.background=null),e.flow=null,e.items){for(var r=0,i=e.items,n=i.length;r<n;r++)i[r].destroy();e.items=null}if(e.uniqueItems){for(var a=0,o=e.uniqueItems,s=o.length;a<s;a++)o[a].destory();e.uniqueItems=null}e.labelExpression=null,e.labelOverLengthMode=null,e.matrixCells=null,e.maxLabelLength=null,e.numericPrecision=null,e.overlapAvoided=null,e.rangeExpression=null,e.uniqueExpression=null,e.offset&&(e.offset.destroy(),e.offset=null),e.overlapAvoided=null,e.smallGeometryLabeled=null,e.text&&(e.text.destroy(),e.text=null),e.textSpace=null}},{key:"toJSON",value:function(){return a.Util.toJSON(this.toServerJSONObject())}},{key:"toServerJSONObject",value:function(){var e={};return e.type=this.type,e.memoryData=this.memoryData,this.alongLine&&(e.alongLine=this.alongLine.isAlongLine,e.alongLineDirection=this.alongLine.alongLineDirection,e.angleFixed=this.alongLine.angleFixed,e.isLabelRepeated=this.alongLine.isLabelRepeated,e.labelRepeatInterval=this.alongLine.labelRepeatInterval,e.repeatedLabelAvoided=this.alongLine.repeatedLabelAvoided,e.repeatIntervalFixed=this.alongLine.repeatIntervalFixed),this.offset&&(e.offsetFixed=this.offset.offsetFixed,e.offsetX=this.offset.offsetX,e.offsetY=this.offset.offsetY),this.flow&&(e.flowEnabled=this.flow.flowEnabled,e.leaderLineDisplayed=this.flow.leaderLineDisplayed,e.leaderLineStyle=this.flow.leaderLineStyle),this.text&&(e.maxTextHeight=this.text.maxTextHeight,e.maxTextWidth=this.text.maxTextWidth,e.minTextHeight=this.text.minTextHeight,e.minTextWidth=this.text.minTextWidth,e.uniformStyle=this.text.uniformStyle,e.uniformMixedStyle=this.text.uniformMixedStyle),this.background&&(e.labelBackShape=this.background.labelBackShape,e.backStyle=this.background.backStyle),e.labelOverLengthMode=this.labelOverLengthMode,e.maxLabelLength=this.maxLabelLength,e.smallGeometryLabeled=this.smallGeometryLabeled,e.rangeExpression=this.rangeExpression,e.uniqueExpression=this.uniqueExpression,e.numericPrecision=this.numericPrecision,e.items=this.items,e.uniqueItems=this.uniqueItems,e.labelExpression=this.labelExpression,e.overlapAvoided=this.overlapAvoided,e.matrixCells=this.matrixCells,e.textSpace=this.textSpace,e}}],[{key:"fromObj",value:function(e){if(e){var r=new t,i=e.items,n=e.uniqueItems,o=e.matrixCells;if(e.matrixCells=null,a.Util.copy(r,e),r.alongLine=h.ThemeLabelAlongLine.fromObj(e),r.background=f.ThemeLabelBackground.fromObj(e),r.flow=new u.ThemeFlow({flowEnabled:e.flowEnabled,leaderLineDisplayed:e.leaderLineDisplayed,leaderLineStyle:e.leaderLineStyle}),i){r.items=[];for(var d=0,y=i.length;d<y;d++)r.items.push(s.ThemeLabelItem.fromObj(i[d]))}if(n){r.uniqueItems=[];for(var v=0,m=n.length;v<m;v++)r.uniqueItems.push(l.ThemeUniqueItem.fromObj(n[v]))}if(o){r.matrixCells=[];for(var g=0,b=o.length;g<b;g++);}return r.offset=c.ThemeOffset.fromObj(e),r.text=p.ThemeLabelText.fromObj(e),r}}}]),t}();n.SuperMap.ThemeLabel=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThiessenAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  259. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  260. * This program are made available under the terms of the Apache License, Version 2.0
  261. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.ThiessenAnalystParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.clipRegion=null,this.createResultDataset=!1,this.resultDatasetName=null,this.resultDatasourceName=null,this.returnResultRegion=!0,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThiessenAnalystParameters")}return i(e,[{key:"destroy",value:function(){var e=this;e.clipRegion&&(e.clipRegion.destroy(),e.clipRegion=null),e.createResultDataset=null,e.resultDatasetName=null,e.resultDatasourceName=null,e.returnResultRegion=null}}]),e}();n.SuperMap.ThiessenAnalystParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SurfaceAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(63),s=r(4),l=r(299);
  262. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  263. * This program are made available under the terms of the Apache License, Version 2.0
  264. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var u=t.SurfaceAnalystParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.resolution=0,this.extractParameter=new l.SurfaceAnalystParametersSetting,this.resultSetting=new o.DataReturnOption,this.surfaceAnalystMethod=s.SurfaceAnalystMethod.ISOLINE,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.SurfaceAnalystParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.resolution=null,e.extractParameter&&(e.extractParameter.destroy(),e.extractParameter=null),e.resultSetting&&(e.resultSetting.destroy(),e.resultSetting=null),e.surfaceAnalystMethod=null}}]),e}();n.SuperMap.SurfaceAnalystParameters=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JoinItem=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  265. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  266. * This program are made available under the terms of the Apache License, Version 2.0
  267. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.JoinItem=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.foreignTableName=null,this.joinFilter=null,this.joinType=null,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.JoinItem"}return i(e,[{key:"destroy",value:function(){this.foreignTableName=null,this.joinFilter=null,this.joinType=null}},{key:"toServerJSONObject",value:function(){var e={};return e=a.Util.copyAttributes(e,this)}}]),e}();n.SuperMap.JoinItem=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IPortalServiceBase=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(4),o=r(40),s=r(138),l=r(17);
  268. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  269. * This program are made available under the terms of the Apache License, Version 2.0
  270. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var u=t.IPortalServiceBase=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=r||{},this.serviceUrl=t,this.serverType=a.ServerType.iPortal,this.CLASS_NAME="SuperMap.iPortalServiceBase",this.withCredentials=r.withCredentials||!1,this.crossOrigin=r.crossOrigin}return i(e,[{key:"request",value:function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{crossOrigin:this.crossOrigin,withCredentials:this.withCredentials};return t=this.createCredentialUrl(t),l.FetchRequest.commit(e,t,r,i).then(function(e){return e.json()})}},{key:"createCredentialUrl",value:function(e){var t=e,r=this.getCredential();if(r){var i=t.substring(t.length-1,t.length);t.indexOf("?")>-1&&"?"===i?t+=r.getUrlParameters():t.indexOf("?")>-1&&"?"!==i?t+="&"+r.getUrlParameters():t+="?"+r.getUrlParameters()}return t}},{key:"getCredential",value:function(){var e,t=o.SecurityManager.getToken(this.serviceUrl);return(e=t?new s.Credential(t,"token"):null)||(e=(t=this.getKey())?new s.Credential(t,"key"):null),e}},{key:"getKey",value:function(){}}]),e}();n.SuperMap.iPortalServiceBase=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Route=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(41),s=r(23),l=r(326),u=r(34);
  271. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  272. * This program are made available under the terms of the Apache License, Version 2.0
  273. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  274. var c=t.Route=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.id=null,i.center=null,i.style=null,i.length=null,i.maxM=null,i.minM=null,i.parts=null,i.points=null,i.type=null,i.componentTypes=["SuperMap.Geometry.LinearRing","SuperMap.Geometry.LineString"],r&&a.Util.extend(i,r),i.CLASS_NAME="SuperMap.Route",i.geometryType="LINEM",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.Collection),i(t,[{key:"toJson",value:function(){var e="{";if(null!=this.id&&void 0!=this.id&&(e+='"id":'+this.id+","),null!=this.center&&void 0!=this.center&&(e+='"center":'+this.center+","),null!=this.style&&void 0!=this.style&&(e+='"style":'+this.style+","),null!=this.length&&void 0!=this.length&&(e+='"length":'+this.length+","),null!=this.maxM&&void 0!=this.maxM&&(e+='"maxM":'+this.maxM+","),null!=this.minM&&void 0!=this.minM&&(e+='"minM":'+this.minM+","),null!=this.type&&void 0!=this.type&&(e+='"type":"'+this.type+'",'),null!=this.parts&&void 0!=this.parts){e+='"parts":['+this.parts[0];for(var t=1;t<this.parts.length;t++)e+=","+this.parts[t];e+="],"}if(null!=this.components&&this.components.length>0){e+='"points":[';for(var r=0,i=this.components.length;r<i;r++)for(var n=0,a=this.components[r].components.length;n<a;n++)e+=this.components[r].components[n].toJson()+",";e=e.replace(/,$/g,""),e+="]"}return e=e.replace(/,$/g,""),e+="}"}},{key:"destroy",value:function(){var e=this;e.id=null,e.center=null,e.style=null,e.length=null,e.maxM=null,e.minM=null,e.type=null,e.parts=null,e.components.length=0,e.components=null,e.componentTypes=null}}],[{key:"fromJson",value:function(e){if(e){var r=e.parts||[],i=e.points||[],n=r.length,a=[];if(!(n>0))return null;for(var u=0,c=0,p=[];u<n;u++){for(var h=0;h<r[u];h++)p.push(l.PointWithMeasure.fromJson(i[c+h]));c+=r[u],p[0].equals(p[r[u]-1])?a.push(new o.LinearRing(p)):a.push(new s.LineString(p)),p=[]}return new t(a,{id:e.id,center:e.center,style:e.style,length:e.length,maxM:e.maxM,minM:e.minM,type:e.type,parts:e.parts})}}}]),t}();n.SuperMap.Route=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Vector=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(327),o=r(1);
  275. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  276. * This program are made available under the terms of the Apache License, Version 2.0
  277. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  278. var s=t.Vector=function(e){function t(e,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,null,null,r));return a.fid=null,a.geometry=e||null,a.attributes={},r&&(a.attributes=o.Util.extend(a.attributes,r)),a.bounds=null,a.state=null,a.style=i||null,a.url=null,a.lonlat=null,a.CLASS_NAME="SuperMap.Feature.Vector",n.SuperMap.State={UNKNOWN:"Unknown",INSERT:"Insert",UPDATE:"Update",DELETE:"Delete"},t.style={default:{fillColor:"#ee9900",fillOpacity:.4,hoverFillColor:"white",hoverFillOpacity:.8,strokeColor:"#ee9900",strokeOpacity:1,strokeWidth:1,strokeLinecap:"round",strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"inherit",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},select:{fillColor:"blue",fillOpacity:.4,hoverFillColor:"white",hoverFillOpacity:.8,strokeColor:"blue",strokeOpacity:1,strokeWidth:2,strokeLinecap:"round",strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"pointer",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},temporary:{fillColor:"#66cccc",fillOpacity:.2,hoverFillColor:"white",hoverFillOpacity:.8,strokeColor:"#66cccc",strokeOpacity:1,strokeLinecap:"round",strokeWidth:2,strokeDashstyle:"solid",hoverStrokeColor:"red",hoverStrokeOpacity:1,hoverStrokeWidth:.2,pointRadius:6,hoverPointRadius:1,hoverPointUnit:"%",pointerEvents:"visiblePainted",cursor:"default",fontColor:"#000000",labelAlign:"cm",labelOutlineColor:"white",labelOutlineWidth:3},delete:{display:"none"}},a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Feature),i(t,[{key:"destroy",value:function(){this.layer&&(this.layer.removeFeatures(this),this.layer=null),this.geometry=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"clone",value:function(){return new t(this.geometry?this.geometry.clone():null,this.attributes,this.style)}},{key:"toState",value:function(e){if(e===n.SuperMap.State.UPDATE)switch(this.state){case n.SuperMap.State.UNKNOWN:case n.SuperMap.State.DELETE:this.state=e;break;case n.SuperMap.State.UPDATE:case n.SuperMap.State.INSERT:}else if(e===n.SuperMap.State.INSERT)switch(this.state){case n.SuperMap.State.UNKNOWN:break;default:this.state=e}else if(e===n.SuperMap.State.DELETE)switch(this.state){case n.SuperMap.State.INSERT:case n.SuperMap.State.DELETE:break;case n.SuperMap.State.UNKNOWN:case n.SuperMap.State.UPDATE:this.state=e}else e===n.SuperMap.State.UNKNOWN&&(this.state=e)}}]),t}();n.SuperMap.Feature.Vector=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pixel=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0);
  279. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  280. * This program are made available under the terms of the Apache License, Version 2.0
  281. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var a=t.Pixel=function(){function e(t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.x=t?parseFloat(t):0,this.y=r?parseFloat(r):0,this.mode=i,this.CLASS_NAME="SuperMap.Pixel",n.SuperMap.Pixel.Mode={LeftTop:"lefttop",RightTop:"righttop",RightBottom:"rightbottom",LeftBottom:"leftbottom"}}return i(e,[{key:"toString",value:function(){return"x="+this.x+",y="+this.y}},{key:"clone",value:function(){return new e(this.x,this.y,this.mode)}},{key:"equals",value:function(e){var t=!1;return null!=e&&(t=this.x==e.x&&this.y==e.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(e.x)&&isNaN(e.y)),t}},{key:"distanceTo",value:function(e){return Math.sqrt(Math.pow(this.x-e.x,2)+Math.pow(this.y-e.y,2))}},{key:"add",value:function(t,r){if(null==t||null==r)throw new TypeError("Pixel.add cannot receive null values");return new e(this.x+t,this.y+r)}},{key:"offset",value:function(e){var t=this.clone();return e&&(t=this.add(e.x,e.y)),t}},{key:"destroy",value:function(){this.x=null,this.y=null,this.mode=null}}]),e}();n.SuperMap.Pixel=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeoJsonLayerDataModel=t.GeoJsonLayersDataModel=void 0;var i,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=r(2),o=(i=a)&&i.__esModule?i:{default:i};
  282. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  283. * This program are made available under the terms of the Apache License, Version 2.0
  284. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r(3);var l=t.GeoJsonLayersDataModel=function(){function e(t){s(this,e),this.layers=[],t&&t.length>0&&this.addLayers(t),this.currentLayerDataModel=null}return n(e,[{key:"addLayers",value:function(e,t,r,i){for(var n=0;n<e.length;n++){var a=e[n].layerName;if(e[n].layer instanceof o.default.GeoJSON){var s=new u(e[n].layer);this.layers[a]=s,t&&t.call(i,{layerName:a,layer:s})}else r&&r.call(i,"")}}},{key:"setCurrentLayerDataModel",value:function(e){this.layers[e]&&(this.currentLayerDataModel=this.layers[e])}}]),e}();o.default.supermap.widgets.GeoJsonLayersDataModel=l;var u=t.GeoJsonLayerDataModel=function(){function e(t){if(s(this,e),this.layer=t,this.features=t.getLayers(),this.attributeNames=[],this.features[0].feature.properties)for(var r in this.features[0].feature.properties)this.attributeNames.push(r);this.operatingAttributeNames=[],this.attributes={}}return n(e,[{key:"setOperatingAttributeNames",value:function(e){this.operatingAttributeNames=e}},{key:"getAllAttributeNames",value:function(){return this.attributeNames}},{key:"getAttributeNamesByType",value:function(e){if(this.features[0].feature.properties){var t=this.features[0].feature.properties,r=[];if("Num"===e)for(var i in t)isNaN(t[i])||r.push(i);else r=this.attributeNames;return r}}},{key:"getAllFeatures",value:function(){return this.features}},{key:"getAttributeValueByAttributeName",value:function(e){if(this.attributes[e])return this.attributes[e];this.attributes[e]=[];for(var t=0;t<this.features.length;t++)this.attributes[e].push([this.features[t].feature.properties[e]]);return this.attributes[e]}},{key:"getFeaturesByKeyWord",value:function(e){var t=[],r=new RegExp(e.toLowerCase()),i=this;return this.features.forEach(function(e){if(!e.feature.properties)return null;for(var n=e.feature.properties,a=void 0,o=0,s=(a=i.operatingAttributeNames.length>0?i.operatingAttributeNames:i.attributeNames).length;o<s;o++)if(n[a[o]]&&r.test(n[a[o]].toString().toLowerCase())){var l=a[o],u=n[a[o]];e.filterAttribute={filterAttributeName:l,filterAttributeValue:u},t.push(e);break}}),t}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VectorTileFormat=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);
  285. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  286. * This program are made available under the terms of the Apache License, Version 2.0
  287. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  288. var o=t.VectorTileFormat={JSON:"JSON",MVT:"MVT",PBF:"PBF"};a.default.supermap.VectorTileFormat=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PolyBase=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};t.PolyBase={_makeFeatureParts:function(e,t){t=t||{x:1,y:1};var r,i=e.geometry;this._parts=[];for(var n=0;n<i.length;n++){for(var o=i[n],s=[],l=0;l<o.length;l++)r=o[l],s.push(a.default.point(r).scaleBy(t));this._parts.push(s)}},makeInteractive:function(){this._pxBounds=this._getPixelBounds()}};
  289. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  290. * This program are made available under the terms of the Apache License, Version 2.0
  291. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TextSymbolizer=void 0;var i,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=r(2),o=(i=a)&&i.__esModule?i:{default:i},s=r(51),l=r(98),u=r(99);
  292. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  293. * This program are made available under the terms of the Apache License, Version 2.0
  294. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var c=t.TextSymbolizer=o.default.Path.extend({includes:s.Symbolizer.prototype,options:{color:"white",fillColor:"black",fill:!0,fillOpacity:1,opacity:.6,weight:1,rotation:0,stroke:!0,fontFamily:"Arial Unicode MS Regular",fontSize:14,fontWeight:"normal",textAlign:"center",offsetX:1,offsetY:1},initialize:function(e,t){s.Symbolizer.prototype.initialize.call(this,e),this._makeFeatureParts(e,t),this.options.offsetX=t||1,this.options.offsetY=t||1},render:function(e,t){if(this.properties.texts&&(this._text=this.properties.texts[0]),!this._text){var r=this.properties.attributes;this._text=r&&this.properties.textField&&r[this.properties.textField]||""}var i=this.options;this._pxBounds=o.default.bounds(this._point,this._point),s.Symbolizer.prototype.render.apply(this,[e,t]),this.options=o.default.Util.extend(i,t),this._updatePath()},_makeFeatureParts:function(e,t){t=t||{x:1,y:1};var r=e.geometry[0];"object"===n(r[0])&&"x"in r[0]?(this._point=o.default.point(r[0]).scaleBy(t),this._empty=o.default.Util.falseFn):(this._point=o.default.point(r).scaleBy(t),this._empty=o.default.Util.falseFn)},makeInteractive:function(){this._updateBounds()},updateStyle:function(e,t){return this._updateBounds(),s.Symbolizer.prototype.updateStyle.call(this,e,t)},_updateBounds:function(){var e=this._renderer._getTextWidth(this),t=[e/2,e/2];this._pxBounds=o.default.bounds(this._point.subtract(t),this._point.add(t))},_updatePath:function(){this._renderer._updateText(this)},_containsPoint:function(e){return!1}});l.CanvasRenderer.include({_getTextWidth:function(e){return this._ctx.measureText(e._text).width},_updateText:function(e){if(this._drawing&&!e._empty()){var t=this.getContainer(),r=this._map.getSize();t.width=r.x,t.height=r.y,t.style.width=r.x+"px",t.style.height=r.y+"px";var i=this._ctx,n=e.options,a=n.offsetX||1,s=n.offsetY||1,l=e._point.subtract(o.default.point(a,s));n.fill&&(this._drawnLayers[e._leaflet_id]=e,i.fillRect(0,0,r.x,r.y),i.font=[n.fontWeight?n.fontWeight:"normal",n.fontSize?n.fontSize:"14px",n.fontFamily?n.fontFamily:"Arial Unicode MS Regular,Microsoft Yahei"].join(" "),i.textAlign=n.textAlign,i.lineWidth=n.weight,i.fillStyle=n.fillColor,i.fillText(e._text,l.x,l.y),i.strokeStyle=n.color,i.strokeText(e._text,l.x,l.y),i.rotate(n.rotation))}}}),u.SVGRenderer.include({_getTextWidth:function(e){return e._path.getComputedTextLength()||0},_initPath:function(e){var t;c&&e instanceof c?(t=e._path=o.default.SVG.create("text")).textContent=e._text:t=e._path=o.default.SVG.create("path"),e.options.className&&o.default.DomUtil.addClass(t,e.options.className),e.options.interactive&&o.default.DomUtil.addClass(t,"leaflet-interactive"),this._updateStyle(e),this._layers[o.default.stamp(e)]=e},_updateText:function(e){var t=e._path,r=e.options,i=r.offsetX||1,n=r.offsetY||1,a=e._point.subtract(o.default.point(i,n));t.setAttribute("x",a.x),t.setAttribute("y",a.y),r.rotation=r.rotation||0,t.setAttribute("transform","rotate("+r.rotation/Math.PI*180+" "+a.x+" "+a.y+")"),t.setAttribute("text-anchor","center"===r.textAlign?"middle":r.textAlign),t.style.fontSize=r.fontSize,t.style.fontFamily=r.fontFamily,t.style.fontWeight=r.fontWeight||"normal",t.style.glyphOrientationVertical=r.rotation||"",r.stroke?(t.setAttribute("stroke",r.color),t.setAttribute("stroke-linecap","round"),t.setAttribute("stroke-linejoin","round"),t.setAttribute("stroke-opacity",r.opacity),t.setAttribute("stroke-width",r.weight>1?r.weight/10:r.weight)):t.setAttribute("stroke","none"),r.fill?(t.setAttribute("fill",r.fillColor||r.color),t.setAttribute("fill-opacity",r.fillOpacity)):t.setAttribute("fill","none")}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CanvasRenderer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};t.CanvasRenderer=a.default.Canvas.extend({initialize:function(e,t,r){a.default.Canvas.prototype.initialize.call(this,r),this._tileCoord=e,this._size=t,this._initContainer(),this._container.setAttribute("width",this._size.x),this._container.setAttribute("height",this._size.y),this._layers={},this._drawnLayers={},this._drawing=!0,r.interactive&&(this._container.style.pointerEvents="auto")},getCoord:function(){return this._tileCoord},getContainer:function(){return this._container},getOffset:function(){return this._tileCoord.scaleBy(this._size).subtract(this._map.getPixelOrigin())},onAdd:a.default.Util.falseFn,addTo:function(e){this._map=e},removeFrom:function(e){delete this._map},_updateDashArray:function(e){var t=e.options.dashArray;if(t&&"string"==typeof t){var r,i=t.split(","),n=[];for(r=0;r<i.length;r++)n.push(Number(i[r]));e.options._dashArray=n}else e.options._dashArray=t},_onClick:function(e){var t,r,i=this._map.mouseEventToLayerPoint(e).subtract(this.getOffset());for(var n in this._layers)(t=this._layers[n]).options.interactive&&t._containsPoint(i)&&!this._map._draggableMoved(t)&&(r=t);r&&(a.default.DomEvent.stop(e),this._fireEvent([r],e))},_onMouseMove:function(e){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var t=this._map.mouseEventToLayerPoint(e).subtract(this.getOffset());this._handleMouseHover(e,t)}},_updateIcon:function(e){if(this._drawing){var t=e.options,r=this._ctx,i=e._getImage();if(t.iconSize&&i.complete){var n=a.default.point(t.iconSize),o=n&&n.divideBy(2,!0),s=e._point.subtract(o);r.drawImage(i,s.x,s.y,n.x,n.y)}else a.default.DomEvent.on(i,"load",function(){var t=a.default.point([i.width,i.height]),n=t&&t.divideBy(2,!0),o=e._point.subtract(n);r.drawImage(i,o.x,o.y,t.x,t.y)});this._drawnLayers[e._leaflet_id]=e}}});
  295. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  296. * This program are made available under the terms of the Apache License, Version 2.0
  297. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SVGRenderer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};t.SVGRenderer=a.default.SVG.extend({initialize:function(e,t,r){a.default.SVG.prototype.initialize.call(this,r),this._tileCoord=e,this._size=t,this._initContainer(),this._container.setAttribute("width",this._size.x),this._container.setAttribute("height",this._size.y),this._container.setAttribute("viewBox",[0,0,this._size.x,this._size.y].join(" ")),this._layers={}},getCoord:function(){return this._tileCoord},getContainer:function(){return this._container},onAdd:a.default.Util.falseFn,addTo:function(e){if(this._map=e,this.options.interactive)for(var t in this._layers){var r=this._layers[t];r._path.style.pointerEvents="auto",this._map._targets[a.default.stamp(r._path)]=r}},removeFrom:function(e){var t=e||this._map;if(this.options.interactive)for(var r in this._layers){var i=this._layers[r];delete t._targets[a.default.stamp(i._path)]}delete this._map},_addPath:function(e){this._rootGroup||this._initContainer(),this._rootGroup||(this._rootGroup=this._container),this._rootGroup.appendChild(e._path),this._layers[a.default.stamp(e)]=e},_updateIcon:function(e){var t=e._path=a.default.SVG.create("image"),r=e.options,i=r.iconUrl;if(r.iconSize){var n=a.default.point(r.iconSize),o=n&&n.divideBy(2,!0),s=e._point.subtract(o);t.setAttribute("x",s.x),t.setAttribute("y",s.y),t.setAttribute("width",n.x+"px"),t.setAttribute("height",n.y+"px")}else{var l=new Image;l.src=i,a.default.DomEvent.on(l,"load",function(){var r=a.default.point([l.width,l.height]),i=r&&r.divideBy(2,!0),n=e._point.subtract(i);t.setAttribute("x",n.x),t.setAttribute("y",n.y),t.setAttribute("width",r.x+"px"),t.setAttribute("height",r.y+"px")})}t.setAttribute("href",i)}});
  298. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  299. * This program are made available under the terms of the Apache License, Version 2.0
  300. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.themeFeature=t.ThemeFeature=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(5);var s=t.ThemeFeature=a.default.Class.extend({initialize:function(e,t){this.geometry=e,this.attributes=t},toFeature:function(){var e=this.geometry,t=[],r=void 0;if(e.toGeoJSON)return(r=e.toGeoJSON()).properties=this.attributes,(new o.GeoJSON).read(r)[0];if(3===e.length)e=new o.GeoText(e[1],e[0],e[2]);else if(2===e.length)e=new o.GeometryPoint(t[0],t[1]);else if(e instanceof a.default.LatLng)e=new o.GeometryPoint(e.lng,e.lat);else if(e instanceof a.default.Point)e=new o.GeometryPoint(e.x,e.y);else if(e instanceof a.default.CircleMarker){var i=e.getLatLng();e=new o.GeometryPoint(i.lng,i.lat)}return new o.GeometryVector(e,this.attributes)},reverseLatLngs:function(e){a.default.Util.isArray(e)||(e=[e]);for(var t=0;t<e.length;t++)e[t]=[e[t].lng,e[t].lat];return e}}),l=t.themeFeature=function(e,t){return new s(e,t)};
  301. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  302. * This program are made available under the terms of the Apache License, Version 2.0
  303. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/a.default.supermap.themeFeature=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeLayer=void 0;var i=s(r(2)),n=r(5),a=r(100),o=s(r(11));function s(e){return e&&e.__esModule?e:{default:e}}
  304. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  305. * This program are made available under the terms of the Apache License, Version 2.0
  306. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.ThemeLayer=i.default.Layer.extend({options:{alwaysMapCRS:!1,id:n.CommonUtil.createUniqueID("themeLayer_"),opacity:1,TFEvents:[],attribution:o.default.Common.attribution},initialize:function(e,t){i.default.Util.setOptions(this,t),this.name=e,this.features=[],this.TFEvents=this.options.TFEvents,this.levelRenderer=new n.LevelRenderer,this.movingOffset=[0,0]},getEvents:function(){var e={zoomend:this._reset,moveend:this._reset,resize:this._resize};return this._map._zoomAnimated&&(e.zoomanim=this._zoomAnim),e},onRemove:function(e){i.default.DomUtil.remove(this.container),e.off("mousemove",this.mouseMoveHandler)},onAdd:function(e){var t=this;if(t.map=t._map=e,t._initContainer(),t.levelRenderer){var r=e.getSize();t.container.style.width=r.x+"px",t.container.style.height=r.y+"px",t._updateOpacity(),t.renderer=t.levelRenderer.init(t.container),t.renderer.clear(),t.features&&t.features.length>0&&t._reset(),t.addTFEvents(),t.mouseMoveHandler=function(e){var r=e.layerPoint;t.currentMousePosition=i.default.point(r.x+t.movingOffset[0],r.y+t.movingOffset[1])},e.on("mousemove",t.mouseMoveHandler),t.update(e.getBounds())}else e.removeLayer(t)},addFeatures:function(e){},redrawThematicFeatures:function(e){},destroyFeatures:function(e){if(void 0===e&&(e=this.features),e){this.removeFeatures(e);for(var t=e.length-1;t>=0;t--)e[t].destroy()}},removeFeatures:function(e){var t=this;if(e&&0!==e.length){if(e===t.features)return t.removeAllFeatures();i.default.Util.isArray(e)||(e=[e]);for(var r=[],n=e.length-1;n>=0;n--){var a=e[n],o=i.default.Util.indexOf(t.features,a);-1!==o?t.features.splice(o,1):r.push(a)}for(var s=[],l=0,u=t.features.length;l<u;l++)a=t.features[l],s.push(a);t.features=[],t.addFeatures(s),t.renderer&&(t._map?t.redrawThematicFeatures(t._map.getBounds()):t.redrawThematicFeatures());var c=0==r.length;t.fire("featuresremoved",{features:r,succeed:c})}},removeAllFeatures:function(){this.renderer&&this.renderer.clear(),this.features=[],this.fire("featuresremoved",{features:[],succeed:!0})},getFeatures:function(){for(var e=this.features.length,t=new Array(e),r=0;r<e;++r)t[r]=this.features[r];return t},getFeatureBy:function(e,t){var r=null;for(var i in this.features)if(this.features[i][e]===t){r=this.features[i];break}return r},getFeatureById:function(e){return this.getFeatureBy("id",e)},getFeaturesByAttribute:function(e,t){var r,i=[];for(var n in this.features)(r=this.features[n])&&r.attributes&&r.attributes[e]===t&&i.push(r);return i},update:function(e){var t=this._map.containerPointToLayerPoint([0,0]);i.default.DomUtil.setPosition(this.container,t);var r=this;r.renderer&&r.redrawThematicFeatures(e),r.currentMousePosition&&(r.currentMousePosition=i.default.point(r.currentMousePosition.x-r.movingOffset[0],r.currentMousePosition.y-r.movingOffset[1])),r.movingOffset=[0,0],r._zoom=r._map.getZoom(),r._center=r._map.getCenter()},setOpacity:function(e){e!==this.options.opacity&&(isNaN(e)||(this.options.opacity=e,this._updateOpacity()))},redraw:function(){var e=this;return!!e.renderer&&(e._map?e.redrawThematicFeatures(e._map.getBounds()):e.redrawThematicFeatures(),!0)},on:function(e,t,r){return this.renderer?this.renderer.on(e,t):i.default.Layer.prototype.on.call(this,e,t),this},off:function(e,t,r){return this.renderer?this.renderer.un(e,t):i.default.Layer.prototype.off.call(this,e,t),this},fire:function(e,t,r){return this.renderer&&this.renderer.trigger(e,t),i.default.Layer.prototype.fire.call(this,e,t,r),this},addTFEvents:function(){for(var e=this.TFEvents,t=e.length,r=0;r<t;r++)this.renderer.on(e[r][0],e[r][1])},getLocalXY:function(e){if(!this._map)return e;var t=e;i.default.Util.isArray(e)&&(t=i.default.point(e[0],e[1])),e instanceof i.default.Point||(t=e instanceof n.GeometryPoint||e instanceof n.GeoText?i.default.point(e.x,e.y):i.default.point(e.lon,e.lat));var r=this._map.latLngToAccurateContainerPoint(this.options.alwaysMapCRS?this._map.options.crs.unproject(t):i.default.latLng(t.y,t.x));return[r.x,r.y]},toiClientFeature:function(e){n.CommonUtil.isArray(e)||(e=[e]);for(var t=[],r=0;r<e.length;r++)if(e[r]instanceof a.ThemeFeature)t.push(e[r].toFeature());else if(e[r]instanceof n.GeometryVector)t.push(e[r]);else if(-1!=["FeatureCollection","Feature","Geometry"].indexOf(e[r].type)){var i=new n.GeoJSON;t=t.concat(i.read(e[r]))}else{if(!e[r].geometry||!e[r].geometry.parts)throw new Error("features["+r+"]'s type is not be supported.");t.push(n.ServerFeature.fromJson(e[r]).toFeature())}return t},toFeature:function(e){return this.toiClientFeature(e)},_initContainer:function(){var e=this.getPane(),t="themeLayer leaflet-layer leaflet-zoom-"+(this._map.options.zoomAnimation&&i.default.Browser.any3d?"animated":"hide");this.container=i.default.DomUtil.create("div",t,e);var r=i.default.DomUtil.testProp(["transformOrigin","WebkitTransformOrigin","msTransformOrigin"]);this.container.id=this.options.id,this.container.style[r]="50% 50%",this.container.style.position="absolute",this.container.style.zIndex=200},_zoomAnim:function(e){var t=this._map.getZoomScale(e.zoom),r=this._map._getCenterOffset(e.center)._multiplyBy(-t).subtract(this._map._getMapPanePos());i.default.DomUtil.setTransform?i.default.DomUtil.setTransform(this.container,r,t):this.container.style[i.default.DomUtil.TRANSFORM]=i.default.DomUtil.getTranslateString(r)+" scale("+t+")"},_updateOpacity:function(){var e=this;n.CommonUtil.modifyDOMElement(e.container,null,null,null,null,null,null,e.options.opacity),null!==e._map&&e._map.fire("changelayer",{layer:e,property:"opacity"})},_reset:function(){var e=this,t=e._map.getBounds();e.update(t);var r=e._map.getSize(),n=this._map.containerPointToLayerPoint([0,0]);i.default.DomUtil.setPosition(this.container,n),parseFloat(e.container.width)!==parseFloat(r.x)&&(e.container.width=r.x+"px"),parseFloat(e.container.height)!==parseFloat(r.y)&&(e.container.height=r.y+"px"),e.redraw()},_resize:function(){var e=this._map.getSize();this.container.style.width=e.x+"px",this.container.style.height=e.y+"px",this.renderer.resize()}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CartoCSSToLeaflet=void 0;var i,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=r(2),o=(i=a)&&i.__esModule?i:{default:i};
  307. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  308. * This program are made available under the terms of the Apache License, Version 2.0
  309. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(3);var s=r(5),l=r(170),u=r(169);var c=t.CartoCSSToLeaflet=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.cartoCSS=null,this.mapUrl=t}return n(e,[{key:"pretreatedCartoCSS",value:function(e,t){t&&(e=this.processCharacters(e)),this.cartoCSS=this.cartoCSS||{};var r=new s.CartoCSS(e).getShaders();if(r)for(var i=0;i<r.length;i++){var n=r[i].elements[0],a=r[i].attachment;this.cartoCSS[n.clean]=this.cartoCSS[n.clean]||{},this.cartoCSS[n.clean][a]=this.cartoCSS[n.clean][a]||[],this.cartoCSS[n.clean][a].push(r[i])}}},{key:"processCharacters",value:function(e){var t=e;if(t){t=(t=t.replace(/[@]/gi,"___")).replace(/\\#/gi,"#");var r={};return this.layersInfo&&Object.keys(this.layersInfo).sort().forEach(function(e){for(var i=e.replace(/[@#\s]/gi,"___"),n=e,a=Object.keys(r),o=a.length;o>-1;o--)if(e.indexOf(a[o])>-1){n=e.replace(a[o],r[a[o]]);break}n=n.replace(/[#]/gi,"#"),r[e]=i,t=t.replace(new RegExp(n,"g"),i)}),t=(t=t.replace(/[#]/gi,"\n#")).replace(/\[zoom/gi,"[scale")}}},{key:"pickShader",value:function(e){if(!this.cartoCSS)return null;var t=e.replace(/[@#\s]/gi,"___");return this.cartoCSS[t]}},{key:"getDefaultStyle",value:function(e){var t={},r=l.DefaultStyle[e];for(var i in r){var n=r[i];t[i]=n}return t}},{key:"getStyleFromiPortalMarker",value:function(e){return 0==e.indexOf("./")?null:(0==e.indexOf("http://support.supermap.com.cn:8092/static/portal")&&(e=e.replace("http://support.supermap.com.cn:8092/static/portal","http://support.supermap.com.cn:8092/apps/viewer/static")),o.default.icon({iconUrl:e,iconSize:o.default.point(48,43),iconAnchor:o.default.point(24,43),popupAnchor:o.default.point(0,-43)}))}},{key:"getStyleFromiPortalStyle",value:function(e,t,r){var i=r?JSON.parse(r):null,n={};if("Point"===t||"MultiPoint"===t){var a=i||e.pointStyle;return a.externalGraphic?0==a.externalGraphic.indexOf("./")?null:(0==a.externalGraphic.indexOf("http://support.supermap.com.cn:8092/static/portal")&&(a.externalGraphic=a.externalGraphic.replace("http://support.supermap.com.cn:8092/static/portal","http://support.supermap.com.cn:8092/apps/viewer/static")),o.default.icon({iconUrl:a.externalGraphic,iconSize:o.default.point(a.graphicWidth,a.graphicHeight),iconAnchor:o.default.point(-a.graphicXOffset,-a.graphicYOffset),popupAnchor:o.default.point(0,-a.graphicHeight)})):(n.radius=a.pointRadius,n.color=a.strokeColor,n.opacity=a.strokeOpacity,n.lineCap=a.strokeLineCap,n.weight=a.strokeWidth,n.fillColor=a.fillColor,n.fillOpacity=a.fillOpacity,n.dashArray=this.dashStyle(a,1),n)}if("LineString"===t||"MultiLineString"===t||"Box"===t){var s=i||e.lineStyle;return n.color=s.strokeColor,n.opacity=s.strokeOpacity,n.fillOpacity=s.fillOpacity,n.lineCap=s.strokeLineCap,n.weight=s.strokeWidth,n.dashArray=this.dashStyle(s,1),n}if("Polygon"===t||"MultiPolygon"===t){var l=i||e.polygonStyle;return n.color=l.strokeColor,n.opacity=l.strokeOpacity,n.lineCap=l.strokeLineCap,n.weight=l.strokeWidth,n.fillColor=l.fillColor,n.fillOpacity=l.fillOpacity,n.dashArray=this.dashStyle(l,1),n}}},{key:"dashStyle",value:function(e,t){if(!e)return[];var r=e.strokeWidth*t,i=e.strokeDashstyle;switch(i){case"solid":return[];case"dot":return[1,4*r];case"dash":return[4*r,4*r];case"dashdot":return[4*r,4*r,1,4*r];case"longdash":return[8*r,4*r];case"longdashdot":return[8*r,4*r,1,4*r];default:return i?s.CommonUtil.isArray(i)?i:(i=s.StringExt.trim(i).replace(/\s+/g,",")).replace(/\[|\]/gi,"").split(","):[]}}},{key:"getValidStyleFromCarto",value:function(e,t,r,i,n){if(!r)return null;var a=i.type,o=i.properties.attributes||{},s=this.getDefaultStyle(a);n=void 0===n||n,o.FEATUREID=i.properties.id,o.SCALE=t;for(var l,c,p=u.CartoStyleMap[a],h=0,f=r.length;h<f;h++){var d=r[h],y=p[d.property],v=d.getValue(o,e,!0);if(null!==v&&y)if("fontSize"===y)n&&(v*=.8),l=v+"px",s.fontSize=l;else if("fontName"===y)c=v,s.fontName=c;else{if("globalCompositeOperation"===y){if(!(v=u.CompOpMap[v]))continue}else if(n&&"iconUrl"===y){v=(v=this.mapUrl+"/tileFeature/symbols/"+v.replace(/(___)/gi,"@")).replace(/(__0__0__)/gi,"__8__8__"),s.iconUrl=v;continue}"weight"===y&&v<1&&(v=Math.ceil(v)),s[y]=v}}return s}},{key:"getValidStyleFromLayerInfo",value:function(e,t){var r=e.type,i=this.getDefaultStyle(r),n=t&&t.layerStyle;if(!n)return i;if("POINT"===r){var a=Math.ceil(n.markerSize*s.SuperMap.DOTS_PER_INCH*s.SuperMap.INCHES_PER_UNIT.mm)||8,o={transparent:!0,resourceType:"SYMBOLMARKER",picWidth:a,picHeight:a,style:JSON.stringify(n)};return i.iconUrl=s.CommonUtil.urlAppend(this.mapUrl+"/symbol.png",s.CommonUtil.getParameterString(o)),i.iconSize=[a,a],i}if("TEXT"===r){if(n=e.properties.textStyle||t.layerStyle,i.fontWeight=n.bold?n.fontWeight:"normal",n.fontHeight){var l=n.fontHeight*s.SuperMap.DOTS_PER_INCH*s.SuperMap.INCHES_PER_UNIT.mm*.85;i.fontSize=l+"px",i.textHeight=l}if(n.fontName&&(i.fontFamily=n.fontName.indexOf("@")?n.fontName.replace(/@/g,""):n.fontName),n.align){var c=n.align.replace(/TOP|MIDDLE|BASELINE|BOTTOM/,"");i.textAlign=c.toLowerCase()}return i.weight=n.outline?n.outlineWidth:0,n.backColor&&(i.color="rgba("+n.backColor.red+","+n.backColor.green+","+n.backColor.blue+",1)"),n.foreColor&&(i.fillColor="rgba("+n.foreColor.red+","+n.foreColor.green+","+n.foreColor.blue+",1)"),i.rotation=n.rotation||0,i}var p=n.fillSymbolID>7?0:n.fillSymbolID,h=n.lineSymbolID>5?0:n.lineSymbolID;for(var f in n){var d=u.ServerStyleMap[f];if(d){var y=d.leafletStyle;switch(d.type){case"number":var v=n[f];d.unit&&(v=v*s.SuperMap.DOTS_PER_INCH*s.SuperMap.INCHES_PER_UNIT[d.unit]*2.5),i[y]=v;break;case"color":var m=n[f],g=void 0,b=1;if("fillColor"===y)0!==p&&1!==p||(b=1-p,g="rgba("+m.red+","+m.green+","+m.blue+","+b+")");else if("color"===y){if(0===h||5===h)b=0===h?1:0;else{var S=[1,0];switch(h){case 1:S=[9.7,3.7];break;case 2:S=[3.7,3.7];break;case 3:S=[9.7,3.7,2.3,3.7];break;case 4:S=[9.7,3.7,2.3,3.7,2.3,3.7]}i.lineDasharray=S}g="rgba("+m.red+","+m.green+","+m.blue+","+b+")"}i[y]=g}}}return t.textField&&(i.textAlign="LEFT"),i}}]),e}();o.default.supermap.CartoCSSToLeaflet=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.wmtsLayer=t.WMTSLayer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);
  310. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  311. * This program are made available under the terms of the Apache License, Version 2.0
  312. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  313. var o=t.WMTSLayer=a.default.TileLayer.extend({options:{version:"1.0.0",style:"",tilematrixSet:"",format:"image/png",tileSize:256,matrixIds:null,layer:"",requestEncoding:"KVP",attribution:""},initialize:function(e,t){this._url=e,a.default.setOptions(this,t);var r=this.options;if("REST"===r.requestEncoding){this.formatSuffix="."+({"image/png":"png","image/png8":"png","image/png24":"png","image/png32":"png",png:"png","image/jpeg":"jpg","image/jpg":"jpg",jpeg:"jpg",jpg:"jpg"}[r.format]||r.format.split("/").pop()||"png")}else r.requestEncoding="KVP"},getTileUrl:function(e){var t=this._getZoomForUrl(),r=this.options.matrixIds?this.options.matrixIds[t].identifier:t,i=a.default.Util.template(this._url,{s:this._getSubdomain(e)}),n={service:"WMTS",request:"GetTile",version:this.options.version,style:this.options.style,tilematrixSet:this.options.tilematrixSet,format:this.options.format,width:this.options.tileSize,height:this.options.tileSize,layer:this.options.layer,tilematrix:r,tilerow:e.y,tilecol:e.x};if(this.options.tileProxy&&(i=this.options.tileProxy+i),"KVP"===this.options.requestEncoding)i+=a.default.Util.getParamString(n,i);else if("REST"===this.options.requestEncoding){i+="/"+n.layer+"/"+n.style+"/"+n.tilematrixSet+"/"+n.tilematrix+"/"+n.tilerow+"/"+n.tilecol+this.formatSuffix}return i}}),s=t.wmtsLayer=function(e,t){return new o(e,t)};a.default.supermap.wmtsLayer=s},function(e,t,r){"use strict";e.exports=function(e,t){var r;return e>1e-7?(1-e*e)*(t/(1-(r=e*t)*r)-.5/e*Math.log((1-r)/(1+r))):2*t}},function(e,t,r){"use strict";e.exports=function(e,t,r,i,n){var a,o;a=e/t;for(var s=0;s<15;s++)if(a+=o=(e-(t*a-r*Math.sin(2*a)+i*Math.sin(4*a)-n*Math.sin(6*a)))/(t-2*r*Math.cos(2*a)+4*i*Math.cos(4*a)-6*n*Math.cos(6*a)),Math.abs(o)<=1e-10)return a;return NaN}},function(e,t,r){"use strict";e.exports=function(e,t,r){var i=t*r;return e/Math.sqrt(1-i*i)}},function(e,t,r){"use strict";e.exports=function(e,t){var r,i;if(e=e||{},!t)return e;for(i in t)void 0!==(r=t[i])&&(e[i]=r);return e}},function(e,t,r){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=r(432),a=r(107),o=r(428),s=r(425);function l(e,t){if(!(this instanceof l))return new l(e);t=t||function(e){if(e)throw e};var r=n(e);if("object"===(void 0===r?"undefined":i(r))){var o=s(r),u=l.projections.get(o.projName);u?(a(this,o),a(this,u),this.init(),t(null,this)):t(e)}else t(e)}l.projections=o,l.projections.start(),e.exports=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.nonEarthCRS=t.NonEarthCRS=t.nonProjection=t.NonProjection=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};a.default.Projection={};
  314. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  315. * This program are made available under the terms of the Apache License, Version 2.0
  316. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  317. var o=t.NonProjection=a.default.Class.extend({initialize:function(e){this.bounds=e},project:function(e){return new a.default.Point(e.lng,e.lat)},unproject:function(e){return new a.default.LatLng(e.y,e.x)}}),s=t.nonProjection=function(e){return new o(e)},l=t.NonEarthCRS=a.default.Class.extend({includes:a.default.CRS,initialize:function(e){e.origin&&(this.transformation=new a.default.Transformation(1,-e.origin.x,-1,e.origin.y)),this.projection=a.default.Projection.NonProjection(e.bounds),this.bounds=e.bounds,this.origin=e.origin,this.resolutions=e.resolutions},scale:function(e){return this.resolutions&&0!==this.resolutions.length?1/this.resolutions[e]:1/(Math.max(this.bounds.getSize().x,this.bounds.getSize().y)/256)*Math.pow(2,e)},zoom:function(e){if(!this.resolutions||0===this.resolutions.length){var t=1/(Math.max(this.bounds.getSize().x,this.bounds.getSize().y)/256);return Math.log(e/t)/Math.LN2}for(var r=0;r<this.resolutions.length;r++)if(1/this.resolutions[r]==e)return r;return-1},distance:function(e,t){var r=t.lng-e.lng,i=t.lat-e.lat;return Math.sqrt(r*r+i*i)},infinite:!1}),u=t.nonEarthCRS=function(e){return new l(e)};a.default.Projection.NonProjection=s,a.default.CRS.NonEarthCRS=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Lang=void 0;var i=r(0),n={code:null,defaultCode:"en-US",getCode:function(){return i.SuperMap.Lang.code||i.SuperMap.Lang.setCode(),i.SuperMap.Lang.code},setCode:function(){var e=this.getLanguageFromCookie();e?i.SuperMap.Lang.code=e:(e=i.SuperMap.Lang.defaultCode,0===(e="Netscape"===navigator.appName?navigator.language:navigator.browserLanguage).indexOf("zh")&&(e="zh-CN"),0===e.indexOf("en")&&(e="en-US"),i.SuperMap.Lang.code=e)},getLanguageFromCookie:function(){for(var e=document.cookie.split(";"),t=0;t<e.length;t++){for(var r=e[t];" "===r.charAt(0);)r=r.substring(1);if(-1!==r.indexOf("language="))return r.substring("language=".length,r.length)}return""},i18n:function(e){var t=i.SuperMap.Lang[i.SuperMap.Lang.getCode()],r=t&&t[e];return r||(r=e),r}};
  318. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  319. * This program are made available under the terms of the Apache License, Version 2.0
  320. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  321. t.Lang=n,i.SuperMap.Lang=n,i.SuperMap.i18n=i.SuperMap.Lang.i18n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmicRectangle=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(13);
  322. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  323. * This program are made available under the terms of the Apache License, Version 2.0
  324. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  325. t.SmicRectangle=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="smicrectangle",r.refOriginalPosition&&2===r.refOriginalPosition.length||(r.refOriginalPosition=[0,0]),r.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicRectangle",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Shape),i(t,[{key:"destroy",value:function(){this.type=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"_buildRadiusPath",value:function(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r,i,n,a,o,s=this.refOriginalPosition,l=t.x+s[0],u=t.y+s[1],c=t.width,p=t.height,h=t.radius;"number"==typeof h?r=i=n=a=h:h instanceof Array?1===h.length?r=i=n=a=h[0]:2===h.length?(r=n=h[0],i=a=h[1]):3===h.length?(r=h[0],i=a=h[1],n=h[2]):(r=h[0],i=h[1],n=h[2],a=h[3]):r=i=n=a=0,r+i>c&&(r*=c/(o=r+i),i*=c/o),n+a>c&&(n*=c/(o=n+a),a*=c/o),i+n>p&&(i*=p/(o=i+n),n*=p/o),r+a>p&&(r*=p/(o=r+a),a*=p/o),e.moveTo(l+r,u),e.lineTo(l+c-i,u),0!==i&&e.quadraticCurveTo(l+c,u,l+c,u+i),e.lineTo(l+c,u+p-n),0!==n&&e.quadraticCurveTo(l+c,u+p,l+c-n,u+p),e.lineTo(l+a,u+p),0!==a&&e.quadraticCurveTo(l,u+p,l,u+p-a),e.lineTo(l,u+r),0!==r&&e.quadraticCurveTo(l,u,l+r,u)}},{key:"buildPath",value:function(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition;t.radius?this._buildRadiusPath(e,t):(e.moveTo(t.x+r[0],t.y+r[1]),e.lineTo(t.x+r[0]+t.width,t.y+r[1]),e.lineTo(t.x+r[0]+t.width,t.y+r[1]+t.height),e.lineTo(t.x+r[0],t.y+r[1]+t.height),e.lineTo(t.x+r[0],t.y+r[1])),e.closePath()}},{key:"getRect",value:function(e){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t,r=this.refOriginalPosition;return e.__rect?e.__rect:(t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x+r[0]-t/2),y:Math.round(e.y+r[1]-t/2),width:e.width+t,height:e.height+t},e.__rect)}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmicImage=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(13);
  326. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  327. * This program are made available under the terms of the Apache License, Version 2.0
  328. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  329. var a=t.SmicImage=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="smicimage",r._imageCache={},r.refOriginalPosition&&2===r.refOriginalPosition.length||(r.refOriginalPosition=[0,0]),r.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicImage",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Shape),i(t,[{key:"destroy",value:function(){this.type=null,this._imageCache=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"brush",value:function(e,r,i){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var n=this.refOriginalPosition,a=this.style||{};r&&(a=this.getHighlightStyle(a,this.highlightStyle||{}));var o=a.image,s=this;if("string"==typeof o){var l=o;this._imageCache[l]?o=this._imageCache[l]:((o=new Image).onload=function(){o.onload=null,clearTimeout(t._refreshTimeout),t._needsRefresh.push(s),t._refreshTimeout=setTimeout(function(){i&&i(t._needsRefresh),t._needsRefresh=[]},10)},o.src=l,this._imageCache[l]=o)}if(o){if("IMG"==o.nodeName.toUpperCase())if(window.ActiveXObject){if("complete"!=o.readyState)return}else if(!o.complete)return;var u=a.width||o.width,c=a.height||o.height,p=a.x+n[0],h=a.y+n[1];if(!o.width||!o.height)return;if(e.save(),this.doClip(e),this.setContext(e,a),this.setTransform(e),a.sWidth&&a.sHeight){var f=a.sx+n[0]||0,d=a.sy+n[1]||0;e.drawImage(o,f,d,a.sWidth,a.sHeight,p,h,u,c)}else if(a.sx&&a.sy){var y=a.sx+n[0],v=a.sy+n[1],m=u-y,g=c-v;e.drawImage(o,y,v,m,g,p,h,u,c)}else e.drawImage(o,p,h,u,c);a.width||(a.width=u),a.height||(a.height=c),this.style.width||(this.style.width=u),this.style.height||(this.style.height=c),this.drawText(e,a,this.style),e.restore()}}},{key:"getRect",value:function(e){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t=this.refOriginalPosition;return{x:e.x+t[0],y:e.y+t[1],width:e.width,height:e.height}}},{key:"clearCache",value:function(){this._imageCache={}}}]),t}();a._needsRefresh=[],a._refreshTimeout=null},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmicBrokenLine=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(13),a=r(73),o=r(12);
  330. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  331. * This program are made available under the terms of the Apache License, Version 2.0
  332. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  333. t.SmicBrokenLine=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.brushTypeOnly="stroke",r.textPosition="end",r.type="smicbroken-line",r.refOriginalPosition&&2===r.refOriginalPosition.length||(r.refOriginalPosition=[0,0]),r.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicBrokenLine",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Shape),i(t,[{key:"destroy",value:function(){this.brushTypeOnly=null,this.textPosition=null,this.type=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"buildPath",value:function(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition,i=t.pointList;if(!(i.length<2)){var n=Math.min(t.pointList.length,Math.round(t.pointListLength||t.pointList.length));if(t.smooth&&"spline"!==t.smooth){var a,s,l,u=o.SUtil.SUtil_smoothBezier(i,t.smooth,!1,t.smoothConstraint,r);e.moveTo(i[0][0]+r[0],i[0][1]+r[1]);for(var c=0;c<n-1;c++)a=u[2*c],s=u[2*c+1],l=[i[c+1][0]+r[0],i[c+1][1]+r[1]],e.bezierCurveTo(a[0],a[1],s[0],s[1],l[0],l[1])}else if("spline"===t.smooth&&(n=(i=o.SUtil.SUtil_smoothSpline(i,null,null,r)).length),t.lineType&&"solid"!==t.lineType){if("dashed"===t.lineType||"dotted"===t.lineType||"dot"===t.lineType||"dash"===t.lineType||"longdash"===t.lineType){var p=t.lineWidth||1,h=p,f=p;"dashed"===t.lineType&&(h*=5,f*=5,t.lineCap&&"butt"!==t.lineCap&&(h-=p,f+=p)),"dotted"===t.lineType&&t.lineCap&&"butt"!==t.lineCap&&(h=1,f+=p),"dot"===t.lineType&&(f*=4,t.lineCap&&"butt"!==t.lineCap&&(h=1,f+=p)),"dash"===t.lineType&&(h*=4,f*=4,t.lineCap&&"butt"!==t.lineCap&&(h-=p,f+=p)),"longdash"===t.lineType&&(h*=8,f*=4,t.lineCap&&"butt"!==t.lineCap&&(h-=p,f+=p)),e.moveTo(i[0][0]+r[0],i[0][1]+r[1]);for(var d=1;d<n;d++)o.SUtil.SUtil_dashedLineTo(e,i[d-1][0]+r[0],i[d-1][1]+r[1],i[d][0]+r[0],i[d][1]+r[1],p,[h,f])}else if("dashdot"===t.lineType||"longdashdot"===t.lineType){var y=t.lineWidth||1,v=y,m=y,g=y,b=y;"dashdot"===t.lineType&&(v*=4,m*=4,b*=4,t.lineCap&&"butt"!==t.lineCap&&(v-=y,m+=y,g=1,b+=y)),"longdashdot"===t.lineType&&(v*=8,m*=4,b*=4,t.lineCap&&"butt"!==t.lineCap&&(v-=y,m+=y,g=1,b+=y)),y=(t.lineWidth||1)*("dashed"===t.lineType?5:1),e.moveTo(i[0][0]+r[0],i[0][1]+r[1]);for(var S=1;S<n;S++)o.SUtil.SUtil_dashedLineTo(e,i[S-1][0]+r[0],i[S-1][1]+r[1],i[S][0]+r[0],i[S][1]+r[1],y,[v,m,g,b])}}else{e.moveTo(i[0][0]+r[0],i[0][1]+r[1]);for(var _=1;_<n;_++)e.lineTo(i[_][0]+r[0],i[_][1]+r[1])}}}},{key:"getRect",value:function(e){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t=this.refOriginalPosition;return a.SmicPolygon.prototype.getRect.apply(this,[e,t])}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmicText=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(13),a=r(12);
  334. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  335. * This program are made available under the terms of the Apache License, Version 2.0
  336. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  337. t.SmicText=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="smictext",r.refOriginalPosition&&2===r.refOriginalPosition.length||(r.refOriginalPosition=[0,0]),r.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicText",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Shape),i(t,[{key:"destroy",value:function(){this.type=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"brush",value:function(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition,i=this.style;if(t&&(i=this.getHighlightStyle(i,this.highlightStyle||{})),void 0!==i.text&&!1!==i.text){e.save(),this.doClip(e),this.setContext(e,i),this.setTransform(e),i.textFont&&(e.font=i.textFont),e.textAlign=i.textAlign||"start",e.textBaseline=i.textBaseline||"middle";var n,o=(i.text+"").split("\n"),s=a.SUtil.Util_area.getTextHeight("ZH",i.textFont),l=this.getRectNoRotation(i),u=i.x+r[0];n="top"==i.textBaseline?l.y:"bottom"==i.textBaseline?l.y+s:l.y+s/2;for(var c=i.x+r[0],p=i.y+r[1],h=0,f=o.length;h<f;h++){switch(i.labelRect&&(e.fillRect(l.x-2,l.y,l.width+4,l.height),e.fillStyle=i.strokeColor,e.strokeRect(l.x-2,l.y,l.width+4,l.height),e.fillStyle=i.textColor),i.brushType){case"stroke":this.setCtxGlobalAlpha(e,"stroke",i),i.textRotation&&0!==i.textRotation?(e.save(),e.translate(c,p),e.rotate(i.textRotation*Math.PI/180),"top"==i.textBaseline?i.maxWidth?e.strokeText(o[h],0,s*h,i.maxWidth):e.strokeText(o[h],0,s*h):"bottom"==i.textBaseline?i.maxWidth?e.strokeText(o[h],0,s*(h+1)-l.height,i.maxWidth):e.strokeText(o[h],0,s*(h+1)-l.height):i.maxWidth?e.strokeText(o[h],0,s*(h+1)-l.height/2-s/2,i.maxWidth):e.strokeText(o[h],0,s*(h+1)-l.height/2-s/2),e.restore()):i.maxWidth?e.strokeText(o[h],u,n,i.maxWidth):e.strokeText(o[h],u,n),this.setCtxGlobalAlpha(e,"reset",i);break;case"both":i.textRotation&&0!==i.textRotation?(e.save(),e.translate(c,p),e.rotate(i.textRotation*Math.PI/180),"top"==i.textBaseline?i.maxWidth?(this.setCtxGlobalAlpha(e,"fill",i),e.fillText(o[h],0,s*h,i.maxWidth),this.setCtxGlobalAlpha(e,"reset",i),this.setCtxGlobalAlpha(e,"stroke",i),e.strokeText(o[h],0,s*h,i.maxWidth),this.setCtxGlobalAlpha(e,"reset",i)):(this.setCtxGlobalAlpha(e,"fill",i),e.fillText(o[h],0,s*h),this.setCtxGlobalAlpha(e,"reset",i),this.setCtxGlobalAlpha(e,"stroke",i),e.strokeText(o[h],0,s*h),this.setCtxGlobalAlpha(e,"reset",i)):"bottom"==i.textBaseline?i.maxWidth?(this.setCtxGlobalAlpha(e,"fill",i),e.fillText(o[h],0,s*(h+1)-l.height,i.maxWidth),this.setCtxGlobalAlpha(e,"reset",i),this.setCtxGlobalAlpha(e,"stroke",i),e.strokeText(o[h],0,s*(h+1)-l.height,i.maxWidth),this.setCtxGlobalAlpha(e,"reset",i)):(this.setCtxGlobalAlpha(e,"fill",i),e.fillText(o[h],0,s*(h+1)-l.height),this.setCtxGlobalAlpha(e,"reset",i),this.setCtxGlobalAlpha(e,"stroke",i),e.strokeText(o[h],0,s*(h+1)-l.height),this.setCtxGlobalAlpha(e,"reset",i)):i.maxWidth?(this.setCtxGlobalAlpha(e,"fill",i),e.fillText(o[h],0,s*(h+1)-l.height/2-s/2,i.maxWidth),this.setCtxGlobalAlpha(e,"reset",i),this.setCtxGlobalAlpha(e,"stroke",i),e.strokeText(o[h],0,s*(h+1)-l.height/2-s/2,i.maxWidth),this.setCtxGlobalAlpha(e,"reset",i)):(this.setCtxGlobalAlpha(e,"fill",i),e.fillText(o[h],0,s*(h+1)-l.height/2-s/2),this.setCtxGlobalAlpha(e,"reset",i),this.setCtxGlobalAlpha(e,"stroke",i),e.strokeText(o[h],0,s*(h+1)-l.height/2-s/2),this.setCtxGlobalAlpha(e,"reset",i)),e.restore()):i.maxWidth?(this.setCtxGlobalAlpha(e,"fill",i),e.fillText(o[h],u,n,i.maxWidth),this.setCtxGlobalAlpha(e,"reset",i),this.setCtxGlobalAlpha(e,"stroke",i),e.strokeText(o[h],u,n,i.maxWidth),this.setCtxGlobalAlpha(e,"reset",i)):(this.setCtxGlobalAlpha(e,"fill",i),e.fillText(o[h],u,n),this.setCtxGlobalAlpha(e,"reset",i),this.setCtxGlobalAlpha(e,"stroke",i),e.strokeText(o[h],u,n),this.setCtxGlobalAlpha(e,"reset",i));break;default:this.setCtxGlobalAlpha(e,"fill",i),i.textRotation&&0!==i.textRotation?(e.save(),e.translate(c,p),e.rotate(i.textRotation*Math.PI/180),"top"==i.textBaseline?i.maxWidth?e.fillText(o[h],0,s*h,i.maxWidth):e.fillText(o[h],0,s*h):"bottom"==i.textBaseline?i.maxWidth?e.fillText(o[h],0,s*(h+1)-l.height,i.maxWidth):e.fillText(o[h],0,s*(h+1)-l.height):i.maxWidth?e.fillText(o[h],0,s*(h+1)-l.height/2-s/2,i.maxWidth):e.fillText(o[h],0,s*(h+1)-l.height/2-s/2),e.restore()):i.maxWidth?e.fillText(o[h],u,n,i.maxWidth):e.fillText(o[h],u,n),this.setCtxGlobalAlpha(e,"reset",i)}n+=s}e.restore()}}},{key:"getRect",value:function(e){if(e.__rect)return e.__rect;for(var t,r,i,n,a=this.getTextBackground(e,!0),o=0,s=a.length;o<s;o++){var l=a[o];0==o?(t=l[0],i=l[0],r=l[1],n=l[1]):(l[0]<t&&(t=l[0]),l[0]>i&&(i=l[0]),l[1]<r&&(r=l[1]),l[1]>n&&(n=l[1]))}return e.__rect={x:t,y:r,width:i-t,height:n-r},e.__rect}},{key:"getRectNoRotation",value:function(e){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t,r=this.refOriginalPosition,i=a.SUtil.Util_area.getTextHeight("ZH",e.textFont),n=a.SUtil.Util_area.getTextWidth(e.text,e.textFont),o=a.SUtil.Util_area.getTextHeight(e.text,e.textFont),s=e.x+r[0];"end"==e.textAlign||"right"==e.textAlign?s-=n:"center"==e.textAlign&&(s-=n/2),t="top"==e.textBaseline?e.y+r[1]:"bottom"==e.textBaseline?e.y+r[1]-o:e.y+r[1]-o/2;var l,u=!1;if(e.maxWidth){var c=parseInt(e.maxWidth);c<n&&(l=n,u=!0,n=c),s=e.x+r[0],"end"==e.textAlign||"right"==e.textAlign?s-=n:"center"==e.textAlign&&(s-=n/2)}e.textFont&&(e.textFont.toLowerCase().indexOf("italic")>-1&&(n+=!0===u?i/3*(n/l):i/3));return{x:s,y:t,width:n,height:o}}},{key:"getTextBackground",value:function(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition;if(!t&&e.__textBackground)return e.__textBackground;var i=this.getRectNoRotation(e),n=e.x+r[0],a=e.y+r[1],o=[];if(e.textRotation&&0!==e.textRotation){var s=e.textRotation,l=this.getRotatedLocation(i.x,i.y,n,a,s),u=this.getRotatedLocation(i.x+i.width,i.y,n,a,s),c=this.getRotatedLocation(i.x+i.width,i.y+i.height,n,a,s),p=this.getRotatedLocation(i.x,i.y+i.height,n,a,s);o.push(l),o.push(u),o.push(c),o.push(p)}else{var h=[i.x,i.y],f=[i.x+i.width,i.y],d=[i.x+i.width,i.y+i.height],y=[i.x,i.y+i.height];o.push(h),o.push(f),o.push(d),o.push(y)}return e.__textBackground=o,e.__textBackground}},{key:"getRotatedLocation",value:function(e,t,r,i,n){var a,o,s=new Array;return t=-t,i=-i,n=-n,a=(e-r)*Math.cos(n/180*Math.PI)-(t-i)*Math.sin(n/180*Math.PI)+r,o=(e-r)*Math.sin(n/180*Math.PI)+(t-i)*Math.cos(n/180*Math.PI)+i,s[0]=a,s[1]=-o,s}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmicPoint=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(13);
  338. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  339. * This program are made available under the terms of the Apache License, Version 2.0
  340. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  341. t.SmicPoint=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="smicpoint",r.refOriginalPosition&&2===r.refOriginalPosition.length||(r.refOriginalPosition=[0,0]),r.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicPoint",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Shape),i(t,[{key:"destroy",value:function(){this.type=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"buildPath",value:function(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition;e.arc(t.x+r[0],t.y+r[1],t.r,0,2*Math.PI,!0)}},{key:"getRect",value:function(e){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t,r=this.refOriginalPosition;return e.__rect?e.__rect:(t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x+r[0]-e.r-t/2),y:Math.round(e.y+r[1]-e.r-t/2),width:2*e.r+t,height:2*e.r+t},e.__rect)}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(26);
  342. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  343. * This program are made available under the terms of the Apache License, Version 2.0
  344. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  345. var o=t.Circle=function(e){function t(e,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i));return n.x=isNaN(e)?0:e,n.y=isNaN(r)?0:r,n.r=isNaN(i)?0:i,n.CLASS_NAME="SuperMap.Feature.ShapeParameters.Circle",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.ShapeParameters),i(t,[{key:"destroy",value:function(){this.x=null,this.y=null,this.r=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();n.SuperMap.Feature=n.SuperMap.Feature||{},n.SuperMap.Feature.ShapeParameters.Circle=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Label=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(26);
  346. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  347. * This program are made available under the terms of the Apache License, Version 2.0
  348. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  349. var o=t.Label=function(e){function t(e,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i));return n.x=e,n.y=r,n.text=i,n.CLASS_NAME="SuperMap.Feature.ShapeParameters.Label",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.ShapeParameters),i(t,[{key:"destroy",value:function(){this.x=null,this.y=null,this.text=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();n.SuperMap.Feature=n.SuperMap.Feature||{},n.SuperMap.Feature.ShapeParameters.Label=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryBySQLParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(39);function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}
  350. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  351. * This program are made available under the terms of the Apache License, Version 2.0
  352. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  353. var l=t.QueryBySQLParameters=function(e){function t(e){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!e)return s(r);var r=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.returnContent=!0,a.Util.extend(r,e),r.CLASS_NAME="SuperMap.QueryBySQLParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.QueryParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.returnContent=null}}]),t}();n.SuperMap.QueryBySQLParameters=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UGCLayer=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(30);
  354. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  355. * This program are made available under the terms of the Apache License, Version 2.0
  356. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(4);var s=t.UGCLayer=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.bounds=null,this.caption=null,this.description=null,this.name=null,this.queryable=null,this.subLayers=null,this.type=null,this.visible=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.UGCLayer"}return i(e,[{key:"destroy",value:function(){a.Util.reset(this)}},{key:"fromJson",value:function(e){e=e||{},a.Util.extend(this,e);var t=this.bounds;t&&(this.bounds=new o.Bounds(t.leftBottom.x,t.leftBottom.y,t.rightTop.x,t.rightTop.y))}},{key:"toServerJSONObject",value:function(){var e={};return(e=a.Util.copyAttributes(e,this)).bounds&&e.bounds.toServerJSONObject&&(e.bounds=e.bounds.toServerJSONObject()),e}}]),e}();n.SuperMap.UGCLayer=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeRange=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(28),s=r(260),l=r(4);
  357. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  358. * This program are made available under the terms of the Apache License, Version 2.0
  359. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  360. var u=t.ThemeRange=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"RANGE",e));return r.precision="1.0E-12",r.items=null,r.rangeExpression=null,r.rangeMode=l.RangeMode.EQUALINTERVAL,r.rangeParameter=0,r.colorGradientType=l.ColorGradientType.YELLOW_RED,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.ThemeRange",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Theme),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;if(e.items){if(e.items.length>0)for(var r in e.items)e.items[r].destroy(),e.items[r]=null;e.items=null}e.rangeExpression=null,e.rangeMode=null,e.rangeParameter=null,e.colorGradientType=null}}],[{key:"fromObj",value:function(e){if(e){var r=new t;a.Util.copy(r,e);var i=e.items,n=i?i.length:0;r.items=[];for(var o=0;o<n;o++)r.items.push(s.ThemeRangeItem.fromObj(i[o]));return r}}}]),t}();n.SuperMap.ThemeRange=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeGraduatedSymbol=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(28),s=r(85),l=r(84),u=r(261),c=r(4);
  361. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  362. * This program are made available under the terms of the Apache License, Version 2.0
  363. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  364. var p=t.ThemeGraduatedSymbol=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"GRADUATEDSYMBOL",e));return r.baseValue=0,r.expression=null,r.flow=new s.ThemeFlow,r.graduatedMode=n.SuperMap.GraduatedMode.CONSTAN,r.offset=new l.ThemeOffset,r.style=new u.ThemeGraduatedSymbolStyle,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.ThemeGraduatedSymbol",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Theme),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;e.expression=null,e.flow&&(e.flow.destroy(),e.flow=null),e.graduatedMode=c.GraduatedMode.CONSTANT,e.offset&&(e.offset.destroy(),e.offset=null),e.style&&(e.style.destroy(),e.style=null)}},{key:"toJSON",value:function(){return a.Util.toJSON(this.toServerJSONObject())}},{key:"toServerJSONObject",value:function(){var e={};return e.type=this.type,e.memoryData=this.memoryData,e.baseValue=this.baseValue,e.expression=this.expression,e.graduatedMode=this.graduatedMode,this.flow&&(e.flowEnabled=this.flow.flowEnabled,e.leaderLineDisplayed=this.flow.leaderLineDisplayed,e.leaderLineStyle=this.flow.leaderLineStyle),this.offset&&(e.offsetFixed=this.offset.offsetFixed,e.offsetX=this.offset.offsetX,e.offsetY=this.offset.offsetY),this.style&&(e.negativeStyle=this.style.negativeStyle,e.negativeDisplayed=this.style.negativeDisplayed,e.positiveStyle=this.style.positiveStyle,e.zeroDisplayed=this.style.zeroDisplayed,e.zeroStyle=this.style.zeroStyle),e}}],[{key:"fromObj",value:function(e){if(e){var t=new n.SuperMap.ThemeGraduatedSymbol;return a.Util.copy(t,e),t.flow=s.ThemeFlow.fromObj(e),t.offset=l.ThemeOffset.fromObj(e),t.style=u.ThemeGraduatedSymbolStyle.fromObj(e),t}}}]),t}();n.SuperMap.ThemeGraduatedSymbol=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeDotDensity=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(28),s=r(14);
  365. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  366. * This program are made available under the terms of the Apache License, Version 2.0
  367. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  368. var l=t.ThemeDotDensity=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"DOTDENSITY",e));return r.dotExpression=null,r.style=new s.ServerStyle,r.value=null,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.ThemeDotDensity",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Theme),i(t,[{key:"destroy",value:function(){var e=this;e.dotExpression=null,e.value=null,e.style&&(e.style.destroy(),e.style=null)}},{key:"toServerJSONObject",value:function(){var e={};return(e=a.Util.copyAttributes(e,this)).style&&e.style.toServerJSONObject&&(e.style=e.style.toServerJSONObject()),e}}],[{key:"fromObj",value:function(e){if(e){var r=new t;return a.Util.copy(r,e),r.style=s.ServerStyle.fromJson(e.style),r}}}]),t}();n.SuperMap.ThemeDotDensity=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeGraph=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(28),s=r(85),l=r(84),u=r(265),c=r(264),p=r(263),h=r(262),f=r(4);
  369. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  370. * This program are made available under the terms of the Apache License, Version 2.0
  371. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  372. var d=t.ThemeGraph=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"GRAPH",e));return r.barWidth=0,r.flow=new s.ThemeFlow,r.graduatedMode=f.GraduatedMode.CONSTANT,r.graphAxes=new u.ThemeGraphAxes,r.graphSize=new c.ThemeGraphSize,r.graphSizeFixed=!1,r.graphText=new p.ThemeGraphText,r.graphType=f.ThemeGraphType.AREA,r.graphAxesTextDisplayMode=f.GraphAxesTextDisplayMode.NONE,r.items=null,r.memoryKeys=null,r.negativeDisplayed=!1,r.offset=new l.ThemeOffset,r.overlapAvoided=!0,r.roseAngle=0,r.startAngle=0,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.ThemeGraph",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Theme),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;if(e.barWidth=null,e.flow&&(e.flow.destroy(),e.flow=null),e.graduatedMode=null,e.graphAxes&&(e.graphAxes.destroy(),e.graphAxes=null),e.graphSize&&(e.graphSize.destroy(),e.graphSize=null),e.graphSizeFixed=null,e.graphText&&(e.graphText.destroy(),e.graphText=null),e.graphType=null,e.items){for(var r=0,i=e.items,n=i.length;r<n;r++)i[r].destroy();e.items=null}e.memoryKeys=null,e.negativeDisplayed=null,e.offset&&(e.offset.destroy(),e.offset=null),e.overlapAvoided=null,e.roseAngle=null,e.startAngle=null,e.graphAxesTextDisplayMode=null}},{key:"toJSON",value:function(){return a.Util.toJSON(this.toServerJSONObject())}},{key:"toServerJSONObject",value:function(){var e={};return e.type=this.type,this.graphText&&(e.graphTextDisplayed=this.graphText.graphTextDisplayed,e.graphTextFormat=this.graphText.graphTextFormat,e.graphTextStyle=this.graphText.graphTextStyle),this.flow&&(e.flowEnabled=this.flow.flowEnabled,e.leaderLineDisplayed=this.flow.leaderLineDisplayed,e.leaderLineStyle=this.flow.leaderLineStyle),this.graphAxes&&(e.axesColor=this.graphAxes.axesColor,e.axesDisplayed=this.graphAxes.axesDisplayed,e.axesGridDisplayed=this.graphAxes.axesGridDisplayed,e.axesTextDisplayed=this.graphAxes.axesTextDisplayed,e.axesTextStyle=this.graphAxes.axesTextStyle),this.graphSize&&(e.maxGraphSize=this.graphSize.maxGraphSize,e.minGraphSize=this.graphSize.minGraphSize),this.offset&&(e.offsetFixed=this.offset.offsetFixed,e.offsetX=this.offset.offsetX,e.offsetY=this.offset.offsetY),e.barWidth=this.barWidth,e.graduatedMode=this.graduatedMode,e.graphSizeFixed=this.graphSizeFixed,e.graphType=this.graphType,e.graphAxesTextDisplayMode=this.graphAxesTextDisplayMode,e.items=this.items,e.memoryKeys=this.memoryKeys,e.negativeDisplayed=this.negativeDisplayed,e.overlapAvoided=this.overlapAvoided,e.roseAngle=this.roseAngle,e.startAngle=this.startAngle,e}}],[{key:"fromObj",value:function(e){var r=new t,i=e.items,n=i?i.length:0;a.Util.copy(r,e),r.items=[],r.flow=s.ThemeFlow.fromObj(e),r.graphAxes=u.ThemeGraphAxes.fromObj(e),r.graphSize=c.ThemeGraphSize.fromObj(e),r.graphText=p.ThemeGraphText.fromObj(e),r.offset=l.ThemeOffset.fromObj(e);for(var o=0;o<n;o++)r.items.push(h.ThemeGraphItem.fromObj(i[o]));return r}}]),t}();n.SuperMap.ThemeGraph=d},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeUnique=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(28),s=r(14),l=r(125),u=r(4);
  373. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  374. * This program are made available under the terms of the Apache License, Version 2.0
  375. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  376. var c=t.ThemeUnique=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"UNIQUE",e));return r.defaultStyle=new s.ServerStyle,r.items=null,r.uniqueExpression=null,r.colorGradientType=u.ColorGradientType.YELLOW_RED,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.ThemeUnique",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Theme),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;if(e.uniqueExpression=null,e.colorGradientType=null,e.items){if(e.items.length>0)for(var r in e.items)e.items[r].destroy(),e.items[r]=null;e.items=null}e.defaultStyle&&(e.defaultStyle.destroy(),e.defaultStyle=null)}},{key:"toServerJSONObject",value:function(){var e={};if((e=a.Util.copyAttributes(e,this)).defaultStyle&&e.defaultStyle.toServerJSONObject&&(e.defaultStyle=e.defaultStyle.toServerJSONObject()),e.items){for(var t=[],r=e.items.length,i=0;i<r;i++)t.push(e.items[i].toServerJSONObject());e.items=t}return e}}],[{key:"fromObj",value:function(e){var r=new t,i=e.items,n=i?i.length:0;a.Util.extend(r,e),r.items=[],r.defaultStyle=s.ServerStyle.fromJson(e.defaultStyle);for(var o=0;o<n;o++)r.items.push(l.ThemeUniqueItem.fromObj(i[o]));return r}}]),t}();n.SuperMap.ThemeUnique=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeUniqueItem=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(14);
  377. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  378. * This program are made available under the terms of the Apache License, Version 2.0
  379. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ThemeUniqueItem=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.caption=null,this.style=new o.ServerStyle,this.unique=null,this.visible=!0,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeUniqueItem"}return i(e,[{key:"destroy",value:function(){var e=this;e.caption=null,e.unique=null,e.style&&(e.style.destroy(),e.style=null),e.visible=null}},{key:"toServerJSONObject",value:function(){var e={};return(e=a.Util.copyAttributes(e,this)).style&&e.style.toServerJSONObject&&(e.style=e.style.toServerJSONObject()),e}}],[{key:"fromObj",value:function(t){var r=new e;return a.Util.copy(r,t),r.style=o.ServerStyle.fromJson(t.style),r}}]),e}();n.SuperMap.ThemeUniqueItem=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetFeaturesBySQLParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(46);r(16);
  380. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  381. * This program are made available under the terms of the Apache License, Version 2.0
  382. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  383. var s=t.GetFeaturesBySQLParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.getFeatureMode="SQL",r.queryParameter=null,a.Util.extend(r,e),r.CLASS_NAME="SuperMap.GetFeaturesBySQLParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.GetFeaturesParametersBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.getFeatureMode=null,this.queryParameter&&(this.queryParameter.destroy(),this.queryParameter=null)}}],[{key:"toJsonParameters",value:function(e){var t={datasetNames:e.datasetNames,getFeatureMode:"SQL",queryParameter:e.queryParameter};return e.maxFeatures&&!isNaN(e.maxFeatures)&&(t.maxFeatures=e.maxFeatures),e.aggregations&&(t.aggregations=e.aggregations),a.Util.toJSON(t)}}]),t}();n.SuperMap.GetFeaturesBySQLParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeometryThiessenAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(87),s=r(9);
  384. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  385. * This program are made available under the terms of the Apache License, Version 2.0
  386. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  387. var l=t.GeometryThiessenAnalystParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.points=null,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.GeometryThiessenAnalystParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.ThiessenAnalystParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);if(this.points){for(var e=this.points.length-1;e>=0;e--)this.points[e].destroy();this.points=null}}}],[{key:"toObject",value:function(e,t){for(var r in e)"clipRegion"===r?t.clipRegion=s.ServerGeometry.fromGeometry(e.clipRegion):t[r]=e[r]}}]),t}();n.SuperMap.GeometryThiessenAnalystParameters=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeometryOverlayAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(129),s=r(9);
  388. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  389. * This program are made available under the terms of the Apache License, Version 2.0
  390. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  391. var l=t.GeometryOverlayAnalystParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e&&e.operateGeometry&&(r.operateGeometry=e.operateGeometry),e&&e.sourceGeometry&&(r.sourceGeometry=e.sourceGeometry),e&&e.operateGeometries&&(r.operateGeometries=e.operateGeometries),e&&e.sourceGeometries&&(r.sourceGeometries=e.sourceGeometries),e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.GeometryOverlayAnalystParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.OverlayAnalystParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;e.sourceGeometry&&(e.sourceGeometry.destroy(),e.sourceGeometry=null),e.sourceGeometries&&(e.sourceGeometries.destroy(),e.sourceGeometries=null),e.sourceGeometry&&(e.sourceGeometry.destroy(),e.sourceGeometry=null),e.operateGeometries&&(e.operateGeometries.destroy(),e.operateGeometries=null)}}],[{key:"toObject",value:function(e,t){for(var r in e)if("sourceGeometry"===r)t.sourceGeometry=s.ServerGeometry.fromGeometry(e.sourceGeometry);else if("sourceGeometries"===r){for(var i=[],n=0;n<e.sourceGeometries.length;n++)i.push(s.ServerGeometry.fromGeometry(e.sourceGeometries[n]));t.sourceGeometries=i}else if("operateGeometry"===r)t.operateGeometry=s.ServerGeometry.fromGeometry(e.operateGeometry);else if("operateGeometries"===r){for(var a=[],o=0;o<e.operateGeometries.length;o++)a.push(s.ServerGeometry.fromGeometry(e.operateGeometries[o]));t.operateGeometries=a}else t[r]=e[r]}}]),t}();n.SuperMap.GeometryOverlayAnalystParameters=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlayAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4);
  392. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  393. * This program are made available under the terms of the Apache License, Version 2.0
  394. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.OverlayAnalystParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.operation=o.OverlayOperationType.UNION,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.OverlayAnalystParameters"}return i(e,[{key:"destroy",value:function(){this.operation=null}}]),e}();n.SuperMap.OverlayAnalystParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeometryBufferAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(132),s=r(9);
  395. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  396. * This program are made available under the terms of the Apache License, Version 2.0
  397. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  398. var l=t.GeometryBufferAnalystParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.sourceGeometry=null,r.sourceGeometrySRID=null,e&&a.Util.extend(r,e),r.CLASS_NAME=" SuperMap.GeometryBufferAnalystParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.BufferAnalystParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.sourceGeometry&&(this.sourceGeometry.destroy(),this.sourceGeometry=null)}}],[{key:"toObject",value:function(e,t){for(var r in e)if("bufferSetting"===r){var i={};for(var n in e.bufferSetting)i[n]=e.bufferSetting[n];t.analystParameter=i}else"sourceGeometry"===r?t.sourceGeometry=s.ServerGeometry.fromGeometry(e.sourceGeometry):t[r]=e[r]}}]),t}();n.SuperMap.GeometryBufferAnalystParameters=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatasourceConnectionInfo=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  399. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  400. * This program are made available under the terms of the Apache License, Version 2.0
  401. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(4);var o=t.DatasourceConnectionInfo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.alias=null,this.connect=null,this.dataBase=null,this.driver=null,this.engineType=null,this.exclusive=null,this.OpenLinkTable=null,this.password=null,this.readOnly=null,this.server=null,this.user=null,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.DatasourceConnectionInfo"}return i(e,[{key:"destroy",value:function(){var e=this;e.alias=null,e.connect=null,e.dataBase=null,e.driver=null,e.engineType=null,e.exclusive=null,e.OpenLinkTable=null,e.password=null,e.readOnly=null,e.server=null,e.user=null}}]),e}();n.SuperMap.DatasourceConnectionInfo=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(314);
  402. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  403. * This program are made available under the terms of the Apache License, Version 2.0
  404. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.BufferAnalystParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);this.bufferSetting=new o.BufferSetting,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.BufferAnalystParameters"}return i(e,[{key:"destroy",value:function(){this.bufferSetting&&(this.bufferSetting.destroy(),this.bufferSetting=null)}}]),e}();n.SuperMap.BufferAnalystParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AggregationParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  405. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  406. * This program are made available under the terms of the Apache License, Version 2.0
  407. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.AggregationParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.aggName=null,this.aggType=null,this.aggFieldName=null,this.subAgg=null,this.CLASS_NAME="SuperMap.AggregationParameter",a.Util.extend(this,t)}return i(e,[{key:"destroy",value:function(){var e=this;e.aggName=null,e.aggFieldName=null,e.aggType=null,e.subAgg&&(e.subAgg=null)}}]),e}();n.SuperMap.AggregationParameter=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AggQueryBuilderParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  408. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  409. * This program are made available under the terms of the Apache License, Version 2.0
  410. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.AggQueryBuilderParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=null,this.queryType=null,this.CLASS_NAME="SuperMap.AggQueryBuilderParameter",a.Util.extend(this,t)}return i(e,[{key:"destroy",value:function(){this.name=null,this.queryType=null}}]),e}();n.SuperMap.AggQueryBuilderParameter=o},function(e,t,r){"use strict";var i,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":n(window))&&(i=window)}e.exports=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.JSONFormat=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=r(0),o=r(137);
  411. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  412. * This program are made available under the terms of the Apache License, Version 2.0
  413. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  414. var s=t.JSONFormat=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.indent=" ",r.space=" ",r.newline="\n",r.level=0,r.pretty=!1,r.nativeJSON=!(!window.JSON||"function"!=typeof JSON.parse||"function"!=typeof JSON.stringify),r.CLASS_NAME="SuperMap.Format.JSON",r.serialize={object:function(e){if(null==e)return"null";if(e.constructor===Date)return this.serialize.date.apply(this,[e]);if(e.constructor===Array)return this.serialize.array.apply(this,[e]);var t,r,i,n=["{"];this.level+=1;var a=!1;for(t in e)e.hasOwnProperty(t)&&(r=this.write.apply(this,[t,this.pretty]),i=this.write.apply(this,[e[t],this.pretty]),null!=r&&null!=i&&(a&&n.push(","),n.push(this.writeNewline(),this.writeIndent(),r,":",this.writeSpace(),i),a=!0));return this.level-=1,n.push(this.writeNewline(),this.writeIndent(),"}"),n.join("")},array:function(e){var t,r=["["];this.level+=1;for(var i=0,n=e.length;i<n;++i)null!=(t=this.write.apply(this,[e[i],this.pretty]))&&(i>0&&r.push(","),r.push(this.writeNewline(),this.writeIndent(),t));return this.level-=1,r.push(this.writeNewline(),this.writeIndent(),"]"),r.join("")},string:function(e){var t={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return/["\\\x00-\x1f]/.test(e)?'"'+e.replace(/([\x00-\x1f\\"])/g,function(e,r){var i=t[r];return i||(i=r.charCodeAt(),"\\u00"+Math.floor(i/16).toString(16)+(i%16).toString(16))})+'"':'"'+e+'"'},number:function(e){return isFinite(e)?String(e):"null"},boolean:function(e){return String(e)},date:function(e){function t(e){return e<10?"0"+e:e}return'"'+e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())+"T"+t(e.getHours())+":"+t(e.getMinutes())+":"+t(e.getSeconds())+'"'}},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Format),n(t,[{key:"read",value:function(e,t){var r;if(this.nativeJSON)try{r=JSON.parse(e,t)}catch(e){}return this.keepData&&(this.data=r),r}},{key:"write",value:function(e,t){this.pretty=!!t;var r=null,n=void 0===e?"undefined":i(e);if(this.serialize[n])try{r=!this.pretty&&this.nativeJSON?JSON.stringify(e):this.serialize[n].apply(this,[e])}catch(e){}return r}},{key:"writeIndent",value:function(){var e=[];if(this.pretty)for(var t=0;t<this.level;++t)e.push(this.indent);return e.join("")}},{key:"writeNewline",value:function(){return this.pretty?this.newline:""}},{key:"writeSpace",value:function(){return this.pretty?this.space:""}}]),t}();a.SuperMap.Format.JSON=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Format=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  415. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  416. * This program are made available under the terms of the Apache License, Version 2.0
  417. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.Format=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=null,this.keepData=!1,a.Util.extend(this,t),this.options=t,this.CLASS_NAME="SuperMap.Format"}return i(e,[{key:"destroy",value:function(){}},{key:"read",value:function(e){}},{key:"write",value:function(e){}}]),e}();n.SuperMap.Format=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Credential=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0);
  418. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  419. * This program are made available under the terms of the Apache License, Version 2.0
  420. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var a=t.Credential=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.value=t||"",this.name=r||"token",this.CLASS_NAME="SuperMap.Credential"}return i(e,[{key:"getUrlParameters",value:function(){return this.name+"="+this.value}},{key:"getValue",value:function(){return this.value}},{key:"destroy",value:function(){this.value=null,this.name=null}}]),e}();a.CREDENTIAL=null,n.SuperMap.Credential=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeoText=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(29),o=r(30),s=r(1),l=r(24);r(23),r(93),r(50);
  421. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  422. * This program are made available under the terms of the Apache License, Version 2.0
  423. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  424. var u=t.GeoText=function(e){function t(e,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i));return n.x=parseFloat(e),n.y=parseFloat(r),n.text=i.toString(),n.bsInfo={h:null,w:null},n.element=document.createElement("span"),n.CLASS_NAME="SuperMap.Geometry.GeoText",n.geometryType="GeoText",n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Geometry),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.x=null,this.y=null,this.text=null}},{key:"getCentroid",value:function(){return new l.Point(this.x,this.y)}},{key:"clone",value:function(e){return null==e&&(e=new t(this.x,this.y,this.text)),s.Util.applyDefaults(e,this),e}},{key:"calculateBounds",value:function(){this.bounds=new o.Bounds(this.x,this.y,this.x,this.y)}},{key:"getLabelPxBoundsByLabel",value:function(e,t,r,i){var n,a,l,u,c=s.Util.cloneObject(e),p=(i.label||this.text).split("\n").length;if(t=parseFloat(t),r=parseFloat(r),p>1&&(r=parseFloat(r)*p),i.labelAlign&&"cm"!==i.labelAlign)switch(i.labelAlign){case"lt":c.x+=t/2,c.y+=r/2;break;case"lm":c.x+=t/2;break;case"lb":c.x+=t/2,c.y-=r/2;break;case"ct":c.y+=r/2;break;case"cb":c.y-=r/2;break;case"rt":c.x-=t/2,c.y+=r/2;break;case"rm":c.x-=t/2;break;case"rb":c.x-=t/2,c.y-=r/2}return this.bsInfo.h=r,this.bsInfo.w=t,n=c.x-parseFloat(t)/2,a=c.y+parseFloat(r)/2,u=c.x+parseFloat(t)/2,l=c.y-parseFloat(r)/2,new o.Bounds(n,a,u,l)}},{key:"getLabelPxBoundsByText",value:function(e,t){var r,i,n,a,l=this.getLabelPxSize(t),u=s.Util.cloneObject(e);if(t.labelAlign&&"cm"!==t.labelAlign)switch(t.labelAlign){case"lt":u.x+=l.w/2,u.y+=l.h/2;break;case"lm":u.x+=l.w/2;break;case"lb":u.x+=l.w/2,u.y-=l.h/2;break;case"ct":u.y+=l.h/2;break;case"cb":u.y-=l.h/2;break;case"rt":u.x-=l.w/2,u.y+=l.h/2;break;case"rm":u.x-=l.w/2;break;case"rb":u.x-=l.w/2,u.y-=l.h/2}return this.bsInfo.h=l.h,this.bsInfo.w=l.w,r=u.x-l.w/2,i=u.y+l.h/2,a=t.fontStyle&&"italic"===t.fontStyle?u.x+l.w/2+parseInt(parseFloat(t.fontSize)/2):u.x+l.w/2,n=u.y-l.h/2,new o.Bounds(r,i,a,n)}},{key:"getLabelPxSize",value:function(e){var t,r,i,n,a=parseFloat(e.strokeWidth);t=e.label||this.text,r=e.fontSize?parseFloat(e.fontSize):parseFloat("12px");var o=t.split("\n"),l=o.length;n=l>1?r*l+l+a+.2*r:r+a+.2*r+1,i=0,this.labelWTmp&&i<this.labelWTmp&&(i=this.labelWTmp);for(var u=0;u<l;u++){var c=this.getTextCount(o[u]),p=this.labelWTmp=s.Util.getTextBounds(e,o[u],this.element).textWidth+1*c.textC+a;i<p&&(i=p)}var h=new Object;return h.h=n,h.w=i,h}},{key:"getTextCount",value:function(e){for(var t={},r=0,i=0,n=0;n<e.length;n++)e.charCodeAt(n)>255?r++:i++;return t.cnC=r,t.enC=i,t.textC=e.length,t}}]),t}();n.SuperMap.Geometry.GeoText=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Curve=void 0;var i=r(0),n=r(49);
  425. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  426. * This program are made available under the terms of the Apache License, Version 2.0
  427. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  428. var a=t.Curve=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.componentTypes=["SuperMap.Geometry.Point","SuperMap.PointWithMeasure"],r.CLASS_NAME="SuperMap.Geometry.Curve",r.geometryType="Curve",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.MultiPoint),t}();i.SuperMap.Geometry.Curve=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataServiceQueryViewModel=t.DataServiceQueryViewModel=void 0;var i,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=r(2),o=(i=a)&&i.__esModule?i:{default:i};r(3);var s=r(5);
  429. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  430. * This program are made available under the terms of the Apache License, Version 2.0
  431. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  432. t.DataServiceQueryViewModel=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o["default"].Evented),n(t,[{key:"initialize",value:function(e){this.dataserviceUrl=e,this.resultLayers=[]}},{key:"getFeatures",value:function(e,t){var r=this.dataserviceUrl,i=this,n=o.default.supermap.featureService(r);e instanceof s.GetFeaturesByIDsParameters?n.getFeaturesByIDs(e,function(e){i._getQureyResult(e,t)}):e instanceof s.GetFeaturesBySQLParameters?n.getFeaturesBySQL(e,function(e){i._getQureyResult(e,t)}):e instanceof s.GetFeaturesByBoundsParameters?n.getFeaturesByBounds(e,function(e){i._getQureyResult(e,t)}):e instanceof s.GetFeaturesByBufferParameters?n.getFeaturesByBuffer(e,function(e){i._getQureyResult(e,t)}):e instanceof s.GetFeaturesByGeometryParameters&&n.getFeaturesByGeometry(e,function(e){i._getQureyResult(e,t)})}},{key:"_getQureyResult",value:function(e,t){if(e.error)this.fire("getfeaturesfailed",{error:e.error});else{var r=o.default.geoJSON(e.result.features,{onEachFeature:function(e,t){t.bindPopup("ID: "+e.properties.SMID)},pointToLayer:function(e,t){return o.default.circleMarker(t,{radius:6})}}).addTo(t);this.resultLayers.push(r),this.fire("getfeaturessucceeded",{result:e.result.features})}}},{key:"clearLayers",value:function(){for(var e in this.resultLayers)this.resultLayers[e].remove();this.resultLayers=[]}}]),t}();var l=t.dataServiceQueryViewModel=function e(t){return new e(t)};o.default.supermap.widgets.dataServiceQueryViewModel=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distributedAnalysisViewModel=t.DistributedAnalysisViewModel=void 0;var i,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=r(2),o=(i=a)&&i.__esModule?i:{default:i};r(3);var s=r(334),l=r(5),u=r(147);
  433. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  434. * This program are made available under the terms of the Apache License, Version 2.0
  435. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  436. var c=t.DistributedAnalysisViewModel=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o["default"].Evented),n(t,[{key:"initialize",value:function(e){this.processingUrl=e}},{key:"getDatasetsName",value:function(){var e=this.processingUrl;this.resultLayers=[],this.datasetNames=[],this.distributedAnalysisModel=new s.DistributedAnalysisModel(e),this.distributedAnalysisModel.getDatasetsName();var t=this;this.distributedAnalysisModel.on("datasetsloaded",function(e){t.fire("datasetsloaded",{result:e.result})})}},{key:"getDatasetInfo",value:function(e){this.distributedAnalysisModel.getDatasetInfo(e);var t=this;this.distributedAnalysisModel.on("datasetinfoloaded",function(e){var r=e.result.type,i=e.result.fields;t.fire("datasetinfoloaded",{result:{type:r,fields:i}})})}},{key:"analysis",value:function(e,t){var r=new u.ProcessingService(this.processingUrl);if(e.analysisParam instanceof l.KernelDensityJobParameter){var i=e.analysisParam,n=this;r.addKernelDensityJob(i,function(r){r.error?n.fire("analysisfailed",{error:r.error}):r.result.setting.serviceInfo.targetServiceInfos.map(function(r){return"RESTMAP"===r.serviceType&&l.FetchRequest.get(r.serviceAddress+"/maps").then(function(e){return e.json()}).then(function(r){var i=r[0].path;n.fire("analysissucceed",{result:r});var a=o.default.supermap.tiledMapLayer(i,{noWrap:!0,transparent:!0});n.resultLayers.push(a),a.addTo(t);var s=new Date,l=e.resultLayerName||s.getTime();n.fire("layerloaded",{layer:a,name:l})}),r})})}}},{key:"clearLayers",value:function(){for(var e in this.resultLayers)this.resultLayers[e].remove();this.fire("layersremoved",{layers:this.resultLayers}),this.resultLayers=[]}}]),t}(),p=t.distributedAnalysisViewModel=function(e){return new c(e)};o.default.supermap.widgets.distributedAnalysisViewModel=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.geoJSONLayerWithName=t.GeoJSONLayerWithName=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);
  437. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  438. * This program are made available under the terms of the Apache License, Version 2.0
  439. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  440. var o=t.GeoJSONLayerWithName=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.layerName=t,this.layer=r},s=t.geoJSONLayerWithName=function(e,t){return new o(e,t)};a.default.supermap.widgets.geoJSONLayerWithName=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clientComputationViewModel=t.ClientComputationViewModel=void 0;var i,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=r(2),o=(i=a)&&i.__esModule?i:{default:i};r(3);var s=r(143),l=r(94),u=r(5);
  441. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  442. * This program are made available under the terms of the Apache License, Version 2.0
  443. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  444. var c=t.ClientComputationViewModel=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o["default"].Evented),n(t,[{key:"initialize",value:function(e){this.workerUrl=e,this.turfLayers=[]}},{key:"getLayersData",value:function(e){for(var t={},r={},i={},n={},a=0;a<e;a++)e[a]=new s.GeoJSONLayerWithName(e[a].layerName,e[a].layer);this.geoJsonLayersDataModel=new l.GeoJsonLayersDataModel(e);for(var o=[],u=0;u<e.length;u++)o[e[u].layerName]={fields:e[u].fields,layer:e[u].layer.toGeoJSON()};for(var c in this.geoJsonLayersDataModel.layers){var p=void 0;p=o[c].fields?o[c].fields:this.geoJsonLayersDataModel.layers[c].getAttributeNamesByType("Num");for(var h=[],f=0;f<p.length;f++){h[p[f]]=this.geoJsonLayersDataModel.layers[c].getAttributeValueByAttributeName(p[f]);for(var d=h[p[f]],y=0;y<d.length;y++)""!=d[y]&&void 0!==d[y]||(d.splice(y,1),y-=1),d[y]=parseFloat(d[y]);h[p[f]]=Array.from(new Set(d.sort(function(e,t){return e-t})))}var v={layerName:c,fields:p,fieldsValue:h,features:o[c].layer},m=o[c].layer.features[0].geometry.type;"Point"===m?r[c]=v:"LineString"===m?i[c]=v:"Polygon"===m&&(n[c]=v)}return t.point=r,t.lineString=i,t.polygon=n,t}},{key:"analysis",value:function(e,t){this.geoJsonLayersDataModel.setCurrentLayerDataModel(e.analysisLayers),this.worker=new Worker(this.workerUrl);var r=this.geoJsonLayersDataModel.currentLayerDataModel.layer.toGeoJSON();if("isolines"===e.analysisMethod){for(var i=e.analysisFieldsValue.split(","),n=r,a=0;a<i.length;a++)i[a]=parseFloat(i[a]);var s=this,l={pointGrid:n,analysisMethod:e.analysisMethod,breaks:i,zProperty:e.analysisFields,analysisCellSize:e.analysisCellSize,options:{gridType:"point",property:e.analysisFields,weight:Number(e.analysisBreaks)}};this.worker.postMessage(l),this.worker.onmessage=function(r){if(0===r.data.features.length)s.fire("analysisfailed");else{s.fire("analysissucceeded",{data:r.data});var i=o.default.geoJSON(r.data,{style:{color:"#1060C2",weight:3},onEachFeature:function(e,t){e.properties&&t.bindPopup(new u.AttributesPopContainer(e.properties).getElement()),t.on({mouseover:function(){t.setStyle({color:"#ffffff",weight:5})},mouseout:function(){t.setStyle({color:"#1060C2",weight:3})},click:function(){t.setStyle({color:"#ffffff",weight:5})}})}}).addTo(t);s.turfLayers.push(i),s.fire("layerloaded",{layer:i,name:e.resultLayersName}),s.worker.terminate()}}}else if("buffer"===e.analysisMethod){var c=this,p={analysisMethod:"buffer",radius:e.radius,unit:e.unit,isSave:e.isSaveStatus,isUnion:e.isUnion,geoJson:r};this.worker.postMessage(p),this.worker.onmessage=function(r){var i=o.default.geoJSON(r.data,{style:{color:"#ffffff",fillColor:"#1060C2",fillOpacity:.5,weight:1.5},onEachFeature:function(e,t){e.properties&&t.bindPopup(new u.AttributesPopContainer(e.properties).getElement()),t.on({mouseover:function(){t.setStyle({color:"#ffffff",fillColor:"rgb(46,40,79)",fillOpacity:.5,weight:5})},mouseout:function(){t.setStyle({color:"#ffffff",fillColor:"#1060C2",fillOpacity:.5,weight:1.5})},click:function(){t.setStyle({color:"#ffffff",fillColor:"rgb(46,40,79)",fillOpacity:.5,weight:2})}})}}).addTo(t);c.turfLayers.push(i),c.fire("layerloaded",{layer:i,name:e.resultLayersName}),c.worker.terminate()}}}},{key:"clearLayers",value:function(){for(var e in this.turfLayers)this.turfLayers[e].clearLayers();this.fire("layersremoved",{layers:this.turfLayers})}},{key:"cancelAnalysis",value:function(){this.worker.terminate()}}]),t}(),p=t.clientComputationViewModel=function(e){return new c(e)};o.default.supermap.widgets.clientComputationViewModel=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.searchViewModel=t.SearchViewModel=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(5),s=r(94);
  445. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  446. * This program are made available under the terms of the Apache License, Version 2.0
  447. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  448. var l=t.SearchViewModel=a.default.Evented.extend({options:{cityGeoCodingConfig:{addressUrl:"http://www.supermapol.com/iserver/services/localsearch/rest/searchdatas/China/poiinfos",key:"fvV2osxwuZWlY0wJb8FEb2i5"}},initialize:function(e,t){if(!e)return new Error("Cannot find map, fileModel.map cannot be null.");this.map=e,a.default.Util.setOptions(this,t),this.dataModel=new s.GeoJsonLayersDataModel,this.geoCodeParam={keyWords:"北京市",city:"北京市",pageSize:this.options.pageSize,pageNum:this.options.pageNum},this.searchCache={}},search:function(e,t){t?this.searchFromLayer(e,t):this.searchFromCityLocalSearchService(e)},searchFromLayer:function(e,t){if(this.dataModel.layers[t]){var r=this.dataModel.layers[t].getFeaturesByKeyWord(e);r&&r.length>0?this.fire("searchlayersucceeded",{result:r}):this.fire("searchfailed",{searchType:"searchLayersField"})}},searchFromCityLocalSearchService:function(e){if(this.searchCache[e])this.fire("geocodesucceeded",{result:this.searchCache[e]});else{this.geoCodeParam.keyWords=e||this.geoCodeParam.city;var t=this,r=this._getSearchUrl(this.geoCodeParam);o.FetchRequest.get(r).then(function(e){return e.json()}).then(function(e){if(e.error||0===e.poiInfos.length)t.fire("searchfailed",{searchType:"searchGeocodeField"});else if(e.poiInfos){var r=t._dataToGeoJson(e.poiInfos,t.geoCodeParam);t.fire("geocodesucceeded",{result:r})}})}},addSearchLayers:function(e){var t=this;this.dataModel.addLayers(e,function(e){t.fire("newlayeradded",{layerName:e.layerName})},null,this)},panToLayer:function(e){this.dataModel.layers[e]&&this.map.flyToBounds(this.dataModel.layers[e].layer.getBounds())},panToCity:function(e){this.geoCodeParam.keyWords=e,this.geoCodeParam.city=e;var t=this,r=this._getSearchUrl(this.geoCodeParam);o.FetchRequest.get(r).then(function(e){return e.json()}).then(function(e){if(e.poiInfos.length>0){var r=a.default.latLng(e.poiInfos[0].location.y,e.poiInfos[0].location.x);t.map.setView(r,8)}else t.fire("searchfailed",{searchType:"cityGeocodeField"})})},_dataToGeoJson:function(e,t){for(var r=[],i=0;i<e.length;i++){var n={type:"Feature",geometry:{type:"Point",coordinates:[e[i].location.x,e[i].location.y]},properties:{name:e[i].name||t.keyWords,address:e[i].formatedAddress||e[i].address}};r.push(n)}return r},_getSearchUrl:function(e){return this.options.cityGeoCodingConfig.addressUrl+".json?keywords="+e.keyWords+"&city="+e.city+"&pageSize="+e.pageSize+"&pageNum="+e.pageNum+"&key="+this.options.cityGeoCodingConfig.key}}),u=t.searchViewModel=function(e){return new l(e)};a.default.supermap.widgets.searchViewModel=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openFileViewModel=t.OpenFileViewModel=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(5);var s=t.OpenFileViewModel=a.default.Evented.extend({initialize:function(){this.fileModel=new o.FileModel},readFile:function(e){var t=e.target,r=t.files[0];if(r.size>this.fileModel.FileConfig.fileMaxSize)return this.fire("filesizeexceed",{messageType:"warring",message:o.Lang.i18n("msg_fileSizeExceeded")}),!1;var i=t.value,n=r.name,a=o.widgetsUtil.getFileType(n);if(!a)return this.fire("errorfileformat",{messageType:"failure",message:o.Lang.i18n("msg_fileTypeUnsupported")}),!1;""!==n&&(this.fileModel.set("loadFileObject",{file:r,filePath:i,fileName:n,fileType:a}),this._readData())},_readData:function(){var e=this,t=this,r=this.fileModel.loadFileObject.fileType;o.FileReaderUtil.readFile(r,{file:this.fileModel.loadFileObject.file,path:this.fileModel.loadFileObject.filePath},function(i){o.FileReaderUtil.processDataToGeoJson(r,i,function(t){t&&e.fire("openfilesucceeded",{result:t,layerName:e.fileModel.loadFileObject.fileName.split(".")[0]})},function(e){t.fire("openfilefailed",{messageType:"failure",message:e})},e)},function(){t.fire("openfilefailed",{messageType:"failure",message:o.Lang.i18n("msg_openFileFail")})},this)}}),l=t.openFileViewModel=function(e){return new s(e)};
  449. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  450. * This program are made available under the terms of the Apache License, Version 2.0
  451. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/a.default.supermap.widgets.openFileViewModel=l,a.default.supermap.widgets.util=o.widgetsUtil},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.processingService=t.ProcessingService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(8),s=r(25),l=r(5);var u=t.ProcessingService=o.ServiceBase.extend({initialize:function(e,t){t=t||{},a.default.setOptions(this,t),o.ServiceBase.prototype.initialize.call(this,e,t),this.kernelDensityJobs={},this.summaryMeshJobs={},this.queryJobs={},this.summaryRegionJobs={},this.vectorClipJobs={},this.overlayGeoJobs={},this.buffersJobs={},this.topologyValidatorJobs={},this.summaryAttributesJobs={}},getKernelDensityJobs:function(e,t){var r=this,i=r._processFormat(t);new l.KernelDensityJobsService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:e,processFailed:e},format:i}).getKernelDensityJobs()},getKernelDensityJob:function(e,t,r){var i=this,n=i._processFormat(r);new l.KernelDensityJobsService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:n}).getKernelDensityJob(e)},addKernelDensityJob:function(e,t,r,i){var n=this,a=n._processParams(e),o=n._processFormat(i);new l.KernelDensityJobsService(n.url,{proxy:n.options.proxy,withCredentials:n.options.withCredentials,crossOrigin:n.options.crossOrigin,serverType:n.options.serverType,eventListeners:{scope:n,processCompleted:t,processFailed:t,processRunning:function(e){n.kernelDensityJobs[e.id]=e.state}},format:o}).addKernelDensityJob(a,r)},getKernelDensityJobState:function(e){return this.kernelDensityJobs[e]},getSummaryMeshJobs:function(e,t){var r=this,i=r._processFormat(t);new l.SummaryMeshJobsService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:e,processFailed:e},format:i}).getSummaryMeshJobs()},getSummaryMeshJob:function(e,t,r){var i=this,n=i._processFormat(r);new l.SummaryMeshJobsService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:n}).getSummaryMeshJob(e)},addSummaryMeshJob:function(e,t,r,i){var n=this,a=n._processParams(e),o=n._processFormat(i);new l.SummaryMeshJobsService(n.url,{proxy:n.options.proxy,withCredentials:n.options.withCredentials,crossOrigin:n.options.crossOrigin,serverType:n.options.serverType,eventListeners:{scope:n,processCompleted:t,processFailed:t,processRunning:function(e){n.summaryMeshJobs[e.id]=e.state}},format:o}).addSummaryMeshJob(a,r)},getSummaryMeshJobState:function(e){return this.summaryMeshJobs[e]},getQueryJobs:function(e,t){var r=this,i=r._processFormat(t);new l.SingleObjectQueryJobsService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:e,processFailed:e},format:i}).getQueryJobs()},getQueryJob:function(e,t,r){var i=this,n=i._processFormat(r);new l.SingleObjectQueryJobsService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:n}).getQueryJob(e)},addQueryJob:function(e,t,r,i){var n=this,a=n._processParams(e),o=n._processFormat(i);new l.SingleObjectQueryJobsService(n.url,{proxy:n.options.proxy,withCredentials:n.options.withCredentials,crossOrigin:n.options.crossOrigin,serverType:n.options.serverType,eventListeners:{scope:n,processCompleted:t,processFailed:t,processRunning:function(e){n.queryJobs[e.id]=e.state}},format:o}).addQueryJob(a,r)},getQueryJobState:function(e){return this.queryJobs[e]},getSummaryRegionJobs:function(e,t){var r=this,i=r._processFormat(t);new l.SummaryRegionJobsService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:e,processFailed:e},format:i}).getSummaryRegionJobs()},getSummaryRegionJob:function(e,t,r){var i=this,n=i._processFormat(r);new l.SummaryRegionJobsService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:n}).getSummaryRegionJob(e)},addSummaryRegionJob:function(e,t,r,i){var n=this,a=n._processParams(e),o=n._processFormat(i);new l.SummaryRegionJobsService(n.url,{proxy:n.options.proxy,withCredentials:n.options.withCredentials,crossOrigin:n.options.crossOrigin,serverType:n.options.serverType,eventListeners:{scope:n,processCompleted:t,processFailed:t,processRunning:function(e){n.summaryRegionJobs[e.id]=e.state}},format:o}).addSummaryRegionJob(a,r)},getSummaryRegionJobState:function(e){return this.summaryRegionJobs[e]},getVectorClipJobs:function(e,t){var r=this,i=r._processFormat(t);new l.VectorClipJobsService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:e,processFailed:e},format:i}).getVectorClipJobs()},getVectorClipJob:function(e,t,r){var i=this,n=i._processFormat(r);new l.VectorClipJobsService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:n}).getVectorClipJob(e)},addVectorClipJob:function(e,t,r,i){var n=this,a=n._processParams(e),o=n._processFormat(i);new l.VectorClipJobsService(n.url,{proxy:n.options.proxy,withCredentials:n.options.withCredentials,crossOrigin:n.options.crossOrigin,serverType:n.options.serverType,eventListeners:{scope:n,processCompleted:t,processFailed:t,processRunning:function(e){n.vectorClipJobs[e.id]=e.state}},format:o}).addVectorClipJob(a,r)},getVectorClipJobState:function(e){return this.vectorClipJobs[e]},getOverlayGeoJobs:function(e,t){var r=this,i=r._processFormat(t);new l.OverlayGeoJobsService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:e,processFailed:e},format:i}).getOverlayGeoJobs()},getOverlayGeoJob:function(e,t,r){var i=this,n=i._processFormat(r);new l.OverlayGeoJobsService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:n}).getOverlayGeoJob(e)},addOverlayGeoJob:function(e,t,r,i){var n=this,a=n._processParams(e),o=n._processFormat(i);new l.OverlayGeoJobsService(n.url,{proxy:n.options.proxy,withCredentials:n.options.withCredentials,crossOrigin:n.options.crossOrigin,serverType:n.options.serverType,eventListeners:{scope:n,processCompleted:t,processFailed:t,processRunning:function(e){n.overlayGeoJobs[e.id]=e.state}},format:o}).addOverlayGeoJob(a,r)},getoverlayGeoJobState:function(e){return this.overlayGeoJobs[e]},getBuffersJobs:function(e,t){var r=this,i=r._processFormat(t);new l.BuffersAnalystJobsService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:e,processFailed:e},format:i}).getBuffersJobs()},getBuffersJob:function(e,t,r){var i=this,n=i._processFormat(r);new l.BuffersAnalystJobsService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:n}).getBuffersJob(e)},addBuffersJob:function(e,t,r,i){var n=this,a=n._processParams(e),o=n._processFormat(i);new l.BuffersAnalystJobsService(n.url,{proxy:n.options.proxy,withCredentials:n.options.withCredentials,crossOrigin:n.options.crossOrigin,serverType:n.options.serverType,eventListeners:{scope:n,processCompleted:t,processFailed:t,processRunning:function(e){n.buffersJobs[e.id]=e.state}},format:o}).addBuffersJob(a,r)},getBuffersJobState:function(e){return this.buffersJobs[e]},getTopologyValidatorJobs:function(e,t){var r=this,i=r._processFormat(t);new l.TopologyValidatorJobsService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:e,processFailed:e},format:i}).getTopologyValidatorJobs()},getTopologyValidatorJob:function(e,t,r){var i=this,n=i._processFormat(r);new l.TopologyValidatorJobsService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:n}).getTopologyValidatorJob(e)},addTopologyValidatorJob:function(e,t,r,i){var n=this,a=n._processParams(e),o=n._processFormat(i);new l.TopologyValidatorJobsService(n.url,{proxy:n.options.proxy,withCredentials:n.options.withCredentials,crossOrigin:n.options.crossOrigin,serverType:n.options.serverType,eventListeners:{scope:n,processCompleted:t,processFailed:t,processRunning:function(e){n.topologyValidatorJobs[e.id]=e.state}},format:o}).addTopologyValidatorJob(a,r)},getTopologyValidatorJobState:function(e){return this.topologyValidatorJobs[e]},getSummaryAttributesJobs:function(e,t){var r=this,i=r._processFormat(t);new l.SummaryAttributesJobsService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:e,processFailed:e},format:i}).getSummaryAttributesJobs()},getSummaryAttributesJob:function(e,t,r){var i=this,n=i._processFormat(r);new l.SummaryAttributesJobsService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:n}).getSummaryAttributesJob(e)},addSummaryAttributesJob:function(e,t,r,i){var n=this,a=n._processParams(e),o=n._processFormat(i);new l.SummaryAttributesJobsService(n.url,{proxy:n.options.proxy,withCredentials:n.options.withCredentials,crossOrigin:n.options.crossOrigin,serverType:n.options.serverType,eventListeners:{scope:n,processCompleted:t,processFailed:t,processRunning:function(e){n.summaryAttributesJobs[e.id]=e.state}},format:o}).addSummaryAttributesJob(a,r)},getSummaryAttributesJobState:function(e){return this.summaryAttributesJobs[e]},_processFormat:function(e){return e||l.DataFormat.GEOJSON},_processParams:function(e){return e?(e.bounds&&(e.bounds=s.CommontypesConversion.toSuperMapBounds(e.bounds)),e.query&&(e.query=s.CommontypesConversion.toSuperMapBounds(e.query)),e.geometryQuery&&(e.geometryQuery=s.CommontypesConversion.toProcessingParam(e.geometryQuery)),e.geometryClip&&(e.geometryClip=s.CommontypesConversion.toProcessingParam(e.geometryClip)),e):{}}}),c=t.processingService=function(e,t){return new u(e,t)};
  452. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  453. * This program are made available under the terms of the Apache License, Version 2.0
  454. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/a.default.supermap.processingService=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VectorTileJSON=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(52),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(31)),l=r(5);
  455. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  456. * This program are made available under the terms of the Apache License, Version 2.0
  457. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  458. t.VectorTileJSON=a.default.Class.extend({initialize:function(e){this.url=e},getTile:function(){var e=this;return l.FetchRequest.get(e.url,null,{timeout:1e4}).then(function(e){return e.json()}).then(function(t){return e._processRecordSets(t,e)})},_processRecordSets:function(e,t){var r=e.recordsets;if(!(r=t._convertToGeoJSON(r)))return null;for(var i=0;i<r.length;i++){for(var n=r[i],a=0;a<n.features.length;a++){var o=n.features[a];(o=t._convertToVectorLayerFeature(o,t)).layerName=n.layerName,n.features[a]=o}n.extent=256,delete n.fieldTypes,delete n.fields}return r},_convertToVectorLayerFeature:function(e,t){if(e.geometry){var r,i,n,a,s={},l=e.geometry,u=l.type,c=l.coordinates,p=e.properties,h=p.id;if("Point"===u)s=p&&p.texts?t._createFeature(h,o.VectorFeatureType.TEXT,[c],p):t._createFeature(h,o.VectorFeatureType.POINT,[c],p);else if("MultiPoint"===u)s=t._createFeature(h,o.VectorFeatureType.POINT,c,p);else if("LineString"===u)s=t._createFeature(h,o.VectorFeatureType.LINE,[c],p);else if("MultiLineString"===u||"Polygon"===u){for(n=[],r=0;r<c.length;r++)a=c[r],"Polygon"===u&&(a.outer=0===r),n.push(a);var f="Polygon"===u?o.VectorFeatureType.REGION:o.VectorFeatureType.LINE;s=t._createFeature(h,f,n,p)}else{if("MultiPolygon"!==u)throw new Error("Illegal GeoJSON object");for(n=[],r=0;r<c.length;r++)for(i=0;i<c[r].length;i++)(a=c[r][i]).outer=0===i,n.push(a);s=t._createFeature(h,o.VectorFeatureType.REGION,n,p)}return s}},_convertToGeoJSON:function(e){if(e){for(var t=0;t<e.length;t++){for(var r=e[t],i=0;i<r.features.length;i++){for(var n=r.features[i],a=[],o=0,l=0;l<n.geometry.parts.length;l++){for(var u=2*n.geometry.parts[l],c=0,p=o;c<u;c+=2,p+=2){var h=n.geometry.points[p],f=n.geometry.points[p+1];a.push({x:h,y:f})}o+=u}n.geometry.points=a}r.features=s.toGeoJSON(r.features).features}return e}},_createFeature:function(e,t,r,i){return{id:e,type:t,geometry:r,properties:i}}})},function(e,t,r){"use strict";var i=r(364);function n(e,t,r,i,n){this.properties={},this.extent=r,this.type=0,this._pbf=e,this._geometry=-1,this._keys=i,this._values=n,e.readFields(a,this,t)}function a(e,t,r){1==e?t.id=r.readVarint():2==e?function(e,t){var r=e.readVarint()+e.pos;for(;e.pos<r;){var i=t._keys[e.readVarint()],n=t._values[e.readVarint()];t.properties[i]=n}}(r,t):3==e?t.type=r.readVarint():4==e&&(t._geometry=r.pos)}function o(e){for(var t,r,i=0,n=0,a=e.length,o=a-1;n<a;o=n++)t=e[n],i+=((r=e[o]).x-t.x)*(t.y+r.y);return i}e.exports=n,n.types=["Unknown","Point","LineString","Polygon"],n.prototype.loadGeometry=function(){var e=this._pbf;e.pos=this._geometry;for(var t,r=e.readVarint()+e.pos,n=1,a=0,o=0,s=0,l=[];e.pos<r;){if(!a){var u=e.readVarint();n=7&u,a=u>>3}if(a--,1===n||2===n)o+=e.readSVarint(),s+=e.readSVarint(),1===n&&(t&&l.push(t),t=[]),t.push(new i(o,s));else{if(7!==n)throw new Error("unknown command "+n);t&&t.push(t[0].clone())}}return t&&l.push(t),l},n.prototype.bbox=function(){var e=this._pbf;e.pos=this._geometry;for(var t=e.readVarint()+e.pos,r=1,i=0,n=0,a=0,o=1/0,s=-1/0,l=1/0,u=-1/0;e.pos<t;){if(!i){var c=e.readVarint();r=7&c,i=c>>3}if(i--,1===r||2===r)n+=e.readSVarint(),a+=e.readSVarint(),n<o&&(o=n),n>s&&(s=n),a<l&&(l=a),a>u&&(u=a);else if(7!==r)throw new Error("unknown command "+r)}return[o,l,s,u]},n.prototype.toGeoJSON=function(e,t,r){var i,a,s=this.extent*Math.pow(2,r),l=this.extent*e,u=this.extent*t,c=this.loadGeometry(),p=n.types[this.type];function h(e){for(var t=0;t<e.length;t++){var r=e[t],i=180-360*(r.y+u)/s;e[t]=[360*(r.x+l)/s-180,360/Math.PI*Math.atan(Math.exp(i*Math.PI/180))-90]}}switch(this.type){case 1:var f=[];for(i=0;i<c.length;i++)f[i]=c[i][0];h(c=f);break;case 2:for(i=0;i<c.length;i++)h(c[i]);break;case 3:for(c=function(e){var t=e.length;if(t<=1)return[e];for(var r,i,n=[],a=0;a<t;a++){var s=o(e[a]);0!==s&&(void 0===i&&(i=s<0),i===s<0?(r&&n.push(r),r=[e[a]]):r.push(e[a]))}r&&n.push(r);return n}(c),i=0;i<c.length;i++)for(a=0;a<c[i].length;a++)h(c[i][a])}1===c.length?c=c[0]:p="Multi"+p;var d={type:"Feature",geometry:{type:p,coordinates:c},properties:this.properties};return"id"in this&&(d.id=this.id),d}},function(e,t,r){"use strict";var i=r(149);function n(e,t){this.version=1,this.name=null,this.extent=4096,this.length=0,this._pbf=e,this._keys=[],this._values=[],this._features=[],e.readFields(a,this,t),this.length=this._features.length}function a(e,t,r){15===e?t.version=r.readVarint():1===e?t.name=r.readString():5===e?t.extent=r.readVarint():2===e?t._features.push(r.pos):3===e?t._keys.push(r.readString()):4===e&&t._values.push(function(e){var t=null,r=e.readVarint()+e.pos;for(;e.pos<r;){var i=e.readVarint()>>3;t=1===i?e.readString():2===i?e.readFloat():3===i?e.readDouble():4===i?e.readVarint64():5===i?e.readVarint():6===i?e.readSVarint():7===i?e.readBoolean():null}return t}(r))}e.exports=n,n.prototype.feature=function(e){if(e<0||e>=this._features.length)throw new Error("feature index out of bounds");this._pbf.pos=this._features[e];var t=this._pbf.readVarint()+this._pbf.pos;return new i(this._pbf,t,this.extent,this._keys,this._values)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VectorTilePBF=void 0;var i=l(r(2)),n=l(r(368)),a=r(366),o=r(52),s=r(5);function l(e){return e&&e.__esModule?e:{default:e}}t.VectorTilePBF=i.default.Class.extend({initialize:function(e){this.url=e},getTile:function(){var e=this;return s.FetchRequest.get(e.url,null,{timeout:1e4}).then(function(e){return e.ok?e.blob().then(function(e){var t=new FileReader;return new Promise(function(r){t.addEventListener("loadend",function(){var e=new n.default(t.result);return r(new a.VectorTile(e))}),t.readAsArrayBuffer(e)})}):{layers:[]}}).then(function(t){return e._processVectorTileSpec(t)})},_processVectorTileSpec:function(e){var t=[];for(var r in e.layers){for(var n=[],a=0;a<e.layers[r].length;a++){var s=e.layers[r].feature(a);switch(s.geometry=s.loadGeometry(),s.layerName=r,s.properties={attributes:i.default.Util.extend({},s.properties),id:s.id},s.type){case 1:s.type=o.VectorFeatureType.POINT;break;case 2:s.type=o.VectorFeatureType.LINE;break;case 3:s.type=o.VectorFeatureType.REGION}n.push(s)}var l={};l.features=n,l.layerName=r,l.extent=e.layers[r].extent,t.push(l)}return t}});
  459. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  460. * This program are made available under the terms of the Apache License, Version 2.0
  461. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RegionSymbolizer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(51),s=r(96);t.RegionSymbolizer=a.default.Polygon.extend({includes:[o.Symbolizer.prototype,s.PolyBase],initialize:function(e,t){o.Symbolizer.prototype.initialize.call(this,e),this._makeFeatureParts(e,t)},render:function(e,t){o.Symbolizer.prototype.render.call(this,e,t),this._updatePath()}});
  462. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  463. * This program are made available under the terms of the Apache License, Version 2.0
  464. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LineSymbolizer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(51),s=r(96);t.LineSymbolizer=a.default.Polyline.extend({includes:[o.Symbolizer.prototype,s.PolyBase],initialize:function(e,t){o.Symbolizer.prototype.initialize.call(this,e),this._makeFeatureParts(e,t)},render:function(e,t){t.fill=!1,o.Symbolizer.prototype.render.call(this,e,t),this._updatePath()},updateStyle:function(e,t){t.fill=!1,o.Symbolizer.prototype.updateStyle.call(this,e,t)}});
  465. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  466. * This program are made available under the terms of the Apache License, Version 2.0
  467. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PointSymbolizer=void 0;var i,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=r(51),o=r(2),s=(i=o)&&i.__esModule?i:{default:i};
  468. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  469. * This program are made available under the terms of the Apache License, Version 2.0
  470. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.PointSymbolizer=s.default.CircleMarker.extend({includes:a.Symbolizer.prototype,statics:{iconCache:{}},initialize:function(e,t){a.Symbolizer.prototype.initialize.call(this,e),this._makeFeatureParts(e,t)},getLatLng:function(){return this._renderer._map.layerPointToLatLng(this._point)},render:function(e,t){a.Symbolizer.prototype.render.call(this,e,t),this._radius=t.radius||s.default.CircleMarker.prototype.options.radius,this._updatePath()},_makeFeatureParts:function(e,t){t=t||{x:1,y:1};var r=e.geometry[0];"object"===n(r[0])&&"x"in r[0]?(this._point=s.default.point(r[0]).scaleBy(t),this._empty=s.default.Util.falseFn):(this._point=s.default.point(r).scaleBy(t),this._empty=s.default.Util.falseFn)},makeInteractive:function(){this._updateBounds()},updateStyle:function(e,t){return this._radius=t.radius||this._radius,this._updateBounds(),a.Symbolizer.prototype.updateStyle.call(this,e,t)},_updateBounds:function(){if(this.options.iconUrl&&this.options.iconSize){var e=s.default.point(this.options.iconSize),t=e&&e.divideBy(2,!0),r=this._point.subtract(t);this._pxBounds=new s.default.Bounds(r,r.add(e))}else s.default.CircleMarker.prototype._updateBounds.call(this)},_updatePath:function(){this.options.iconUrl?this._renderer._updateIcon(this):s.default.CircleMarker.prototype._updatePath.call(this)},_getImage:function(){if(!this.options.iconUrl)return null;var e=this.options.iconUrl,t=l.iconCache[e];if(!t){var r=this.options.iconSize||[50,50];t=l.iconCache[e]=this._createIcon(e,r)}return t},_createIcon:function(e,t){var r=e;if(!r)throw new Error("iconUrl not set in Icon options (see the docs).");var i=document.createElement("img");i.src=r,i.className="leaflet-marker-icon "+(this.layerName||"");var n=t;if("number"==typeof n&&(n=[n,n]),n){var a=s.default.point(n),o=s.default.point(a&&a.divideBy(2,!0));a&&(i.style.width=a.x+"px",i.style.height=a.y+"px"),o&&(i.style.marginLeft=-o.x+"px",i.style.marginTop=-o.y+"px")}return i.onload=function(){n||(i.style.width=this.width+"px",i.style.height=this.height+"px")},i},_containsPoint:function(e){return this.options.iconUrl?this._pxBounds.contains(e):s.default.CircleMarker.prototype._containsPoint.call(this,e)}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VectorTile=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(52),s=r(97),l=r(154),u=r(153),c=r(152),p=r(151),h=r(148),f=r(95);t.VectorTile=a.default.Class.extend({initialize:function(e,t){this.layer=e.layer,this.tileSize=e.layer.getTileSize(),this.format=e.format,this.coords=e.coords,this.renderer=e.renderer,this.done=t,this.layer._textVectorTiles={}},renderTile:function(){var e=this,t=e.layer,r=e.coords,i=t._getTileUrl(r);([f.VectorTileFormat.MVT,f.VectorTileFormat.PBF].indexOf(e.format.toUpperCase())>-1?new p.VectorTilePBF(i):new h.VectorTileJSON(i)).getTile().then(function(t){e.render(t,r)})},render:function(e,t){if(e){for(var r=this,i=r.renderer,n=r.layer,s=0;s<e.length;s++){var l=e[s],u=l.layerName;n._dataLayerNames[u]=!0;for(var c=r.tileSize.divideBy(l.extent),p=n.getLayerStyleInfo(l.layerName),h=0;h<l.features.length;h++){var f=l.features[h];if(f){p&&p.type===o.VectorFeatureType.LABEL&&f.type===o.VectorFeatureType.POINT&&f.properties.attributes&&(f.type=o.VectorFeatureType.TEXT);var d=r._getStyleOptions(t,f,u,r);if(d.length){var y=r._createFeatureLayer(f,c);if(y){var v={scope:r,coords:t,renderer:i};if(!r._extractTextLayer(f,y,d,v)){for(var m=0;m<d.length;m++){var g=r._validateStyle(d[m],f.type);y.render(i,g),i._addPath(y)}n.options.interactive&&y.makeInteractive();var b=n._getFeatureKey(f.id,u);i._features[b]={layerName:u,feature:y}}}}}}}n._map&&i.addTo(n._map),a.default.Util.requestAnimFrame(r.done.bind(t,null,r.layer._vectorTiles[r.layer._tileCoordsToKey(t)]))}},_extractTextLayer:function(e,t,r,i){if(e.type!==o.VectorFeatureType.TEXT)return!1;var n=i.scope,a=i.coords,s=n.layer,l=s._tileCoordsToKey(a),u=e.id,c=e.layerName,p=s._textVectorTiles[l];return p||(p={layers:{},coords:a,renderer:i.renderer}),p.layers[u]={layer:t,style:r,layerName:c},s._textVectorTiles[l]=p,!0},_getStyleOptions:function(e,t,r,i){var n=i,a=n.layer,o=a.getVectorTileLayerStyle(e,t)||n._defaultStyle(t.type),s=t.id,l=a._getFeatureKey(s,r),u=a._overriddenStyles[l];return o=(o=(o=u||o)instanceof Function?o(t.properties,e.z):o)instanceof Array?o:[o]},_createFeatureLayer:function(e,t){var r;switch(e.type){case o.VectorFeatureType.POINT:r=new l.PointSymbolizer(e,t);break;case o.VectorFeatureType.LINE:r=new u.LineSymbolizer(e,t);break;case o.VectorFeatureType.REGION:r=new c.RegionSymbolizer(e,t);break;case o.VectorFeatureType.TEXT:r=new s.TextSymbolizer(e,t)}var i=this.layer;return r&&i.options.interactive&&r.addEventParent(i),r},_validateStyle:function(e,t){switch(a.default.Path.prototype.options.weight=1,a.default.Path.prototype.options.fillOpacity=1,t){case o.VectorFeatureType.POINT:return a.default.extend({},a.default.CircleMarker.prototype.options,e);case o.VectorFeatureType.LINE:return a.default.extend({},a.default.Polyline.prototype.options,e);case o.VectorFeatureType.REGION:return a.default.extend({},a.default.Polygon.prototype.options,e);case o.VectorFeatureType.TEXT:return a.default.extend({},s.TextSymbolizer.prototype.options,e)}},_defaultStyle:function(e){var t=a.default.Path.prototype.options;switch(t.weight=1,t.fillOpacity=1,t.radius=3,e){case o.VectorFeatureType.POINT:return a.default.extend({},t,a.default.CircleMarker.prototype.options);case o.VectorFeatureType.LINE:return a.default.extend({},t,a.default.Polyline.prototype.options);case o.VectorFeatureType.REGION:return a.default.extend({},t,a.default.Polygon.prototype.options);case o.VectorFeatureType.TEXT:return a.default.extend({},t,s.TextSymbolizer.prototype.options)}}});
  471. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  472. * This program are made available under the terms of the Apache License, Version 2.0
  473. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VectorGrid=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(99),s=r(98),l=r(155),u=r(97),c=r(95),p=r(52);t.VectorGrid=a.default.GridLayer.extend({options:{vectorTileLayerStyles:null,renderer:"SVG",format:c.VectorTileFormat.JSON,interactive:!0,maxZoom:23},initialize:function(e){var t=this;a.default.setOptions(t,e),a.default.GridLayer.prototype.initialize.call(t,e),t._vectorTiles={},t._overriddenStyles={},t.vectorTileLayerStyles=t.options.vectorTileLayerStyles,t.on("tileunload",function(e){var r=t._tileCoordsToKey(e.coords),i=t._vectorTiles[r];i&&t._map&&i.removeFrom(t._map),delete t._vectorTiles[r]},t),t.on("tileerror ",t._renderText,t),t.on("load",t._renderText,t),t._dataLayerNames={}},createTile:function(e,t){var r=this,i=r.getTileSize(),n=null;return n="Canvas"===r.options.renderer?new s.CanvasRenderer(e,i,r.options):new o.SVGRenderer(e,i,r.options),r._vectorTiles[r._tileCoordsToKey(e)]=n,n._features={},new l.VectorTile({layer:r,format:r.options.format,coords:e,renderer:n},t).renderTile(),n.getContainer()},getStyles:function(){return this.vectorTileLayerStyles},getStyle:function(e){return this.vectorTileLayerStyles&&this.vectorTileLayerStyles[e]},setFeatureStyle:function(e,t,r){var i=this._getFeatureKey(e,t);for(var n in this._overriddenStyles[i]=r,this._vectorTiles){var a=this._vectorTiles[n],o=a._features[i];if(o){var s=o.feature;this._updateStyles(s,a,r)}}return this},resetFeatureStyle:function(e,t){var r=this._getFeatureKey(e,t);for(var i in delete this._overriddenStyles[r],this._vectorTiles){var n=this._vectorTiles[i],a=n._features[r];if(a){var o=a.feature,s=this.vectorTileLayerStyles[a.layerName];this._updateStyles(o,n,s)}}return this},getDataLayerNames:function(){return Object.keys(this._dataLayerNames)},_removeAllTiles:function(){a.default.GridLayer.prototype._removeAllTiles.call(this),this._textVectorTiles={}},_renderText:function(){var e=this._textVectorTiles;for(var t in e){var r=e[t],i=r.renderer;for(var n in r.layers){for(var a=r.layers[n],o=a.style,s=a.layer,l=0;l<o.length;l++)s.render(i,o[l]),i._addPath(s);this.options.interactive&&s.makeInteractive()}}},_getFeatureKey:function(e,t){return(e=e||0)+"_"+(t=t||"null")},_updateStyles:function(e,t,r){(r=r instanceof Function?r(e.properties,t.getCoord().z):r)instanceof Array||(r=[r]);for(var i=0;i<r.length;i++){var n=this._extendStyle(r[i],e.type);e.updateStyle(t,n)}},_extendStyle:function(e,t){switch(t){case p.VectorFeatureType.POINT:return a.default.extend({},a.default.CircleMarker.prototype.options,e);case p.VectorFeatureType.LINE:return a.default.extend({},a.default.Polyline.prototype.options,e);case p.VectorFeatureType.REGION:return a.default.extend({},a.default.Polygon.prototype.options,e);case p.VectorFeatureType.TEXT:return a.default.extend({},u.TextSymbolizer.prototype.options,e)}}});
  474. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  475. * This program are made available under the terms of the Apache License, Version 2.0
  476. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphThemeLayer=t.GraphThemeLayer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(5),s=r(101),l=r(25);var u=t.GraphThemeLayer=s.ThemeLayer.extend({options:{isOverLay:!0},initialize:function(e,t,r){var i=[];i.push(e),i.push(r),s.ThemeLayer.prototype.initialize.apply(this,i),this.chartsType=t,this.themeFields=r&&r.themeFields?r.themeFields:null,this.charts=r&&r.charts?r.charts:[],this.cache=r&&r.cache?r.cache:{},this.chartsSetting=r&&r.chartsSetting?r.chartsSetting:{}},setChartsType:function(e){this.chartsType=e,this.redraw()},addFeatures:function(e){var t=this;t.fire("beforefeaturesadded",{features:e}),this.features=this.toiClientFeature(e),t.renderer&&(t._map?t.redrawThematicFeatures(t._map.getBounds()):t.redrawThematicFeatures())},redrawThematicFeatures:function(e){var t=this;t.renderer.clearAll();var r=t.features;if(this.options.alwaysMapCRS&&e&&e instanceof a.default.LatLngBounds){var i=this._map.options.crs;e=a.default.bounds(i.project(e.getSouthWest()),i.project(e.getNorthEast()))}e=l.CommontypesConversion.toSuperMapBounds(e);for(var n=0,o=r.length;n<o;n++){var s=r[n],u=s.geometry.getBounds();if(!e||e.intersectsBounds(u)){var c=t.cache,p=s.id;if(!c[p]){c[p]=p;var h=t.createThematicFeature(s),f=t.overlayWeightField&&s.attributes[t.overlayWeightField]&&!isNaN(s.attributes[t.overlayWeightField]);h&&f&&(h.__overlayWeight=s.attributes[t.overlayWeightField]),h&&t.charts.push(h)}}}t.drawCharts()},createThematicFeature:function(e){var t,r=this;return o.FeatureTheme[r.chartsType]&&r.themeFields&&r.chartsSetting&&(t=new o.FeatureTheme[r.chartsType](e,r,r.themeFields,r.chartsSetting)),!!t&&(t.assembleShapes(),t)},drawCharts:function(){var e=this;e.renderer&&(e.overlayWeightField&&e._sortChart(),e.options&&!e.options.isOverLay?e._addOverlayShape():e._addNoOverlayShape(),e.renderer.render())},getShapesByFeatureID:function(e){var t=[],r=this.renderer.getAllShapes();if(!e)return r;for(var i=0,n=r.length;i<n;i++){var a=r[i];a.refDataID&&e===a.refDataID&&t.push(a)}return t},isQuadrilateralOverLap:function(e,t){var r=e.length,i=t.length;if(5!==r||5!==i)return null;for(var n=!1,a=0;a<r;a++)if(this.isPointInPoly(e[a],t)){n=!0;break}for(var s=0;s<i;s++)if(this.isPointInPoly(t[s],e)){n=!0;break}for(var l=0;l<r-1&&!n;l++)for(var u=0;u<i-1;u++){if("SuperMap.Geometry.Point"===o.CommonUtil.lineIntersection(e[l],e[l+1],t[u],t[u+1]).CLASS_NAME){n=!0;break}}return n},isPointInPoly:function(e,t){for(var r=!1,i=-1,n=t.length,a=n-1;++i<n;a=i)(t[i].y<=e.y&&e.y<t[a].y||t[a].y<=e.y&&e.y<t[i].y)&&e.x<(t[a].x-t[i].x)*(e.y-t[i].y)/(t[a].y-t[i].y)+t[i].x&&(r=!r);return r},isChartInMap:function(e,t){for(var r=e,i=!1,n=0,a=t.length;n<a;n++){var o=t[n];if(o.x>=r.left&&o.x<=r.right&&o.y>=r.top&&o.y<=r.bottom){i=!0;break}}return i},clearCache:function(){this.cache={},this.charts=[]},removeFeatures:function(e){this.clearCache(),s.ThemeLayer.prototype.removeFeatures.apply(this,arguments)},removeAllFeatures:function(){this.clearCache(),s.ThemeLayer.prototype.removeAllFeatures.apply(this,arguments)},redraw:function(){return this.clearCache(),s.ThemeLayer.prototype.redraw.apply(this,arguments)},clear:function(){var e=this;e.renderer&&(e.renderer.clearAll(),e.renderer.refresh()),e.removeAllFeatures(),e.clearCache()},getWeightFieldValue:function(e,t,r){if((void 0===r||isNaN(r))&&(r=0),!e.attributes)return r;var i=e.attributes[t];return(void 0===i||isNaN(i))&&(i=r),i},_sortChart:function(){this.charts&&this.charts.sort(function(e,t){return void 0===e.__overlayWeight&&void 0===t.__overlayWeight?0:void 0!==e.__overlayWeight&&void 0===t.__overlayWeight?-1:void 0===e.__overlayWeight&&void 0!==t.__overlayWeight?1:void 0!==e.__overlayWeight&&void 0!==t.__overlayWeight?parseFloat(e.__overlayWeight)<parseFloat(t.__overlayWeight)?1:-1:0})},_addOverlayShape:function(){for(var e=this.charts,t=0,r=e.length;t<r;t++)for(var i=e[t],n=i.resetLocation(),a=i.shapes,o=0,s=a.length;o<s;o++)a[o].refOriginalPosition=n,this.renderer.addShape(a[o])},_addNoOverlayShape:function(){var e=this,t=e._map.getBounds(),r=this._map.options.crs;this.options.alwaysMapCRS&&(t=a.default.bounds(r.project(t.getSouthWest()),r.project(t.getNorthEast()))),t=l.CommontypesConversion.toSuperMapBounds(t);for(var i=e.charts,n=[],s=e.getLocalXY(new o.LonLat(t.left,t.top)),u=e.getLocalXY(new o.LonLat(t.right,t.bottom)),c=new o.Bounds(s[0],u[1],u[0],s[1]),p=0,h=i.length;p<h;p++){var f=i[p],d=f.resetLocation(),y=f.chartBounds,v=[{x:y.left,y:y.top},{x:y.left,y:y.bottom},{x:y.right,y:y.bottom},{x:y.right,y:y.top},{x:y.left,y:y.top}];if(!c||e.isChartInMap(c,v)){for(var m=!1,g=0;g<n.length;g++)if(e.isQuadrilateralOverLap(v,n[g])){m=!0;break}if(!m){n.push(v);for(var b=f.shapes,S=0,_=b.length;S<_;S++)b[S].refOriginalPosition=d,e.renderer.addShape(b[S])}}}}}),c=t.graphThemeLayer=function(e,t,r){return new u(e,t,r)};
  477. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  478. * This program are made available under the terms of the Apache License, Version 2.0
  479. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/a.default.supermap.graphThemeLayer=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageStyle=t.ImageStyle=t.graphic=t.Graphic=t.circleStyle=t.CircleStyle=t.cloverStyle=t.CloverStyle=t.GraphicWebGLRenderer=t.GraphicCanvasRenderer=void 0;var i=r(375),n=r(374),a=r(168),o=r(373),s=r(372),l=r(371);
  480. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  481. * This program are made available under the terms of the Apache License, Version 2.0
  482. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  483. t.GraphicCanvasRenderer=s.GraphicCanvasRenderer,t.GraphicWebGLRenderer=l.GraphicWebGLRenderer,t.CloverStyle=i.CloverStyle,t.cloverStyle=i.cloverStyle,t.CircleStyle=n.CircleStyle,t.circleStyle=n.circleStyle,t.Graphic=a.Graphic,t.graphic=a.graphic,t.ImageStyle=o.ImageStyle,t.imageStyle=o.imageStyle},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MapVRenderer=void 0;var i,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},o=r(2),s=(i=o)&&i.__esModule?i:{default:i},l=r(380);function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}
  484. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  485. * This program are made available under the terms of the Apache License, Version 2.0
  486. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  487. var c=l.baiduMapLayer?l.baiduMapLayer.__proto__:Function;t.MapVRenderer=function(e){function t(e,r,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=u(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,i,n));if(!c)return u(a);var o=a;return n=n||{},o.init(n),o.argCheck(n),a.canvasLayer=r,a.clickEvent=a.clickEvent.bind(a),a.mousemoveEvent=a.mousemoveEvent.bind(a),a._moveStartEvent=a.moveStartEvent.bind(a),a._moveEndEvent=a.moveEndEvent.bind(a),a._zoomStartEvent=a.zoomStartEvent.bind(a),a.bindEvent(),a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c),n(t,[{key:"clickEvent",value:function(e){var r=this.map.containerPointToLayerPoint([0,0]),i=this.devicePixelRatio=this.canvasLayer.devicePixelRatio=window.devicePixelRatio,n=e.layerPoint;a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"clickEvent",this).call(this,s.default.point((n.x-r.x)/i,(n.y-r.y)/i),e)}},{key:"mousemoveEvent",value:function(e){var r=e.layerPoint;a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"mousemoveEvent",this).call(this,r,e)}},{key:"bindEvent",value:function(){var e=this.map;this.options.methods&&(this.options.methods.click&&e.on("click",this.clickEvent),this.options.methods.mousemove&&e.on("mousemove",this.mousemoveEvent)),this.map.on("movestart",this._moveStartEvent),this.map.on("moveend",this._moveEndEvent),this.map.on("zoomstart",this._zoomStartEvent)}},{key:"destroy",value:function(){this.unbindEvent(),this.clearData(),this.animator&&this.animator.stop(),this.animator=null,this.canvasLayer=null}},{key:"unbindEvent",value:function(){var e=this.map;this.options.methods&&(this.options.methods.click&&e.off("click",this.clickEvent),this.options.methods.mousemove&&e.off("mousemove",this.mousemoveEvent)),this.map.off("movestart",this._moveStartEvent),this.map.off("moveend",this._moveEndEvent),this.map.off("zoomstart",this._zoomStartEvent)}},{key:"getContext",value:function(){return this.canvasLayer.getCanvas().getContext(this.context)}},{key:"addData",value:function(e,t){var r=e;e&&e.get&&(r=e.get()),this.dataSet.add(r),this.update({options:t})}},{key:"update",value:function(e){var r=e||{},i=r.data;i&&i.get&&(i=i.get()),void 0!=i&&this.dataSet.set(i),a(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,{options:r.options})}},{key:"getData",value:function(){return this.dataSet}},{key:"removeData",value:function(e){if(this.dataSet){var t=this.dataSet.get({filter:function(t){return null==e||"function"!=typeof e||!e(t)}});this.dataSet.set(t),this.update({options:null})}}},{key:"clearData",value:function(){this.dataSet&&this.dataSet.clear(),this.update({options:null})}},{key:"_canvasUpdate",value:function(e){if(this.canvasLayer){var t=this,r=t.options.animation,i=this.getContext(),n=this.map;if(t.isEnabledTime()){if(void 0===e)return void this.clear(i);"2d"===this.context&&(i.save(),i.globalCompositeOperation="destination-out",i.fillStyle="rgba(0, 0, 0, .1)",i.fillRect(0,0,i.canvas.width,i.canvas.height),i.restore())}else this.clear(i);if("2d"===this.context)for(var a in t.options)i[a]=t.options[a];else i.clear(i.COLOR_BUFFER_BIT);if(!(t.options.minZoom&&n.getZoom()<t.options.minZoom||t.options.maxZoom&&n.getZoom()>t.options.maxZoom)){var o=n.getBounds(),l=o.getEast()-o.getWest(),u=o.getNorth()-o.getSouth(),c=n.getSize(),p=l/c.x,h=u/c.y,f=this.canvasLayer.getTopLeft(),d=n.latLngToAccurateContainerPoint(f),y={transferCoordinate:function(e){var r,i={x:(r="2d"===t.context?n.latLngToAccurateContainerPoint(s.default.latLng(e[1],e[0])):{x:(e[0]-f.lng)/p,y:(f.lat-e[1])/h}).x-d.x,y:r.y-d.y};return[i.x,i.y]}};void 0!==e&&(y.filter=function(t){var i=r.trails||10;return e&&t.time>e-i&&t.time<e});var v=t.dataSet.get(y);this.processData(v),t.options._size=t.options.size;var m=n.latLngToContainerPoint(s.default.latLng(0,0)),g={x:m.x-d.x,y:m.y-d.y};this.drawContext(i,v,t.options,g),t.options.updateCallback&&t.options.updateCallback(e)}}}},{key:"init",value:function(e){this.options=e,this.initDataRange(e),this.context=this.options.context||"2d",this.options.zIndex&&this.canvasLayer&&this.canvasLayer.setZIndex(this.options.zIndex),this.initAnimator()}},{key:"addAnimatorEvent",value:function(){}},{key:"moveStartEvent",value:function(){var e=this.options.animation;this.isEnabledTime()&&this.animator&&(this.steps.step=e.stepsRange.start,this._hide())}},{key:"moveEndEvent",value:function(){this.canvasLayer.draw(),this._show()}},{key:"zoomStartEvent",value:function(){this._hide()}},{key:"clear",value:function(e){e&&e.clearRect&&e.clearRect(0,0,e.canvas.width,e.canvas.height)}},{key:"_hide",value:function(){this.canvasLayer.canvas.style.display="none"}},{key:"_show",value:function(){this.canvasLayer.canvas.style.display="block"}},{key:"draw",value:function(){this.canvasLayer.draw()}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapVLayer=t.MapVLayer=void 0;var i=o(r(2));r(3);var n=r(159),a=o(r(11));function o(e){return e&&e.__esModule?e:{default:e}}
  488. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  489. * This program are made available under the terms of the Apache License, Version 2.0
  490. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.MapVLayer=i.default.Layer.extend({options:{attributionPrefix:null,attribution:a.default.MapV.attribution},initialize:function(e,t,r){r=r||{},this.dataSet=e||{},this.mapVOptions=t||{},this.render=this.render.bind(this),i.default.Util.setOptions(this,r),this.options.attributionPrefix&&(this.options.attribution=this.options.attributionPrefix+this.options.attribution),this.canvas=this._createCanvas(),i.default.stamp(this)},onAdd:function(e){this._map=e;var t=this.getPane(),r=this.container=i.default.DomUtil.create("div","leaflet-layer leaflet-zoom-animated",t);r.appendChild(this.canvas);var a=e.getSize();r.style.width=a.x+"px",r.style.height=a.y+"px",this.renderer=new n.MapVRenderer(e,this,this.dataSet,this.mapVOptions),this.draw(),this.fire("loaded")},onRemove:function(){i.default.DomUtil.remove(this.container),this.renderer.destroy()},addData:function(e,t){this.renderer.addData(e,t)},update:function(e){this.renderer.update(e)},getData:function(){return this.renderer&&(this.dataSet=this.renderer.getData()),this.dataSet},removeData:function(e){this.renderer&&this.renderer.removeData(e)},clearData:function(){this.renderer.clearData()},draw:function(){return this._reset()},setZIndex:function(e){this.canvas.style.zIndex=e},render:function(){this.renderer._canvasUpdate()},getCanvas:function(){return this.canvas},getContainer:function(){return this.container},getTopLeft:function(){var e,t=this._map;t&&(e=t.getBounds().getNorthWest());return e},_createCanvas:function(){var e=document.createElement("canvas");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.style.pointerEvents="none",e.style.zIndex=this.options.zIndex||600;var t="undefined"==typeof window?{}:window,r=this.devicePixelRatio=t.devicePixelRatio;return this.mapVOptions.context&&"2d"!==this.mapVOptions.context||e.getContext("2d").scale(r,r),e},_resize:function(){var e=this.canvas;if(e){var t=this._map,r=t.getSize();e.width=r.x,e.height=r.y,e.style.width=r.x+"px",e.style.height=r.y+"px";var n=t.getBounds(),a=t.latLngToLayerPoint(n.getNorthWest());i.default.DomUtil.setPosition(e,a)}},_reset:function(){this._resize(),this._render()},redraw:function(){this._resize(),this._render()},_render:function(){this.render()}}),l=t.mapVLayer=function(e,t,r){return new s(e,t,r)};i.default.supermap.mapVLayer=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataFlowService=t.DataFlowService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(8),s=r(5);
  491. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  492. * This program are made available under the terms of the Apache License, Version 2.0
  493. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  494. var l=t.DataFlowService=o.ServiceBase.extend({options:{geometry:null,prjCoordSys:null,excludeField:null},initialize:function(e,t){t=t||{},a.default.setOptions(this,t),t.projection&&(this.options.prjCoordSys=t.projection),o.ServiceBase.prototype.initialize.call(this,e,t),this.dataFlow=new s.DataFlowService(e,t),this.dataFlow.events.on({broadcastSocketConnected:this._defaultEvent,broadcastSocketError:this._defaultEvent,broadcastFailed:this._defaultEvent,broadcastSucceeded:this._defaultEvent,subscribeSocketConnected:this._defaultEvent,subscribeSocketError:this._defaultEvent,messageSucceeded:this._defaultEvent,setFilterParamSucceeded:this._defaultEvent,scope:this})},initBroadcast:function(){return this.dataFlow.initBroadcast(),this},broadcast:function(e){this.dataFlow.broadcast(e)},initSubscribe:function(){return this.dataFlow.initSubscribe(),this},setExcludeField:function(e){return this.dataFlow.setExcludeField(e),this.options.excludeField=e,this},setGeometry:function(e){return this.dataFlow.setGeometry(e),this.options.geometry=e,this},unSubscribe:function(){this.dataFlow.unSubscribe()},unBroadcast:function(){this.dataFlow.unBroadcast()},_defaultEvent:function(e){this.fire(e.eventType||e.type,e)}}),u=t.dataFlowService=function(e,t){return new l(e,t)};a.default.supermap.dataFlowService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataFlowLayer=t.DataFlowLayer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(161),s=r(381),l=r(379);var u=t.DataFlowLayer=a.default.LayerGroup.extend({options:{geometry:null,prjCoordSys:null,excludeField:null,idField:"id",render:"normal"},initialize:function(e,t){t=t||{},a.default.Util.setOptions(this,t),this.url=e,this._layers={},this.dataService=new o.DataFlowService(this.url,{geometry:this.options.geometry,prjCoordSys:this.options.prjCoordSys,excludeField:this.options.excludeField})},onAdd:function(e){var t=this;this.dataService.initSubscribe(),this.dataService.on("subscribeSocketConnected",function(e){return t.fire("subscribesucceeded",e)}),this.dataService.on("subscribeSocketError",function(e){return t.fire("subscribefailed",e)}),this.dataService.on("messageSucceeded",function(e){return t._onMessageSuccessed(e)}),this.dataService.on("setFilterParamSucceeded",function(e){return t.fire("setfilterparamsucceeded",e)}),"mapv"===this.options.render?this.addLayer(new s.MapvRenderer(this.url,this.options)):this.addLayer(new l.NormalRenderer(this.url,this.options)),a.default.LayerGroup.prototype.onAdd.call(this,e)},onRemove:function(e){a.default.LayerGroup.prototype.onRemove.call(this,e),this.dataService&&this.dataService.unSubscribe()},setExcludeField:function(e){return this.dataService.setExcludeField(e),this.options.excludeField=e,this},setGeometry:function(e){return this.dataService.setGeometry(e),this.options.geometry=e,this},_onMessageSuccessed:function(e){var t=this;this.getLayers().map(function(r){return r.onMessageSuccessed(e),t.fire("dataupdated",{layer:r,data:e.featureResult}),r})}}),c=t.dataFlowLayer=function(e,t){return new u(e,t)};
  495. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  496. * This program are made available under the terms of the Apache License, Version 2.0
  497. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/a.default.supermap.dataFlowLayer=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.unicodeMarker=t.UnicodeMarker=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);
  498. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  499. * This program are made available under the terms of the Apache License, Version 2.0
  500. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  501. var o=t.UnicodeMarker=a.default.Path.extend({options:{fontStyle:"normal",fontWeight:"normal",fontSize:"1em",fontFamily:"sans-serif",textAlign:"center",textBaseline:"middle",vfactor:-.5,labelRotation:0,globalAlpha:1,label:""},initialize:function(e,t){a.default.Util.setOptions(this,t),this._latlng=e},setLatLng:function(e){return this._latlng=e,this.redraw(),this.fire("move",{latlng:this._latlng})},getLatLng:function(){return this._latlng},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var e=this._clickTolerance(),t=[e,e];this._pxBounds=new a.default.Bounds(this._point.subtract(t),this._point.add(t))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateUnicode(this)},_containsPoint:function(e){return e.distanceTo(this._point)<=this._clickTolerance()}}),s=t.unicodeMarker=function(e,t){return new o(e,t)};a.default.Canvas.include({_updateUnicode:function(e){if(this._drawing){this._drawnLayers[e._leaflet_id]=e;var t={x:e._point.x,y:e._point.y},r=this._ctx,i=[e.options.fontStyle,"normal",e.options.fontWeight,e.options.fontSize,e.options.fontFamily].join(" "),n=e.options.label.replace(/^&#x/,""),a=(n=String.fromCharCode(parseInt(n,16))).split("\n"),o=a.length;if(r.fillStyle=e.options.fontColor,r.globalAlpha=1,e.options.fontOpacity>=0&&e.options.fontOpacity<1&&(r.globalAlpha=e.options.fontOpacity),r.fillText){r.font=i,r.textAlign=e.options.textAlign,r.textBaseline=e.options.textBaseline;var s=e.options.vfactor,l=r.measureText("Mg").height||r.measureText("xx").width;t.y+=l*s*(o-1);for(var u=0;u<o;u++)0!=e.options.labelRotation?(r.save(),r.translate(t.x,t.y),r.rotate(e.options.labelRotation*Math.PI/180),r.fillText(a[u],0,l*u),r.restore()):r.fillText(a[u],t.x,t.y)}else if(r.mozDrawText){r.mozTextStyle=i;var c=e.options.textAlign,p=e.options.vfactor,h=r.mozMeasureText("xx");t.y+=h*(1+p*o);for(var f=0;f<o;f++){var d=t.x+c*r.mozMeasureText(a[f]),y=t.y+f*h;r.translate(d,y),r.mozDrawText(a[f]),r.translate(-d,-y)}}}}}),a.default.supermap.unicodeMarker=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.featureService=t.FeatureService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(8),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(31)),l=r(25),u=r(5);
  502. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  503. * This program are made available under the terms of the Apache License, Version 2.0
  504. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  505. var c=t.FeatureService=o.ServiceBase.extend({initialize:function(e,t){o.ServiceBase.prototype.initialize.call(this,e,t)},getFeaturesByIDs:function(e,t,r){var i=this;new u.GetFeaturesByIDsService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},getFeaturesByBounds:function(e,t,r){var i=this;new u.GetFeaturesByBoundsService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},getFeaturesByBuffer:function(e,t,r){var i=this;new u.GetFeaturesByBufferService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},getFeaturesBySQL:function(e,t,r){var i=this;new u.GetFeaturesBySQLService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},getFeaturesByGeometry:function(e,t,r){var i=this;new u.GetFeaturesByGeometryService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},editFeatures:function(e,t){if(e&&e.dataSourceName&&e.dataSetName){var r=this,i=r.url;i+="/datasources/"+e.dataSourceName+"/datasets/"+e.dataSetName,new u.EditFeaturesService(i,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{processCompleted:t,processFailed:t}}).processAsync(r._processParams(e))}},_processParams:function(e){if(!e)return{};e.returnContent=null==e.returnContent||e.returnContent,e.fromIndex=e.fromIndex?e.fromIndex:0,e.toIndex=e.toIndex?e.toIndex:-1,e.isUseBatch=null!=e.isUseBatch&&e.isUseBatch,e.bounds&&(e.bounds=l.CommontypesConversion.toSuperMapBounds(e.bounds)),e.geometry&&(e.geometry=s.toSuperMapGeometry(e.geometry)),e.editType&&(e.editType=e.editType.toLowerCase());var t=this;if(e.features){var r=[];a.default.Util.isArray(e.features)?e.features.map(function(e){return r.push(t._createServerFeature(e)),e}):r.push(t._createServerFeature(e.features)),e.features=r}return e},_createServerFeature:function(e){var t,r={},i=[],n=[];for(var a in(t=e||{}).properties)i.push(a),n.push(t.properties[a]);return r.fieldNames=i,r.fieldValues=n,t.id&&(r.id=t.id),r.geometry=s.toSuperMapGeometry(t),r},_processFormat:function(e){return e||u.DataFormat.GEOJSON}}),p=t.featureService=function(e,t){return new c(e,t)};a.default.supermap.featureService=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.labelThemeLayer=t.LabelThemeLayer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(68),s=r(5);
  506. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  507. * This program are made available under the terms of the Apache License, Version 2.0
  508. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  509. var l=t.LabelThemeLayer=o.GeoFeatureThemeLayer.extend({options:{isOverLay:!0,isAvoid:!0},initialize:function(e,t){o.GeoFeatureThemeLayer.prototype.initialize.call(this,e,t),a.default.Util.setOptions(this,t),this.style=[],this.themeField=null,this.styleGroups=[],this.defaultStyle={fontColor:"#000000",fontOpacity:1,fontSize:"12px",fontStyle:"normal",fontWeight:"normal",labelAlign:"cm",labelXOffset:0,labelYOffset:0,labelRotation:0,fill:!1,fillColor:"#ee9900",fillOpacity:.4,stroke:!1,strokeColor:"#ee9900",strokeOpacity:1,strokeWidth:1,strokeLinecap:"round",strokeDashstyle:"solid",labelRect:!0,labelSelect:!0,_isGeoTextStrategyStyle:!0},this.getPxBoundsMode=0,this.labelFeatures=[]},onAdd:function(e){o.GeoFeatureThemeLayer.prototype.onAdd.call(this,e),this.container.style.zIndex=200},redrawThematicFeatures:function(e){if(this.features.length>0&&0==this.labelFeatures.length)for(var t=this.setLabelsStyle(this.features),r=0,i=t.length;r<i;r++)this.labelFeatures.push(t[r]);this.features=this.getDrawnLabels(this.labelFeatures),o.GeoFeatureThemeLayer.prototype.redrawThematicFeatures.call(this,e)},removeFeatures:function(e){this.labelFeatures=[],o.GeoFeatureThemeLayer.prototype.removeFeatures.call(this,arguments)},removeAllFeatures:function(){this.labelFeatures=[],o.GeoFeatureThemeLayer.prototype.removeAllFeatures.call(this,arguments)},getDrawnLabels:function(e){for(var t,r,i,n,a=[],o=[],l={labelAlign:"cm",labelXOffset:0,labelYOffset:0},u=this._map,c=u.getSize(),p=u.getZoom(),h=0,f=e.length;h<f;h++){((r=e[h]).isStyleChange||void 0===r.isStyleChange)&&(r=this.setStyle(r));var d=this.getLabelPxLocation(r);if(d.x>=0&&d.x<=c.x&&d.y>=0&&d.y<=c.y){if(r.style.minZoomLevel>-1&&p<=r.style.minZoomLevel)continue;if(r.style.maxZoomLevel>-1&&p>r.style.maxZoomLevel)continue;var y=null;r.isStyleChange?(r.isStyleChange=null,y=this.calculateLabelBounds(r,d)):y=r.geometry.bsInfo.w&&r.geometry.bsInfo.h?this.calculateLabelBounds2(r,d):this.calculateLabelBounds(r,d);var v=new s.Bounds(0,c.y,c.x,0),m=y.length;if(this.options.isAvoid){var g=this.getAvoidInfo(v,y);if(g){if("left"===g.aspectW){r.style.labelXOffset+=g.offsetX;for(var b=0;b<m;b++)y[b].x+=g.offsetX}else if("right"===g.aspectW){r.style.labelXOffset+=-g.offsetX;for(var S=0;S<m;S++)y[S].x+=-g.offsetX}if("top"===g.aspectH){r.style.labelYOffset+=g.offsetY;for(var _=0;_<m;_++)y[_].y+=g.offsetY}else if("bottom"===g.aspectH){r.style.labelYOffset+=-g.offsetY;for(var P=0;P<m;P++)y[P].y+=-g.offsetY}r.isStyleChange=!0}}if(this.options.isOverLay){var w=!1;if(0!=h)for(var O=0;O<o.length;O++)if(this.isQuadrilateralOverLap(y,o[O])){w=!0;break}if(w)continue;o.push(y)}for(var T=[],M=0;M<m-1;M++)T.push(u.containerPointToLatLng(y[M]));var C=T[3],x=T[1],E=new s.Bounds(C.lng,C.lat,x.lng,x.lat).getCenterLonLat(),L=new s.GeoText(E.lon,E.lat,r.attributes[this.themeField]);L.calculateBounds(),i=s.CommonUtil.cloneObject(r.style),n=s.CommonUtil.cloneObject(s.CommonUtil.copyAttributes(i,l)),(t=new s.GeometryVector(L,r.attributes,n)).id=r.id,t.fid=r.fid,a.push(t)}}return a},getStyleByData:function(e){var t=e;if(t.style=s.CommonUtil.copyAttributes(t.style,this.defaultStyle),this.style&&this.style.fontSize&&parseFloat(this.style.fontSize)<12&&(this.style.fontSize="12px"),t.style=s.CommonUtil.copyAttributes(t.style,this.style),this.themeField&&this.styleGroups&&t.attributes){var r=this.themeField,i=t.attributes,n=this.styleGroups,a=!1,o=null;for(var l in i)if(r===l){a=!0,o=i[l];break}if(a)for(var u=0,c=n.length;u<c;u++)if(o>=n[u].start&&o<n[u].end){var p=n[u].style;p&&p.fontSize&&parseFloat(p.fontSize)<12&&(p.fontSize="12px"),t.style=s.CommonUtil.copyAttributes(t.style,p)}t.style.label=t.attributes[this.themeField]}return t.style},setLabelsStyle:function(e){for(var t,r=[],i=0,n=e.length;i<n;i++){var a=e[i];if("SuperMap.Geometry.GeoText"!==a.geometry.CLASS_NAME)return e;(a.geometry.bsInfo.w||a.geometry.bsInfo.h)&&(a.geometry.bsInfo.w=null,a.geometry.bsInfo.h=null,a.geometry.labelWTmp=null),(t=this.setStyle(a)).layer=this.layer,r.push(t)}return r},setStyle:function(e){var t=e;if(t.style=s.CommonUtil.copyAttributes(t.style,this.defaultStyle),this.style&&this.style.fontSize&&parseFloat(this.style.fontSize)<12&&(this.style.fontSize="12px"),t.style=s.CommonUtil.copyAttributes(t.style,this.style),this.groupField&&this.styleGroups&&t.attributes){var r=this.groupField,i=t.attributes,n=this.styleGroups,a=!1,o=null;for(var l in i)if(r===l){a=!0,o=i[l];break}if(a)for(var u=0,c=n.length;u<c;u++)if(o>=n[u].start&&o<n[u].end){var p=n[u].style;p&&p.fontSize&&parseFloat(p.fontSize)<12&&(p.fontSize="12px"),t.style=s.CommonUtil.copyAttributes(t.style,p)}}return t.style.label=t.geometry.text,t},getLabelPxLocation:function(e){var t=e.geometry,r=e.style,i=t.getCentroid(),n=this._map.latLngToContainerPoint(this.options.alwaysMapCRS?this._map.options.crs.unproject(a.default.point(i.x,i.y)):a.default.latLng(i.y,i.x)),o=a.default.point(n.x,n.y);if(r.labelXOffset||r.labelYOffset){var s=isNaN(r.labelXOffset)?0:r.labelXOffset,l=isNaN(r.labelYOffset)?0:r.labelYOffset,u=o.add(a.default.point(s,-l));return a.default.point(u.x,u.y)}return a.default.point(o.x,o.y)},calculateLabelBounds:function(e,t){var r=e.geometry,i=null,n=null;if(0==this.getPxBoundsMode)i=r.getLabelPxBoundsByText(t,e.style);else{if(1!==this.getPxBoundsMode)return null;n=this.getLabelInfo(e.geometry.getCentroid(),e.style),i=r.getLabelPxBoundsByLabel(t,n.w,n.h,e.style)}var a=[];return a=e.style.labelRotation%180==0?[{x:i.left,y:i.top},{x:i.right,y:i.top},{x:i.right,y:i.bottom},{x:i.left,y:i.bottom},{x:i.left,y:i.top}]:this.rotationBounds(i,t,e.style.labelRotation),r.bounds=new s.Bounds(a[1].x,a[3].y,a[2].x,a[4].y),a},calculateLabelBounds2:function(e,t){var r,i,n,a,o,l=e.geometry.bsInfo,u=e.style,c=s.CommonUtil.cloneObject(t);if(u.labelAlign&&"cm"!==u.labelAlign)switch(u.labelAlign){case"lt":c.x+=l.w/2,c.y+=l.h/2;break;case"lm":c.x+=l.w/2;break;case"lb":c.x+=l.w/2,c.y-=l.h/2;break;case"ct":c.y+=l.h/2;break;case"cb":c.y-=l.h/2;break;case"rt":c.x-=l.w/2,c.y+=l.h/2;break;case"rm":c.x-=l.w/2;break;case"rb":c.x-=l.w/2,c.y-=l.h/2}i=c.x-l.w/2,n=c.y+l.h/2,o=u.fontStyle&&"italic"===u.fontStyle?c.x+l.w/2+parseInt(parseFloat(u.fontSize)/2):c.x+l.w/2,a=c.y-l.h/2,r=new s.Bounds(i,n,o,a);var p=[];return p=u.labelRotation%180==0?[{x:r.left,y:r.top},{x:r.right,y:r.top},{x:r.right,y:r.bottom},{x:r.left,y:r.bottom},{x:r.left,y:r.top}]:this.rotationBounds(r,t,u.labelRotation),e.geometry.bounds=new s.Bounds(p[1].x,p[3].y,p[2].x,p[4].y),p},getLabelInfo:function(e,t){var r={l:"left",r:"right",t:"top",b:"bottom"},i={l:0,r:-1,t:0,b:-1};t=s.CommonUtil.extend({fontColor:"#000000",labelAlign:"cm"},t);var n=this.getLocalXY(e),a=0;if(t.labelXOffset||t.labelYOffset){var o=isNaN(t.labelXOffset)?0:t.labelXOffset,l=isNaN(t.labelYOffset)?0:t.labelYOffset;n[0]+=o,n[1]-=l}var u=document.createElement("canvas");u.globalAlpha=0,u.lineWidth=1;var c=u.getContext("2d");c.fillStyle=t.fontColor,c.globalAlpha=t.fontOpacity||1;var p,h,f,d=[t.fontStyle?t.fontStyle:"normal","normal",t.fontWeight?t.fontWeight:"normal",t.fontSize?t.fontSize:"1em",t.fontFamily?t.fontFamily:"sans-serif"].join(" "),y=t.label.split("\n"),v=y.length;if(c.fillText){c.font=d,c.textAlign=r[t.labelAlign[0]]||"center",c.textBaseline=r[t.labelAlign[1]]||"middle",null==(p=i[t.labelAlign[1]])&&(p=-.5),h=c.measureText("Mg").height||c.measureText("xx").width,n[1]+=h*p*(v-1);for(var m=0;m<v;m++)a<(f=c.measureText(y[m]).width)&&(a=f)}else if(c.mozDrawText){c.mozTextStyle=d,null==(p=i[t.labelAlign[1]])&&(p=-.5),h=c.mozMeasureText("xx"),n[1]+=h*(1+p*v);for(var g=0;g<v;g++)a<(f=c.measureText(y[g]).width)&&(a=f)}var b={};return a?(b.w=a,b.h=t.fontSize,b.rows=y.length,b):null},rotationBounds:function(e,t,r){var i=a.default.point(e.left,e.top),n=a.default.point(e.right,e.top),o=a.default.point(e.right,e.bottom),s=a.default.point(e.left,e.bottom),l=[];l.push(this.getRotatedLocation(i.x,i.y,t.x,t.y,r)),l.push(this.getRotatedLocation(n.x,n.y,t.x,t.y,r)),l.push(this.getRotatedLocation(o.x,o.y,t.x,t.y,r)),l.push(this.getRotatedLocation(s.x,s.y,t.x,t.y,r));for(var u=[],c=0;c<l.length;c++)u.push({x:l[c].x,y:l[c].y});return u.push({x:l[0].x,y:l[0].y}),u},getRotatedLocation:function(e,t,r,i,n){var a,o,s={};return t=-t,i=-i,n=-n,a=(e-r)*Math.cos(n/180*Math.PI)-(t-i)*Math.sin(n/180*Math.PI)+r,o=(e-r)*Math.sin(n/180*Math.PI)+(t-i)*Math.cos(n/180*Math.PI)+i,s.x=a,s.y=-o,s},getAvoidInfo:function(e,t){if(5!==t.length)return null;for(var r=[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.right,y:e.bottom},{x:e.left,y:e.bottom},{x:e.left,y:e.top}],i=!1,n=r.length,a=t.length,o=0,l=0,u="",c="",p=0;p<n-1;p++)for(var h=0;h<a-1;h++){"SuperMap.Geometry.Point"===s.CommonUtil.lineIntersection(r[p],r[p+1],t[h],t[h+1]).CLASS_NAME&&(f(t[h]),f(t[h+1]),i=!0)}return i?{aspectW:c,aspectH:u,offsetX:o,offsetY:l}:null;function f(t){if(!e.contains(t.x,t.y)){if(t.y<e.top){var r=Math.abs(e.top-t.y);r>l&&(l=r,u="top")}if(t.y>e.bottom){var i=Math.abs(t.y-e.bottom);i>l&&(l=i,u="bottom")}if(t.x<e.left){var n=Math.abs(e.left-t.x);n>o&&(o=n,c="left")}if(t.x>e.right){var a=Math.abs(t.x-e.right);a>o&&(o=a,c="right")}}}},isQuadrilateralOverLap:function(e,t){var r=e.length,i=t.length;if(5!==r||5!==i)return null;for(var n=!1,a=0;a<r;a++)if(this.isPointInPoly(e[a],t)){n=!0;break}for(var o=0;o<i;o++)if(this.isPointInPoly(t[o],e)){n=!0;break}for(var l=0;l<r-1&&!n;l++)for(var u=0;u<i-1;u++){if("SuperMap.Geometry.Point"===s.CommonUtil.lineIntersection(e[l],e[l+1],t[u],t[u+1]).CLASS_NAME){n=!0;break}}return n},isPointInPoly:function(e,t){for(var r=!1,i=-1,n=t.length,a=n-1;++i<n;a=i)(t[i].y<=e.y&&e.y<t[a].y||t[a].y<=e.y&&e.y<t[i].y)&&e.x<(t[a].x-t[i].x)*(e.y-t[i].y)/(t[a].y-t[i].y)+t[i].x&&(r=!r);return r}}),u=t.labelThemeLayer=function(e,t){return new l(e,t)};a.default.supermap.labelThemeLayer=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rangeThemeLayer=t.RangeThemeLayer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(68),s=r(5);
  510. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  511. * This program are made available under the terms of the Apache License, Version 2.0
  512. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  513. var l=t.RangeThemeLayer=o.GeoFeatureThemeLayer.extend({initialize:function(e,t){o.GeoFeatureThemeLayer.prototype.initialize.call(this,e,t),this.style=[],this.themeField=null,this.styleGroups=[]},getStyleByData:function(e){var t=this,r=e,i=s.CommonUtil.copyAttributesWithClip({},t.style),n=t.styleGroups,a=!1,o=null,l=t.styleGroups&&t.styleGroups.length>0;if(t.themeField&&l&&r.attributes){var u=t.themeField,c=r.attributes;for(var p in c)if(u===p){a=!0,o=c[p];break}}if(a)for(var h=0,f=n.length;h<f;h++){if(h===f-1?o>=n[h].start&&o<=n[h].end:o>=n[h].start&&o<n[h].end){var d=n[h].style;i=s.CommonUtil.copyAttributesWithClip(i,d)}}return i}}),u=t.rangeThemeLayer=function(e,t){return new l(e,t)};a.default.supermap.rangeThemeLayer=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uniqueThemeLayer=t.UniqueThemeLayer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(68),s=r(5);
  514. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  515. * This program are made available under the terms of the Apache License, Version 2.0
  516. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  517. var l=t.UniqueThemeLayer=o.GeoFeatureThemeLayer.extend({initialize:function(e,t){o.GeoFeatureThemeLayer.prototype.initialize.call(this,e,t),this.style=[],this.themeField=null,this.styleGroups=[]},getStyleByData:function(e){var t=this,r=e,i=s.CommonUtil.copyAttributesWithClip({},t.style),n=t.styleGroups,a=!1,o=null,l=t.styleGroups&&t.styleGroups.length>0;if(t.themeField&&l&&r.attributes){var u=t.themeField,c=r.attributes;for(var p in c)if(u===p){a=!0,o=c[p];break}}if(a)for(var h=0,f=n.length;h<f;h++)if(o.toString()===n[h].value.toString()){var d=n[h].style;i=s.CommonUtil.copyAttributesWithClip(i,d)}return i}}),u=t.uniqueThemeLayer=function(e,t){return new l(e,t)};a.default.supermap.uniqueThemeLayer=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphic=t.Graphic=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);
  518. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  519. * This program are made available under the terms of the Apache License, Version 2.0
  520. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  521. var o=t.Graphic=a.default.Class.extend({initialize:function(e){var t=(e=e||{}).latLng||e._latLng;this._latLng=a.default.latLng(t.lat,t.lng),this._style=e.style||e._canvas,this.attributes=e.attributes,this.id=e.id?e.id:null},getId:function(){return this.id},setId:function(e){this.id=e},setLatLng:function(e){this._latLng=e},setCanvas:function(e){this._style=e},setAttributes:function(e){this.attributes=e},getLatLng:function(){return this._latLng},getCanvas:function(){return this._style},getAttributes:function(){return this.attributes},setStyle:function(e){this._style=e},getStyle:function(){return this._style}}),s=t.graphic=function(e){return new o(e)};a.default.supermap.graphic=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompOpMap=t.ServerStyleMap=t.CartoStyleMap=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);
  522. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  523. * This program are made available under the terms of the Apache License, Version 2.0
  524. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  525. var o=t.CartoStyleMap={TEXT:{"text-size":"fontSize","text-face-name":"fontFamily","text-align":"textAlign","text-name":"textName","text-weight":"fontWeight","text-halo-color":"color","text-fill":"fillColor","text-comp-op":"globalCompositeOperation"},POINT:{"point-file":"iconUrl","point-fill":"fillColor","point-radius":"radius","point-halo-color":"color","point-comp-op":"globalCompositeOperation"},LINE:{"line-color":"color","line-width":"weight","line-cap":"lineCap","line-join":"lineJoin","line-dash-offset":"dashOffset","line-opacity":"opacity","line-dasharray":"dashArray","line-comp-op":"globalCompositeOperation"},REGION:{"line-color":"color","line-width":"weight","line-cap":"lineCap","line-join":"lineJoin","line-dash-offset":"dashOffset","line-opacity":"opacity","line-dasharray":"dashArray","polygon-fill":"fillColor","polygon-opacity":"fillOpacity","polygon-comp-op":"globalCompositeOperation"}},s=t.ServerStyleMap={lineWidth:{leafletStyle:"weight",type:"number",unit:"mm",defaultValue:.1},fillForeColor:{leafletStyle:"fillColor",type:"color",defaultValue:"rgba(0,0,0,0)"},foreColor:{leafletStyle:"color",type:"color",defaultValue:"rgba(0,0,0,0)"},markerSize:{leafletStyle:"markerSize",type:"number",unit:"mm",defaultValue:2.4},lineColor:{leafletStyle:"color",type:"color",defaultValue:"#000000"}},l=t.CompOpMap={clear:"",src:"",dst:"","src-over":"source-over","dst-over":"destination-over","src-in":"source-in","dst-in":"destination-in","src-out":"source-out","dst-out":"destination-out","src-atop":"source-atop","dst-atop":"destination-atop",xor:"xor",plus:"lighter",minus:"",multiply:"",screen:"",overlay:"",darken:"",lighten:"lighter","color-dodge":"","color-burn":"","hard-light":"","soft-light":"",difference:"",exclusion:"",contrast:"",invert:"","invert-rgb":"","grain-merge":"","grain-extract":"",hue:"",saturation:"",color:"",value:""};a.default.supermap.CartoStyleMap=o,a.default.supermap.ServerStyleMap=s,a.default.supermap.CompOpMap=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultStyle=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);
  526. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  527. * This program are made available under the terms of the Apache License, Version 2.0
  528. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  529. var o=t.DefaultStyle={TEXT:{fontSize:"14px",fontFamily:"Arial Unicode MS Regular,Microsoft YaHei",textAlign:"left",color:"rgba(255,255,255,0)",fillColor:"rgba(80,80,80,1)",weight:1,globalAlpha:1},POINT:{fillColor:"#ffcc00",color:"#cc3333",weight:1,radius:3,opacity:1},LINE:{color:"rgba(0,0,0,0)",weight:1,lineCap:"butt",lineJoin:"round",dashOffset:0,dashArray:[],opacity:1},REGION:{color:"rgba(0,0,0,0)",fillColor:"rgba(0,0,0,0)",weight:1,lineCap:"butt",lineJoin:"round",dashOffset:0,opacity:1,fillOpacity:1,dashArray:[]}};a.default.supermap.DefaultStyle=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tiledMapLayer=t.TiledMapLayer=void 0;var i=s(r(2));r(3);var n=r(5),a=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(31)),o=s(r(11));function s(e){return e&&e.__esModule?e:{default:e}}var l=t.TiledMapLayer=i.default.TileLayer.extend({options:{layersID:null,redirect:!1,transparent:!0,cacheEnabled:!0,clipRegionEnabled:!1,clipRegion:null,prjCoordSys:null,overlapDisplayed:!1,overlapDisplayedOptions:null,tileversion:null,crs:null,serverType:n.ServerType.ISERVER,format:"png",tileProxy:null,attribution:o.default.Common.attribution},initialize:function(e,t){this._url=e,i.default.TileLayer.prototype.initialize.apply(this,arguments),i.default.setOptions(this,t),i.default.stamp(this),this.tileSetsIndex=-1,this.tempIndex=-1},onAdd:function(e){this._crs=this.options.crs||e.options.crs,i.default.TileLayer.prototype.onAdd.call(this,e)},getTileUrl:function(e){var t=this.getScaleFromCoords(e),r=this._getLayerUrl()+"&scale="+t+"&x="+e.x+"&y="+e.y;return this.options.tileProxy&&(r=this.options.tileProxy+encodeURIComponent(r)),this.options.cacheEnabled||(r+="&_t="+(new Date).getTime()),r},getScale:function(e){var t=e||this._map.getZoom();return this.scales[t]},getScaleFromCoords:function(e){var t,r=this;return r.scales&&r.scales[e.z]?r.scales[e.z]:(r.scales=r.scales||{},t=r.getDefaultScale(e),r.scales[e.z]=t,t)},getDefaultScale:function(e){var t=this._crs;if(t.scales)return t.scales[e.z];var r=this._tileCoordsToBounds(e),i=t.project(r.getNorthEast()),o=t.project(r.getSouthWest()),s=this.options.tileSize,l=Math.max(Math.abs(i.x-o.x)/s,Math.abs(i.y-o.y)/s),u=n.Unit.METER;if(t.code){var c=t.code.split(":");if(c&&c.length>1){var p=parseInt(c[1]);u=p&&p>=4e3&&p<=5e3?n.Unit.DEGREE:n.Unit.METER}}return a.resolutionToScale(l,96,u)},setTileSetsInfo:function(e){this.tileSets=e,i.default.Util.isArray(this.tileSets)&&(this.tileSets=this.tileSets[0]),this.tileSets&&(this.fire("tilesetsinfoloaded",{tileVersions:this.tileSets.tileVersions}),this.changeTilesVersion())},lastTilesVersion:function(){this.tempIndex=this.tileSetsIndex-1,this.changeTilesVersion()},nextTilesVersion:function(){this.tempIndex=this.tileSetsIndex+1,this.changeTilesVersion()},changeTilesVersion:function(){var e=this;if(null!=e.tileSets&&!(e.tempIndex===e.tileSetsIndex||this.tempIndex<0)){var t=e.tileSets.tileVersions;if(t&&e.tempIndex<t.length&&e.tempIndex>=0){var r=t[e.tempIndex].name;e.mergeTileVersionParam(r)&&(e.tileSetsIndex=e.tempIndex,e.fire("tileversionschanged",{tileVersion:t[e.tempIndex]}))}}},updateCurrentTileSetsIndex:function(e){this.tempIndex=e},mergeTileVersionParam:function(e){return!!e&&(this.requestParams.tileversion=e,this._paramsChanged=!0,this.redraw(),this._paramsChanged=!1,!0)},_getLayerUrl:function(){return this._paramsChanged&&(this._layerUrl=this._createLayerUrl()),this._layerUrl||this._createLayerUrl()},_createLayerUrl:function(){var e=this._url+"/tileImage."+this.options.format+"?";return e+=encodeURI(this._getRequestParamString()),e=this._appendCredential(e),this._layerUrl=e,e},_getRequestParamString:function(){this.requestParams=this.requestParams||this._getAllRequestParams();var e=[];for(var t in this.requestParams)e.push(t+"="+this.requestParams[t]);return e.join("&")},_getAllRequestParams:function(){var e=this.options||{},t={},r=this.options.tileSize;r instanceof i.default.Point||(r=i.default.point(r,r)),t.width=r.x,t.height=r.y,t.redirect=!0===e.redirect,t.transparent=!0===e.transparent,t.cacheEnabled=!(!1===e.cacheEnabled),e.prjCoordSys&&(t.prjCoordSys=JSON.stringify(e.prjCoordSys)),e.layersID&&(t.layersID=e.layersID.toString()),e.clipRegionEnabled&&e.clipRegion instanceof i.default.Path&&(e.clipRegion=a.toSuperMapGeometry(e.clipRegion.toGeoJSON()),e.clipRegion=n.CommonUtil.toJSON(n.ServerGeometry.fromGeometry(e.clipRegion)),t.clipRegionEnabled=e.clipRegionEnabled,t.clipRegion=JSON.stringify(e.clipRegion));var o=this._crs;if(o.options&&o.options.origin)t.origin=JSON.stringify({x:o.options.origin[0],y:o.options.origin[1]});else if(o.projection&&o.projection.bounds){var s=o.projection.bounds,l=i.default.point(s.min.x,s.max.y);t.origin=JSON.stringify({x:l.x,y:l.y})}return!1===e.overlapDisplayed?(t.overlapDisplayed=!1,e.overlapDisplayedOptions&&(t.overlapDisplayedOptions=this.overlapDisplayedOptions.toString())):t.overlapDisplayed=!0,!0===e.cacheEnabled&&e.tileversion&&(t.tileversion=e.tileversion.toString()),t},_appendCredential:function(e){var t,r,i=e;switch(this.options.serverType){case n.ServerType.IPORTAL:(t=(r=n.SecurityManager.getToken(this._url))?new n.Credential(r,"token"):null)||(t=(r=n.SecurityManager.getKey(this._url))?new n.Credential(r,"key"):null);break;case n.ServerType.ONLINE:t=(r=n.SecurityManager.getKey(this._url))?new n.Credential(r,"key"):null;break;default:t=(r=n.SecurityManager.getToken(this._url))?new n.Credential(r,"token"):null}return t&&(i+="&"+t.getUrlParameters()),i}}),u=t.tiledMapLayer=function(e,t){return new l(e,t)};
  530. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  531. * This program are made available under the terms of the Apache License, Version 2.0
  532. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/i.default.supermap.tiledMapLayer=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tiandituTileLayer=t.TiandituTileLayer=void 0;var i=o(r(2));r(3);var n=r(103),a=o(r(11));function o(e){return e&&e.__esModule?e:{default:e}}
  533. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  534. * This program are made available under the terms of the Apache License, Version 2.0
  535. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.TiandituTileLayer=n.WMTSLayer.extend({layerLabelMap:{vec:"cva",ter:"cta",img:"cia"},layerZoomMap:{vec:18,ter:14,img:18},options:{layerType:"vec",isLabel:!1,attribution:a.default.Tianditu.attribution,url:"http://t{s}.tianditu.gov.cn/{layer}_{proj}/wmts?",zoomOffset:1,key:"",dpi:96,style:"default",format:"tiles",subdomains:[0,1,2,3,4,5,6,7]},initialize:function(e){e=e||{},i.default.setOptions(this,e),this.options.layer=this.options.isLabel?this.layerLabelMap[this.options.layerType]:this.options.layerType,this.options.maxZoom=this.layerZoomMap[this.options.layerType]-1,n.WMTSLayer.prototype.initialize.call(this,this.options.url,this.options),i.default.stamp(this)},onAdd:function(e){this.options.tilematrixSet="EPSG:4326"===e.options.crs.code?"c":"w",this.options.key&&(this._url=this._url+"tk="+this.options.key),this._url=this._url.replace("{layer}",this.options.layer).replace("{proj}",this.options.tilematrixSet),n.WMTSLayer.prototype.onAdd.call(this,e)}}),l=t.tiandituTileLayer=function(e){return new s(e)};i.default.supermap.tiandituTileLayer=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cloudTileLayer=t.CloudTileLayer=void 0;var i=a(r(2));r(3);var n=a(r(11));function a(e){return e&&e.__esModule?e:{default:e}}var o=t.CloudTileLayer=i.default.TileLayer.extend({defaultURL:"http://t2.supermapcloud.com/FileService/image",options:{mapName:"quanguo",type:"web",minZoom:3,maxZoom:18,attribution:n.default.Cloud.attribution},initialize:function(e,t){i.default.setOptions(this,t);var r=e||this.defaultURL;this._url=r+"?map="+this.options.mapName+"&type="+this.options.type,i.default.stamp(this)},getTileUrl:function(e){var t=this._url+"&x="+e.x+"&y="+e.y+"&z="+e.z;return this.options.tileProxy&&(t=this.options.tileProxy+encodeURIComponent(t)),t}}),s=t.cloudTileLayer=function(e,t){return new o(e,t)};
  536. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  537. * This program are made available under the terms of the Apache License, Version 2.0
  538. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/i.default.supermap.cloudTileLayer=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.baiduTileLayer=t.BaiduTileLayer=void 0,r(3);var i=a(r(2)),n=a(r(11));function a(e){return e&&e.__esModule?e:{default:e}}var o=t.BaiduTileLayer=i.default.TileLayer.extend({url:"http://online{num}.map.bdimg.com/onlinelabel/?qt=tile&x={x}&y={y}&z={z}&styles={styles}&udt=20150815&scaler=1",options:{minZoom:3,maxZoom:19,bounds:i.default.latLngBounds(i.default.latLng(-85.0511287798,-180),i.default.latLng(85.0511287798,180)),retina:i.default.Browser.retina,attribution:n.default.Baidu.attribution},initialize:function(e,t){e&&(this.url=e),i.default.setOptions(this,t),this.options.retina&&(this.options.maxZoom=18),i.default.stamp(this)},getTileUrl:function(e){var t=i.default.Util.template(this.url,{num:Math.abs((e.x+e.y)%8)+1,x:e.x,y:-e.y-1,z:this._getZoomForUrl(),styles:this.options.retina?"ph":"pl"});return this.options.tileProxy&&(t=this.options.tileProxy+encodeURIComponent(t)),t}}),s=t.baiduTileLayer=function(e,t){return new o(e,t)};
  539. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  540. * This program are made available under the terms of the Apache License, Version 2.0
  541. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/i.default.supermap.baiduTileLayer=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mapService=t.MapService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(8),s=r(5);
  542. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  543. * This program are made available under the terms of the Apache License, Version 2.0
  544. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  545. var l=t.MapService=o.ServiceBase.extend({options:{projection:null},initialize:function(e,t){t=t||{},a.default.setOptions(this,t),t.projection&&(this.options.projection=t.projection),o.ServiceBase.prototype.initialize.call(this,e,t)},getMapInfo:function(e){var t=this;new s.MapService(t.url,{proxy:t.options.proxy,withCredentials:t.options.withCredentials,crossOrigin:t.options.crossOrigin,serverType:t.options.serverType,eventListeners:{scope:t,processCompleted:e,processFailed:e},projection:t.options.projection}).processAsync()},getTilesets:function(e){var t=this;new s.TilesetsService(t.url,{proxy:t.options.proxy,withCredentials:t.options.withCredentials,crossOrigin:t.options.crossOrigin,serverType:t.options.serverType,eventListeners:{scope:t,processCompleted:e,processFailed:e}}).processAsync()}}),u=t.mapService=function(e,t){return new l(e,t)};a.default.supermap.mapService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TianDiTu_MercatorCRS=t.TianDiTu_WGS84CRS=t.BaiduCRS=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};for(var o,s=t.BaiduCRS=a.default.CRS.Baidu=a.default.extend({},a.default.CRS.EPSG3857,{code:"Baidu",scale:function(e){return 6378137*Math.PI*2/Math.pow(2,18-e)},transformation:(o=.5/(6378137*Math.PI),new a.default.Transformation(o,0,-o,0))}),l=[],u=1
  546. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  547. * This program are made available under the terms of the Apache License, Version 2.0
  548. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/;u<19;u++)l.push(1.40625/Math.pow(2,u));for(var c=t.TianDiTu_WGS84CRS=a.default.CRS.TianDiTu_WGS84=a.default.Proj.CRS("EPSG:4326",{origin:[-180,90],resolutions:l,bounds:a.default.bounds([-180,-90],[180,90])}),p=[],h=1;h<19;h++)p.push(156543.03392804062/Math.pow(2,h));var f=t.TianDiTu_MercatorCRS=a.default.CRS.TianDiTu_Mercator=a.default.Proj.CRS("EPSG:3857",{origin:[-20037508.3427892,20037508.3427892],resolutions:p,bounds:a.default.bounds([-20037508.3427892,-20037508.3427892],[20037508.3427892,20037508.3427892])});a.default.CRS.BaiduCRS=s,a.default.CRS.TianDiTu_WGS84CRS=c,a.default.CRS.TianDiTu_MercatorCRS=f},function(e,t,r){"use strict";e.exports=function(e,t,r,i){return r*=t,t*=t,i[0]*e-r*(i[1]+t*(i[2]+t*(i[3]+t*i[4])))}},function(e,t,r){"use strict";var i=r(58),n=r(57),a=r(56),o=r(55),s=r(54),l=r(7),u=Math.PI/2,c=r(59),p=r(43);t.init=function(){this.e0=i(this.es),this.e1=n(this.es),this.e2=a(this.es),this.e3=o(this.es),this.ml0=this.a*s(this.e0,this.e1,this.e2,this.e3,this.lat0)},t.forward=function(e){var t,r,i,n=e.x,a=e.y,o=l(n-this.long0),u=Math.sin(a),c=Math.cos(a);if(this.sphere){var p=c*Math.sin(o);if(Math.abs(Math.abs(p)-1)<1e-10)return 93;r=.5*this.a*this.k0*Math.log((1+p)/(1-p)),t=Math.acos(c*Math.cos(o)/Math.sqrt(1-p*p)),a<0&&(t=-t),i=this.a*this.k0*(t-this.lat0)}else{var h=c*o,f=Math.pow(h,2),d=this.ep2*Math.pow(c,2),y=Math.tan(a),v=Math.pow(y,2);t=1-this.es*Math.pow(u,2);var m=this.a/Math.sqrt(t),g=this.a*s(this.e0,this.e1,this.e2,this.e3,a);r=this.k0*m*h*(1+f/6*(1-v+d+f/20*(5-18*v+Math.pow(v,2)+72*d-58*this.ep2)))+this.x0,i=this.k0*(g-this.ml0+m*y*(f*(.5+f/24*(5-v+9*d+4*Math.pow(d,2)+f/30*(61-58*v+Math.pow(v,2)+600*d-330*this.ep2)))))+this.y0}return e.x=r,e.y=i,e},t.inverse=function(e){var t,r,i,n,a,o;if(this.sphere){var s=Math.exp(e.x/(this.a*this.k0)),h=.5*(s-1/s),f=this.lat0+e.y/(this.a*this.k0),d=Math.cos(f);t=Math.sqrt((1-d*d)/(1+h*h)),a=p(t),f<0&&(a=-a),o=0===h&&0===d?this.long0:l(Math.atan2(h,d)+this.long0)}else{var y=e.x-this.x0,v=e.y-this.y0;for(r=t=(this.ml0+v/this.k0)/this.a,n=0;r+=i=(t+this.e1*Math.sin(2*r)-this.e2*Math.sin(4*r)+this.e3*Math.sin(6*r))/this.e0-r,!(Math.abs(i)<=1e-10);n++)if(n>=6)return 95;if(Math.abs(r)<u){var m=Math.sin(r),g=Math.cos(r),b=Math.tan(r),S=this.ep2*Math.pow(g,2),_=Math.pow(S,2),P=Math.pow(b,2),w=Math.pow(P,2);t=1-this.es*Math.pow(m,2);var O=this.a/Math.sqrt(t),T=O*(1-this.es)/t,M=y/(O*this.k0),C=Math.pow(M,2);a=r-O*b*C/T*(.5-C/24*(5+3*P+10*S-4*_-9*this.ep2-C/30*(61+90*P+298*S+45*w-252*this.ep2-3*_))),o=l(this.long0+M*(1-C/6*(1+2*P+S-C/20*(5-2*S+28*P-3*_+8*this.ep2+24*w)))/g)}else a=u*c(v),o=this.long0}return e.x=o,e.y=a,e},t.names=["Transverse_Mercator","Transverse Mercator","tmerc"]},function(e,t,r){"use strict";var i=6,n="AJSAJS",a="AFAFAF",o=65,s=73,l=79,u=86,c=90;function p(e){return e*(Math.PI/180)}function h(e){return e/Math.PI*180}function f(e){var t=e.northing,r=e.easting,i=e.zoneLetter,n=e.zoneNumber;if(n<0||n>60)return null;var a,o,s,l,u,c,p,d,y=6378137,v=(1-Math.sqrt(.99330562))/(1+Math.sqrt(.99330562)),m=r-5e5,g=t;i<"N"&&(g-=1e7),c=6*(n-1)-180+3,d=(p=g/.9996/6367449.145945056)+(3*v/2-27*v*v*v/32)*Math.sin(2*p)+(21*v*v/16-55*v*v*v*v/32)*Math.sin(4*p)+151*v*v*v/96*Math.sin(6*p),a=y/Math.sqrt(1-.00669438*Math.sin(d)*Math.sin(d)),o=Math.tan(d)*Math.tan(d),s=.006739496752268451*Math.cos(d)*Math.cos(d),l=.99330562*y/Math.pow(1-.00669438*Math.sin(d)*Math.sin(d),1.5),u=m/(.9996*a);var b=d-a*Math.tan(d)/l*(u*u/2-(5+3*o+10*s-4*s*s-.06065547077041606)*u*u*u*u/24+(61+90*o+298*s+45*o*o-1.6983531815716497-3*s*s)*u*u*u*u*u*u/720);b=h(b);var S,_=(u-(1+2*o+s)*u*u*u/6+(5-2*s+28*o-3*s*s+.05391597401814761+24*o*o)*u*u*u*u*u/120)/Math.cos(d);if(_=c+h(_),e.accuracy){var P=f({northing:e.northing+e.accuracy,easting:e.easting+e.accuracy,zoneLetter:e.zoneLetter,zoneNumber:e.zoneNumber});S={top:P.lat,right:P.lon,bottom:b,left:_}}else S={lat:b,lon:_};return S}function d(e){var t=e%i;return 0===t&&(t=i),t}function y(e){if(e&&0===e.length)throw"MGRSPoint coverting from nothing";for(var t,r=e.length,i=null,p="",h=0;!/[A-Z]/.test(t=e.charAt(h));){if(h>=2)throw"MGRSPoint bad conversion from: "+e;p+=t,h++}var f=parseInt(p,10);if(0===h||h+3>r)throw"MGRSPoint bad conversion from: "+e;var y=e.charAt(h++);if(y<="A"||"B"===y||"Y"===y||y>="Z"||"I"===y||"O"===y)throw"MGRSPoint zone letter "+y+" not handled: "+e;i=e.substring(h,h+=2);for(var m=d(f),g=function(e,t){var r=n.charCodeAt(t-1),i=1e5,a=!1;for(;r!==e.charCodeAt(0);){if(++r===s&&r++,r===l&&r++,r>c){if(a)throw"Bad character: "+e;r=o,a=!0}i+=1e5}return i}(i.charAt(0),m),b=function(e,t){if(e>"V")throw"MGRSPoint given invalid Northing "+e;var r=a.charCodeAt(t-1),i=0,n=!1;for(;r!==e.charCodeAt(0);){if(++r===s&&r++,r===l&&r++,r>u){if(n)throw"Bad character: "+e;r=o,n=!0}i+=1e5}return i}(i.charAt(1),m);b<v(y);)b+=2e6;var S=r-h;if(S%2!=0)throw"MGRSPoint has to have an even number \nof digits after the zone letter and two 100km letters - front \nhalf for easting meters, second half for \nnorthing meters"+e;var _,P,w,O=S/2,T=0,M=0;return O>0&&(_=1e5/Math.pow(10,O),P=e.substring(h,h+O),T=parseFloat(P)*_,w=e.substring(h+O),M=parseFloat(w)*_),{easting:T+g,northing:M+b,zoneLetter:y,zoneNumber:f,accuracy:_}}function v(e){var t;switch(e){case"C":t=11e5;break;case"D":t=2e6;break;case"E":t=28e5;break;case"F":t=37e5;break;case"G":t=46e5;break;case"H":t=55e5;break;case"J":t=64e5;break;case"K":t=73e5;break;case"L":t=82e5;break;case"M":t=91e5;break;case"N":t=0;break;case"P":t=8e5;break;case"Q":t=17e5;break;case"R":t=26e5;break;case"S":t=35e5;break;case"T":t=44e5;break;case"U":t=53e5;break;case"V":t=62e5;break;case"W":t=7e6;break;case"X":t=79e5;break;default:t=-1}if(t>=0)return t;throw"Invalid zone letter: "+e}t.forward=function(e,t){return t=t||5,function(e,t){var r="00000"+e.easting,i="00000"+e.northing;return e.zoneNumber+e.zoneLetter+(_=e.easting,P=e.northing,w=e.zoneNumber,O=d(w),T=Math.floor(_/1e5),M=Math.floor(P/1e5)%20,p=T,h=M,f=O,y=f-1,v=n.charCodeAt(y),m=a.charCodeAt(y),g=v+p-1,b=m+h,S=!1,g>c&&(g=g-c+o-1,S=!0),(g===s||v<s&&g>s||(g>s||v<s)&&S)&&g++,(g===l||v<l&&g>l||(g>l||v<l)&&S)&&++g===s&&g++,g>c&&(g=g-c+o-1),b>u?(b=b-u+o-1,S=!0):S=!1,(b===s||m<s&&b>s||(b>s||m<s)&&S)&&b++,(b===l||m<l&&b>l||(b>l||m<l)&&S)&&++b===s&&b++,b>u&&(b=b-u+o-1),String.fromCharCode(g)+String.fromCharCode(b))+r.substr(r.length-5,t)+i.substr(i.length-5,t);var p,h,f,y,v,m,g,b,S;var _,P,w,O,T,M}(function(e){var t,r,i,n,a,o,s,l=e.lat,u=e.lon,c=6378137,h=p(l),f=p(u);s=Math.floor((u+180)/6)+1,180===u&&(s=60);l>=56&&l<64&&u>=3&&u<12&&(s=32);l>=72&&l<84&&(u>=0&&u<9?s=31:u>=9&&u<21?s=33:u>=21&&u<33?s=35:u>=33&&u<42&&(s=37));o=p(6*(s-1)-180+3),.006739496752268451,t=c/Math.sqrt(1-.00669438*Math.sin(h)*Math.sin(h)),r=Math.tan(h)*Math.tan(h),i=.006739496752268451*Math.cos(h)*Math.cos(h),n=Math.cos(h)*(f-o),a=c*(.9983242984503243*h-.002514607064228144*Math.sin(2*h)+2639046602129982e-21*Math.sin(4*h)-3.418046101696858e-9*Math.sin(6*h));var d=.9996*t*(n+(1-r+i)*n*n*n/6+(5-18*r+r*r+72*i-.39089081163157013)*n*n*n*n*n/120)+5e5,y=.9996*(a+t*Math.tan(h)*(n*n/2+(5-r+9*i+4*i*i)*n*n*n*n/24+(61-58*r+r*r+600*i-2.2240339282485886)*n*n*n*n*n*n/720));l<0&&(y+=1e7);return{northing:Math.round(y),easting:Math.round(d),zoneNumber:s,zoneLetter:function(e){var t="Z";84>=e&&e>=72?t="X":72>e&&e>=64?t="W":64>e&&e>=56?t="V":56>e&&e>=48?t="U":48>e&&e>=40?t="T":40>e&&e>=32?t="S":32>e&&e>=24?t="R":24>e&&e>=16?t="Q":16>e&&e>=8?t="P":8>e&&e>=0?t="N":0>e&&e>=-8?t="M":-8>e&&e>=-16?t="L":-16>e&&e>=-24?t="K":-24>e&&e>=-32?t="J":-32>e&&e>=-40?t="H":-40>e&&e>=-48?t="G":-48>e&&e>=-56?t="F":-56>e&&e>=-64?t="E":-64>e&&e>=-72?t="D":-72>e&&e>=-80&&(t="C");return t}(l)}}({lat:e[1],lon:e[0]}),t)},t.inverse=function(e){var t=f(y(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat,t.lon,t.lat]:[t.left,t.bottom,t.right,t.top]},t.toPoint=function(e){var t=f(y(e.toUpperCase()));return t.lat&&t.lon?[t.lon,t.lat]:[(t.left+t.right)/2,(t.top+t.bottom)/2]}},function(e,t,r){"use strict";e.exports=function(e){var t={x:e[0],y:e[1]};return e.length>2&&(t.z=e[2]),e.length>3&&(t.m=e[3]),t}},function(e,t,r){"use strict";var i=.017453292519943295,n=57.29577951308232,a=1,o=2,s=r(421),l=r(420),u=r(108),c=r(180);e.exports=function e(t,r,p){var h;function f(e,t){return(e.datum.datum_type===a||e.datum.datum_type===o)&&"WGS84"!==t.datumCode}return Array.isArray(p)&&(p=c(p)),t.datum&&r.datum&&(f(t,r)||f(r,t))&&(e(t,h=new u("WGS84"),p),t=h),"enu"!==t.axis&&l(t,!1,p),"longlat"===t.projName?(p.x*=i,p.y*=i):(t.to_meter&&(p.x*=t.to_meter,p.y*=t.to_meter),t.inverse(p)),t.from_greenwich&&(p.x+=t.from_greenwich),p=s(t.datum,r.datum,p),r.from_greenwich&&(p.x-=r.from_greenwich),"longlat"===r.projName?(p.x*=n,p.y*=n):(r.forward(p),r.to_meter&&(p.x/=r.to_meter,p.y/=r.to_meter)),"enu"!==r.axis&&l(r,!0,p),p}},function(e,t,r){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=.017453292519943295,a=r(107);function o(e,t,r){e[t]=r.map(function(e){var t={};return s(e,t),t}).reduce(function(e,t){return a(e,t)},{})}function s(e,t){var r;Array.isArray(e)?("PARAMETER"===(r=e.shift())&&(r=e.shift()),1===e.length?Array.isArray(e[0])?(t[r]={},s(e[0],t[r])):t[r]=e[0]:e.length?"TOWGS84"===r?t[r]=e:(t[r]={},["UNIT","PRIMEM","VERT_DATUM"].indexOf(r)>-1?(t[r]={name:e[0].toLowerCase(),convert:e[1]},3===e.length&&(t[r].auth=e[2])):"SPHEROID"===r?(t[r]={name:e[0],a:e[1],rf:e[2]},4===e.length&&(t[r].auth=e[3])):["GEOGCS","GEOCCS","DATUM","VERT_CS","COMPD_CS","LOCAL_CS","FITTED_CS","LOCAL_DATUM"].indexOf(r)>-1?(e[0]=["name",e[0]],o(t,r,e)):e.every(function(e){return Array.isArray(e)})?o(t,r,e):s(e,t[r])):t[r]=!0):t[e]=!0}function l(e){return e*n}e.exports=function(e,t){var r=JSON.parse((","+e).replace(/\s*\,\s*([A-Z_0-9]+?)(\[)/g,',["$1",').slice(1).replace(/\s*\,\s*([A-Z_0-9]+?)\]/g,',"$1"]').replace(/,\["VERTCS".+/,"")),n=r.shift(),o=r.shift();r.unshift(["name",o]),r.unshift(["type",n]),r.unshift("output");var u={};return s(r,u),function(e){function t(t){var r=e.to_meter||1;return parseFloat(t,10)*r}"GEOGCS"===e.type?e.projName="longlat":"LOCAL_CS"===e.type?(e.projName="identity",e.local=!0):"object"===i(e.PROJECTION)?e.projName=Object.keys(e.PROJECTION)[0]:e.projName=e.PROJECTION,e.UNIT&&(e.units=e.UNIT.name.toLowerCase(),"metre"===e.units&&(e.units="meter"),e.UNIT.convert&&("GEOGCS"===e.type?e.DATUM&&e.DATUM.SPHEROID&&(e.to_meter=parseFloat(e.UNIT.convert,10)*e.DATUM.SPHEROID.a):e.to_meter=parseFloat(e.UNIT.convert,10))),e.GEOGCS&&(e.GEOGCS.DATUM?e.datumCode=e.GEOGCS.DATUM.name.toLowerCase():e.datumCode=e.GEOGCS.name.toLowerCase(),"d_"===e.datumCode.slice(0,2)&&(e.datumCode=e.datumCode.slice(2)),"new_zealand_geodetic_datum_1949"!==e.datumCode&&"new_zealand_1949"!==e.datumCode||(e.datumCode="nzgd49"),"wgs_1984"===e.datumCode&&("Mercator_Auxiliary_Sphere"===e.PROJECTION&&(e.sphere=!0),e.datumCode="wgs84"),"_ferro"===e.datumCode.slice(-6)&&(e.datumCode=e.datumCode.slice(0,-6)),"_jakarta"===e.datumCode.slice(-8)&&(e.datumCode=e.datumCode.slice(0,-8)),~e.datumCode.indexOf("belge")&&(e.datumCode="rnb72"),e.GEOGCS.DATUM&&e.GEOGCS.DATUM.SPHEROID&&(e.ellps=e.GEOGCS.DATUM.SPHEROID.name.replace("_19","").replace(/[Cc]larke\_18/,"clrk"),"international"===e.ellps.toLowerCase().slice(0,13)&&(e.ellps="intl"),e.a=e.GEOGCS.DATUM.SPHEROID.a,e.rf=parseFloat(e.GEOGCS.DATUM.SPHEROID.rf,10)),~e.datumCode.indexOf("osgb_1936")&&(e.datumCode="osgb36")),e.b&&!isFinite(e.b)&&(e.b=e.a),[["standard_parallel_1","Standard_Parallel_1"],["standard_parallel_2","Standard_Parallel_2"],["false_easting","False_Easting"],["false_northing","False_Northing"],["central_meridian","Central_Meridian"],["latitude_of_origin","Latitude_Of_Origin"],["latitude_of_origin","Central_Parallel"],["scale_factor","Scale_Factor"],["k0","scale_factor"],["latitude_of_center","Latitude_of_center"],["lat0","latitude_of_center",l],["longitude_of_center","Longitude_Of_Center"],["longc","longitude_of_center",l],["x0","false_easting",t],["y0","false_northing",t],["long0","central_meridian",l],["lat0","latitude_of_origin",l],["lat0","standard_parallel_1",l],["lat1","standard_parallel_1",l],["lat2","standard_parallel_2",l],["alpha","azimuth",l],["srsCode","name"]].forEach(function(t){return r=e,n=(i=t)[0],a=i[1],void(!(n in r)&&a in r&&(r[n]=r[a],3===i.length&&(r[n]=i[2](r[n]))));var r,i,n,a}),e.long0||!e.longc||"Albers_Conic_Equal_Area"!==e.projName&&"Lambert_Azimuthal_Equal_Area"!==e.projName||(e.long0=e.longc),e.lat_ts||!e.lat1||"Stereographic_South_Pole"!==e.projName&&"Polar Stereographic (variant B)"!==e.projName||(e.lat0=l(e.lat1>0?90:-90),e.lat_ts=e.lat1)}(u.output),a(t,u.output)}},function(e,t,r){"use strict";var i=.017453292519943295,n=r(430),a=r(429);e.exports=function(e){var t,r,o,s={},l={};e.split("+").map(function(e){return e.trim()}).filter(function(e){return e}).forEach(function(e){var t=e.split("=");t.push(!0),l[t[0].toLowerCase()]=t[1]});var u={proj:"projName",datum:"datumCode",rf:function(e){s.rf=parseFloat(e)},lat_0:function(e){s.lat0=e*i},lat_1:function(e){s.lat1=e*i},lat_2:function(e){s.lat2=e*i},lat_ts:function(e){s.lat_ts=e*i},lon_0:function(e){s.long0=e*i},lon_1:function(e){s.long1=e*i},lon_2:function(e){s.long2=e*i},alpha:function(e){s.alpha=parseFloat(e)*i},lonc:function(e){s.longc=e*i},x_0:function(e){s.x0=parseFloat(e)},y_0:function(e){s.y0=parseFloat(e)},k_0:function(e){s.k0=parseFloat(e)},k:function(e){s.k0=parseFloat(e)},a:function(e){s.a=parseFloat(e)},b:function(e){s.b=parseFloat(e)},r_a:function(){s.R_A=!0},zone:function(e){s.zone=parseInt(e,10)},south:function(){s.utmSouth=!0},towgs84:function(e){s.datum_params=e.split(",").map(function(e){return parseFloat(e)})},to_meter:function(e){s.to_meter=parseFloat(e)},units:function(e){s.units=e,a[e]&&(s.to_meter=a[e].to_meter)},from_greenwich:function(e){s.from_greenwich=e*i},pm:function(e){s.from_greenwich=(n[e]?n[e]:parseFloat(e))*i},nadgrids:function(e){"@null"===e?s.datumCode="none":s.nadgrids=e},axis:function(e){3===e.length&&-1!=="ewnsud".indexOf(e.substr(0,1))&&-1!=="ewnsud".indexOf(e.substr(1,1))&&-1!=="ewnsud".indexOf(e.substr(2,1))&&(s.axis=e)}};for(t in l)r=l[t],t in u?"function"==typeof(o=u[t])?o(r):s[o]=r:s[t]=r;return"string"==typeof s.datumCode&&"WGS84"!==s.datumCode&&(s.datumCode=s.datumCode.toLowerCase()),s}},function(e,t,r){"use strict";var i=r(431),n=r(183),a=r(182);function o(e){var t=this;if(2===arguments.length){var r=arguments[1];"string"==typeof r?"+"===r.charAt(0)?o[e]=n(arguments[1]):o[e]=a(arguments[1]):o[e]=r}else if(1===arguments.length){if(Array.isArray(e))return e.map(function(e){Array.isArray(e)?o.apply(t,e):o(e)});if("string"==typeof e){if(e in o)return o[e]}else"EPSG"in e?o["EPSG:"+e.EPSG]=e:"ESRI"in e?o["ESRI:"+e.ESRI]=e:"IAU2000"in e?o["IAU2000:"+e.IAU2000]=e:console.log(e);return}}i(o),e.exports=o},function(e,t,r){"use strict";var i=r(433);i.defaultDatum="WGS84",i.Proj=r(108),i.WGS84=new i.Proj("WGS84"),i.Point=r(419),i.toPoint=r(180),i.defs=r(184),i.transform=r(181),i.mgrs=r(179),i.version=r(418).version,r(417)(i),e.exports=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.crs=t.CRS=void 0;var i=a(r(2)),n=a(r(185));function a(e){return e&&e.__esModule?e:{default:e}}
  549. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  550. * This program are made available under the terms of the Apache License, Version 2.0
  551. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/window.proj4=n.default,window.Proj4js=n.default,i.default.Proj={},i.default.Proj._isProj4Obj=function(e){return void 0!==e.inverse&&void 0!==e.forward},i.default.Proj.Projection=i.default.Class.extend({initialize:function(e,t,r){var n=i.default.Proj._isProj4Obj(e);this._proj=n?e:this._projFromCodeDef(e,t);var a=r;i.default.Util.isArray(r)&&(a=i.default.bounds(r)),this.bounds=n?t:a},project:function(e){var t=this._proj.forward([e.lng,e.lat]);return new i.default.Point(t[0],t[1])},unproject:function(e,t){this.bounds&&(e.x=e.x<this.bounds.min.x?this.bounds.min.x:e.x>this.bounds.max.x?this.bounds.max.x:e.x,e.y=e.y<this.bounds.min.y?this.bounds.min.y:e.y>this.bounds.max.y?this.bounds.max.y:e.y);var r=this._proj.inverse([e.x,e.y]);return new i.default.LatLng(r[1],r[0],t)},_projFromCodeDef:function(e,t){if(t)n.default.defs(e,t);else if(void 0===n.default.defs[e]){var r=e.split(":");if(r.length>3&&(e=r[r.length-3]+":"+r[r.length-1]),void 0===n.default.defs[e])throw"No projection definition for code "+e}return(0,n.default)(e)},getUnits:function(){return this._proj.oProj.units||"degrees"}});var o=t.CRS=i.default.Class.extend({includes:i.default.CRS,options:{transformation:new i.default.Transformation(1,0,-1,0)},initialize:function(e,t){var r,n,a;if(i.default.Proj._isProj4Obj(e)?(r=(n=e).srsCode,t=t||{},this.projection=new i.default.Proj.Projection(n,t.bounds)):(r=e,a=(t=t||{}).def||"",this.projection=new i.default.Proj.Projection(r,a,t.bounds)),i.default.Util.setOptions(this,t),this.code=r,this.transformation=this.options.transformation,this.options.dpi=this.options.dpi||96,this.options.bounds&&(this.options.bounds=i.default.bounds(this.options.bounds)),!this.options.origin&&this.options.bounds&&(this.options.origin=[this.options.bounds.min.x,this.options.bounds.max.y]),this.options.origin&&(this.options.origin instanceof i.default.Point&&(this.options.origin=[this.options.origin.x,this.options.origin.y]),this.transformation=new i.default.Transformation(1,-this.options.origin[0],-1,this.options.origin[1])),this.options.scales&&this.options.scales.length>0)this.scales=this.options.scales,this._scales=this._toProj4Scales(this.options.scales,this.options.dpi);else if(this.options.scaleDenominators&&this.options.scaleDenominators.length>0){this.scales=[];for(var o=0;o<this.options.scaleDenominators.length;o++)this.scales[o]=1/this.options.scaleDenominators[o];this._scales=this._toProj4Scales(this.scales,this.options.dpi)}else if(this.options.resolutions&&this.options.resolutions.length>0){this._scales=[];for(var s=this.options.resolutions.length-1;s>=0;s--)this.options.resolutions[s]&&(this._scales[s]=1/this.options.resolutions[s])}else this.options.bounds&&(this._scales=this._getDefaultProj4ScalesByBounds(this.options.bounds));this._rectify(),this.infinite=!this.options.bounds},_rectify:function(){if(this._scales&&(this.resolutions||(this.resolutions=[],this.resolutions=this._proj4ScalesToResolutions(this._scales)),!this.scales)){this.scales=[];for(var e=0;e<this.resolutions.length;e++){var t=this.resolutions[e]*this.options.dpi*(1/.0254)*this._getMeterPerMapUnit(this.projection.getUnits());this.scales[e]=1/t}}},scale:function(e){var t,r=Math.floor(e);return e===r?this._scales[e]:(t=this._scales[r])+(this._scales[r+1]-t)*(e-r)},zoom:function(e){var t,r,i=this._closestElement(this._scales,e),n=this._scales.indexOf(i);return e===i?n:(r=n+1,void 0===(t=this._scales[r])?1/0:(e-i)/(t-i)+n)},distance:i.default.CRS.Earth.distance,R:i.default.CRS.Earth.R,_closestElement:function(e,t){for(var r,i=e.length;i--;)e[i]<=t&&(void 0===r||r<e[i])&&(r=e[i]);return r},_proj4ScalesToResolutions:function(e){var t=[];if(!e)return t;for(var r=0;r<e.length;r++)t[r]=1/e[r];return t},_toProj4Scales:function(e,t){var r=[];if(!e)return r;for(var i=0;i<e.length;i++){var n=this.projection?this._getMeterPerMapUnit(this.projection.getUnits()):1;r[i]=1/(.0254/((t||96)*e[i])/n)}return r},_getMeterPerMapUnit:function(e){var t=1;return"meter"===e?t=1:"degrees"===e?t=2*Math.PI*6378137/360:"kilometer"===e?t=.001:"inch"===e?t=1/.025399999918:"feet"===e&&(t=.3048),t},_getDefaultProj4ScalesByBounds:function(e){if(!e)return[];for(var t=e.getSize(),r=Math.max(t.x,t.y)/256,i=[],n=0;n<23;n++)i[n]=Math.pow(2,n)/r;return i}}),s=t.crs=function(e,t){return new o(e,t)};i.default.Proj.CRS=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndexTabsPageContainer=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(35);
  552. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  553. * This program are made available under the terms of the Apache License, Version 2.0
  554. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  555. var o=t.IndexTabsPageContainer=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._initView(),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.TemplateBase),i(t,[{key:"_initView",value:function(){var e=document.createElement("div");e.setAttribute("class","widget-tabpage");var t=document.createElement("ul");this.header=t;var r=document.createElement("div");r.setAttribute("class","widget-tabpage__content"),this.content=r,e.appendChild(t),e.appendChild(r),this.rootContainer=e}},{key:"setTabs",value:function(e){this.removeAllTabs(),this.appendTabs(e)}},{key:"appendTabs",value:function(e){for(var t=0;t<e.length;t++){var r=document.createElement("span");r.index=t,r.appendChild(document.createTextNode(e[t].title)),r.onclick=this._changeTabsPage.bind(this);var i=e[t].content;i.index=t,i.hidden=!0,this.header.appendChild(r),this.content.appendChild(i)}this.header.firstChild.setAttribute("class","on"),this.content.firstChild.hidden=!1}},{key:"removeTab",value:function(e){this.header.removeChild(this.header.children[e]),this.content.removeChild(this.content.children[e])}},{key:"removeAllTabs",value:function(){for(var e=this.header.children.length;e>0;e--)this.header.removeChild(this.header.children[e]),this.content.removeChild(this.content.children[e])}},{key:"_changeTabsPage",value:function(e){for(var t=e.target.index,r=0;r<this.header.children.length;r++)this.header.children[r].setAttribute("class",""),this.content.children[r].hidden=!0,r===t&&(this.header.children[r].setAttribute("class","on"),this.content.children[r].hidden=!1)}}]),t}();n.SuperMap.Widgets.IndexTabsPageContainer=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PopContainer=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(35);
  556. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  557. * This program are made available under the terms of the Apache License, Version 2.0
  558. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  559. var o=t.PopContainer=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{};var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e.title=e.title?e.title:"",r._initView(e.title),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.TemplateBase),i(t,[{key:"_initView",value:function(e){var t=document.createElement("div");t.setAttribute("class","widget-popcontainer");var r=document.createElement("div");r.setAttribute("class","widget-popcontainer__header");var i=document.createElement("label");i.setAttribute("class","widget-popcontainer__header__title"),i.innerHTML=e,r.appendChild(i);var n=document.createElement("span");n.setAttribute("class","supermapol-icons-clear widget-popcontainer__header__close"),n.onclick=this.closeView.bind(this),t.appendChild(n),t.appendChild(r);var a=document.createElement("div");a.setAttribute("class","widget-popcontainer__content"),this.content=a,t.appendChild(a),this.rootContainer=t}},{key:"appendContent",value:function(e){this.content.appendChild(e)}}]),t}();n.SuperMap.Widgets.PopContainer=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileReaderUtil=void 0;var i,n=r(0),a=r(448),o=(i=a)&&i.__esModule?i:{default:i},s=r(71),l=r(110);
  560. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  561. * This program are made available under the terms of the Apache License, Version 2.0
  562. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  563. var u=t.FileReaderUtil={rABS:"undefined"!=typeof FileReader&&FileReader.prototype&&FileReader.prototype.readAsBinaryString,rABF:"undefined"!=typeof FileReader&&FileReader.prototype&&FileReader.prototype.readAsArrayBuffer,rAT:"undefined"!=typeof FileReader&&FileReader.prototype&&FileReader.prototype.readAsText,readFile:function(e,t,r,i,n){s.FileTypes.JSON===e||s.FileTypes.GEOJSON===e?this.readTextFile(t,r,i,n):s.FileTypes.EXCEL!==e&&s.FileTypes.CSV!==e||this.readXLSXFile(t,r,i,n)},readTextFile:function(e,t,r,i){var n=new FileReader;n.onloadend=function(e){t&&t.call(i,e.target.result)},n.onerror=function(e){r&&r.call(i,e)},this.rAT?n.readAsText(e.file,"utf-8"):n.readAsBinaryString(e.file)},readXLSXFile:function(e,t,r,i){var n=new FileReader;n.onloadend=function(e){var n=new Uint8Array(e.target.result),a=o.default.read(n,{type:"array"});try{if(a&&a.SheetNames&&a.SheetNames.length>0){var s=a.SheetNames[0],l=o.default.utils.sheet_to_csv(a.Sheets[s]);t&&t.call(i,l)}}catch(e){r&&r.call(i,e)}},n.onerror=function(e){r&&r.call(i,e)},this.rABF&&n.readAsArrayBuffer(e.file)},processDataToGeoJson:function(e,t,r,i,n){var a=null;if("EXCEL"===e||"CSV"===e)a=this.processExcelDataToGeoJson(t),r&&r.call(n,a);else if("JSON"===e||"GEOJSON"===e){var o=t;"string"==typeof o&&(o=JSON.parse(o)),"ISERVER"===o.type?a=o.data.recordsets[0].features:"FeatureCollection"===o.type?a=o:i&&i.call(n,l.Lang.i18n("msg_dataInWrongGeoJSONFormat")),r&&r.call(n,a)}else i&&i.call(n,l.Lang.i18n("msg_dataInWrongFormat"))},processExcelDataToGeoJson:function(e){for(var t=this.string2Csv(e),r=t.colTitles,i=-1,n=-1,a=0,o=r.length;a<o;a++)this.isXField(r[a])&&(i=a),this.isYField(r[a])&&(n=a);for(var s=[],l=0,u=t.rows.length;l<u;l++){var c=t.rows[l],p=Number(c[i]),h=Number(c[n]),f={};for(var d in t.colTitles){f[t.colTitles[d]]=t.rows[l][d]}var y={type:"Feature",geometry:{type:"Point",coordinates:[p,h]},properties:f};s.push(y)}return s},isXField:function(e){var t=e.toLowerCase();return"x"===t||"smx"===t||"jd"===t||"经度"===t||"东经"===t||"longitude"===t||"lot"===t||"lon"===t||"lng"===t||"x坐标"===t},isYField:function(e){var t=e.toLowerCase();return"y"===t||"smy"===t||"wd"===t||"纬度"===t||"北纬"===t||"latitude"===t||"lat"===t||"y坐标"===t},string2Csv:function(e,t){var r=e.split("\n"),i={};i.colTitles=t?[]:r[0].split(","),i.rows=[];for(var n=t?0:1;n<r.length;n++)r[n]&&i.rows.push(r[n].split(","));return i}};n.SuperMap.Widgets.FileReaderUtil=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChartViewModel=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(449),o=r(48);
  564. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  565. * This program are made available under the terms of the Apache License, Version 2.0
  566. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ChartViewModel=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.datasets=t.datasets,this.xField=[],this.yField=[],this.grid={top:"50px",bottom:"50px",left:"50px",right:"60px"},this.chartType=t.type||"bar",this._initXYField(t.chartOptions),this.EVENT_TYPES=["getdatafailed"],this.events=new o.Events(this,null,this.EVENT_TYPES)}return i(e,[{key:"_initXYField",value:function(e){var t=this;e&&e.length>0&&e.forEach(function(e){e.xAxis&&t.xField.push({field:e.xAxis.field,name:e.xAxis.name}),e.yAxis&&t.yField.push({field:e.yAxis.field,name:e.yAxis.name})})}},{key:"getDatasetInfo",value:function(e){var t=this;this.createChart=e,this.datasets&&this._checkUrl(this.datasets.url)&&(this.chartModel=new a.ChartModel(this.datasets),"iServer"===this.datasets.type?this.chartModel.getDatasetInfo(this._getDatasetInfoSuccess.bind(this)):"iPortal"===this.datasets.type&&this.chartModel.getDataInfoByIptl(this._getDataInfoSuccess.bind(this)),this.chartModel.events.on({getdatafailed:function(e){t.events.triggerEvent("getdatafailed",e)}}))}},{key:"_getDatasetInfoSuccess",value:function(e){var t=this.datasets.url,r=t.indexOf("rest");if(r>0){var i=t.indexOf("/",r+5),n=t.substring(r+5,i),a=t.substring(0,r+4)+"/data";if("maps"===n){var o=t.indexOf("/",i+1),s=t.substring(i+1,o);a=t.substring(0,r+4)+"/maps/"+s,e.result.dataUrl=a,this._getLayerFeatures(e)}else"data"===n&&(e.result.dataUrl=a,this._getDataFeatures(e))}}},{key:"_getDataInfoSuccess",value:function(e,t){"RESTMAP"===t?this._getChartDatasFromLayer(e):this._getChartDatas(e)}},{key:"_getDataFeatures",value:function(e){this.chartModel.getDataFeatures(e,this._getChartDatas.bind(this))}},{key:"_getLayerFeatures",value:function(e){this.chartModel.getLayerFeatures(e,this._getChartDatasFromLayer.bind(this))}},{key:"_getChartDatas",value:function(e){if(e){this.features=e.result.features;var t=this.features.features,r={};if(t.length){var i=t[0],n=[],a=[];for(var o in i.properties)n.push(o),a.push(this._getDataType(i.properties[o]));for(var s in r={features:t,fieldCaptions:n,fieldTypes:a,fieldValues:[]},a){var l=[];for(var u in t){var c=t[u],p=r.fieldCaptions[s],h=c.properties[p];l.push(h)}r.fieldValues.push(l)}this.createChart(r)}}}},{key:"_getChartDatasFromLayer",value:function(e){if(e.result.recordsets){var t=e.result.recordsets[0],r=t.features.features;this.features=t.features;var i={};if(r.length){for(var n in(i={features:t.features,fieldCaptions:t.fieldCaptions,fieldTypes:t.fieldTypes,fieldValues:[]}).fieldCaptions){var a=[];for(var o in r){var s=r[o],l=i.fieldCaptions[n],u=s.properties[l];a.push(u)}i.fieldValues.push(a)}this.createChart(i)}}}},{key:"_createChartOptions",value:function(e){return this.calculatedData=this._createChartDatas(e),this.updateChartOptions(this.chartType)}},{key:"changeType",value:function(e){if(e!==this.chartType)return this.chartType=e,this.updateChartOptions(this.chartType)}},{key:"updateData",value:function(e,t,r){this.updateChart=r,this.xField=[],this.yField=[],this._initXYField(t),e.type=e.type||"iServer",e.withCredentials=e.withCredentials||!1,this.datasets=e,this.getDatasetInfo(this._updateDataSuccess.bind(this))}},{key:"_updateDataSuccess",value:function(e){var t=this._createChartOptions(e);this.updateChart(t)}},{key:"updateChartOptions",value:function(e,t){if(this.calculatedData){var r=this.grid,i=this._createChartSeries(this.calculatedData,e),n=[];for(var a in this.calculatedData.XData)n.push({value:this.calculatedData.XData[a].fieldsData});var o={type:"category",name:this.xField[0].name||"X",data:n,nameTextStyle:{color:"#fff",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#eee"}}},s={type:"value",name:this.yFieldName||"Y",data:{},nameTextStyle:{color:"#fff",fontSize:14},splitLine:{show:!1},axisLine:{lineStyle:{color:"#eee"}}},l={formatter:"{b0}: {c0}"},u="#404a59";return t&&(t.grid&&(r=t.grid),t.tooltip&&(l=t.tooltip),t.backgroundColor&&(u=t.backgroundColor)),{backgroundColor:u,grid:r,series:i,xAxis:o,yAxis:s,tooltip:l}}}},{key:"_createChartDatas",value:function(e){var t=0,r=[],i=e.fieldCaptions,n=this;i.forEach(function(e,r){n.xField[0]&&e===n.xField[0].field&&(t=r)}),this.yFieldName="",this.yField.forEach(function(e,t){0!==t&&(n.yFieldName=n.yFieldName+","),n.yFieldName=n.yFieldName+e.name,i.forEach(function(t,i){t===e.field&&r.push(i)})});var a=this._getAttrData(e,t),o=[];if(r.length>0)r.forEach(function(t){var r=[];for(var i in e.fieldValues[t])r.push({value:e.fieldValues[t][i]});o.push(r)});else{for(var s=[],l=[],u=a.length,c=0;c<u;c++){for(var p=!1,h=0,f=l.length;h<f;h++)if(a[c].fieldsData===l[h].fieldsData){s[h].value++,l[h].recordIndexs.push(c),p=!0;break}p||a[c].fieldsData&&(l.push({fieldsData:a[c].fieldsData,recordIndexs:[c]}),s.push({value:1}))}a=l,o=[s]}return{XData:a,YData:o}}},{key:"_getAttrData",value:function(e,t){0===t&&(this.xField=[{field:e.fieldCaptions[t],name:e.fieldCaptions[t]}]);for(var r=[],i=0,n=e.fieldValues[t].length;i<n;i++){var a=e.fieldValues[t][i];r.push({recordIndexs:i,fieldsData:a})}return r}},{key:"_createChartSeries",value:function(e,t){var r=[];return e.YData.forEach(function(e){var i=0,n=[],a=!0,o=!1,s=void 0;try{for(var l,u=e[Symbol.iterator]();!(a=(l=u.next()).done);a=!0){i=l.value.value,n.push({value:i})}}catch(e){o=!0,s=e}finally{try{!a&&u.return&&u.return()}finally{if(o)throw s}}var c={type:t,data:n,name:"y"};r.push(c)}),r}},{key:"_isDate",value:function(e){return/((^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(10|12|0?[13578])([-\/\._])(3[01]|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(11|0?[469])([-\/\._])(30|[12][0-9]|0?[1-9])$)|(^((1[8-9]\d{2})|([2-9]\d{3}))([-\/\._])(0?2)([-\/\._])(2[0-8]|1[0-9]|0?[1-9])$)|(^([2468][048]00)([-\/\._])(0?2)([-\/\._])(29)$)|(^([3579][26]00)([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][0][48])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][0][48])([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][2468][048])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][2468][048])([-\/\._])(0?2)([-\/\._])(29)$)|(^([1][89][13579][26])([-\/\._])(0?2)([-\/\._])(29)$)|(^([2-9][0-9][13579][26])([-\/\._])(0?2)([-\/\._])(29)$))/gi.test(e)}},{key:"_isNumber",value:function(e){var t=Number(e);return 0===t||!isNaN(t)}},{key:"_getDataType",value:function(e){if(null!==e&&void 0!==e&&""!==e){if(this._isDate(e))return"DATE";if(this._isNumber(e))return"NUMBER"}return"STRING"}},{key:"_checkUrl",value:function(e){return!(""===e||!this._isMatchUrl(e))&&(!/^http[s]?:\/\/localhost/.test(e)&&!/^http[s]?:\/\/127.0.0.1/.test(e))}},{key:"_isMatchUrl",value:function(e){return new RegExp("(https?|http|file|ftp)://[-A-Za-z0-9+&@#/%?=~_|!:,.;]+[-A-Za-z0-9+&@#/%=~_|]").test(e)}},{key:"getStyle",value:function(){return{grid:this.grid,tooltip:this.tooltip,backgroundColor:this.backgroundColor}}},{key:"getFeatures",value:function(){return this.features}},{key:"setStyle",value:function(e){return this.updateChartOptions(this.chartType,e)}}]),e}();n.SuperMap.Widgets.ChartViewModel=s},function(e,t){e.exports=function(){try{return echarts}catch(e){return{}}}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageBox=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0);
  567. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  568. * This program are made available under the terms of the Apache License, Version 2.0
  569. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var a=t.MessageBox=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._initView()}return i(e,[{key:"_initView",value:function(){var e=document.createElement("div");e.hidden=!0,e.setAttribute("class","widget-messageboxcontainer widget-border-bottom-orange");var t=document.createElement("div");t.setAttribute("class","icon"),this.icon=document.createElement("span"),this.icon.setAttribute("class","supermapol-icons-message-warning"),t.appendChild(this.icon),e.appendChild(t);var r=document.createElement("div");r.setAttribute("class","widget-messagebox"),r.innerHTML="",e.appendChild(r),this.messageBox=r;var i=document.createElement("div");i.setAttribute("class","widget-messagebox__cancelbtncontainer");var n=document.createElement("button");n.setAttribute("class","widget-messagebox__cancelBtn"),n.innerHTML="x",n.onclick=this.closeView.bind(this),i.appendChild(n),e.appendChild(i),this.messageBoxContainer=e,document.body.appendChild(this.messageBoxContainer)}},{key:"closeView",value:function(){this.messageBoxContainer.hidden=!0}},{key:"showView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warring";"success"===t?(this.icon.setAttribute("class","supermapol-icons-message-success"),this.messageBoxContainer.setAttribute("class","widget-messageboxcontainer widget-border-bottom-green")):"failure"===t?(this.icon.setAttribute("class","supermapol-icons-message-failure"),this.messageBoxContainer.setAttribute("class","widget-messageboxcontainer widget-border-bottom-red")):"warring"===t&&(this.icon.setAttribute("class","supermapol-icons-message-warning"),this.messageBoxContainer.setAttribute("class","widget-messageboxcontainer widget-border-bottom-orange")),this.messageBox.innerHTML=e,this.messageBoxContainer.hidden=!1}}]),e}();n.SuperMap.Widgets.MessageBox=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}();
  570. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  571. * This program are made available under the terms of the Apache License, Version 2.0
  572. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  573. t.Easing=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.CLASS_NAME="SuperMap.LevelRenderer.Animation.easing"}return i(e,[{key:"destroy",value:function(){}},{key:"Linear",value:function(e){return e}},{key:"QuadraticIn",value:function(e){return e*e}},{key:"QuadraticOut",value:function(e){return e*(2-e)}},{key:"QuadraticInOut",value:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)}},{key:"CubicIn",value:function(e){return e*e*e}},{key:"CubicOut",value:function(e){return--e*e*e+1}},{key:"CubicInOut",value:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}},{key:"QuarticIn",value:function(e){return e*e*e*e}},{key:"QuarticOut",value:function(e){return 1- --e*e*e*e}},{key:"QuarticInOut",value:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)}},{key:"QuinticIn",value:function(e){return e*e*e*e*e}},{key:"QuinticOut",value:function(e){return--e*e*e*e*e+1}},{key:"QuinticInOut",value:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)}},{key:"SinusoidalIn",value:function(e){return 1-Math.cos(e*Math.PI/2)}},{key:"SinusoidalOut",value:function(e){return Math.sin(e*Math.PI/2)}},{key:"SinusoidalInOut",value:function(e){return.5*(1-Math.cos(Math.PI*e))}},{key:"ExponentialIn",value:function(e){return 0===e?0:Math.pow(1024,e-1)}},{key:"ExponentialOut",value:function(e){return 1===e?1:1-Math.pow(2,-10*e)}},{key:"ExponentialInOut",value:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))}},{key:"CircularIn",value:function(e){return 1-Math.sqrt(1-e*e)}},{key:"CircularOut",value:function(e){return Math.sqrt(1- --e*e)}},{key:"CircularInOut",value:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)}},{key:"ElasticIn",value:function(e){var t,r=.1;return 0===e?0:1===e?1:(r<1?(r=1,t=.1):t=.4*Math.asin(1/r)/(2*Math.PI),-r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4))}},{key:"ElasticOut",value:function(e){var t,r=.1;return 0===e?0:1===e?1:(r<1?(r=1,t=.1):t=.4*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/.4)+1)}},{key:"ElasticInOut",value:function(e){var t,r=.1;return 0===e?0:1===e?1:(r<1?(r=1,t=.1):t=.4*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4)*-.5:r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/.4)*.5+1)}},{key:"BackIn",value:function(e){var t=1.70158;return e*e*((t+1)*e-t)}},{key:"BackOut",value:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1}},{key:"BackInOut",value:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)}},{key:"BounceIn",value:function(e){return 1-this.BounceOut(1-e)}},{key:"BounceOut",value:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375}},{key:"BounceInOut",value:function(e){return e<.5?.5*this.BounceIn(2*e):.5*this.BounceOut(2*e-1)+.5}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Clip=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(193);
  574. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  575. * This program are made available under the terms of the Apache License, Version 2.0
  576. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.Clip=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._targetPool=t.target||{},this._targetPool instanceof Array||(this._targetPool=[this._targetPool]),this._life=t.life||1e3,this._delay=t.delay||0,this._startTime=(new Date).getTime()+this._delay,this._endTime=this._startTime+1e3*this._life,this.loop=void 0!==t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"Linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart,this.CLASS_NAME="SuperMap.LevelRenderer.Animation.Clip"}return i(e,[{key:"destroy",value:function(){}},{key:"step",value:function(e){var t=new n.Easing,r=(e-this._startTime)/this._life;if(!(r<0)){r=Math.min(r,1);var i="string"==typeof this.easing?t[this.easing]:this.easing,a="function"==typeof i?i(r):r;return this.fire("frame",a),1==r?this.loop?(this.restart(),"restart"):(this._needsRemove=!0,"destroy"):null}}},{key:"restart",value:function(){var e=((new Date).getTime()-this._startTime)%this._life;this._startTime=(new Date).getTime()-e+this.gap}},{key:"fire",value:function(e,t){for(var r=0,i=this._targetPool.length;r<i;r++)this["on"+e]&&this["on"+e](this._targetPool[r],t)}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Animator=t.Animation=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=r(33),o=r(60),s=r(194),l=r(12),u=r(1);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
  577. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  578. * This program are made available under the terms of the Apache License, Version 2.0
  579. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  580. var p=t.Animation=function(e){function t(e){c(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=e||{},r.stage={},r.onframe=function(){},r._clips=[],r._running=!1,r._time=0,u.Util.extend(r,e),r.CLASS_NAME="SuperMap.LevelRenderer.Animation",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Eventful),n(t,[{key:"add",value:function(e){this._clips.push(e)}},{key:"remove",value:function(e){var t=(new a.Util).indexOf(this._clips,e);t>=0&&this._clips.splice(t,1)}},{key:"_update",value:function(){for(var e=(new Date).getTime(),t=e-this._time,r=this._clips,i=r.length,n=[],a=[],o=0;o<i;o++){var s=r[o],l=s.step(e);l&&(n.push(l),a.push(s))}this.stage.update&&this.stage.update();for(var u=0;u<i;)r[u]._needsRemove?(r[u]=r[i-1],r.pop(),i--):u++;i=n.length;for(var c=0;c<i;c++)a[c].fire(n[c]);this._time=e,this.onframe(t),this.dispatch("frame",t)}},{key:"start",value:function(){var e=window.requestAnimationFrame||window.msRequestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){setTimeout(e,16)},t=this;this._running=!0,this._time=(new Date).getTime(),e(function r(){t._running&&(t._update(),e(r))})}},{key:"stop",value:function(){this._running=!1}},{key:"clear",value:function(){this._clips=[]}},{key:"animate",value:function(e,t){var r=new h(e,(t=t||{}).loop,t.getter,t.setter);return r.animation=this,r}}],[{key:"_interpolateNumber",value:function(e,t,r){return(t-e)*r+e}},{key:"_interpolateArray",value:function(e,r,i,n,a){var o=e.length;if(1==a)for(var s=0;s<o;s++)n[s]=t._interpolateNumber(e[s],r[s],i);else for(var l=e[0].length,u=0;u<o;u++)for(var c=0;c<l;c++)n[u][c]=t._interpolateNumber(e[u][c],r[u][c],i)}},{key:"_isArrayLike",value:function(e){switch(void 0===e?"undefined":i(e)){case"undefined":case"string":return!1}return void 0!==e.length}},{key:"_catmullRomInterpolateArray",value:function(e,r,i,n,a,o,s,l,u){var c=e.length;if(1==u)for(var p=0;p<c;p++)l[p]=t._catmullRomInterpolate(e[p],r[p],i[p],n[p],a,o,s);else for(var h=e[0].length,f=0;f<c;f++)for(var d=0;d<h;d++)l[f][d]=t._catmullRomInterpolate(e[f][d],r[f][d],i[f][d],n[f][d],a,o,s)}},{key:"_catmullRomInterpolate",value:function(e,t,r,i,n,a,o){var s=.5*(r-e),l=.5*(i-t);return(2*(t-r)+s+l)*o+(-3*(t-r)-2*s-l)*a+s*n+t}},{key:"_cloneValue",value:function(e){var r=Array.prototype.slice;if(t._isArrayLike(e)){var i=e.length;if(t._isArrayLike(e[0])){for(var n=[],a=0;a<i;a++)n.push(r.call(e[a]));return n}return r.call(e)}return e}},{key:"rgba2String",value:function(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}}]),t}(),h=t.Animator=function(){function e(t,r,i,n){c(this,e),this._tracks={},this._target=t,this._loop=r||!1,this._getter=i||function(e,t){return e[t]},this._setter=n||function(e,t,r){e[t]=r},this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[],this.CLASS_NAME="SuperMap.LevelRenderer.Animation.Animator"}return n(e,[{key:"when",value:function(e,t){for(var r in t)this._tracks[r]||(this._tracks[r]=[],0!==e&&this._tracks[r].push({time:0,value:p._cloneValue(this._getter(this._target,r))})),this._tracks[r].push({time:parseInt(e,10),value:t[r]});return this}},{key:"during",value:function(e){return this._onframeList.push(e),this}},{key:"start",value:function(e){var t=this,r=this._setter,i=this._getter,n=t._onframeList.length,a="spline"===e,o=function(){if(t._clipCount--,0===t._clipCount){t._tracks={};for(var e=t._doneList.length,r=0;r<e;r++)t._doneList[r].call(t)}},u=function(u,c){var h=u.length;if(h){var f=u[0].value,d=p._isArrayLike(f),y=!1,v=d&&p._isArrayLike(f[0])?2:1;u.sort(function(e,t){return e.time-t.time});for(var m=u[h-1].time,g=[],b=[],S=0;S<h;S++){g.push(u[S].time/m);var _=u[S].value;"string"==typeof _&&(0===(_=l.SUtil.Util_color.toArray(_)).length&&(_[0]=_[1]=_[2]=0,_[3]=1),y=!0),b.push(_)}var P,w,O,T,M,C,x,E=0,L=0;if(y)var A=[0,0,0,0];var k=new s.Clip({target:t._target,life:m,loop:t._loop,delay:t._delay,onframe:function(e,o){if(o<L){for(P=Math.min(E+1,h-1),w=P;w>=0&&!(g[w]<=o);w--);w=Math.min(w,h-2)}else{for(w=E;w<h&&!(g[w]>o);w++);w=Math.min(w-1,h-2)}E=w,L=o;var s=g[w+1]-g[w];if(0!==s){if(O=(o-g[w])/s,a)if(M=b[w],T=b[0===w?w:w-1],C=b[w>h-2?h-1:w+1],x=b[w>h-3?h-1:w+2],d)p._catmullRomInterpolateArray(T,M,C,x,O,O*O,O*O*O,i(e,c),v);else{var l=void 0;l=y?p.rgba2String(A):p._catmullRomInterpolate(T,M,C,x,O,O*O,O*O*O),r(e,c,l)}else if(d)p._interpolateArray(b[w],b[w+1],O,i(e,c),v);else{var u=void 0;y?(p._interpolateArray(b[w],b[w+1],O,A,1),u=p.rgba2String(A)):u=p._interpolateNumber(b[w],b[w+1],O),r(e,c,u)}for(w=0;w<n;w++)t._onframeList[w](e,o)}},ondestroy:o});e&&"spline"!==e&&(k.easing=e),t._clipList.push(k),t._clipCount++,t.animation.add(k)}};for(var c in this._tracks)u(this._tracks[c],c);return this}},{key:"stop",value:function(){for(var e=0;e<this._clipList.length;e++){var t=this._clipList[e];this.animation.remove(t)}this._clipList=[]}},{key:"delay",value:function(e){return this._delay=e,this}},{key:"done",value:function(e){return e&&this._doneList.push(e),this}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Handler=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(60),a=r(74),o=r(12);
  581. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  582. * This program are made available under the terms of the Apache License, Version 2.0
  583. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  584. t.Handler=function(e){function t(e,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n,s,l=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i));l.root=e,l.storage=r,l.painter=i,l._lastX=0,l._lastY=0,l._mouseX=0,l._mouseY=0,l._findHover=null,l._domHover=null,l._findHover=(n=function(e,t,r){var i=this;if(i._draggingTarget&&i._draggingTarget.id==e.id||e.isSilent())return!1;var n=i._event;if(e.isCover(t,r)){if(e.hoverable)if(e.isHoverByRefDataID&&!0===e.isHoverByRefDataID){if(e.refDataID){var a=e.refDataID,o=null;e.refDataHoverGroup&&(o=e.refDataHoverGroup);for(var s=i.storage._shapeList,l=0,u=s.length;l<u;l++){var c=s[l];c.refDataID&&a===c.refDataID&&(o?c.refDataHoverGroup&&o===c.refDataHoverGroup&&i.storage.addHover(c):i.storage.addHover(c))}}}else i.storage.addHover(e);for(var p=e.parent;p;){if(p.clipShape&&!p.clipShape.isCover(i._mouseX,i._mouseY))return!1;p=p.parent}return i._lastHover!=e&&(i._processOutShape(n),i._processDragLeave(n),i._lastHover=e,i._processDragEnter(n)),i._processOverShape(n),i._processDragOver(n),i._hasfound=1,!0}return!1},s=l,function(e,t,r){return n.call(s,e,t,r)}),l._domHover=i.getDomHover(),l.CLASS_NAME="SuperMap.LevelRenderer.Handler";var u={resize:function(e){e=e||window.event,this._lastHover=null,this._isMouseDown=0,this.dispatch(a.Config.EVENT.RESIZE,e)},click:function(e){e=this._zrenderEventFixed(e);var t=this._lastHover;(t&&t.clickable||!t)&&this._clickThreshold<10&&this._dispatchAgency(t,a.Config.EVENT.CLICK,e),this._mousemoveHandler(e)},dblclick:function(e){e=e||window.event,e=this._zrenderEventFixed(e);var t=this._lastHover;(t&&t.clickable||!t)&&this._clickThreshold<5&&this._dispatchAgency(t,a.Config.EVENT.DBLCLICK,e),this._mousemoveHandler(e)},mousewheel:function(e){var t=((e=this._zrenderEventFixed(e)).wheelDelta||-e.detail)>0?1.1:1/1.1,r=this.painter.getLayers(),i=!1;for(var n in r)if("hover"!==n){var o=r[n],s=o.position;if(o.zoomable){o.__zoom=o.__zoom||1;var l=o.__zoom;l*=t,t=(l=Math.max(Math.min(o.maxZoom,l),o.minZoom))/o.__zoom,o.__zoom=l,s[0]-=(this._mouseX-s[0])*(t-1),s[1]-=(this._mouseY-s[1])*(t-1),o.scale[0]*=t,o.scale[1]*=t,o.dirty=!0,i=!0}}i&&this.painter.refresh(),this._dispatchAgency(this._lastHover,a.Config.EVENT.MOUSEWHEEL,e),this._mousemoveHandler(e)},mousemove:function(e){this._clickThreshold++,e=this._zrenderEventFixed(e),this._lastX=this._mouseX,this._lastY=this._mouseY,this._mouseX=o.SUtil.Util_event.getX(e),this._mouseY=o.SUtil.Util_event.getY(e);var t=this._mouseX-this._lastX,r=this._mouseY-this._lastY;this._processDragStart(e),this._hasfound=0,this._event=e,this._iterateAndFindHover(),this._hasfound||((!this._draggingTarget||this._lastHover&&this._lastHover!=this._draggingTarget)&&(this._processOutShape(e),this._processDragLeave(e)),this._lastHover=null,this.storage.delHover(),this.painter.clearHover());var i="";if(this._draggingTarget)this.storage.drift(this._draggingTarget.id,t,r),this._draggingTarget.modSelf(),this.storage.addHover(this._draggingTarget);else if(this._isMouseDown){var n=this.painter.getLayers(),s=!1;for(var l in n)if("hover"!==l){var u=n[l];u.panable&&(i="move",u.position[0]+=t,u.position[1]+=r,s=!0,u.dirty=!0)}s&&this.painter.refresh()}this._draggingTarget||this._hasfound&&this._lastHover.draggable?i="move":this._hasfound&&this._lastHover.clickable&&(i="pointer"),this.root.style.cursor=i,this._dispatchAgency(this._lastHover,a.Config.EVENT.MOUSEMOVE,e),(this._draggingTarget||this._hasfound||this.storage.hasHoverShape())&&this.painter.refreshHover()},mouseout:function(e){var t=(e=this._zrenderEventFixed(e)).toElement||e.relatedTarget;if(t!=this.root)for(;t&&9!=t.nodeType;){if(t==this.root)return void this._mousemoveHandler(e);t=t.parentNode}e.zrenderX=this._lastX,e.zrenderY=this._lastY,this.root.style.cursor="",this._isMouseDown=0,this._processOutShape(e),this._processDrop(e),this._processDragEnd(e),this.painter.refreshHover(),this.dispatch(a.Config.EVENT.GLOBALOUT,e)},mousedown:function(e){if(this._clickThreshold=0,2==this._lastDownButton)return this._lastDownButton=e.button,void(this._mouseDownTarget=null);this._lastMouseDownMoment=new Date,e=this._zrenderEventFixed(e),this._isMouseDown=1,this._mouseDownTarget=this._lastHover,this._dispatchAgency(this._lastHover,a.Config.EVENT.MOUSEDOWN,e),this._lastDownButton=e.button},mouseup:function(e){e=this._zrenderEventFixed(e),this.root.style.cursor="",this._isMouseDown=0,this._mouseDownTarget=null,this._dispatchAgency(this._lastHover,a.Config.EVENT.MOUSEUP,e),this._processDrop(e),this._processDragEnd(e)},touchstart:function(e){e=this._zrenderEventFixed(e,!0),this._lastTouchMoment=new Date,this._mobildFindFixed(e),this._mousedownHandler(e)},touchmove:function(e){e=this._zrenderEventFixed(e,!0),this._mousemoveHandler(e),this._isDragging&&o.SUtil.Util_event.stop(e)},touchend:function(e){e=this._zrenderEventFixed(e,!0),this._mouseupHandler(e);var t=new Date;t-this._lastTouchMoment<a.Config.EVENT.touchClickDelay&&(this._mobildFindFixed(e),this._clickHandler(e),t-this._lastClickMoment<a.Config.EVENT.touchClickDelay/2&&(this._dblclickHandler(e),this._lastHover&&this._lastHover.clickable&&o.SUtil.Util_event.stop(e)),this._lastClickMoment=t),this.painter.clearHover()}};function c(e,t){return function(r){return e.call(t,r)}}return function(e){var t=["resize","click","dblclick","mousewheel","mousemove","mouseout","mouseup","mousedown","touchstart","touchend","touchmove"],r=t.length;for(;r--;){var i=t[r];e["_"+i+"Handler"]=c(u[i],e)}}(l),window.addEventListener?(window.addEventListener("resize",l._resizeHandler),o.SUtil.Util_env.os.tablet||o.SUtil.Util_env.os.phone?(e.addEventListener("touchstart",l._touchstartHandler),e.addEventListener("touchmove",l._touchmoveHandler),e.addEventListener("touchend",l._touchendHandler)):(e.addEventListener("click",l._clickHandler),e.addEventListener("dblclick",l._dblclickHandler),e.addEventListener("mousewheel",l._mousewheelHandler),e.addEventListener("mousemove",l._mousemoveHandler),e.addEventListener("mousedown",l._mousedownHandler),e.addEventListener("mouseup",l._mouseupHandler)),e.addEventListener("DOMMouseScroll",l._mousewheelHandler),e.addEventListener("mouseout",l._mouseoutHandler)):(window.attachEvent("onresize",l._resizeHandler),e.attachEvent("onclick",l._clickHandler),e.ondblclick=l._dblclickHandler,e.attachEvent("onmousewheel",l._mousewheelHandler),e.attachEvent("onmousemove",l._mousemoveHandler),e.attachEvent("onmouseout",l._mouseoutHandler),e.attachEvent("onmousedown",l._mousedownHandler),e.attachEvent("onmouseup",l._mouseupHandler)),l}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Eventful),i(t,[{key:"destroy",value:function(){this.dispose(),this._lastX=null,this._lastY=null,this._mouseX=null,this._mouseY=null,this._findHover=null,n.Eventful.prototype.destroy.apply(this,arguments)}},{key:"on",value:function(e,t){return this.bind(e,t),this}},{key:"un",value:function(e,t){return this.unbind(e,t),this}},{key:"trigger",value:function(e,t){var r=a.Config.EVENT;switch(e){case r.RESIZE:case r.CLICK:case r.DBLCLICK:case r.MOUSEWHEEL:case r.MOUSEMOVE:case r.MOUSEDOWN:case r.MOUSEUP:case r.MOUSEOUT:this["_"+e+"Handler"](t)}}},{key:"dispose",value:function(){var e=this.root;window.removeEventListener?(window.removeEventListener("resize",this._resizeHandler),o.SUtil.Util_env.os.tablet||o.SUtil.Util_env.os.phone?(e.removeEventListener("touchstart",this._touchstartHandler),e.removeEventListener("touchmove",this._touchmoveHandler),e.removeEventListener("touchend",this._touchendHandler)):(e.removeEventListener("click",this._clickHandler),e.removeEventListener("dblclick",this._dblclickHandler),e.removeEventListener("mousewheel",this._mousewheelHandler),e.removeEventListener("mousemove",this._mousemoveHandler),e.removeEventListener("mousedown",this._mousedownHandler),e.removeEventListener("mouseup",this._mouseupHandler)),e.removeEventListener("DOMMouseScroll",this._mousewheelHandler),e.removeEventListener("mouseout",this._mouseoutHandler)):(window.detachEvent("onresize",this._resizeHandler),e.detachEvent("onclick",this._clickHandler),e.detachEvent("dblclick",this._dblclickHandler),e.detachEvent("onmousewheel",this._mousewheelHandler),e.detachEvent("onmousemove",this._mousemoveHandler),e.detachEvent("onmouseout",this._mouseoutHandler),e.detachEvent("onmousedown",this._mousedownHandler),e.detachEvent("onmouseup",this._mouseupHandler)),this.root=null,this._domHover=null,this.storage=null,this.painter=null,this.un()}},{key:"_processDragStart",value:function(e){var t=this._lastHover;if(this._isMouseDown&&t&&t.draggable&&!this._draggingTarget&&this._mouseDownTarget==t){if(t.dragEnableTime&&new Date-this._lastMouseDownMoment<t.dragEnableTime)return;var r=t;this._draggingTarget=r,this._isDragging=1,r.invisible=!0,this.storage.mod(r.id),this._dispatchAgency(r,a.Config.EVENT.DRAGSTART,e),this.painter.refresh()}}},{key:"_processDragEnter",value:function(e){this._draggingTarget&&this._dispatchAgency(this._lastHover,a.Config.EVENT.DRAGENTER,e,this._draggingTarget)}},{key:"_processDragOver",value:function(e){this._draggingTarget&&this._dispatchAgency(this._lastHover,a.Config.EVENT.DRAGOVER,e,this._draggingTarget)}},{key:"_processDragLeave",value:function(e){this._draggingTarget&&this._dispatchAgency(this._lastHover,a.Config.EVENT.DRAGLEAVE,e,this._draggingTarget)}},{key:"_processDrop",value:function(e){this._draggingTarget&&(this._draggingTarget.invisible=!1,this.storage.mod(this._draggingTarget.id),this.painter.refresh(),this._dispatchAgency(this._lastHover,a.Config.EVENT.DROP,e,this._draggingTarget))}},{key:"_processDragEnd",value:function(e){this._draggingTarget&&(this._dispatchAgency(this._draggingTarget,a.Config.EVENT.DRAGEND,e),this._lastHover=null),this._isDragging=0,this._draggingTarget=null}},{key:"_processOverShape",value:function(e){this._dispatchAgency(this._lastHover,a.Config.EVENT.MOUSEOVER,e)}},{key:"_processOutShape",value:function(e){this._dispatchAgency(this._lastHover,a.Config.EVENT.MOUSEOUT,e)}},{key:"_dispatchAgency",value:function(e,t,r,i){var n="on"+t,a={type:t,event:r,target:e,cancelBubble:!1},o=e;for(i&&(a.dragged=i);o&&(o[n]&&(a.cancelBubble=o[n](a)),o.dispatch(t,a),o=o.parent,!a.cancelBubble););e?a.cancelBubble||this.dispatch(t,a):i||this.dispatch(t,{type:t,event:r})}},{key:"_iterateAndFindHover",value:function(){for(var e,t=o.SUtil.Util_matrix.create(),r=this.storage.getShapeList(),i=[0,0],n=r.length-1;n>=0;n--){var a=r[n];if(void 0!==a.zlevel&&(e=this.painter.getLayer(a.zlevel,e),i[0]=this._mouseX,i[1]=this._mouseY,e.needTransform&&(o.SUtil.Util_matrix.invert(t,e.transform),o.SUtil.Util_vector.applyTransform(i,i,t))),this._findHover(a,i[0],i[1]))break}}},{key:"_mobildFindFixed",value:function(e){var t=[{x:10},{x:-20},{x:10,y:10},{y:-20}];this._lastHover=null,this._mouseX=e.zrenderX,this._mouseY=e.zrenderY,this._event=e,this._iterateAndFindHover();for(var r=0;!this._lastHover&&r<t.length;r++){var i=t[r];i.x&&(this._mouseX+=i.x),i.y&&(this._mouseX+=i.y),this._iterateAndFindHover()}this._lastHover&&(e.zrenderX=this._mouseX,e.zrenderY=this._mouseY)}},{key:"_zrenderEventFixed",value:function(e,t){if(e.zrenderFixed)return e;if(t){var r="touchend"!=e.type?e.targetTouches[0]:e.changedTouches[0];if(r){var i=this.root.getBoundingClientRect();e.zrenderX=r.clientX-i.left,e.zrenderY=r.clientY-i.top}}else{var n=(e=e||window.event).toElement||e.relatedTarget||e.srcElement||e.target;n&&n!=this._domHover&&(e.zrenderX=(void 0!==e.offsetX?e.offsetX:e.layerX)+n.offsetLeft,e.zrenderY=(void 0!==e.offsetY?e.offsetY:e.layerY)+n.offsetTop)}return e.zrenderFixed=1,e}},{key:"getLastHoverOne",value:function(){return this._lastHover?this._lastHover:null}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PaintLayer=t.Painter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(77),a=r(112),o=r(1),s=r(33),l=r(74),u=r(12);
  585. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  586. * This program are made available under the terms of the Apache License, Version 2.0
  587. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var p=t.Painter=function(){function e(t,r){c(this,e),this.root=t,this.storage=r,this._domRoot=null,this._layers={},this._zlevelList=[],this._layerConfig={},this._bgDom=null,this.shapeToImage=null,e.devicePixelRatio=Math.max(window.devicePixelRatio||1,1),this.CLASS_NAME="SuperMap.LevelRenderer.Painter",this.root.innerHTML="",this._width=this._getWidth(),this._height=this._getHeight();var i=document.createElement("div");this._domRoot=i,i.style.position="relative",i.style.overflow="hidden",i.style.width=this._width+"px",i.style.height=this._height+"px",this.root.appendChild(i),this.shapeToImage=this._createShapeToImageProcessor(),this._bgDom=e.createDom(o.Util.createUniqueID("SuperMap.Theme_background_"),"div",this),i.appendChild(this._bgDom),this._bgDom.onselectstart=s,this._bgDom.style["-webkit-user-select"]="none",this._bgDom.style["user-select"]="none",this._bgDom.style["-webkit-touch-callout"]="none";var n=new h(o.Util.createUniqueID("_highLightLayer_"),this);this._layers.hover=n,i.appendChild(n.dom),n.initContext(),n.dom.onselectstart=s,n.dom.style["-webkit-user-select"]="none",n.dom.style["user-select"]="none",n.dom.style["-webkit-touch-callout"]="none";var a=this;function s(){return!1}this.updatePainter=function(e,t){a.refreshShapes(e,t)}}return i(e,[{key:"destroy",value:function(){this.dispose(),this._zlevelList=null,this._layerConfig=null,this._bgDom=null,this.shapeToImage=null}},{key:"render",value:function(e){return this.refresh(e,!0),this}},{key:"refresh",value:function(e,t){var r=this.storage.getShapeList(!0);return this._paintList(r,t),"function"==typeof e&&e(),this}},{key:"_paintList",value:function(e,t){var r,i,n;for(var a in void 0===t&&(t=!1),this._updateLayerStatus(e),this._layers)"hover"!==a&&(this._layers[a].unusedCount++,this._layers[a].updateTransform());for(var o=[],s=0,c=e.length;s<c;s++){var p=e[s];if(i!==p.zlevel&&(r&&r.needTransform&&n.restore(),n=(r=this.getLayer(p.zlevel)).ctx,i=p.zlevel,r.unusedCount=0,(r.dirty||t)&&r.clear(),r.needTransform&&(n.save(),r.setTransform(n))),n&&p.__startClip){var h=p.__startClip;if(n.save(),h.needTransform){var f=h.transform;u.SUtil.Util_matrix.invert(o,f),n.transform(f[0],f[1],f[2],f[3],f[4],f[5])}if(n.beginPath(),h.buildPath(n,h.style),n.clip(),h.needTransform){var d=o;n.transform(d[0],d[1],d[2],d[3],d[4],d[5])}}if((r&&r.dirty||t)&&!p.invisible&&(!p.onbrush||p.onbrush&&!p.onbrush(n,!1)))if(l.Config.catchBrushException)try{p.brush(n,!1,this.updatePainter)}catch(e){u.SUtil.Util_log(e,"brush error of "+p.type,p)}else p.brush(n,!1,this.updatePainter);n&&p.__stopClip&&n.restore(),p.__dirty=!1}for(var y in n&&r&&r.needTransform&&n.restore(),this._layers)if("hover"!==y){var v=this._layers[y];v.dirty=!1,1==v.unusedCount&&v.clear()}}},{key:"getLayer",value:function(e){var t=this._layers[e];if(!t){var r=this._zlevelList.length,i=null,n=-1;if(r>0&&e>this._zlevelList[0]){for(n=0;n<r-1&&!(this._zlevelList[n]<e&&this._zlevelList[n+1]>e);n++);i=this._layers[this._zlevelList[n]]}this._zlevelList.splice(n+1,0,e),t=new h(o.Util.createUniqueID("_levelLayer_"+e),this);var a=i?i.dom:this._bgDom;a.nextSibling?a.parentNode.insertBefore(t.dom,a.nextSibling):a.parentNode.appendChild(t.dom),t.initContext(),this._layers[e]=t,this._layerConfig[e]&&(new s.Util).merge(t,this._layerConfig[e],!0),t.updateTransform()}return t}},{key:"getLayers",value:function(){return this._layers}},{key:"_updateLayerStatus",value:function(e){var t=this._layers,r={};for(var i in t)"hover"!==i&&(r[i]=t[i].elCount,t[i].elCount=0);for(var n=0;n<e.length;n++){var a=e[n],o=t[a.zlevel];if(o){if(o.elCount++,o.dirty)continue;o.dirty=a.__dirty}}for(var s in t)"hover"!==s&&r[s]!==t[s].elCount&&(t[s].dirty=!0)}},{key:"refreshShapes",value:function(e,t){for(var r=0,i=e.length;r<i;r++){var n=e[r];this.storage.mod(n.id)}return this.refresh(t),this}},{key:"clear",value:function(){for(var e in this._layers)"hover"!=e&&this._layers[e].clear();return this}},{key:"modLayer",value:function(e,t){if(t){this._layerConfig[e]?(new s.Util).merge(this._layerConfig[e],t,!0):this._layerConfig[e]=t;var r=this._layers[e];r&&(new s.Util).merge(r,this._layerConfig[e],!0)}}},{key:"delLayer",value:function(e){var t=this._layers[e];t&&(this.modLayer(e,{position:t.position,rotation:t.rotation,scale:t.scale}),t.dom.parentNode.removeChild(t.dom),delete this._layers[e],this._zlevelList.splice((new s.Util).indexOf(this._zlevelList,e),1))}},{key:"refreshHover",value:function(){this.clearHover();for(var e=this.storage.getHoverShapes(!0),t=0,r=e.length;t<r;t++)this._brushHover(e[t]);return this.storage.delHover(),this}},{key:"clearHover",value:function(){var e=this._layers.hover;return e&&e.clear(),this}},{key:"resize",value:function(){var e=this._domRoot;e.style.display="none";var t=this._getWidth(),r=this._getHeight();if(e.style.display="",this._width!=t||r!=this._height){for(var i in this._width=t,this._height=r,e.style.width=t+"px",e.style.height=r+"px",this._layers)this._layers[i].resize(t,r);this.refresh(null,!0)}return this}},{key:"clearLayer",value:function(e){var t=this._layers[e];t&&t.clear()}},{key:"dispose",value:function(){this.root.innerHTML="",this.root=null,this.storage=null,this._domRoot=null,this._layers=null}},{key:"getDomHover",value:function(){return this._layers.hover.dom}},{key:"toDataURL",value:function(t,r,i){var n=e.createDom(o.Util.createUniqueID("SuperMap.Theme.image_"),"canvas",this);this._bgDom.appendChild(n);var a=n.getContext("2d");1!=e.devicePixelRatio&&a.scale(e.devicePixelRatio,e.devicePixelRatio),a.fillStyle=r||"#fff",a.rect(0,0,this._width*e.devicePixelRatio,this._height*e.devicePixelRatio),a.fill();var s=this;this.storage.iterShape(function(e){if(!e.invisible&&(!e.onbrush||e.onbrush&&!e.onbrush(a,!1)))if(l.Config.catchBrushException)try{e.brush(a,!1,s.updatePainter)}catch(t){u.SUtil.Util_log(t,"brush error of "+e.type,e)}else e.brush(a,!1,s.updatePainter)},{normal:"up",update:!0});var c=n.toDataURL(t,i);return a=null,this._bgDom.removeChild(n),c}},{key:"getWidth",value:function(){return this._width}},{key:"getHeight",value:function(){return this._height}},{key:"_getWidth",value:function(){var e=this.root,t=e.currentStyle||document.defaultView.getComputedStyle(e);return((e.clientWidth||parseInt(t.width,10))-parseInt(t.paddingLeft,10)-parseInt(t.paddingRight,10)).toFixed(0)-0}},{key:"_getHeight",value:function(){var e=this.root,t=e.currentStyle||document.defaultView.getComputedStyle(e);return((e.clientHeight||parseInt(t.height,10))-parseInt(t.paddingTop,10)-parseInt(t.paddingBottom,10)).toFixed(0)-0}},{key:"_brushHover",value:function(e){var t=this._layers.hover.ctx;if(!e.onbrush||e.onbrush&&!e.onbrush(t,!0)){var r=this.getLayer(e.zlevel);if(r.needTransform&&(t.save(),r.setTransform(t)),l.Config.catchBrushException)try{e.brush(t,!0,this.updatePainter)}catch(t){u.SUtil.Util_log(t,"hoverBrush error of "+e.type,e)}else e.brush(t,!0,this.updatePainter);r.needTransform&&t.restore()}}},{key:"_shapeToImage",value:function(e,t,r,i,n){var o=document.createElement("canvas"),s=o.getContext("2d"),l=n||window.devicePixelRatio||1;o.style.width=r+"px",o.style.height=i+"px",o.setAttribute("width",r*l),o.setAttribute("height",i*l),s.clearRect(0,0,r*l,i*l);var u={position:t.position,rotation:t.rotation,scale:t.scale};t.position=[0,0,0],t.rotation=0,t.scale=[1,1],t&&t.brush(s,!1);var c=new a.SmicImage({id:e,style:{x:0,y:0,image:o}});return null!=u.position&&(c.position=t.position=u.position),null!=u.rotation&&(c.rotation=t.rotation=u.rotation),null!=u.scale&&(c.scale=t.scale=u.scale),c}},{key:"_createShapeToImageProcessor",value:function(){var t=this;return function(r,i,n,a){return t._shapeToImage(r,i,n,a,e.devicePixelRatio)}}},{key:"updateHoverLayer",value:function(e){if(!(e instanceof Array))return this;this.clearHover(),this.storage.delHover();for(var t=0;t<e.length;t++)this.storage.addHover(e[t]),this._brushHover(e[t])}}],[{key:"createDom",value:function(t,r,i){var n=document.createElement(r),a=i._width,o=i._height;return n.style.position="absolute",n.style.left=0,n.style.top=0,n.style.width=a+"px",n.style.height=o+"px",n.setAttribute("width",a*e.devicePixelRatio),n.setAttribute("height",o*e.devicePixelRatio),n.setAttribute("id",t),n}}]),e}(),h=t.PaintLayer=function(e){function t(e,r){c(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.dom=null,i.domBack=null,i.ctxBack=null,i.painter=r,i.unusedCount=0,i.config=null,i.dirty=!0,i.elCount=0,i.clearColor=0,i.motionBlur=!1,i.lastFrameAlpha=.7,i.zoomable=!1,i.panable=!1,i.maxZoom=1/0,i.minZoom=0,i.ctx=null,i.dom=p.createDom(o.Util.createUniqueID("SuperMap.Theme"+e),"canvas",r),i.dom.onselectstart=function(){return!1},i.dom.style["-webkit-user-select"]="none",i.dom.style["user-select"]="none",i.dom.style["-webkit-touch-callout"]="none",i.CLASS_NAME="SuperMap.LevelRenderer.Painter.Layer",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Transformable),i(t,[{key:"destroy",value:function(){this.dom=null,this.domBack=null,this.ctxBack=null,this.painter=null,this.unusedCount=null,this.config=null,this.dirty=null,this.elCount=null,this.clearColor=null,this.motionBlur=null,this.lastFrameAlpha=null,this.zoomable=null,this.panable=null,this.maxZoom=null,this.minZoom=null,this.ctx=null,n.Transformable.destroy.apply(this,arguments)}},{key:"initContext",value:function(){this.ctx=this.dom.getContext("2d"),1!=p.devicePixelRatio&&this.ctx.scale(p.devicePixelRatio,p.devicePixelRatio)}},{key:"createBackBuffer",value:function(){this.domBack=p.createDom(o.Util.createUniqueID("SuperMap.Theme.back-"+this.id),"canvas",this.painter),this.ctxBack=this.domBack.getContext("2d"),1!=p.devicePixelRatio&&this.ctxBack.scale(p.devicePixelRatio,p.devicePixelRatio)}},{key:"resize",value:function(e,t){this.dom.style.width=e+"px",this.dom.style.height=t+"px",this.dom.setAttribute("width",e*p.devicePixelRatio),this.dom.setAttribute("height",t*p.devicePixelRatio),1!=p.devicePixelRatio&&this.ctx.scale(p.devicePixelRatio,p.devicePixelRatio),this.domBack&&(this.domBack.setAttribute("width",e*p.devicePixelRatio),this.domBack.setAttribute("height",t*p.devicePixelRatio),1!=p.devicePixelRatio&&this.ctxBack.scale(p.devicePixelRatio,p.devicePixelRatio))}},{key:"clear",value:function(){var e=this.dom,t=this.ctx,r=e.width,i=e.height,n=this.clearColor,a=this.motionBlur,o=this.lastFrameAlpha;if(a&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,r/p.devicePixelRatio,i/p.devicePixelRatio)),n?(t.save(),t.fillStyle=this.config.clearColor,t.fillRect(0,0,r/p.devicePixelRatio,i/p.devicePixelRatio),t.restore()):t.clearRect(0,0,r/p.devicePixelRatio,i/p.devicePixelRatio),a){var s=this.domBack;t.save(),t.globalAlpha=o,t.drawImage(s,0,0,r/p.devicePixelRatio,i/p.devicePixelRatio),t.restore()}}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(60),s=r(77);
  588. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  589. * This program are made available under the terms of the Apache License, Version 2.0
  590. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  591. t.Group=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=e||{},r.id=null,r.type="group",r.clipShape=null,r._children=[],r._storage=null,r.__dirty=!0,r.ignore=!1,a.Util.extend(r,e),r.id=r.id||a.Util.createUniqueID("smShapeGroup_"),r.CLASS_NAME="SuperMap.LevelRenderer.Group",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.SuperMap.mixin(o.Eventful,s.Transformable)),i(t,[{key:"destroy",value:function(){this.id=null,this.type=null,this.clipShape=null,this._children=null,this._storage=null,this.__dirty=null,this.ignore=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"children",value:function(){return this._children.slice()}},{key:"childAt",value:function(e){return this._children[e]}},{key:"addChild",value:function(e){e!=this&&e.parent!=this&&(e.parent&&e.parent.removeChild(e),this._children.push(e),e.parent=this,this._storage&&this._storage!==e._storage&&(this._storage.addToMap(e),e instanceof t&&e.addChildrenToStorage(this._storage)))}},{key:"removeChild",value:function(e){var r=a.Util.indexOf(this._children,e);this._children.splice(r,1),e.parent=null,this._storage&&(this._storage.delFromMap(e.id),e instanceof t&&e.delChildrenFromStorage(this._storage))}},{key:"eachChild",value:function(e,t){for(var r=!!t,i=0;i<this._children.length;i++){var n=this._children[i];r?e.call(t,n):e(n)}}},{key:"traverse",value:function(e,t){for(var r=!!t,i=0;i<this._children.length;i++){var n=this._children[i];r?e.call(t,n):e(n),"group"===n.type&&n.traverse(e,t)}}},{key:"addChildrenToStorage",value:function(e){for(var t=0;t<this._children.length;t++){var r=this._children[t];e.addToMap(r),"group"===r.type&&r.addChildrenToStorage(e)}}},{key:"delChildrenFromStorage",value:function(e){for(var t=0;t<this._children.length;t++){var r=this._children[t];e.delFromMap(r.id),"group"===r.type&&r.delChildrenFromStorage(e)}}},{key:"modSelf",value:function(){this.__dirty=!0}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Storage=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(33),a=r(198);
  592. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  593. * This program are made available under the terms of the Apache License, Version 2.0
  594. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.Storage=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._elements={},this._hoverElements=[],this._roots=[],this._shapeList=[],this._shapeListOffset=0,this.CLASS_NAME="SuperMap.LevelRenderer.Storage"}return i(e,[{key:"destroy",value:function(){this.dispose(),this._shapeList=null,this._shapeListOffset=null}},{key:"iterShape",value:function(e,t){if(!t){t={hover:!1,normal:"down",update:!1}}if(t.hover)for(var r=0,i=this._hoverElements.length;r<i;r++){var n=this._hoverElements[r];if(n.updateTransform(),e(n))return this}switch(t.update&&this.updateShapeList(),t.normal){case"down":for(var a=this._shapeList.length;a--;)if(e(this._shapeList[a]))return this;break;default:for(var o=0,s=this._shapeList.length;o<s;o++)if(e(this._shapeList[o]))return this}return this}},{key:"getHoverShapes",value:function(t){for(var r=[],i=this._hoverElements.length,n=0;n<i;n++){r.push(this._hoverElements[n]);var a=this._hoverElements[n].hoverConnect;if(a)for(var o,s=0,l=(a=a instanceof Array?a:[a]).length;s<l;s++)(o=a[s].id?a[s]:this.get(a[s]))&&r.push(o)}if(r.sort(e.shapeCompareFunc),t)for(var u=0,c=r.length;u<c;u++)r[u].updateTransform();return r}},{key:"getShapeList",value:function(e){return e&&this.updateShapeList(),this._shapeList}},{key:"updateShapeList",value:function(){this._shapeListOffset=0;for(var t=this._roots.length,r=0;r<t;r++){var i=this._roots[r];this._updateAndAddShape(i)}this._shapeList.length=this._shapeListOffset;for(var n=this._shapeList.length,a=0;a<n;a++)this._shapeList[a].__renderidx=a;this._shapeList.sort(e.shapeCompareFunc)}},{key:"_updateAndAddShape",value:function(e,t){if(!e.ignore)if(e.updateTransform(),"group"==e.type){e.clipShape&&(e.clipShape.parent=e,e.clipShape.updateTransform(),t?(t=t.slice()).push(e.clipShape):t=[e.clipShape]);for(var r=0;r<e._children.length;r++){var i=e._children[r];i.__dirty=e.__dirty||i.__dirty,this._updateAndAddShape(i,t)}e.__dirty=!1}else e.__clipShapes=t,this._shapeList[this._shapeListOffset++]=e}},{key:"mod",value:function(e,t){var r=this._elements[e];if(r&&(r.modSelf(),t))if(t.parent||t._storage||t.__startClip){var i={};for(var a in t)"parent"!=a&&"_storage"!=a&&"__startClip"!=a&&t.hasOwnProperty(a)&&(i[a]=t[a]);(new n.Util).merge(r,i,!0)}else(new n.Util).merge(r,t,!0);return this}},{key:"drift",value:function(e,t,r){var i=this._elements[e];return i&&(i.needTransform=!0,"horizontal"===i.draggable?r=0:"vertical"===i.draggable&&(t=0),(!i.ondrift||i.ondrift&&!i.ondrift(t,r))&&i.drift(t,r)),this}},{key:"addHover",value:function(e){return e.updateNeedTransform(),this._hoverElements.push(e),this}},{key:"delHover",value:function(){return this._hoverElements=[],this}},{key:"hasHoverShape",value:function(){return this._hoverElements.length>0}},{key:"addRoot",value:function(e){e instanceof a.Group&&e.addChildrenToStorage(this),this.addToMap(e),this._roots.push(e)}},{key:"delRoot",value:function(e){if(void 0===e){for(var t=0;t<this._roots.length;t++){var r=this._roots[t];r instanceof a.Group&&r.delChildrenFromStorage(this)}return this._elements={},this._hoverElements=[],void(this._roots=[])}if(e instanceof Array)for(var i=e.length,o=0;o<i;o++)this.delRoot(e[o]);else{var s;s="string"==typeof e?this._elements[e]:e;var l=(new n.Util).indexOf(this._roots,s);l>=0&&(this.delFromMap(s.id),this._roots.splice(l,1),s instanceof a.Group&&s.delChildrenFromStorage(this))}}},{key:"addToMap",value:function(e){return e instanceof a.Group&&(e._storage=this),e.modSelf(),this._elements[e.id]=e,this}},{key:"get",value:function(e){return this._elements[e]}},{key:"delFromMap",value:function(e){var t=this._elements[e];return t&&(delete this._elements[e],t instanceof a.Group&&(t._storage=null)),this}},{key:"dispose",value:function(){this._elements=null,this._roots=null,this._hoverElements=null}}],[{key:"shapeCompareFunc",value:function(e,t){return e.zlevel==t.zlevel?e.z==t.z?e.__renderidx-t.__renderidx:e.z-t.z:e.zlevel-t.zlevel}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Render=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(33),a=r(1),o=r(199),s=r(197),l=r(196),u=r(195),c=r(12);
  595. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  596. * This program are made available under the terms of the Apache License, Version 2.0
  597. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.Render=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.id=t,this.storage=new o.Storage,this.painter=new s.Painter(r,this.storage),this.handler=new l.Handler(r,this.storage,this.painter),this.animatingElements=[],this.animation=new u.Animation({stage:{update:e.getFrameCallback(this)}}),this._needsRefreshNextFrame=!1,this.animation.start(),this.CLASS_NAME="SuperMap.LevelRenderer.Render"}return i(e,[{key:"destroy",value:function(){this.id=null,this.storage=null,this.painter=null,this.handler=null,this.animatingElements=null,this.animation=null,this._needsRefreshNextFrame=null}},{key:"getId",value:function(){return this.id}},{key:"addShape",value:function(e){return this.storage.addRoot(e),this}},{key:"addGroup",value:function(e){return this.storage.addRoot(e),this}},{key:"delShape",value:function(e){return this.storage.delRoot(e),this}},{key:"delGroup",value:function(e){return this.storage.delRoot(e),this}},{key:"modShape",value:function(e,t){return this.storage.mod(e,t),this}},{key:"modGroup",value:function(e,t){return this.storage.mod(e,t),this}},{key:"modLayer",value:function(e,t){return this.painter.modLayer(e,t),this}},{key:"addHoverShape",value:function(e){return this.storage.addHover(e),this}},{key:"render",value:function(e){return this.painter.render(e),this._needsRefreshNextFrame=!1,this}},{key:"refresh",value:function(e){return this.painter.refresh(e),this._needsRefreshNextFrame=!1,this}},{key:"refreshNextFrame",value:function(){return this._needsRefreshNextFrame=!0,this}},{key:"refreshHover",value:function(e){return this.painter.refreshHover(e),this}},{key:"refreshShapes",value:function(e,t){return this.painter.refreshShapes(e,t),this}},{key:"resize",value:function(){return this.painter.resize(),this}},{key:"animate",value:function(e,t,r){if("string"==typeof e&&(e=this.storage.get(e)),e){var i;if(t){for(var a=t.split("."),o=e,s=0,l=a.length;s<l;s++)o&&(o=o[a[s]]);o&&(i=o)}else i=e;if(!i)return void c.SUtil.Util_log('Property "'+t+'" is not existed in element '+e.id);var u=this.animatingElements;return void 0===e.__aniCount&&(e.__aniCount=0),0===e.__aniCount&&u.push(e),e.__aniCount++,this.animation.animate(i,{loop:r}).done(function(){if(e.__aniCount--,0===e.__aniCount){var t=(new n.Util).indexOf(u,e);u.splice(t,1)}})}c.SUtil.Util_log("Element not existed")}},{key:"clearAnimation",value:function(){this.animation.clear()}},{key:"getWidth",value:function(){return this.painter.getWidth()}},{key:"getHeight",value:function(){return this.painter.getHeight()}},{key:"toDataURL",value:function(e,t,r){return this.painter.toDataURL(e,t,r)}},{key:"shapeToImage",value:function(e,t,r){var i=a.Util.createUniqueID("SuperMap.LevelRenderer.ToImage_");return this.painter.shapeToImage(i,e,t,r)}},{key:"on",value:function(e,t){return this.handler.on(e,t),this}},{key:"un",value:function(e,t){return this.handler.un(e,t),this}},{key:"trigger",value:function(e,t){return this.handler.trigger(e,t),this.handler.dispatch(e,t),this}},{key:"clear",value:function(){return this.storage.delRoot(),this.painter.clear(),this}},{key:"dispose",value:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=null,this.animatingElements=null,this.storage=null,this.painter=null,this.handler=null}},{key:"updateHoverShapes",value:function(e){return this.painter.updateHoverLayer(e),this}},{key:"getAllShapes",value:function(){return this.storage._shapeList}},{key:"clearAll",value:function(){return this.clear(),this.painter.clearHover(),this}},{key:"getHoverOne",value:function(){return this.handler.getLastHoverOne()}}],[{key:"getFrameCallback",value:function(e){return function(){var t=e.animatingElements;if(t instanceof Array){for(var r=0,i=t.length;r<i;r++)e.storage.mod(t[r].id);(t.length||e._needsRefreshNextFrame)&&e.refresh()}}}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RankSymbol=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(32);
  598. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  599. * This program are made available under the terms of the Apache License, Version 2.0
  600. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  601. var o=t.RankSymbol=function(e){function t(e,r,i,n,a,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i,n,a,o));return s.setting=null,n&&n.codomain&&(s.setting=n,s.DVBCodomain=s.setting.codomain),s.CLASS_NAME="SuperMap.Feature.Theme.RankSymbol",s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Graph),i(t,[{key:"destroy",value:function(){this.setting=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"initBaseParameter",value:function(){if(!this.setting)return!1;var e=this.setting;e.XOffset&&(this.XOffset=e.XOffset),e.YOffset&&(this.YOffset=e.YOffset),this.XOffset=e.XOffset?e.XOffset:0,this.YOffset=e.YOffset?e.YOffset:0,this.origonPoint=[],this.chartBox=[],this.dataViewBox=[],this.DVBParameter=e.dataViewBoxParameter?e.dataViewBoxParameter:[0,0,0,0],this.DVBOrigonPoint=[],this.DVBCenterPoint=[],this.origonPointOffset=[],this.resetLocation();var t=this.width,r=this.height,i=this.location;this.origonPoint=[i[0]-t/2,i[1]-r/2];var n=this.origonPoint;this.chartBox=[n[0],n[1]+r,n[0]+t,n[1]];var a=this.chartBox,o=this.DVBParameter;this.dataViewBox=[a[0]+o[0],a[1]-o[1],a[2]-o[2],a[3]+o[3]];var s=this.dataViewBox;return!(s[0]>=s[2]||s[1]<=s[3])&&(this.DVBOrigonPoint=[s[0],s[3]],this.DVBWidth=Math.abs(s[2]-s[0]),this.DVBHeight=Math.abs(s[1]-s[3]),this.DVBCenterPoint=[this.DVBOrigonPoint[0]+this.DVBWidth/2,this.DVBOrigonPoint[1]+this.DVBHeight/2],this.origonPointOffset=[this.DVBOrigonPoint[0]-n[0],this.DVBOrigonPoint[1]-n[1]],!0)}}]),t}();n.SuperMap.Feature.Theme.RankSymbol=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmicSector=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(13),a=r(12);
  602. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  603. * This program are made available under the terms of the Apache License, Version 2.0
  604. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  605. t.SmicSector=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="smicsector",r.refOriginalPosition&&2===r.refOriginalPosition.length||(r.refOriginalPosition=[0,0]),r.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicSector",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Shape),i(t,[{key:"destroy",value:function(){this.type=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"buildPath",value:function(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition,i=t.x+r[0],n=t.y+r[1],o=t.r0||0,s=t.r,l=t.startAngle,u=t.endAngle,c=t.clockWise||!1;l=a.SUtil.Util_math.degreeToRadian(l),u=a.SUtil.Util_math.degreeToRadian(u),c||(l=-l,u=-u);var p=a.SUtil.Util_math.cos(l),h=a.SUtil.Util_math.sin(l);e.moveTo(p*o+i,h*o+n),e.lineTo(p*s+i,h*s+n),e.arc(i,n,s,l,u,!c),e.lineTo(a.SUtil.Util_math.cos(u)*o+i,a.SUtil.Util_math.sin(u)*o+n),0!==o&&e.arc(i,n,o,u,l,c),e.closePath()}},{key:"getRect",value:function(e){if(e.__rect)return e.__rect;this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t=this.refOriginalPosition,r=a.SUtil.Util_vector.create(),i=a.SUtil.Util_vector.create(),n=a.SUtil.Util_vector.create(),o=a.SUtil.Util_vector.create(),s=e.x+t[0],l=e.y+t[1],u=e.r0||0,c=e.r,p=a.SUtil.Util_math.degreeToRadian(e.startAngle),h=a.SUtil.Util_math.degreeToRadian(e.endAngle),f=e.clockWise;return f||(p=-p,h=-h),u>1?a.SUtil.Util_computeBoundingBox.arc(s,l,u,p,h,!f,r,n):(r[0]=n[0]=s,r[1]=n[1]=l),a.SUtil.Util_computeBoundingBox.arc(s,l,c,p,h,!f,i,o),a.SUtil.Util_vector.min(r,r,i),a.SUtil.Util_vector.max(n,n,o),e.__rect={x:r[0],y:r[1],width:n[0]-r[0],height:n[1]-r[1]},e.__rect}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmicCircle=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(13);
  606. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  607. * This program are made available under the terms of the Apache License, Version 2.0
  608. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  609. t.SmicCircle=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="smiccircle",r.refOriginalPosition&&2===r.refOriginalPosition.length||(r.refOriginalPosition=[0,0]),r.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicCircle",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Shape),i(t,[{key:"destroy",value:function(){this.type=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"buildPath",value:function(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition,i=t.x+r[0],n=t.y+r[1];return e.moveTo(i+t.r,n),e.arc(i,n,t.r,0,2*Math.PI,!0),!0}},{key:"getRect",value:function(e){if(e.__rect)return e.__rect;this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t,r=this.refOriginalPosition,i=e.x+r[0],n=e.y+r[1],a=e.r;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(i-a-t/2),y:Math.round(n-a-t/2),width:2*a+t,height:2*a+t},e.__rect}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}();
  610. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  611. * This program are made available under the terms of the Apache License, Version 2.0
  612. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  613. t.Matrix=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.ArrayCtor="undefined"==typeof Float32Array?Array:Float32Array,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Matrix"}return i(e,[{key:"create",value:function(){var e=new(0,this.ArrayCtor)(6);return this.identity(e),e}},{key:"identity",value:function(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}},{key:"copy",value:function(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}},{key:"mul",value:function(e,t,r){return e[0]=t[0]*r[0]+t[2]*r[1],e[1]=t[1]*r[0]+t[3]*r[1],e[2]=t[0]*r[2]+t[2]*r[3],e[3]=t[1]*r[2]+t[3]*r[3],e[4]=t[0]*r[4]+t[2]*r[5]+t[4],e[5]=t[1]*r[4]+t[3]*r[5]+t[5],e}},{key:"translate",value:function(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}},{key:"rotate",value:function(e,t,r){var i=t[0],n=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(r),c=Math.cos(r);return e[0]=i*c+o*u,e[1]=-i*u+o*c,e[2]=n*c+s*u,e[3]=-n*u+c*s,e[4]=c*a+u*l,e[5]=c*l-u*a,e}},{key:"scale",value:function(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}},{key:"invert",value:function(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],l=r*o-a*i;return l?(l=1/l,e[0]=o*l,e[1]=-a*l,e[2]=-i*l,e[3]=r*l,e[4]=(i*s-o*n)*l,e[5]=(a*n-r*s)*l,e):null}},{key:"mulVector",value:function(e,t,r){var i=t[0],n=t[2],a=t[4],o=t[1],s=t[3],l=t[5];return e[0]=r[0]*i+r[1]*n+a,e[1]=r[0]*o+r[1]*s+l,e}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}();
  614. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  615. * This program are made available under the terms of the Apache License, Version 2.0
  616. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  617. t.Math=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this._radians=window.Math.PI/180,this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Math"}return i(e,[{key:"sin",value:function(e,t){return window.Math.sin(t?e*this._radians:e)}},{key:"cos",value:function(e,t){return window.Math.cos(t?e*this._radians:e)}},{key:"degreeToRadian",value:function(e){return e*this._radians}},{key:"radianToDegree",value:function(e){return e/this._radians}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Log=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(74);
  618. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  619. * This program are made available under the terms of the Apache License, Version 2.0
  620. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.Log=function(){function e(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Log",function(){if(0!==n.Config.debugMode)if(1==n.Config.debugMode)for(var e in arguments)throw new Error(arguments[e]);else if(n.Config.debugMode>1)for(var t in arguments)console.log(arguments[t])}}return i(e,[{key:"destory",value:function(){return!0}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}();
  621. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  622. * This program are made available under the terms of the Apache License, Version 2.0
  623. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  624. t.Http=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Http"}return n(e,[{key:"get",value:function(e,t,r){if("object"===(void 0===e?"undefined":i(e))){var n=e;e=n.url,t=n.onsuccess,r=n.onerror}var a=window.XMLHttpRequest?new XMLHttpRequest:new window.ActiveXObject("Microsoft.XMLHTTP");a.open("GET",e,!0),a.onreadystatechange=function(){4==a.readyState&&(a.status>=200&&a.status<300||304===a.status?t&&t(a.responseText):r&&r(),a.onreadystatechange=new Function,a=null)},a.send(null)}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}();
  625. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  626. * This program are made available under the terms of the Apache License, Version 2.0
  627. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  628. t.Event=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.stop="function"==typeof window.addEventListener?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0},this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Event"}return i(e,[{key:"getX",value:function(e){return void 0!==e.zrenderX&&e.zrenderX||void 0!==e.offsetX&&e.offsetX||void 0!==e.layerX&&e.layerX||void 0!==e.clientX&&e.clientX}},{key:"getY",value:function(e){return void 0!==e.zrenderY&&e.zrenderY||void 0!==e.offsetY&&e.offsetY||void 0!==e.layerY&&e.layerY||void 0!==e.clientY&&e.clientY}},{key:"getDelta",value:function(e){return void 0!==e.zrenderDelta&&e.zrenderDelta||void 0!==e.wheelDelta&&e.wheelDelta||void 0!==e.detail&&-e.detail}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}();
  629. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  630. * This program are made available under the terms of the Apache License, Version 2.0
  631. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  632. t.Env=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Env";var t,r,i,n,a,o,s,l,u,c,p,h,f,d,y,v,m,g,b,S,_,P=this;return t=navigator.userAgent,r=P.os={},i=P.browser={},n=t.match(/Web[kK]it[\/]{0,1}([\d.]+)/),a=t.match(/(Android);?[\s\/]+([\d.]+)?/),o=t.match(/(iPad).*OS\s([\d_]+)/),s=t.match(/(iPod)(.*OS\s([\d_]+))?/),l=!o&&t.match(/(iPhone\sOS)\s([\d_]+)/),u=t.match(/(webOS|hpwOS)[\s\/]([\d.]+)/),c=u&&t.match(/TouchPad/),p=t.match(/Kindle\/([\d.]+)/),h=t.match(/Silk\/([\d._]+)/),f=t.match(/(BlackBerry).*Version\/([\d.]+)/),d=t.match(/(BB10).*Version\/([\d.]+)/),y=t.match(/(RIM\sTablet\sOS)\s([\d.]+)/),v=t.match(/PlayBook/),m=t.match(/Chrome\/([\d.]+)/)||t.match(/CriOS\/([\d.]+)/),g=t.match(/Firefox\/([\d.]+)/),b=t.match(/MSIE ([\d.]+)/),S=n&&t.match(/Mobile\//)&&!m,_=t.match(/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/)&&!m,(i.webkit=!!n)&&(i.version=n[1]),a&&(r.android=!0,r.version=a[2]),l&&!s&&(r.ios=r.iphone=!0,r.version=l[2].replace(/_/g,".")),o&&(r.ios=r.ipad=!0,r.version=o[2].replace(/_/g,".")),s&&(r.ios=r.ipod=!0,r.version=s[3]?s[3].replace(/_/g,"."):null),u&&(r.webos=!0,r.version=u[2]),c&&(r.touchpad=!0),f&&(r.blackberry=!0,r.version=f[2]),d&&(r.bb10=!0,r.version=d[2]),y&&(r.rimtabletos=!0,r.version=y[2]),v&&(i.playbook=!0),p&&(r.kindle=!0,r.version=p[1]),h&&(i.silk=!0,i.version=h[1]),!h&&r.android&&t.match(/Kindle Fire/)&&(i.silk=!0),m&&(i.chrome=!0,i.version=m[1]),g&&(i.firefox=!0,i.version=g[1]),b&&(i.ie=!0,i.version=b[1]),S&&(t.match(/Safari/)||r.ios)&&(i.safari=!0),_&&(i.webview=!0),b&&(i.ie=!0,i.version=b[1]),r.tablet=!!(o||v||a&&!t.match(/Mobile/)||g&&t.match(/Tablet/)||b&&!t.match(/Phone/)&&t.match(/Touch/)),r.phone=!(r.tablet||r.ipod||!(a||l||u||f||d||m&&t.match(/Android/)||m&&t.match(/CriOS\/([\d.]+)/)||g&&t.match(/Mobile/)||b&&t.match(/Touch/))),{browser:i,os:r,canvasSupported:!!document.createElement("canvas").getContext}}return i(e,[{key:"destory",value:function(){return!0}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComputeBoundingBox=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(76),a=r(75);
  633. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  634. * This program are made available under the terms of the Apache License, Version 2.0
  635. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.ComputeBoundingBox=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),3===arguments.length&&this.computeBoundingBox(arguments),this.CLASS_NAME="SuperMap.LevelRenderer.Tool.ComputeBoundingBox"}return i(e,[{key:"computeBoundingBox",value:function(e,t,r){if(0!==e.length){for(var i=e[0][0],n=e[0][0],a=e[0][1],o=e[0][1],s=1;s<e.length;s++){var l=e[s];l[0]<i&&(i=l[0]),l[0]>n&&(n=l[0]),l[1]<a&&(a=l[1]),l[1]>o&&(o=l[1])}t[0]=i,t[1]=a,r[0]=n,r[1]=o}}},{key:"cubeBezier",value:function(e,t,r,i,a,o){var s=new n.Curve,l=[];s.cubicExtrema(e[0],t[0],r[0],i[0],l);for(var u=0;u<l.length;u++)l[u]=s.cubicAt(e[0],t[0],r[0],i[0],l[u]);var c=[];s.cubicExtrema(e[1],t[1],r[1],i[1],c);for(var p=0;p<c.length;p++)c[p]=s.cubicAt(e[1],t[1],r[1],i[1],c[p]);l.push(e[0],i[0]),c.push(e[1],i[1]);var h=Math.min.apply(null,l),f=Math.max.apply(null,l),d=Math.min.apply(null,c),y=Math.max.apply(null,c);a[0]=h,a[1]=d,o[0]=f,o[1]=y}},{key:"quadraticBezier",value:function(e,t,r,i,a){var o=new n.Curve,s=o.quadraticExtremum(e[0],t[0],r[0]),l=o.quadraticExtremum(e[1],t[1],r[1]),u=1-(s=Math.max(Math.min(s,1),0)),c=1-(l=Math.max(Math.min(l,1),0)),p=u*u*e[0]+2*u*s*t[0]+s*s*r[0],h=u*u*e[1]+2*u*s*t[1]+s*s*r[1],f=c*c*e[0]+2*c*l*t[0]+l*l*r[0],d=c*c*e[1]+2*c*l*t[1]+l*l*r[1];i[0]=Math.min(e[0],r[0],p,f),i[1]=Math.min(e[1],r[1],h,d),a[0]=Math.max(e[0],r[0],p,f),a[1]=Math.max(e[1],r[1],h,d)}},{key:"arc",value:function(e,t,r,i,n,o,s,l){var u=new a.Vector,c=u.create(),p=u.create(),h=u.create();if(c[0]=Math.cos(i)*r+e,c[1]=Math.sin(i)*r+t,p[0]=Math.cos(n)*r+e,p[1]=Math.sin(n)*r+t,u.min(s,c,p),u.max(l,c,p),(i%=2*Math.PI)<0&&(i+=2*Math.PI),(n%=2*Math.PI)<0&&(n+=2*Math.PI),i>n&&!o?n+=2*Math.PI:i<n&&o&&(i+=2*Math.PI),o){var f=n;n=i,i=f}for(var d=0;d<n;d+=Math.PI/2)d>i&&(h[0]=Math.cos(d)*r+e,h[1]=Math.sin(d)*r+t,u.min(s,h,s),u.max(l,h,l))}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Area=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(33),a=r(76);
  636. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  637. * This program are made available under the terms of the Apache License, Version 2.0
  638. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.Area=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.util=new n.Util,this.curve=new a.Curve,this._ctx=null,this._textWidthCache={},this._textHeightCache={},this._textWidthCacheCounter=0,this._textHeightCacheCounter=0,this.TEXT_CACHE_MAX=5e3,this.PI2=2*Math.PI,this.roots=[-1,-1,-1],this.extrema=[-1,-1],this.CLASS_NAME="SuperMap.LevelRenderer.Tool.Area"}return i(e,[{key:"normalizeRadian",value:function(e){return(e%=this.PI2)<0&&(e+=this.PI2),e}},{key:"isInside",value:function(e,t,r,i){if(!t||!e)return!1;var n=e.type;this._ctx=this._ctx||this.util.getContext();var a=this._mathMethod(e,t,r,i);if(void 0!==a)return a;if(e.buildPath&&this._ctx.isPointInPath)return this._buildPathMethod(e,this._ctx,t,r,i);switch(n){case"ellipse":case"smicellipse":return!0;case"trochoid":var o="out"==t.location?t.r1+t.r2+t.d:t.r1-t.r2+t.d;return this.isInsideCircle(t,r,i,o);case"rose":return this.isInsideCircle(t,r,i,t.maxr);default:return!1}}},{key:"_mathMethod",value:function(e,t,r,i){switch(e.type){case"bezier-curve":return void 0===t.cpX2?this.isInsideQuadraticStroke(t.xStart,t.yStart,t.cpX1,t.cpY1,t.xEnd,t.yEnd,t.lineWidth,r,i):this.isInsideCubicStroke(t.xStart,t.yStart,t.cpX1,t.cpY1,t.cpX2,t.cpY2,t.xEnd,t.yEnd,t.lineWidth,r,i);case"line":return this.isInsideLine(t.xStart,t.yStart,t.xEnd,t.yEnd,t.lineWidth,r,i);case"broken-line":return this.isInsideBrokenLine(t.pointList,t.lineWidth,r,i);case"smicbroken-line":var n=r,a=i;return e.refOriginalPosition&&(n=r-e.refOriginalPosition[0],a=i-e.refOriginalPosition[1]),this.isInsideBrokenLine(t.pointList,t.lineWidth,n,a);case"ring":return this.isInsideRing(t.x,t.y,t.r0,t.r,r,i);case"smicring":var o=t.x,s=t.y;return e.refOriginalPosition&&(o=t.x+e.refOriginalPosition[0],s=t.y+e.refOriginalPosition[1]),this.isInsideRing(o,s,t.r0,t.r,r,i);case"circle":return this.isInsideCircle(t.x,t.y,t.r,r,i);case"smicpoint":var l=r,u=i;return e.refOriginalPosition&&(l=r-e.refOriginalPosition[0],u=i-e.refOriginalPosition[1]),this.isInsideCircle(t.x,t.y,t.r,l,u);case"sector":var c=t.startAngle*Math.PI/180,p=t.endAngle*Math.PI/180;return t.clockWise||(c=-c,p=-p),this.isInsideSector(t.x,t.y,t.r0,t.r,c,p,!t.clockWise,r,i);case"smicsector":var h=t.startAngle*Math.PI/180,f=t.endAngle*Math.PI/180;t.clockWise||(h=-h,f=-f);var d=t.x,y=t.y;return e.refOriginalPosition&&(d=t.x+e.refOriginalPosition[0],y=t.y+e.refOriginalPosition[1]),this.isInsideSector(d,y,t.r0,t.r,h,f,!t.clockWise,r,i);case"path":return this.isInsidePath(t.pathArray,Math.max(t.lineWidth,5),t.brushType,r,i);case"polygon":case"star":case"smicstar":case"isogon":case"smicisogon":return this.isInsidePolygon(t.pointList,r,i);case"smicpolygon":var v=r,m=i;if(e.refOriginalPosition&&(v=r-e.refOriginalPosition[0],m=i-e.refOriginalPosition[1]),e.holePolygonPointLists&&e.holePolygonPointLists.length>0){for(var g=this.isInsidePolygon(t.pointList,v,m),b=e.holePolygonPointLists,S=!1,_=0,P=b.length;_<P;_++){var w=b[_];!0===this.isInsidePolygon(w,v,m)&&(S=!0)}return!0===g&&!1===S}return this.isInsidePolygon(t.pointList,v,m);case"text":var O=t.__rect||e.getRect(t);return this.isInsideRect(O.x,O.y,O.width,O.height,r,i);case"smictext":var T=e.getTextBackground(t);return this.isInsidePolygon(T,r,i);case"rectangle":case"image":return this.isInsideRect(t.x,t.y,t.width,t.height,r,i);case"smicimage":var M=t.x,C=t.y;return e.refOriginalPosition&&(M=t.x+e.refOriginalPosition[0],C=t.y+e.refOriginalPosition[1]),this.isInsideRect(M,C,t.width,t.height,r,i)}}},{key:"_buildPathMethod",value:function(e,t,r,i,n){return t.beginPath(),e.buildPath(t,r),t.closePath(),t.isPointInPath(i,n)}},{key:"isOutside",value:function(e,t,r,i){return!this.isInside(e,t,r,i)}},{key:"isInsideLine",value:function(e,t,r,i,n,a,o){if(0===n)return!1;var s=Math.max(n,5),l=0;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e===r)return Math.abs(a-e)<=s/2;var u=(l=(t-i)/(e-r))*a-o+(e*i-r*t)/(e-r);return u*u/(l*l+1)<=s/2*s/2}},{key:"isInsideCubicStroke",value:function(e,t,r,i,n,a,o,s,l,u,c){if(0===l)return!1;var p=Math.max(l,5);return!(c>t+p&&c>i+p&&c>a+p&&c>s+p||c<t-p&&c<i-p&&c<a-p&&c<s-p||u>e+p&&u>r+p&&u>n+p&&u>o+p||u<e-p&&u<r-p&&u<n-p&&u<o-p)&&this.curve.cubicProjectPoint(e,t,r,i,n,a,o,s,u,c,null)<=p/2}},{key:"isInsideQuadraticStroke",value:function(e,t,r,i,n,a,o,s,l){if(0===o)return!1;var u=Math.max(o,5);return!(l>t+u&&l>i+u&&l>a+u||l<t-u&&l<i-u&&l<a-u||s>e+u&&s>r+u&&s>n+u||s<e-u&&s<r-u&&s<n-u)&&this.curve.quadraticProjectPoint(e,t,r,i,n,a,s,l,null)<=u/2}},{key:"isInsideArcStroke",value:function(e,t,r,i,n,a,o,s,l){var u=this.PI2;if(0===o)return!1;var c=Math.max(o,5);s-=e,l-=t;var p=Math.sqrt(s*s+l*l);if(p-c>r||p+c<r)return!1;if(Math.abs(i-n)>=u)return!0;if(a){var h=i;i=this.normalizeRadian(n),n=this.normalizeRadian(h)}else i=this.normalizeRadian(i),n=this.normalizeRadian(n);i>n&&(n+=u);var f=Math.atan2(l,s);return f<0&&(f+=u),f>=i&&f<=n||f+u>=i&&f+u<=n}},{key:"isInsideBrokenLine",value:function(e,t,r,i){for(var n=Math.max(t,10),a=0,o=e.length-1;a<o;a++){var s=e[a][0],l=e[a][1],u=e[a+1][0],c=e[a+1][1];if(this.isInsideLine(s,l,u,c,n,r,i))return!0}return!1}},{key:"isInsideRing",value:function(e,t,r,i,n,a){var o=(n-e)*(n-e)+(a-t)*(a-t);return o<i*i&&o>r*r}},{key:"isInsideRect",value:function(e,t,r,i,n,a){return n>=e&&n<=e+r&&a>=t&&a<=t+i}},{key:"isInsideCircle",value:function(e,t,r,i,n){return(i-e)*(i-e)+(n-t)*(n-t)<r*r}},{key:"isInsideSector",value:function(e,t,r,i,n,a,o,s,l){return this.isInsideArcStroke(e,t,(r+i)/2,n,a,o,i-r,s,l)}},{key:"isInsidePolygon",value:function(e,t,r){for(var i=e.length,n=0,a=0,o=i-1;a<i;a++){var s=e[o][0],l=e[o][1],u=e[a][0],c=e[a][1];n+=this.windingLine(s,l,u,c,t,r),o=a}return 0!==n}},{key:"windingLine",value:function(e,t,r,i,n,a){return a>t&&a>i||a<t&&a<i?0:i==t?0:(a-t)/(i-t)*(r-e)+e>n?i<t?1:-1:0}},{key:"swapExtrema",value:function(){var e=this.extrema[0];this.extrema[0]=this.extrema[1],this.extrema[1]=e}},{key:"windingCubic",value:function(e,t,r,i,n,a,o,s,l,u){var c=this.curve,p=this.roots,h=this.extrema;if(u>t&&u>i&&u>a&&u>s||u<t&&u<i&&u<a&&u<s)return 0;var f=c.cubicRootAt(t,i,a,s,u,p);if(0===f)return 0;for(var d,y,v=0,m=-1,g=0;g<f;g++){var b=p[g];c.cubicAt(e,r,n,o,b)<l||(m<0&&(m=c.cubicExtrema(t,i,a,s,h),h[1]<h[0]&&m>1&&this.swapExtrema(),d=c.cubicAt(t,i,a,s,h[0]),m>1&&(y=c.cubicAt(t,i,a,s,h[1]))),2==m?b<h[0]?v+=d<t?1:-1:b<h[1]?v+=y<d?1:-1:v+=s<y?1:-1:b<h[0]?v+=d<t?1:-1:v+=s<d?1:-1)}return v}},{key:"windingQuadratic",value:function(e,t,r,i,n,a,o,s){var l=this.curve,u=this.roots;if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var c=l.quadraticRootAt(t,i,a,s,u);if(0===c)return 0;var p=l.quadraticExtremum(t,i,a);if(p>=0&&p<=1){for(var h=0,f=l.quadraticAt(t,i,a,p),d=0;d<c;d++){l.quadraticAt(e,r,n,u[d])>o||(u[d]<p?h+=f<t?1:-1:h+=a<f?1:-1)}return h}return l.quadraticAt(e,r,n,u[0])>o?0:a<t?1:-1}},{key:"windingArc",value:function(e,t,r,i,n,a,o,s){var l=this.roots,u=this.PI2;if((s-=t)>r||s<-r)return 0;var c=Math.sqrt(r*r-s*s);if(l[0]=-c,l[1]=c,Math.abs(i-n)>=u){i=0,n=u;var p=a?1:-1;return o>=l[0]+e&&o<=l[1]+e?p:0}if(a){var h=i;i=this.normalizeRadian(n),n=this.normalizeRadian(h)}else i=this.normalizeRadian(i),n=this.normalizeRadian(n);i>n&&(n+=u);for(var f=0,d=0;d<2;d++){var y=l[d];if(y+e>o){var v=Math.atan2(s,y),m=a?1:-1;v<0&&(v=u+v),(v>=i&&v<=n||v+u>=i&&v+u<=n)&&(v>Math.PI/2&&v<1.5*Math.PI&&(m=-m),f+=m)}}return f}},{key:"isInsidePath",value:function(e,t,r,i,n){for(var a=0,o=0,s=0,l=0,u=0,c=!0,p=!0,h="stroke"===(r=r||"fill")||"both"===r,f="fill"===r||"both"===r,d=0;d<e.length;d++){var y=e[d],v=y.points;if(c||"M"===y.command){if(d>0&&(f&&(a+=this.windingLine(o,s,l,u,i,n)),0!==a))return!0;l=v[v.length-2],u=v[v.length-1],c=!1,p&&"A"!==y.command&&(p=!1,o=l,s=u)}switch(y.command){case"M":o=v[0],s=v[1];break;case"L":if(h&&this.isInsideLine(o,s,v[0],v[1],t,i,n))return!0;f&&(a+=this.windingLine(o,s,v[0],v[1],i,n)),o=v[0],s=v[1];break;case"C":if(h&&this.isInsideCubicStroke(o,s,v[0],v[1],v[2],v[3],v[4],v[5],t,i,n))return!0;f&&(a+=this.windingCubic(o,s,v[0],v[1],v[2],v[3],v[4],v[5],i,n)),o=v[4],s=v[5];break;case"Q":if(h&&this.isInsideQuadraticStroke(o,s,v[0],v[1],v[2],v[3],t,i,n))return!0;f&&(a+=this.windingQuadratic(o,s,v[0],v[1],v[2],v[3],i,n)),o=v[2],s=v[3];break;case"A":var m=v[0],g=v[1],b=v[2],S=v[3],_=v[4],P=v[5],w=Math.cos(_)*b+m,O=Math.sin(_)*S+g;p?(p=!1,l=w,u=O):a+=this.windingLine(o,s,w,O);var T=(i-m)*S/b+m;if(h&&this.isInsideArcStroke(m,g,S,_,_+P,1-v[7],t,T,n))return!0;f&&(a+=this.windingArc(m,g,S,_,_+P,1-v[7],T,n)),o=Math.cos(_+P)*b+m,s=Math.sin(_+P)*S+g;break;case"z":if(h&&this.isInsideLine(o,s,l,u,t,i,n))return!0;c=!0}}return f&&(a+=this.windingLine(o,s,l,u,i,n)),0!==a}},{key:"getTextWidth",value:function(e,t){var r=e+":"+t;if(this._textWidthCache[r])return this._textWidthCache[r];this._ctx=this._ctx||this.util.getContext(),this._ctx.save(),t&&(this._ctx.font=t);for(var i=0,n=0,a=(e=(e+"").split("\n")).length;n<a;n++)i=Math.max(this._ctx.measureText(e[n]).width,i);return this._ctx.restore(),this._textWidthCache[r]=i,++this._textWidthCacheCounter>this.TEXT_CACHE_MAX&&(this._textWidthCacheCounter=0,this._textWidthCache={}),i}},{key:"getTextHeight",value:function(e,t){var r=e+":"+t;if(this._textHeightCache[r])return this._textHeightCache[r];this._ctx=this._ctx||this.util.getContext(),this._ctx.save(),t&&(this._ctx.font=t),e=(e+"").split("\n");var i=(this._ctx.measureText("ZH").width+2)*e.length;return this._ctx.restore(),this._textHeightCache[r]=i,++this._textHeightCacheCounter>this.TEXT_CACHE_MAX&&(this._textHeightCacheCounter=0,this._textHeightCache={}),i}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Image=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(26);
  639. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  640. * This program are made available under the terms of the Apache License, Version 2.0
  641. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  642. var o=t.Image=function(e){function t(e,r,i,n,a,o,s,l,u){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var c=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i,n,a,o,s,l,u));return c.x=e,c.y=r,c.image=i,c.width=n,c.height=a,c.sx=o,c.sy=s,c.sWidth=l,c.sHeight=u,c.CLASS_NAME="SuperMap.Feature.ShapeParameters.Image",c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.ShapeParameters),i(t,[{key:"destroy",value:function(){this.x=null,this.y=null,this.image=null,this.width=null,this.height=null,this.sx=null,this.sy=null,this.sWidth=null,this.sHeight=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();n.SuperMap.Feature=n.SuperMap.Feature||{},n.SuperMap.Feature.ShapeParameters.Image=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rectangle=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(26);
  643. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  644. * This program are made available under the terms of the Apache License, Version 2.0
  645. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  646. var o=t.Rectangle=function(e){function t(e,r,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i,n));return a.x=isNaN(e)?0:e,a.y=isNaN(e)?0:r,a.width=isNaN(i)?0:i,a.height=isNaN(n)?0:n,a.CLASS_NAME="SuperMap.Feature.ShapeParameters.Rectangle",a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.ShapeParameters),i(t,[{key:"destroy",value:function(){this.x=null,this.y=null,this.width=null,this.height=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();n.SuperMap.Feature=n.SuperMap.Feature||{},n.SuperMap.Feature.ShapeParameters.Rectangle=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnlineServiceBase=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(17);
  647. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  648. * This program are made available under the terms of the Apache License, Version 2.0
  649. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.OnlineServiceBase=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},a.Util.extend(this,t),this.serverType=o.ServerType.ONLINE,this.CLASS_NAME="SuperMap.OnlineServiceBase"}return i(e,[{key:"request",value:function(e,t,r,i){return t=this.createCredentialUrl(t),s.FetchRequest.commit(e,t,r,i).then(function(e){return e.json()})}},{key:"createCredentialUrl",value:function(e){var t=e,r=this.getCredential();if(r){var i="key="+r,n=t.substring(t.length-1,t.length);t.indexOf("?")>-1&&"?"===n?t+=i:t.indexOf("?")>-1&&"?"!==n?t+="&"+i:t+="?"+i}return t}},{key:"getCredential",value:function(){}}]),e}();n.SuperMap.OnlineServiceBase=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnlineData=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(214);
  650. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  651. * This program are made available under the terms of the Apache License, Version 2.0
  652. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  653. var s=t.OnlineData=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r=r||{},i.MD5=null,i.type=null,i.userName=null,i.fileName=null,i.size=null,i.serviceStatus=null,i.serviceId=null,i.id=null,i.lastModfiedTime=null,i.status=null,i.storageId=null,i.publishInfo=null,i.authorizeSetting=null,i.nickname=null,i.tags=[],i.description=null,i.dataItemServices=null,i.coordType=null,i.dataCheckResult=null,i.dataMetaInfo=null,i.thumbnail=null,a.Util.extend(i,r),i.id&&(i.serviceUrl=e+"/"+i.id),i.CLASS_NAME="SuperMap.OnlineData",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.OnlineServiceBase),i(t,[{key:"load",value:function(){if(this.serviceUrl){var e=this;return e.request("GET",this.serviceUrl).then(function(t){a.Util.extend(e,t)})}}},{key:"getPublishedServices",value:function(){return this.dataItemServices}},{key:"getAuthorizeSetting",value:function(){return this.authorizeSetting}}]),t}();n.SuperMap.OnlineData=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterField=t.DataItemOrderBy=t.DataItemType=t.ServiceStatus=void 0;var i=r(0),n=i.SuperMap.ServiceStatus={DOES_NOT_INVOLVE:"DOES_NOT_INVOLVE",PUBLISH_FAILED:"PUBLISH_FAILED",PUBLISHED:"PUBLISHED",PUBLISHING:"PUBLISHING",UNPUBLISHED:"UNPUBLISHED",UNPUBLISHED_FAILED:"UNPUBLISHED_FAILED"};
  654. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  655. * This program are made available under the terms of the Apache License, Version 2.0
  656. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  657. t.ServiceStatus=n;var a=i.SuperMap.DataItemType={AUDIO:"AUDIO",COLOR:"COLOR",COLORSCHEME:"COLORSCHEME",CSV:"CSV",EXCEL:"EXCEL",FILLSYMBOL:"FILLSYMBOL",IMAGE:"IMAGE",LAYERTEMPLATE:"LAYERTEMPLATE",LAYOUTTEMPLATE:"LAYOUTTEMPLATE",LINESYMBOL:"LINESYMBOL",MAPTEMPLATE:"MAPTEMPLATE",MARKERSYMBOL:"MARKERSYMBOL",MBTILES:"MBTILES",PHOTOS:"PHOTOS",SHP:"SHP",SMTILES:"SMTILES",SVTILES:"SVTILES",THEMETEMPLATE:"THEMETEMPLATE",TPK:"TPK",UDB:"UDB",UGCV5:"UGCV5",UNKNOWN:"UNKNOWN",VIDEO:"VIDEO",WORKENVIRONMENT:"WORKENVIRONMENT",WORKSPACE:"WORKSPACE"};t.DataItemType=a;var o=i.SuperMap.DataItemOrderBy={FILENAME:"FILENAME",ID:"ID",LASTMODIFIEDTIME:"LASTMODIFIEDTIME",NICKNAME:"NICKNAME",SERVICESTATUS:"SERVICESTATUS",SIZE:"SIZE",STATUS:"STATUS",TYPE:"TYPE",UPDATETIME:"UPDATETIME",USERNAME:"USERNAME"};t.DataItemOrderBy=o;var s=i.SuperMap.FilterField={LINKPAGE:"LINKPAGE",MAPTITLE:"MAPTITLE",NICKNAME:"NICKNAME",RESTITLE:"RESTITLE",USERNAME:"USERNAME"};t.FilterField=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VectorClipJobsParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(21),l=r(20);
  658. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  659. * This program are made available under the terms of the Apache License, Version 2.0
  660. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var u=t.VectorClipJobsParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.datasetName="",this.datasetVectorClip="",this.geometryClip="",this.mode=o.ClipAnalystMode.CLIP,this.output=null,this.mappingParameters=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.VectorClipJobsParameter"}return i(e,[{key:"destroy",value:function(){this.datasetName=null,this.datasetVectorClip=null,this.geometryClip=null,this.mode=null,this.output instanceof s.OutputSetting&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof l.MappingParameters&&(this.mappingParameters.destroy(),this.mappingParameters=null)}}],[{key:"toObject",value:function(e,t){for(var r in e)"datasetName"!==r?"output"!==r?(t.analyst=t.analyst||{},t.analyst[r]=e[r],"mappingParameters"===r&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r])):(t.output=t.output||{},t.output=e[r]):(t.input=t.input||{},t.input[r]=e[r])}}]),e}();n.SuperMap.VectorClipJobsParameter=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateTurnNodeWeightParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  661. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  662. * This program are made available under the terms of the Apache License, Version 2.0
  663. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.UpdateTurnNodeWeightParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.nodeId="",this.fromEdgeId="",this.toEdgeId="",this.weightField="",this.turnNodeWeight="",a.Util.extend(this,t),this.CLASS_NAME="SuperMap.UpdateTurnNodeWeightParameters")}return i(e,[{key:"destroy",value:function(){this.nodeId=null,this.fromEdgeId=null,this.toEdgeId=null,this.weightField=null,this.turnNodeWeight=null}}]),e}();n.SuperMap.UpdateTurnNodeWeightParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateEdgeWeightParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  664. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  665. * This program are made available under the terms of the Apache License, Version 2.0
  666. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.UpdateEdgeWeightParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.edgeId="",this.fromNodeId="",this.toNodeId="",this.weightField="",this.edgeWeight="",a.Util.extend(this,t),this.CLASS_NAME="SuperMap.UpdateEdgeWeightParameters")}return i(e,[{key:"destroy",value:function(){this.edgeId=null,this.fromNodeId=null,this.toNodeId=null,this.weightField=null,this.edgeWeight=null}}]),e}();n.SuperMap.UpdateEdgeWeightParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransferSolutionParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4);
  667. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  668. * This program are made available under the terms of the Apache License, Version 2.0
  669. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.TransferSolutionParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.solutionCount=6,this.transferPreference=o.TransferPreference.NONE,this.transferTactic=o.TransferTactic.LESS_TIME,this.walkingRatio=null,this.points=!1,this.evadeLines=null,this.evadeStops=null,this.priorLines=null,this.priorStops=null,this.travelTime=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.TransferSolutionParameters"}return i(e,[{key:"destroy",value:function(){a.Util.reset(this)}}],[{key:"toJson",value:function(e){if(e)return a.Util.toJSON(e)}}]),e}();n.SuperMap.TransferSolutionParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransferPathParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  670. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  671. * This program are made available under the terms of the Apache License, Version 2.0
  672. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(222);var o=t.TransferPathParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.transferLines=null,this.points=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.TransferPathParameters"}return i(e,[{key:"destroy",value:function(){a.Util.reset(this)}}],[{key:"toJson",value:function(e){if(e)return a.Util.toJSON(e)}}]),e}();n.SuperMap.TransferPathParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransferLine=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  673. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  674. * This program are made available under the terms of the Apache License, Version 2.0
  675. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.TransferLine=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.lineID=null,this.lineName=null,this.lineAliasName=null,this.startStopIndex=null,this.startStopName=null,this.startStopAliasName=null,this.endStopIndex=null,this.endStopName=null,this.endStopAliasName=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.TransferLine"}return i(e,[{key:"destroy",value:function(){a.Util.reset(this)}}],[{key:"fromJson",value:function(t){if(t)return new e({lineID:t.lineID,lineName:t.lineName,lineAliasName:t.lineAliasName,startStopIndex:t.startStopIndex,startStopName:t.startStopName,startStopAliasName:t.startStopAliasName,endStopIndex:t.endStopIndex,endStopName:t.endStopName,endStopAliasName:t.endStopAliasName})}}]),e}();n.SuperMap.TransferLine=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TopologyValidatorJobsParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(21),l=r(20);
  676. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  677. * This program are made available under the terms of the Apache License, Version 2.0
  678. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var u=t.TopologyValidatorJobsParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.datasetName="",this.datasetTopology="",this.tolerance="",this.rule=o.TopologyValidatorRule.REGIONNOOVERLAP,this.output=null,this.mappingParameters=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.TopologyValidatorJobsParameter")}return i(e,[{key:"destroy",value:function(){this.datasetName=null,this.datasetTopology=null,this.tolerance=null,this.rule=null,this.output instanceof s.OutputSetting&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof l.MappingParameters&&(this.mappingParameters.destroy(),this.mappingParameters=null)}}],[{key:"toObject",value:function(e,t){for(var r in e)"datasetName"!==r?"output"!==r?(t.analyst=t.analyst||{},t.analyst[r]=e[r],"mappingParameters"===r&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r])):(t.output=t.output||{},t.output=e[r]):(t.input=t.input||{},t.input[r]=e[r])}}]),e}();n.SuperMap.TopologyValidatorJobsParameter=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  679. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  680. * This program are made available under the terms of the Apache License, Version 2.0
  681. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(89),r(122),r(121),r(123),r(86),r(120),r(124),r(228),r(226),r(250),r(249),r(248);var o=t.ThemeParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.datasetNames=null,this.dataSourceNames=null,this.joinItems=null,this.themes=null,this.displayFilters=null,this.displayOrderBys=null,this.fieldValuesDisplayFilter=null,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeParameters"}return i(e,[{key:"destroy",value:function(){var e=this;if(e.datasetNames=null,e.dataSourceNames=null,e.joinItems){for(var t=0,r=e.joinItems,i=r.length;t<i;t++)r[t].destroy();e.joinItems=null}if(e.themes){for(var n=0,a=e.themes,o=a.length;n<o;n++)a[n].destroy();e.themes=null}}}]),e}();n.SuperMap.ThemeParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeGridUniqueItem=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(22);
  682. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  683. * This program are made available under the terms of the Apache License, Version 2.0
  684. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ThemeGridUniqueItem=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.caption=null,this.color=new o.ServerColor,this.unique=null,this.visible=!0,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeGridUniqueItem"}return i(e,[{key:"destroy",value:function(){var e=this;e.caption=null,e.unique=null,e.color&&(e.color.destroy(),e.color=null),e.visible=null}},{key:"toServerJSONObject",value:function(){var e={};return(e=a.Util.copyAttributes(e,this)).color&&e.color.toServerJSONObject&&(e.color=e.color.toServerJSONObject()),e}}],[{key:"fromObj",value:function(t){var r=new e;return a.Util.copy(r,t),r.color=o.ServerColor.fromJson(t.color),r}}]),e}();n.SuperMap.ThemeGridUniqueItem=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeGridUnique=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(28),s=r(22),l=r(225);
  685. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  686. * This program are made available under the terms of the Apache License, Version 2.0
  687. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  688. var u=t.ThemeGridUnique=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"GRIDUNIQUE",e));return r.defaultcolor=new s.ServerColor,r.items=null,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.ThemeGridUnique",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Theme),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;if(e.items){if(e.items.length>0)for(var r in e.items)e.items[r].destroy(),e.items[r]=null;e.items=null}e.defaultcolor&&(e.defaultcolor.destroy(),e.defaultcolor=null)}},{key:"toServerJSONObject",value:function(){var e={};if((e=a.Util.copyAttributes(e,this)).defaultcolor&&e.defaultcolor.toServerJSONObject&&(e.defaultcolor=e.defaultcolor.toServerJSONObject()),e.items){for(var t=[],r=e.items.length,i=0;i<r;i++)t.push(e.items[i].toServerJSONObject());e.items=t}return e}}],[{key:"fromObj",value:function(e){var r=new t,i=e.items,n=i?i.length:0;a.Util.extend(r,e),r.items=[],r.defaultcolor=s.ServerColor.fromJson(e.defaultcolor);for(var o=0;o<n;o++)r.items.push(l.ThemeGridUniqueItem.fromObj(i[o]));return r}}]),t}();n.SuperMap.ThemeGridUnique=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeGridRangeItem=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(22);
  689. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  690. * This program are made available under the terms of the Apache License, Version 2.0
  691. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ThemeGridRangeItem=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.caption=null,this.color=new o.ServerColor,this.end=0,this.start=0,this.visible=!0,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeGridRangeItem"}return i(e,[{key:"destroy",value:function(){var e=this;e.caption=null,e.end=null,e.start=null,e.color&&(e.color.destroy(),e.color=null),e.visible=null}},{key:"toServerJSONObject",value:function(){var e={};return(e=a.Util.copyAttributes(e,this)).color&&e.color.toServerJSONObject&&(e.color=e.color.toServerJSONObject()),e}}],[{key:"fromObj",value:function(t){if(t){var r=new e;return a.Util.copy(r,t),r.color=o.ServerColor.fromJson(t.color),r}}}]),e}();n.SuperMap.ThemeGridRangeItem=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeGridRange=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(28),s=r(227),l=r(4);
  692. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  693. * This program are made available under the terms of the Apache License, Version 2.0
  694. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  695. var u=t.ThemeGridRange=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,"GRIDRANGE",e));return r.items=null,r.rangeMode=l.RangeMode.EQUALINTERVAL,r.rangeParameter=0,r.colorGradientType=l.ColorGradientType.YELLOW_RED,r.reverseColor=!1,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.ThemeGridRange",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Theme),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;if(e.items){if(e.items.length>0)for(var r in e.items)e.items[r].destroy(),e.items[r]=null;e.items=null}e.reverseColor=null,e.rangeMode=null,e.rangeParameter=null,e.colorGradientType=null}}],[{key:"fromObj",value:function(e){if(e){var r=new t;a.Util.copy(r,e);var i=e.items,n=i?i.length:0;r.items=[];for(var o=0;o<n;o++)r.items.push(s.ThemeGridRangeItem.fromObj(i[o]));return r}}}]),t}();n.SuperMap.ThemeGridRange=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TerrainCurvatureCalculationParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  696. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  697. * This program are made available under the terms of the Apache License, Version 2.0
  698. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.TerrainCurvatureCalculationParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.dataset=null,this.zFactor=1,this.averageCurvatureName=null,this.profileCurvatureName="",this.planCurvatureName="",this.deleteExistResultDataset=!1,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.TerrainCurvatureCalculationParameters")}return i(e,[{key:"destroy",value:function(){var e=this;e.dataset=null,e.zFactor=1,e.averageCurvatureName=null,e.profileCurvatureName=null,e.planCurvatureName=null,e.deleteExistResultDataset=!0}}],[{key:"toObject",value:function(e,t){for(var r in e)"dataset"!==r&&(t[r]=e[r])}}]),e}();n.SuperMap.TerrainCurvatureCalculationParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SummaryRegionJobParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(21),l=r(20);
  699. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  700. * This program are made available under the terms of the Apache License, Version 2.0
  701. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var u=t.SummaryRegionJobParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.datasetName="",this.regionDataset="",this.sumShape=!0,this.query="",this.standardSummaryFields=!1,this.standardFields="",this.standardStatisticModes="",this.weightedSummaryFields=!1,this.weightedFields="",this.weightedStatisticModes="",this.meshType=0,this.resolution=100,this.meshSizeUnit=o.AnalystSizeUnit.METER,this.type=o.SummaryType.SUMMARYMESH,this.output=null,this.mappingParameters=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.SummaryRegionJobParameter")}return i(e,[{key:"destroy",value:function(){this.datasetName=null,this.sumShape=null,this.regionDataset=null,this.query=null,this.standardSummaryFields=null,this.standardFields=null,this.standardStatisticModes=null,this.weightedSummaryFields=null,this.weightedFields=null,this.weightedStatisticModes=null,this.meshType=null,this.resolution=null,this.meshSizeUnit=null,this.type=null,this.output instanceof s.OutputSetting&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof l.MappingParameters&&(this.mappingParameters.destroy(),this.mappingParameters=null)}}],[{key:"toObject",value:function(e,t){for(var r in e)"datasetName"!==r?"type"!==r&&"type"!==r?"output"!==r?("SUMMARYREGION"===e.type||"SUMMARYMESH"===e.type&&"regionDataset"!==r)&&(t.analyst=t.analyst||{},"query"===r&&e[r]?t.analyst[r]=e[r].toBBOX():t.analyst[r]=e[r],"mappingParameters"===r&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r])):(t.output=t.output||{},t.output=e[r]):t.type=e[r]:(t.input=t.input||{},t.input[r]=e[r])}}]),e}();n.SuperMap.SummaryRegionJobParameter=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SummaryMeshJobParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(21),l=r(20);
  702. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  703. * This program are made available under the terms of the Apache License, Version 2.0
  704. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var u=t.SummaryMeshJobParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.datasetName="",this.regionDataset="",this.query="",this.resolution=100,this.meshType=0,this.statisticModes=o.StatisticAnalystMode.AVERAGE,this.fields="",this.type=o.SummaryType.SUMMARYMESH,this.output=null,this.mappingParameters=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.SummaryMeshJobParameter")}return i(e,[{key:"destroy",value:function(){this.datasetName=null,this.query=null,this.resolution=null,this.statisticModes=null,this.meshType=null,this.fields=null,this.regionDataset=null,this.type=null,this.output instanceof s.OutputSetting&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof l.MappingParameters&&(this.mappingParameters.destroy(),this.mappingParameters=null)}}],[{key:"toObject",value:function(e,t){for(var r in e)"datasetName"!==r?"type"!==r?"output"!==r?("SUMMARYMESH"===e.type&&"regionDataset"!==r||"SUMMARYREGION"===e.type&&!i(["meshType","resolution","query"],r))&&(t.analyst=t.analyst||{},"query"===r&&e[r]?t.analyst[r]=e[r].toBBOX():t.analyst[r]=e[r],"mappingParameters"===r&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r])):(t.output=t.output||{},t.output=e[r]):t.type=e[r]:(t.input=t.input||{},t.input[r]=e[r]);function i(e,t){for(var r=e.length;r--;)if(e[r]===t)return!0;return!1}}}]),e}();n.SuperMap.SummaryMeshJobParameter=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SummaryAttributesJobsParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(21),s=r(20);
  705. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  706. * This program are made available under the terms of the Apache License, Version 2.0
  707. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.SummaryAttributesJobsParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.datasetName="",this.groupField="",this.attributeField="",this.statisticModes="",this.output=null,this.mappingParameters=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.SummaryAttributesJobsParameter")}return i(e,[{key:"destroy",value:function(){this.datasetName=null,this.groupField=null,this.attributeField=null,this.statisticModes=null,this.output instanceof o.OutputSetting&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof s.MappingParameters&&(this.mappingParameters.destroy(),this.mappingParameters=null)}}],[{key:"toObject",value:function(e,t){for(var r in e)"datasetName"!==r?"output"!==r?(t.analyst=t.analyst||{},t.analyst[r]=e[r],"mappingParameters"===r&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r])):(t.output=t.output||{},t.output=e[r]):(t.input=t.input||{},t.input[r]=e[r])}}]),e}();n.SuperMap.SummaryAttributesJobsParameter=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StopQueryParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  708. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  709. * This program are made available under the terms of the Apache License, Version 2.0
  710. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.StopQueryParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.keyWord=null,this.returnPosition=!1,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.StopQueryParameters"}return i(e,[{key:"destroy",value:function(){a.Util.reset(this)}}]),e}();n.SuperMap.StopQueryParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleObjectQueryJobsParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(21),l=r(20);
  711. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  712. * This program are made available under the terms of the Apache License, Version 2.0
  713. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var u=t.SingleObjectQueryJobsParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.datasetName="",this.datasetQuery="",this.geometryQuery="",this.mode=o.SpatialQueryMode.CONTAIN,this.output=null,this.mappingParameters=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.SingleObjectQueryJobsParameter")}return i(e,[{key:"destroy",value:function(){this.datasetName=null,this.datasetQuery=null,this.geometryQuery=null,this.mode=null,this.output instanceof s.OutputSetting&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof l.MappingParameters&&(this.mappingParameters.destroy(),this.mappingParameters=null)}}],[{key:"toObject",value:function(e,t){for(var r in e)"datasetName"!==r?"output"!==r?(t.analyst=t.analyst||{},t.analyst[r]=e[r],"mappingParameters"===r&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r])):(t.output=t.output||{},t.output=e[r]):(t.input=t.input||{},t.input[r]=e[r])}}]),e}();n.SuperMap.SingleObjectQueryJobsParameter=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetLayerStatusParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  714. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  715. * This program are made available under the terms of the Apache License, Version 2.0
  716. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(247);var o=t.SetLayerStatusParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.layerStatusList=[],this.holdTime=15,this.resourceID=null,t&&a.Util.extend(this,t)}return i(e,[{key:"destroy",value:function(){this.layerStatusList=null,this.holdTime=null,this.resourceID=null}},{key:"toJSON",value:function(){var e="{";e+='"layers":[';for(var t=[],r=0,i=this.layerStatusList.length;r<i;r++)t.push(this.layerStatusList[r].toJSON());return e+=t,e+="]",e+="}"}}]),e}();n.SuperMap.SetLayerStatusParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetLayersInfoParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  717. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  718. * This program are made available under the terms of the Apache License, Version 2.0
  719. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.SetLayersInfoParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.isTempLayers=null,this.resourceID=null,this.layersInfo=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.SetLayersInfoParameters"}return i(e,[{key:"destroy",value:function(){this.isTempLayers=null,this.resourceID=null,this.layersInfo=null}}]),e}();n.SuperMap.SetLayersInfoParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetLayerInfoParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  720. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  721. * This program are made available under the terms of the Apache License, Version 2.0
  722. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.SetLayerInfoParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.resourceID=null,this.tempLayerName=null,this.layerInfo=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.SetLayerInfoParameters"}return i(e,[{key:"destroy",value:function(){this.resourceID=null,this.tempLayerName=null,this.layerInfo=null}}]),e}();n.SuperMap.SetLayerInfoParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RouteLocatorParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(29);
  723. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  724. * This program are made available under the terms of the Apache License, Version 2.0
  725. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(91);var s=t.RouteLocatorParameters=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)return this;this.sourceRoute=null,this.dataset=null,this.routeIDField=null,this.routeID=null,this.type=null,this.measure=null,this.offset=0,this.isIgnoreGap=!1,this.startMeasure=null,this.endMeasure=null;var r=t.sourceRoute,i={};if(r&&r instanceof o.Geometry&&r.components){i.type=r.type,i.parts=r.parts;for(var n=[],s=0,l=r.components.length;s<l;s++)n=n.concat(r.components[s].components);i.points=n,t.sourceRoute=i}a.Util.extend(this,t),this.CLASS_NAME="SuperMap.RouteLocatorParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.sourceRoute=null,e.type=null,e.measure=null,e.offset=0,e.isIgnoreGap=!1,e.startMeasure=null,e.endMeasure=null,e.dataset=null,e.routeID=null,e.routeIDField=null}}]),e}();n.SuperMap.RouteLocatorParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RouteCalculateMeasureParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  726. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  727. * This program are made available under the terms of the Apache License, Version 2.0
  728. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(91);var o=t.RouteCalculateMeasureParameters=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),!t)return this;this.sourceRoute=null,this.point=null,this.tolerance=null,this.isIgnoreGap=!1,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.RouteCalculateMeasureParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.sourceRoute=null,e.point=null,e.tolerance&&(e.tolerance=null),e.isIgnoreGap&&(e.isIgnoreGap=!1)}}]),e}();n.SuperMap.RouteCalculateMeasureParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryBySQLService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(61),s=r(118);
  729. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  730. * This program are made available under the terms of the Apache License, Version 2.0
  731. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  732. var l=t.QueryBySQLService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.QueryBySQLService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.QueryService),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getJsonParameters",value:function(e){if(e instanceof s.QueryBySQLParameters){var t,r="";return t=this.getQueryParameters(e),r+="'queryMode':'SqlQuery','queryParameters':",r="{"+(r+=a.Util.toJSON(t))+"}"}}}]),t}();n.SuperMap.QueryBySQLService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryByGeometryParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(39),s=r(4);function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}
  733. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  734. * This program are made available under the terms of the Apache License, Version 2.0
  735. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  736. var u=t.QueryByGeometryParameters=function(e){function t(e){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!e)return l(r);var r=l(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.returnContent=!0,r.geometry=null,r.spatialQueryMode=s.SpatialQueryMode.INTERSECT,a.Util.extend(r,e),r.CLASS_NAME="SuperMap.QueryByGeometryParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.QueryParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.returnContent=null,this.geometry=null,this.spatialQueryMode=null}}]),t}();n.SuperMap.QueryByGeometryParameters=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryByDistanceParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(39);function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}
  737. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  738. * This program are made available under the terms of the Apache License, Version 2.0
  739. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  740. var l=t.QueryByDistanceParameters=function(e){function t(e){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!e)return s(r);var r=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.distance=0,r.geometry=null,r.isNearest=null,r.returnContent=!0,a.Util.extend(r,e),r.CLASS_NAME="SuperMap.QueryByDistanceParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.QueryParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;e.returnContent=null,e.distance=null,e.isNearest=null,e.geometry&&(e.geometry.destroy(),e.geometry=null)}}]),t}();n.SuperMap.QueryByDistanceParameters=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryByBoundsParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(39);function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}
  741. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  742. * This program are made available under the terms of the Apache License, Version 2.0
  743. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  744. var l=t.QueryByBoundsParameters=function(e){function t(e){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),!e)return s(r);var r=s(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.returnContent=!0,r.bounds=null,a.Util.extend(r,e),r.CLASS_NAME="SuperMap.QueryByBoundsParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.QueryParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.returnContent=null,this.bounds&&(this.bounds=null)}}]),t}();n.SuperMap.QueryByBoundsParameters=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlayGeoJobParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(21),s=r(20);
  745. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  746. * This program are made available under the terms of the Apache License, Version 2.0
  747. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.OverlayGeoJobParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.datasetName="",this.datasetOverlay="",this.mode="",this.srcFields="",this.overlayFields="",this.output=null,this.mappingParameters=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.OverlayGeoJobParameter")}return i(e,[{key:"destroy",value:function(){this.datasetName=null,this.datasetOverlay=null,this.mode=null,this.srcFields=null,this.overlayFields=null,this.output instanceof o.OutputSetting&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof s.MappingParameters&&(this.mappingParameters.destroy(),this.mappingParameters=null)}}],[{key:"toObject",value:function(e,t){for(var r in e)"datasetName"!=r?"output"!==r?(t.analyst=t.analyst||{},t.analyst[r]=e[r],"mappingParameters"===r&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r])):(t.output=t.output||{},t.output=e[r]):(t.input=t.input||{},t.input[r]=e[r])}}]),e}();n.SuperMap.OverlayGeoJobParameter=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MeasureParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4);
  748. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  749. * This program are made available under the terms of the Apache License, Version 2.0
  750. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.MeasureParameters=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.geometry=t,this.unit=o.Unit.METER,this.prjCoordSys=null,this.distanceMode=null,r&&a.Util.extend(this,r),this.CLASS_NAME="SuperMap.MeasureParameters")}return i(e,[{key:"destroy",value:function(){this.geometry=null,this.unit=null,this.prjCoordSys=null}}]),e}();n.SuperMap.MeasureParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathExpressionAnalysisParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  751. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  752. * This program are made available under the terms of the Apache License, Version 2.0
  753. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.MathExpressionAnalysisParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.dataset=null,this.extractRegion=null,this.expression=null,this.isZip=!1,this.ignoreNoValue=!1,this.targetDatasource=null,this.resultGridName=null,this.deleteExistResultDataset=!1,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.MathExpressionAnalysisParameters")}return i(e,[{key:"destroy",value:function(){var e=this;e.dataset=null,e.bounds=null,e.expression=null,e.isZip=!0,e.ignoreNoValue=!0,e.targetDatasource=null,e.resultGridName=null,e.deleteExistResultDataset=null}}],[{key:"toObject",value:function(e,t){for(var r in e)if("dataset"!==r&&(t[r]=e[r]),"extractRegion"===r&&e[r]){for(var i=e[r].components[0].components,n={},a=[],o=i.length,s=0;s<o-1;s++){var l={};l.x=i[s].x,l.y=i[s].y,a.push(l)}n.points=a,n.type="REGION",t[r]=n}}}]),e}();n.SuperMap.MathExpressionAnalysisParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LayerStatus=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  754. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  755. * This program are made available under the terms of the Apache License, Version 2.0
  756. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.LayerStatus=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.layerName=null,this.isVisible=null,this.displayFilter=null,this.fieldValuesDisplayFilter=null,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.LayerStatus"}return i(e,[{key:"destroy",value:function(){this.layerName=null,this.isVisible=null,this.displayFilter=null}},{key:"toJSON",value:function(){var e="{";e+='"type":"UGC",';var t=[];return this.layerName&&(t.push('"name":"'+this.layerName+'"'),t.push('"visible":'+this.isVisible)),this.displayFilter&&t.push('"displayFilter":"'+this.displayFilter+'"'),(this.minScale||0==this.minScale)&&t.push('"minScale":'+this.minScale),(this.maxScale||0==this.maxScale)&&t.push('"maxScale":'+this.maxScale),this.fieldValuesDisplayFilter&&t.push('"fieldValuesDisplayFilter":'+a.Util.toJSON(this.fieldValuesDisplayFilter)),e+=t,e+="}"}}]),e}();n.SuperMap.LayerStatus=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LabelThemeCell=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(86),s=r(83);
  757. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  758. * This program are made available under the terms of the Apache License, Version 2.0
  759. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  760. var l=t.LabelThemeCell=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.themeLabel=new o.ThemeLabel,r.type="THEME",e&&a.Util.extend(r,e),r.CLASS_NAME=" SuperMap.LabelThemeCell",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.LabelMatrixCell),i(t,[{key:"destroy",value:function(){this.themeLabel&&(this.themeLabel.destroy(),this.themeLabel=null)}}]),t}();n.SuperMap.LabelThemeCell=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LabelSymbolCell=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(14),s=r(83);
  761. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  762. * This program are made available under the terms of the Apache License, Version 2.0
  763. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  764. var l=t.LabelSymbolCell=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.style=new o.ServerStyle,r.symbolIDField=null,r.type="SYMBOL",e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.LabelSymbolCell",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.LabelMatrixCell),i(t,[{key:"destroy",value:function(){this.style&&(this.style.destroy(),this.style=null),this.symbolIDField=null}}]),t}();n.SuperMap.LabelSymbolCell=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LabelImageCell=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(83);
  765. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  766. * This program are made available under the terms of the Apache License, Version 2.0
  767. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  768. var s=t.LabelImageCell=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.height=0,r.pathField=null,r.rotation=0,r.width=0,r.sizeFixed=!1,r.type="IMAGE",e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.LabelImageCell",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.LabelMatrixCell),i(t,[{key:"destroy",value:function(){var e=this;e.height=null,e.pathField=null,e.rotation=null,e.width=null,e.sizeFixed=null}}]),t}();n.SuperMap.LabelImageCell=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KernelDensityJobParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(21),l=r(20);
  769. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  770. * This program are made available under the terms of the Apache License, Version 2.0
  771. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var u=t.KernelDensityJobParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.datasetName="",this.query="",this.resolution=80,this.method=0,this.meshType=0,this.fields="",this.radius=300,this.meshSizeUnit=o.AnalystSizeUnit.METER,this.radiusUnit=o.AnalystSizeUnit.METER,this.areaUnit=o.AnalystAreaUnit.SQUAREMILE,this.output=null,this.mappingParameters=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.KernelDensityJobParameter")}return i(e,[{key:"destroy",value:function(){this.datasetName=null,this.query=null,this.resolution=null,this.method=null,this.radius=null,this.meshType=null,this.fields=null,this.meshSizeUnit=null,this.radiusUnit=null,this.areaUnit=null,this.output instanceof s.OutputSetting&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof l.MappingParameters&&(this.mappingParameters.destroy(),this.mappingParameters=null)}}],[{key:"toObject",value:function(e,t){for(var r in e)"datasetName"!==r?"output"!==r?(t.analyst=t.analyst||{},"query"===r&&e[r]?t.analyst[r]=e[r].toBBOX():t.analyst[r]=e[r],"mappingParameters"===r&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r])):(t.output=t.output||{},t.output=e[r]):(t.input=t.input||{},t.input[r]=e[r])}}]),e}();n.SuperMap.KernelDensityJobParameter=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InterpolationKrigingAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4);r(87);var s=r(36);
  772. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  773. * This program are made available under the terms of the Apache License, Version 2.0
  774. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  775. var l=t.InterpolationKrigingAnalystParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type=null,r.mean=null,r.angle=0,r.nugget=0,r.range=0,r.sill=0,r.variogramMode=o.VariogramMode.SPHERICAL,r.exponent=o.Exponent.EXP1,r.searchMode=null,r.expectedCount=12,r.maxPointCountForInterpolation=200,r.maxPointCountInNode=50,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.InterpolationKrigingAnalystParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.InterpolationAnalystParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;e.type=null,e.mean=null,e.angle=null,e.nugget=null,e.range=null,e.sill=null,e.variogramMode=null,e.exponent=null,e.searchMode=null,e.expectedCount=null,e.maxPointCountForInterpolation=null,e.maxPointCountInNode=null}}]),t}();n.SuperMap.InterpolationKrigingAnalystParameters=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InterpolationIDWAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(36);
  776. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  777. * This program are made available under the terms of the Apache License, Version 2.0
  778. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  779. var s=t.InterpolationIDWAnalystParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.power=2,r.searchMode=null,r.expectedCount=12,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.InterpolationIDWAnalystParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.InterpolationAnalystParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.power=null,this.searchMode=null,this.expectedCount=null}}]),t}();n.SuperMap.InterpolationIDWAnalystParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InterpolationRBFAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(36);
  780. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  781. * This program are made available under the terms of the Apache License, Version 2.0
  782. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  783. var s=t.InterpolationRBFAnalystParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.smooth=.1,r.tension=40,r.searchMode=null,r.expectedCount=12,r.maxPointCountForInterpolation=200,r.maxPointCountInNode=50,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.InterpolationRBFAnalystParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.InterpolationAnalystParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;e.smooth=null,e.tension=null,e.searchMode=null,e.expectedCount=null,e.maxPointCountForInterpolation=null,e.maxPointCountInNode=null}}],[{key:"toObject",value:function(e,t){for(var r in e)t[r]=e[r]}}]),t}();n.SuperMap.InterpolationRBFAnalystParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Vector=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(1),s=r(62),l=r(14);
  784. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  785. * This program are made available under the terms of the Apache License, Version 2.0
  786. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  787. var u=t.Vector=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{};var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.style=null,r.CLASS_NAME="SuperMap.Vector",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.UGCSubLayer),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),o.Util.reset(this)}},{key:"fromJson",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"fromJson",this).call(this,e);var r=this.style;r&&(this.style=new l.ServerStyle(r))}},{key:"toServerJSONObject",value:function(){var e=a.SuperMap.toServerJSONObject();return e.style&&e.style.toServerJSONObject&&(e.style=e.style.toServerJSONObject()),e}}]),t}();a.SuperMap.Vector=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UGCImage=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(62),s=r(22),l=r(1);r(4);
  788. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  789. * This program are made available under the terms of the Apache License, Version 2.0
  790. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  791. var u=t.UGCImage=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{};var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.brightness=null,r.colorSpaceType=null,r.contrast=null,r.displayBandIndexes=null,r.transparent=null,r.transparentColor=null,r.transparentColorTolerance=null,r.CLASS_NAME="SuperMap.Image",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.UGCSubLayer),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),l.Util.reset(this)}},{key:"fromJson",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"fromJson",this).call(this,e),this.transparentColor&&(this.transparentColor=new s.ServerColor(this.transparentColor.red,this.transparentColor.green,this.transparentColor.blue))}},{key:"toServerJSONObject",value:function(){return n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toServerJSONObject",this).call(this)}}]),t}();a.SuperMap.Image=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Grid=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(1),s=r(62),l=r(22),u=r(14),c=r(305);r(4);
  792. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  793. * This program are made available under the terms of the Apache License, Version 2.0
  794. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  795. var p=t.Grid=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{};var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.colorDictionarys=null,r.brightness=null,r.colorGradientType=null,r.colors=null,r.contrast=null,r.dashStyle=null,r.gridType=null,r.horizontalSpacing=null,r.sizeFixed=null,r.solidStyle=null,r.specialColor=null,r.specialValue=null,r.specialValueTransparent=null,r.verticalSpacing=null,r.CLASS_NAME="SuperMap.Grid",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.UGCSubLayer),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),o.Util.reset(this)}},{key:"fromJson",value:function(e){if(n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"fromJson",this).call(this,e),this.specialColor&&(this.specialColor=new l.ServerColor(this.specialColor.red,this.specialColor.green,this.specialColor.blue)),this.colors){var r,i=[];for(var a in this.colors)r=this.colors[a],i.push(new l.ServerColor(r.red,r.green,r.blue));this.colors=i}if(this.dashStyle&&(this.dashStyle=new u.ServerStyle(this.dashStyle)),this.solidStyle&&(this.solidStyle=new u.ServerStyle(this.solidStyle)),this.colorDictionary){var o,s=[];for(var p in this.colorDictionary)o=this.colorDictionary[p],s.push(new c.ColorDictionary({elevation:p,color:o}));this.colorDictionarys=s}delete this.colorDictionary}},{key:"toServerJSONObject",value:function(){var e=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toServerJSONObject",this).call(this);return e.dashStyle&&e.dashStyle.toServerJSONObject&&(e.dashStyle=e.dashStyle.toServerJSONObject()),e.solidStyle&&e.solidStyle.toServerJSONObject&&(e.solidStyle=e.solidStyle.toServerJSONObject()),e}}]),t}();a.SuperMap.Grid=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlapDisplayedOptions=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(119);
  796. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  797. * This program are made available under the terms of the Apache License, Version 2.0
  798. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.OverlapDisplayedOptions=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.allowPointOverlap=!0,this.allowPointWithTextDisplay=!0,this.allowTextOverlap=!1,this.allowTextAndPointOverlap=!0,this.allowThemeGraduatedSymbolOverlap=!1,this.allowThemeGraphOverlap=!1,this.horizontalOverlappedSpaceSize=0,this.verticalOverlappedSpaceSize=0,a.Util.extend(this,t),this.ugcLayer=new o.UGCLayer(t),this.CLASS_NAME="SuperMap.OverlapDisplayedOptions"}return i(e,[{key:"destroy",value:function(){a.Util.reset(this)}},{key:"fromJson",value:function(e){this.ugcLayer.fromJson.apply(this,[e])}},{key:"toServerJSONObject",value:function(){return this.ugcLayer.toServerJSONObject.apply(this,arguments)}},{key:"toString",value:function(){var e=this.ugcLayer.toServerJSONObject.apply(this,arguments),t="{";for(var r in e)e.hasOwnProperty(r)&&(t+="'"+r+"':"+e[r]+",");return t=t.substr(0,t.length-1),t+="}"}}]),e}();n.SuperMap.OverlapDisplayedOptions=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UGCMapLayer=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(1),s=r(119);r(258);
  799. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  800. * This program are made available under the terms of the Apache License, Version 2.0
  801. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  802. var l=t.UGCMapLayer=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{};var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.completeLineSymbolDisplayed=null,r.maxScale=null,r.minScale=null,r.minVisibleGeometrySize=null,r.opaqueRate=null,r.symbolScalable=null,r.symbolScale=null,r.overlapDisplayed=null,r.overlapDisplayedOptions=null,r.CLASS_NAME="SuperMap.UGCMapLayer",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.UGCLayer),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),o.Util.reset(this)}},{key:"fromJson",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"fromJson",this).call(this,e)}},{key:"toServerJSONObject",value:function(){return n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toServerJSONObject",this).call(this)}}]),t}();a.SuperMap.UGCMapLayer=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeRangeItem=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(14);
  803. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  804. * This program are made available under the terms of the Apache License, Version 2.0
  805. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ThemeRangeItem=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.caption=null,this.end=0,this.start=0,this.style=new o.ServerStyle,this.visible=!0,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeRangeItem"}return i(e,[{key:"destroy",value:function(){var e=this;e.caption=null,e.end=null,e.start=null,e.style&&(e.style.destroy(),e.style=null),e.visible=null}},{key:"toServerJSONObject",value:function(){var e={};return(e=a.Util.copyAttributes(e,this)).style&&e.style.toServerJSONObject&&(e.style=e.style.toServerJSONObject()),e}}],[{key:"fromObj",value:function(t){if(t){var r=new e;return a.Util.copy(r,t),r.style=o.ServerStyle.fromJson(t.style),r}}}]),e}();n.SuperMap.ThemeRangeItem=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeGraduatedSymbolStyle=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(14),o=r(1);
  806. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  807. * This program are made available under the terms of the Apache License, Version 2.0
  808. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ThemeGraduatedSymbolStyle=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.negativeDisplayed=!1,this.negativeStyle=new a.ServerStyle,this.positiveStyle=new a.ServerStyle,this.zeroDisplayed=!1,this.zeroStyle=new a.ServerStyle,t&&o.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeGraduatedSymbolStyle"}return i(e,[{key:"destroy",value:function(){var e=this;e.negativeDisplayed=null,e.negativeStyle=null,e.positiveStyle=null,e.zeroDisplayed=null,e.zeroStyle=null}}],[{key:"fromObj",value:function(t){if(t){var r=new e;return o.Util.copy(r,t),r.negativeStyle=a.ServerStyle.fromJson(t.negativeStyle),r.positiveStyle=a.ServerStyle.fromJson(t.positiveStyle),r.zeroStyle=a.ServerStyle.fromJson(t.zeroStyle),r}}}]),e}();n.SuperMap.ThemeGraduatedSymbolStyle=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeGraphItem=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(14);
  809. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  810. * This program are made available under the terms of the Apache License, Version 2.0
  811. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ThemeGraphItem=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.caption=null,this.graphExpression=null,this.memoryDoubleValues=null,this.uniformStyle=new o.ServerStyle,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeGraphItem"}return i(e,[{key:"destroy",value:function(){this.caption=null,this.graphExpression=null,this.memoryDoubleValues=null,this.uniformStyle=null}}],[{key:"fromObj",value:function(t){if(t){var r=new e;return a.Util.copy(r,t),r.uniformStyle=o.ServerStyle.fromJson(t.uniformStyle),r}}}]),e}();n.SuperMap.ThemeGraphItem=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeGraphText=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(37),s=r(4);
  812. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  813. * This program are made available under the terms of the Apache License, Version 2.0
  814. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.ThemeGraphText=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.graphTextDisplayed=!1,this.graphTextFormat=s.ThemeGraphTextFormat.CAPTION,this.graphTextStyle=new o.ServerTextStyle,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeGraphText"}return i(e,[{key:"destroy",value:function(){var e=this;e.graphTextDisplayed=null,e.graphTextFormat=null,e.graphTextStyle&&(e.graphTextStyle.destroy(),e.graphTextStyle=null)}}],[{key:"fromObj",value:function(t){var r=new e;return a.Util.copy(r,t),r.graphTextStyle=o.ServerTextStyle.fromObj(t.graphTextStyle),r}}]),e}();n.SuperMap.ThemeGraphText=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeGraphSize=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  815. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  816. * This program are made available under the terms of the Apache License, Version 2.0
  817. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.ThemeGraphSize=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maxGraphSize=0,this.minGraphSize=0,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeGraphSize"}return i(e,[{key:"destroy",value:function(){this.maxGraphSize=null,this.minGraphSize=null}}],[{key:"fromObj",value:function(t){var r=new e;return a.Util.copy(r,t),r}}]),e}();n.SuperMap.ThemeGraphSize=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeGraphAxes=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(22),s=r(37);
  818. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  819. * This program are made available under the terms of the Apache License, Version 2.0
  820. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.ThemeGraphAxes=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.axesColor=new o.ServerColor(0,0,0),this.axesDisplayed=!1,this.axesGridDisplayed=!1,this.axesTextDisplayed=!1,this.axesTextStyle=new s.ServerTextStyle,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeGraphAxes"}return i(e,[{key:"destroy",value:function(){var e=this;e.axesColor&&(e.axesColor.destroy(),e.axesColor=null),e.axesDisplayed=null,e.axesGridDisplayed=null,e.axesTextDisplayed=null,e.axesTextStyle&&(e.axesTextStyle.destroy(),e.axesTextStyle=null)}}],[{key:"fromObj",value:function(t){if(t){var r=new e;return a.Util.copy(r,t),r.axesColor=o.ServerColor.fromJson(t.axesColor),r.axesTextStyle=s.ServerTextStyle.fromObj(t.axesTextStyle),r}}}]),e}();n.SuperMap.ThemeGraphAxes=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeLabelBackground=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(14),s=r(4);
  821. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  822. * This program are made available under the terms of the Apache License, Version 2.0
  823. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.ThemeLabelBackground=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.labelBackShape=s.LabelBackShape.NONE,this.backStyle=new o.ServerStyle,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeLabelBackground"}return i(e,[{key:"destroy",value:function(){this.labelBackShape=null,this.backStyle&&(this.backStyle.destroy(),this.backStyle=null)}}],[{key:"fromObj",value:function(t){if(t){var r=new e;return r.labelBackShape=t.labelBackShape,r.backStyle=o.ServerStyle.fromJson(t.backStyle),r}}}]),e}();n.SuperMap.ThemeLabelBackground=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeLabelAlongLine=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4);
  824. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  825. * This program are made available under the terms of the Apache License, Version 2.0
  826. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ThemeLabelAlongLine=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isAlongLine=!0,this.alongLineDirection=o.AlongLineDirection.LB_TO_RT,this.angleFixed=!1,this.repeatedLabelAvoided=!1,this.repeatIntervalFixed=!1,this.labelRepeatInterval=0,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeLabelAlongLine"}return i(e,[{key:"destroy",value:function(){var e=this;e.isAlongLine=null,e.alongLineDirection=null,e.angleFixed=null,e.repeatedLabelAvoided=null,e.repeatIntervalFixed=null,e.labelRepeatInterval=null}}],[{key:"fromObj",value:function(t){if(t){var r=new e;return a.Util.copy(r,t),r}}}]),e}();n.SuperMap.ThemeLabelAlongLine=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LabelMixedTextStyle=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(37);
  827. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  828. * This program are made available under the terms of the Apache License, Version 2.0
  829. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.LabelMixedTextStyle=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.defaultStyle=null,this.separator=null,this.separatorEnabled=!1,this.splitIndexes=null,this.styles=new o.ServerTextStyle,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.LabelMixedTextStyle"}return i(e,[{key:"destroy",value:function(){var e=this;if(e.defaultStyle&&(e.defaultStyle.destroy(),e.defaultStyle=null),e.separator=null,e.separatorEnabled=null,e.splitIndexes&&(e.splitIndexes=null),e.styles){for(var t=0,r=e.styles,i=r.length;t<i;t++)r[t].destroy();e.styles=null}}}],[{key:"fromObj",value:function(t){if(t){var r=new e,i=t.styles;if(a.Util.copy(r,t),r.defaultStyle=new o.ServerTextStyle(t.defaultStyle),i){r.styles=[];for(var n=0,s=i.length;n<s;n++)r.styles.push(new o.ServerTextStyle(i[n]))}return r}}}]),e}();n.SuperMap.LabelMixedTextStyle=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeLabelText=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(37),s=r(268);
  830. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  831. * This program are made available under the terms of the Apache License, Version 2.0
  832. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.ThemeLabelText=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maxTextHeight=0,this.maxTextWidth=0,this.minTextHeight=0,this.minTextWidth=0,this.uniformStyle=new o.ServerTextStyle,this.uniformMixedStyle=null,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeLabelText"}return i(e,[{key:"destroy",value:function(){var e=this;e.maxTextHeight=null,e.maxTextWidth=null,e.minTextHeight=null,e.minTextWidth=null,e.uniformStyle&&(e.uniformStyle.destroy(),e.uniformStyle=null),e.uniformMixedStyle&&(e.uniformMixedStyle.destroy(),e.uniformMixedStyle=null)}}],[{key:"fromObj",value:function(t){if(t){var r=new e;return a.Util.copy(r,t),r.uniformStyle=o.ServerTextStyle.fromObj(t.uniformStyle),r.uniformMixedStyle=s.LabelMixedTextStyle.fromObj(t.uniformMixedStyle),r}}}]),e}();n.SuperMap.ThemeLabelText=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeLabelItem=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(37);
  833. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  834. * This program are made available under the terms of the Apache License, Version 2.0
  835. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ThemeLabelItem=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.caption=null,this.end=0,this.start=0,this.visible=!0,this.style=new o.ServerTextStyle,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeLabelItem"}return i(e,[{key:"destroy",value:function(){var e=this;e.caption=null,e.end=null,e.start=null,e.style&&(e.style.destroy(),e.style=null),e.visible=null}}],[{key:"fromObj",value:function(t){if(t){var r=new e;return a.Util.copy(r,t),r}}}]),e}();n.SuperMap.ThemeLabelItem=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeMemoryData=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0);
  836. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  837. * This program are made available under the terms of the Apache License, Version 2.0
  838. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var a=t.ThemeMemoryData=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.srcData=t,this.targetData=r,this.CLASS_NAME="SuperMap.ThemeMemoryData"}return i(e,[{key:"destroy",value:function(){this.srcData=null,this.targetData=null}},{key:"toJSON",value:function(){if(this.srcData&&this.targetData){for(var e="",t=Math.min(this.srcData.length,this.targetData.length),r=0;r<t;r++)e+="'"+this.srcData[r]+"':'"+this.targetData[r]+"',";return r>0&&(e=e.substring(0,e.length-1)),"{"+e+"}"}return null}}]),e}();n.SuperMap.ThemeMemoryData=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerTheme=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(1),s=r(50),l=r(86),u=r(124),c=r(123),p=r(122),h=r(121),f=r(120),d=r(62);
  839. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  840. * This program are made available under the terms of the Apache License, Version 2.0
  841. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  842. var y=t.ServerTheme=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{};var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.theme=null,r.themeElementPosition=null,r.CLASS_NAME="SuperMap.ServerTheme",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,d.UGCSubLayer),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),o.Util.reset(this)}},{key:"fromJson",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"fromJson",this).call(this,e);var r=this.theme;switch(r&&r.type){case"LABEL":this.theme=l.ThemeLabel.fromObj(r);break;case"UNIQUE":this.theme=u.ThemeUnique.fromObj(r);break;case"GRAPH":this.theme=c.ThemeGraph.fromObj(r);break;case"DOTDENSITY":this.theme=p.ThemeDotDensity.fromObj(r);break;case"GRADUATEDSYMBOL":this.theme=h.ThemeGraduatedSymbol.fromObj(r);break;case"RANGE":this.theme=f.ThemeRange.fromObj(r)}this.themeElementPosition&&(this.themeElementPosition=new s.LonLat(this.themeElementPosition.x,this.themeElementPosition.y))}},{key:"toServerJSONObject",value:function(){var e=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"toServerJSONObject",this).call(this);return e.themeElementPosition&&e.themeElementPosition.toServerJSONObject&&(e.themeElementPosition=e.themeElementPosition.toServerJSONObject()),e.theme&&e.theme.toServerJSONObject&&(e.theme=e.theme.toServerJSONObject()),e}}]),t}();a.SuperMap.ServerTheme=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetGridCellInfosParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  843. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  844. * This program are made available under the terms of the Apache License, Version 2.0
  845. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.GetGridCellInfosParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.datasetName=null,this.dataSourceName=null,this.X=null,this.Y=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.GetGridCellInfosParameters"}return i(e,[{key:"destroy",value:function(){this.datasetName=null,this.dataSourceName=null,this.X=null,this.Y=null}}]),e}();n.SuperMap.GetGridCellInfosParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetFeaturesBySQLService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(45),o=r(126);
  846. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  847. * This program are made available under the terms of the Apache License, Version 2.0
  848. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  849. var s=t.GetFeaturesBySQLService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.GetFeaturesBySQLService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.GetFeaturesServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getJsonParameters",value:function(e){return o.GetFeaturesBySQLParameters.toJsonParameters(e)}}]),t}();n.SuperMap.GetFeaturesBySQLService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetFeaturesByIDsParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(16),s=r(46);
  850. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  851. * This program are made available under the terms of the Apache License, Version 2.0
  852. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  853. var l=t.GetFeaturesByIDsParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.getFeatureMode="ID",r.IDs=null,r.fields=null,a.Util.extend(r,e),r.CLASS_NAME="SuperMap.GetFeaturesByIDsParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.GetFeaturesParametersBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;if(e.IDs=null,e.getFeatureMode=null,e.fields){for(;e.fields.length>0;)e.fields.pop();e.fields=null}}}],[{key:"toJsonParameters",value:function(e){var t,r;return t={datasetNames:e.datasetNames,getFeatureMode:"ID",ids:e.IDs},e.fields&&((r=new o.FilterParameter).name=e.datasetNames,r.fields=e.fields,t.queryParameter=r),a.Util.toJSON(t)}}]),t}();n.SuperMap.GetFeaturesByIDsParameters=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetFeaturesByGeometryParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(16),l=r(46),u=r(9);
  854. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  855. * This program are made available under the terms of the Apache License, Version 2.0
  856. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  857. var c=t.GetFeaturesByGeometryParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.getFeatureMode="SPATIAL",r.geometry=null,r.fields=null,r.attributeFilter=null,r.spatialQueryMode=o.SpatialQueryMode.CONTAIN,a.Util.extend(r,e),r.CLASS_NAME="SuperMap.GetFeaturesByGeometryParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.GetFeaturesParametersBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;if(e.geometry&&(e.geometry.destroy(),e.geometry=null),e.fields){for(;e.fields.length>0;)e.fields.pop();e.fields=null}e.attributeFilter=null,e.spatialQueryMode=null,e.getFeatureMode=null}}],[{key:"toJsonParameters",value:function(e){var t,r,i;return r=u.ServerGeometry.fromGeometry(e.geometry),i={datasetNames:e.datasetNames,getFeatureMode:"SPATIAL",geometry:r,spatialQueryMode:e.spatialQueryMode},e.fields&&((t=new s.FilterParameter).name=e.datasetNames,t.fields=e.fields,i.queryParameter=t),e.attributeFilter&&(i.attributeFilter=e.attributeFilter,i.getFeatureMode="SPATIAL_ATTRIBUTEFILTER"),e.maxFeatures&&!isNaN(e.maxFeatures)&&(i.maxFeatures=e.maxFeatures),a.Util.toJSON(i)}}]),t}();n.SuperMap.GetFeaturesByGeometryParameters=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetFeaturesByBufferParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(46),s=r(16),l=r(9);
  858. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  859. * This program are made available under the terms of the Apache License, Version 2.0
  860. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  861. var u=t.GetFeaturesByBufferParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.bufferDistance=null,r.attributeFilter=null,r.geometry=null,r.fields=null,a.Util.extend(r,e),r.CLASS_NAME="SuperMap.GetFeaturesByBufferParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.GetFeaturesParametersBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;if(e.bufferDistance=null,e.attributeFilter=null,e.fields){for(;e.fields.length>0;)e.fields.pop();e.fields=null}e.geometry&&(e.geometry.destroy(),e.geometry=null)}}],[{key:"toJsonParameters",value:function(e){var t,r,i;return i=l.ServerGeometry.fromGeometry(e.geometry),r={datasetNames:e.datasetNames,getFeatureMode:"BUFFER",bufferDistance:e.bufferDistance,geometry:i},e.fields&&((t=new s.FilterParameter).name=e.datasetNames,t.fields=e.fields,r.queryParameter=t),e.attributeFilter&&(r.attributeFilter=e.attributeFilter,r.getFeatureMode="BUFFER_ATTRIBUTEFILTER"),e.maxFeatures&&!isNaN(e.maxFeatures)&&(r.maxFeatures=e.maxFeatures),a.Util.toJSON(r)}}]),t}();n.SuperMap.GetFeaturesByBufferParameters=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetFeaturesByBoundsParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(16),l=r(46);
  862. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  863. * This program are made available under the terms of the Apache License, Version 2.0
  864. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  865. var u=t.GetFeaturesByBoundsParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.getFeatureMode=t.getFeatureMode.BOUNDS,r.bounds=null,r.fields=null,r.attributeFilter=null,r.spatialQueryMode=o.SpatialQueryMode.CONTAIN,a.Util.extend(r,e),r.CLASS_NAME="SuperMap.GetFeaturesByBoundsParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.GetFeaturesParametersBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;if(e.bounds&&(e.bounds.destroy(),e.bounds=null),e.fields){for(;e.fields.length>0;)e.fields.pop();e.fields=null}e.attributeFilter=null,e.spatialQueryMode=null,e.getFeatureMode=null}}],[{key:"toJsonParameters",value:function(e){var r,i,n;return i={leftBottom:{x:e.bounds.left,y:e.bounds.bottom},rightTop:{x:e.bounds.right,y:e.bounds.top}},n={datasetNames:e.datasetNames,getFeatureMode:t.getFeatureMode.BOUNDS,bounds:i,spatialQueryMode:e.spatialQueryMode},e.fields&&((r=new s.FilterParameter).name=e.datasetNames,r.fields=e.fields,n.queryParameter=r),e.attributeFilter&&(n.attributeFilter=e.attributeFilter,n.getFeatureMode=t.getFeatureMode.BOUNDS_ATTRIBUTEFILTER),e.maxFeatures&&!isNaN(e.maxFeatures)&&(n.maxFeatures=e.maxFeatures),a.Util.toJSON(n)}}]),t}();u.getFeatureMode={BOUNDS:"BOUNDS",BOUNDS_ATTRIBUTEFILTER:"BOUNDS_ATTRIBUTEFILTER"},n.SuperMap.GetFeaturesByBoundsParameters=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeoRelationAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  866. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  867. * This program are made available under the terms of the Apache License, Version 2.0
  868. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(4),r(16);var o=t.GeoRelationAnalystParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dataset=null,this.sourceFilter=null,this.referenceFilter=null,this.spatialRelationType=null,this.isBorderInside=null,this.returnFeature=null,this.returnGeoRelatedOnly=null,this.startRecord=0,this.expectCount=500,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.GeoRelationAnalystParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.sourceFilter&&e.sourceFilter.destroy(),e.sourceFilter=null,e.referenceFilter&&e.referenceFilter.destroy(),e.referenceFilter=null,e.dataset=null,e.spatialRelationType=null,e.isBorderInside=null,e.returnFeature=null,e.returnGeoRelatedOnly=null,e.startRecord=null,e.expectCount=null}}]),e}();n.SuperMap.GeoRelationAnalystParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeometrySurfaceAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(88);
  869. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  870. * This program are made available under the terms of the Apache License, Version 2.0
  871. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  872. var s=t.GeometrySurfaceAnalystParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.points=null,r.zValues=null,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.GeometrySurfaceAnalystParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.SurfaceAnalystParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);if(this.points){for(var e=0,r=this.points,i=r.length;e<i;e++)r[e].destroy();this.points=null}this.zValues=null}}]),t}();n.SuperMap.GeometrySurfaceAnalystParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenerateSpatialDataParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  873. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  874. * This program are made available under the terms of the Apache License, Version 2.0
  875. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(63);var o=t.GenerateSpatialDataParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.routeTable=null,this.routeIDField=null,this.attributeFilter=null,this.eventTable=null,this.eventRouteIDField=null,this.measureField=null,this.measureStartField=null,this.measureEndField=null,this.measureOffsetField=null,this.errorInfoField=null,this.retainedFields=null,this.dataReturnOption=null,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.GenerateSpatialDataParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.routeTable&&(e.routeTable=null),e.routeIDField=null,e.attributeFilter=null,e.eventTable=null,e.eventRouteIDField=null,e.measureField=null,e.measureStartField=null,e.measureEndField=null,e.measureOffsetField=null,e.errorInfoField=null,e.dataReturnOption&&(e.dataReturnOption.destroy(),e.dataReturnOption=null)}}]),e}();n.SuperMap.GenerateSpatialDataParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindTSPPathsParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(38);
  876. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  877. * This program are made available under the terms of the Apache License, Version 2.0
  878. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.FindTSPPathsParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.endNodeAssigned=!1,this.isAnalyzeById=!1,this.nodes=null,this.parameter=new o.TransportationAnalystParameter,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.FindTSPPathsParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.endNodeAssigned=null,e.isAnalyzeById=null,e.nodes=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}]),e}();n.SuperMap.FindTSPPathsParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindServiceAreasParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(38);
  879. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  880. * This program are made available under the terms of the Apache License, Version 2.0
  881. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.FindServiceAreasParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isAnalyzeById=!1,this.isCenterMutuallyExclusive=!1,this.centers=null,this.isFromCenter=!1,this.weights=null,this.parameter=new o.TransportationAnalystParameter,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.FindServiceAreasParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.isAnalyzeById=null,e.isCenterMutuallyExclusive=null,e.centers=null,e.isFromCenter=null,e.weights=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}]),e}();n.SuperMap.FindServiceAreasParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindPathParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(38);
  882. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  883. * This program are made available under the terms of the Apache License, Version 2.0
  884. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.FindPathParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isAnalyzeById=!1,this.hasLeastEdgeCount=null,this.nodes=null,this.parameter=new o.TransportationAnalystParameter,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.FindPathParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.isAnalyzeById=null,e.hasLeastEdgeCount=null,e.nodes=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}]),e}();n.SuperMap.FindPathParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindMTSPPathsParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(38);
  885. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  886. * This program are made available under the terms of the Apache License, Version 2.0
  887. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.FindMTSPPathsParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.centers=null,this.hasLeastTotalCost=!1,this.isAnalyzeById=!1,this.nodes=null,this.parameter=new o.TransportationAnalystParameter,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.FindMTSPPathsParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.centers=null,e.hasLeastTotalCost=null,e.isAnalyzeById=null,e.nodes=null,e.maxWeight=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}]),e}();n.SuperMap.FindMTSPPathsParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindLocationParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  888. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  889. * This program are made available under the terms of the Apache License, Version 2.0
  890. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.FindLocationParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.expectedSupplyCenterCount=null,this.isFromCenter=!1,this.supplyCenters=null,this.turnWeightField=null,this.weightName=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.FindLocationParameters"}return i(e,[{key:"destroy",value:function(){var e=this;if(e.expectedSupplyCenterCount=null,e.isFromCenter=null,e.turnWeightField=null,e.weightName=null,e.supplyCenters){for(var t=0,r=e.supplyCenters,i=r.length;t<i;t++)r[t].destroy();e.supplyCenters=null}}}]),e}();n.SuperMap.FindLocationParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindClosestFacilitiesParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(38);
  891. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  892. * This program are made available under the terms of the Apache License, Version 2.0
  893. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.FindClosestFacilitiesParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.event=null,this.expectFacilityCount=1,this.facilities=null,this.fromEvent=!1,this.isAnalyzeById=!1,this.maxWeight=0,this.parameter=new o.TransportationAnalystParameter,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.FindClosestFacilitiesParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.event=null,e.expectFacilityCount=null,e.facilities=null,e.fromEvent=null,e.isAnalyzeById=null,e.maxWeight=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}]),e}();n.SuperMap.FindClosestFacilitiesParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldStatisticsParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(289);
  894. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  895. * This program are made available under the terms of the Apache License, Version 2.0
  896. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  897. var s=t.FieldStatisticsParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.fieldName=null,r.statisticMode=null,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.FieldStatisticsParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.FieldParameters),i(t,[{key:"destroy",value:function(){this.fieldName=null,this.statisticMode=null}}]),t}();n.SuperMap.FieldStatisticsParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  898. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  899. * This program are made available under the terms of the Apache License, Version 2.0
  900. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.FieldParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.datasource=null,this.dataset=null,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.FieldParameters"}return i(e,[{key:"destroy",value:function(){this.datasource=null,this.dataset=null}}]),e}();n.SuperMap.FieldParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FacilityAnalystUpstream3DParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(47);
  901. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  902. * This program are made available under the terms of the Apache License, Version 2.0
  903. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  904. var s=t.FacilityAnalystUpstream3DParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e=e||{},r.sourceNodeIDs=null,a.Util.extend(r,e),r.CLASS_NAME="SuperMap.FacilityAnalystUpstream3DParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.FacilityAnalyst3DParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.sourceNodeIDs=null}}]),t}();n.SuperMap.FacilityAnalystUpstream3DParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FacilityAnalystTraceup3DParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(47);
  905. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  906. * This program are made available under the terms of the Apache License, Version 2.0
  907. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  908. var o=t.FacilityAnalystTraceup3DParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.CLASS_NAME="SuperMap.FacilityAnalystTraceup3DParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.FacilityAnalyst3DParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();n.SuperMap.FacilityAnalystTraceup3DParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FacilityAnalystTracedown3DParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(47);
  909. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  910. * This program are made available under the terms of the Apache License, Version 2.0
  911. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  912. var o=t.FacilityAnalystTracedown3DParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.CLASS_NAME="SuperMap.FacilityAnalystTracedown3DParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.FacilityAnalyst3DParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();n.SuperMap.FacilityAnalystTracedown3DParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FacilityAnalystStreamParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  913. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  914. * This program are made available under the terms of the Apache License, Version 2.0
  915. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.FacilityAnalystStreamParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.sourceNodeIDs=null,this.edgeID=null,this.nodeID=null,this.isUncertainDirectionValid=!1,this.queryType=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.FacilityAnalystStreamParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.edgeID=null,e.nodeID=null,e.weightName=null,e.isUncertainDirectionValid=null,e.type=null}}]),e}();n.SuperMap.FacilityAnalystStreamParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FacilityAnalystSources3DParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(47);
  916. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  917. * This program are made available under the terms of the Apache License, Version 2.0
  918. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  919. var o=t.FacilityAnalystSources3DParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.CLASS_NAME="SuperMap.FacilityAnalystSources3DParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.FacilityAnalyst3DParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();n.SuperMap.FacilityAnalystSources3DParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FacilityAnalystSinks3DParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(47);
  920. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  921. * This program are made available under the terms of the Apache License, Version 2.0
  922. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  923. var o=t.FacilityAnalystSinks3DParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.CLASS_NAME="SuperMap.FacilityAnalystSinks3DParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.FacilityAnalyst3DParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();n.SuperMap.FacilityAnalystSinks3DParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditFeaturesParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(9);
  924. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  925. * This program are made available under the terms of the Apache License, Version 2.0
  926. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.EditFeaturesParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dataSourceName=null,this.dataSetName=null,this.features=null,this.editType=o.EditType.ADD,this.IDs=null,this.returnContent=!1,this.isUseBatch=!1,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.EditFeaturesParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.dataSourceName=null,e.dataSetName=null,e.features=null,e.editType=null,e.IDs=null,e.returnContent=null}}],[{key:"toJsonParameters",value:function(e){var t,r,i;if(e.editType===o.EditType.DELETE){if(null===e.IDs)return;i={ids:e.IDs}}else if(i=[],e.features){r=e.features.length;for(var n=0;n<r;n++)(t=e.features[n]).geometry=s.ServerGeometry.fromGeometry(t.geometry),i.push(t)}return a.Util.toJSON(i)}}]),e}();n.SuperMap.EditFeaturesParameters=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DensityKernelAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  927. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  928. * This program are made available under the terms of the Apache License, Version 2.0
  929. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.DensityKernelAnalystParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dataset=null,this.bounds=null,this.fieldName=null,this.resultGridDatasetResolution=null,this.searchRadius=null,this.targetDatasource=null,this.resultGridName=null,this.deleteExistResultDataset=!1,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.DensityKernelAnalystParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.dataset=null,e.bounds=null,e.fieldName=null,e.resultGridDatasetResolution=null,e.searchRadius=null,e.targetDatasource=null,e.resultGridName=null,e.deleteExistResultDataset=null}}],[{key:"toObject",value:function(e,t){for(var r in e)"dataset"!==r&&(t[r]=e[r])}}]),e}();n.SuperMap.DensityKernelAnalystParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetThiessenAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(87),s=r(9);
  930. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  931. * This program are made available under the terms of the Apache License, Version 2.0
  932. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  933. var l=t.DatasetThiessenAnalystParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.filterQueryParameter=null,r.dataset=null,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.DatasetThiessenAnalystParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.ThiessenAnalystParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.filterQueryParameter&&(this.filterQueryParameter.destroy(),this.filterQueryParameter=null)}}],[{key:"toObject",value:function(e,t){for(var r in e)"clipRegion"===r?t.clipRegion=s.ServerGeometry.fromGeometry(e.clipRegion):t[r]=e[r]}}]),t}();n.SuperMap.DatasetThiessenAnalystParameters=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SurfaceAnalystParametersSetting=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(4),o=r(1),s=r(9),l=r(29);
  934. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  935. * This program are made available under the terms of the Apache License, Version 2.0
  936. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var u=t.SurfaceAnalystParametersSetting=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clipRegion=null,this.datumValue=0,this.expectedZValues=null,this.interval=0,this.resampleTolerance=0,this.smoothMethod=a.SmoothMethod.BSPLINE,this.smoothness=0,t&&o.Util.extend(this,t),this.CLASS_NAME="SuperMap.SurfaceAnalystParametersSetting"}return i(e,[{key:"destroy",value:function(){var e=this;e.clipRegion&&(e.clipRegion.destroy(),e.clipRegion=null),e.datumValue=null,e.expectedZValues=null,e.interval=null,e.resampleTolerance=null,e.smoothMethod=null,e.smoothness=null}},{key:"toJSON",value:function(){var e="'datumValue':"+o.Util.toJSON(this.datumValue);if(e+=",'interval':"+o.Util.toJSON(this.interval),e+=",'resampleTolerance':"+o.Util.toJSON(this.resampleTolerance),e+=",'smoothMethod':"+o.Util.toJSON(this.smoothMethod),e+=",'smoothness':"+o.Util.toJSON(this.smoothness),null!=this.expectedZValues&&(e+=",'expectedZValues':"+o.Util.toJSON(this.expectedZValues)),null!=this.clipRegion){var t=this.clipRegion;this.clipRegion instanceof l.Geometry&&this.clipRegion.components&&(t=s.ServerGeometry.fromGeometry(this.clipRegion)),e+=",'clipRegion':"+o.Util.toJSON(t)}return"{"+e+"}"}}]),e}();n.SuperMap.SurfaceAnalystParametersSetting=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetSurfaceAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(16),s=r(88),l=r(9),u=r(29);
  937. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  938. * This program are made available under the terms of the Apache License, Version 2.0
  939. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  940. var c=t.DatasetSurfaceAnalystParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.dataset=null,r.filterQueryParameter=new o.FilterParameter,r.zValueFieldName=null,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.DatasetSurfaceAnalystParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.SurfaceAnalystParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;e.dataset=null,e.filterQueryParameter&&(e.filterQueryParameter.destroy(),e.filterQueryParameter=null),e.zValueFieldName=null}}],[{key:"toObject",value:function(e,t){for(var r in e)if("filterQueryParameter"===r&&(t.filterQueryParameter=e.filterQueryParameter),"extractParameter"===r)e.extractParameter.clipRegion instanceof u.Geometry&&e.extractParameter.clipRegion.components&&(e.extractParameter.clipRegion=l.ServerGeometry.fromGeometry(e.extractParameter.clipRegion)),t.extractParameter=e.extractParameter;else{if("dataset"===r)continue;if("surfaceAnalystMethod"===r)continue;t[r]=e[r]}}}]),t}();n.SuperMap.DatasetSurfaceAnalystParameters=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetOverlayAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(63),s=r(16),l=r(129),u=r(9);
  941. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  942. * This program are made available under the terms of the Apache License, Version 2.0
  943. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  944. var c=t.DatasetOverlayAnalystParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.operateDataset=null,r.operateDatasetFields=[],r.operateDatasetFilter=new s.FilterParameter,r.operateRegions=[],r.sourceDataset=null,r.sourceDatasetFields=[],r.sourceDatasetFilter=new s.FilterParameter,r.tolerance=0,r.resultSetting=new o.DataReturnOption,a.Util.extend(r,e),r.CLASS_NAME="SuperMap.DatasetOverlayAnalystParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.OverlayAnalystParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;if(e.operateDataset=null,e.operateDatasetFields=null,e.operateDatasetFilter&&(e.operateDatasetFilter.destroy(),e.operateDatasetFilter=null),e.operateRegions){for(var r=0,i=e.operateRegions,n=i.length;r<n;r++)i[r].destroy();e.operateRegions=null}e.sourceDataset=null,e.sourceDatasetFields=null,e.sourceDatasetFilter&&(e.sourceDatasetFilter.destroy(),e.sourceDatasetFilter=null),e.tolerance=null,e.resultSetting&&(e.resultSetting.destroy(),e.resultSetting=null)}}],[{key:"toObject",value:function(e,t){for(var r in e)if("sourceDataset"!==r)if("operateRegions"===r){t.operateRegions=[];var i=e.operateRegions;for(var n in i)i.hasOwnProperty(n)&&(t.operateRegions[n]=u.ServerGeometry.fromGeometry(i[n]))}else"resultSetting"===r?t.dataReturnOption=e.resultSetting:t[r]=e[r]}}]),t}();n.SuperMap.DatasetOverlayAnalystParameters=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetInfo=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(30);
  945. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  946. * This program are made available under the terms of the Apache License, Version 2.0
  947. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.DatasetInfo=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.bounds=null,this.dataSourceName=null,this.description=null,this.encodeType=null,this.isReadOnly=null,this.name=null,this.prjCoordSys=null,this.tableName=null,this.type=null,a.Util.extend(this,t);var r=this.bounds;r&&(this.bounds=new o.Bounds(r.leftBottom.x,r.leftBottom.y,r.rightTop.x,r.rightTop.y)),this.CLASS_NAME="SuperMap.DatasetInfo"}return i(e,[{key:"destroy",value:function(){a.Util.reset(this)}},{key:"toServerJSONObject",value:function(){var e={};return(e=a.Util.copyAttributes(e,this)).bounds&&e.bounds.toServerJSONObject&&(e.bounds=e.bounds.toServerJSONObject()),e}}]),e}();n.SuperMap.DatasetInfo=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransportationAnalystResultSetting=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  948. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  949. * This program are made available under the terms of the Apache License, Version 2.0
  950. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.TransportationAnalystResultSetting=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t&&(this.returnEdgeFeatures=!1,this.returnEdgeGeometry=!1,this.returnEdgeIDs=!1,this.returnNodeFeatures=!1,this.returnNodeGeometry=!1,this.returnNodeIDs=!1,this.returnPathGuides=!1,this.returnRoutes=!1,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.TransportationAnalystResultSetting")}return i(e,[{key:"destroy",value:function(){var e=this;e.returnEdgeFeatures=null,e.returnEdgeGeometry=null,e.returnEdgeIDs=null,e.returnNodeFeatures=null,e.returnNodeGeometry=null,e.returnNodeIDs=null,e.returnPathGuides=null,e.returnRoutes=null}}]),e}();n.SuperMap.TransportationAnalystResultSetting=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComputeWeightMatrixParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(38);
  951. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  952. * This program are made available under the terms of the Apache License, Version 2.0
  953. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ComputeWeightMatrixParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isAnalyzeById=!1,this.nodes=null,this.parameter=new o.TransportationAnalystParameter,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ComputeWeightMatrixParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.isAnalyzeById=null,e.nodes=null,e.parameter&&(e.parameter.destroy(),e.parameter=null)}}]),e}();n.SuperMap.ComputeWeightMatrixParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorDictionary=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(22);
  954. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  955. * This program are made available under the terms of the Apache License, Version 2.0
  956. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ColorDictionary=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.elevation=null,this.color=null,a.Util.extend(this,t);var r=this.color;r&&(this.color=new o.ServerColor(r.red,r.green,r.blue)),this.CLASS_NAME="SuperMap.ColorDictionary"}return i(e,[{key:"destroy",value:function(){a.Util.reset(this)}},{key:"toServerJSONObject",value:function(){var e={};return e=a.Util.copyAttributes(e,this)}}]),e}();n.SuperMap.ColorDictionary=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClipParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(9);
  957. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  958. * This program are made available under the terms of the Apache License, Version 2.0
  959. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ClipParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.clipDatasetName=null,this.clipDatasourceName=null,this.clipRegion=null,this.isClipInRegion=!0,this.isExactClip=null,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ClipParameter"}return i(e,[{key:"destroy",value:function(){var e=this;e.clipDatasetName=null,e.clipDatasourceName=null,e.clipRegion=null,e.isClipInRegion=null,e.isExactClip=null}},{key:"toJSON",value:function(){return a.Util.toJSON({isClipInRegion:this.isClipInRegion,clipDatasetName:this.clipDatasetName,clipDatasourceName:this.clipDatasourceName,isExactClip:this.isExactClip,clipRegion:o.ServerGeometry.fromGeometry(this.clipRegion)})}}]),e}();n.SuperMap.ClipParameter=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChartQueryParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(308);
  960. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  961. * This program are made available under the terms of the Apache License, Version 2.0
  962. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ChartQueryParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.queryMode=null,this.bounds=null,this.chartLayerNames=null,this.chartQueryFilterParameters=null,this.returnContent=!0,this.startRecord=0,this.expectCount=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ChartQueryParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.queryMode=null,e.bounds=null,e.chartLayerNames=null,e.chartQueryFilterParameters=null,e.returnContent=!0,e.startRecord=0,e.expectCount=null}},{key:"getVariablesJson",value:function(){var e="";if(e+='"queryMode":"'+this.queryMode+'",',this.chartLayerNames&&this.chartLayerNames.length){for(var t=[],r=this.chartLayerNames.length,i=0;i<r;i++)t.push('"'+this.chartLayerNames[i]+'"');e+='"chartLayerNames":'+("["+t.join(",")+"]")+","}if("ChartBoundsQuery"===this.queryMode&&this.bounds&&(e+='"bounds":{"leftBottom":{"x":'+this.bounds.left+',"y":'+this.bounds.bottom+'},"rightTop":{"x":'+this.bounds.right+',"y":'+this.bounds.top+"}},"),this.chartQueryFilterParameters&&this.chartQueryFilterParameters.length){for(var n=[],a=this.chartQueryFilterParameters.length,s=0;s<a;s++){var l=this.chartQueryFilterParameters[s];l instanceof o.ChartQueryFilterParameter&&n.push(l.toJson())}var u="["+n.join(",")+"]";u='"chartQueryParams":'+u+",",u+='"startRecord":'+this.startRecord+",",e+='"chartQueryParameters":'+(u="{"+(u+='"expectCount":'+this.expectCount)+"}")}return e="{"+e+"}"}}]),e}();n.SuperMap.ChartQueryParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChartQueryFilterParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  963. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  964. * This program are made available under the terms of the Apache License, Version 2.0
  965. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.ChartQueryFilterParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.isQueryPoint=null,this.isQueryLine=null,this.isQueryRegion=null,this.attributeFilter=null,this.chartFeatureInfoSpecCode=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ChartQueryFilterParameter"}return i(e,[{key:"destroy",value:function(){var e=this;e.isQueryPoint=null,e.isQueryLine=null,e.isQueryRegion=null,e.attributeFilter=null,e.chartFeatureInfoSpecCode=null}},{key:"toJson",value:function(){var e="";return e+='"isQueryPoint":'+this.isQueryPoint+",",e+='"isQueryLine":'+this.isQueryLine+",",e+='"isQueryRegion":'+this.isQueryRegion+",",this.attributeFilter&&(e+='"attributeFilter": "'+this.attributeFilter+'",'),e="{"+(e+='"chartFeatureInfoSpecCode":'+this.chartFeatureInfoSpecCode)+"}"}}]),e}();n.SuperMap.ChartQueryFilterParameter=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BurstPipelineAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  966. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  967. * This program are made available under the terms of the Apache License, Version 2.0
  968. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.BurstPipelineAnalystParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);this.sourceNodeIDs=null,this.edgeID=null,this.nodeID=null,this.isUncertainDirectionValid=!1,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.BurstPipelineAnalystParameters"}return i(e,[{key:"destroy",value:function(){this.sourceNodeIDs=null,this.edgeID=null,this.nodeID=null,this.isUncertainDirectionValid=null}}]),e}();n.SuperMap.BurstPipelineAnalystParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BuffersAnalystJobsParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(21),l=r(20);
  969. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  970. * This program are made available under the terms of the Apache License, Version 2.0
  971. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var u=t.BuffersAnalystJobsParameter=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.datasetName="",this.bounds="",this.distance="",this.distanceField="",this.distanceUnit=o.AnalystSizeUnit.METER,this.dissolveField="",this.output=null,this.mappingParameters=null,!t)return this;a.Util.extend(this,t),this.CLASS_NAME="SuperMap.BuffersAnalystJobsParameter"}return i(e,[{key:"destroy",value:function(){this.datasetName=null,this.bounds=null,this.distance=null,this.distanceField=null,this.distanceUnit=null,this.dissolveField=null,this.output instanceof s.OutputSetting&&(this.output.destroy(),this.output=null),this.mappingParameters instanceof l.MappingParameters&&(this.mappingParameters.destroy(),this.mappingParameters=null)}}],[{key:"toObject",value:function(e,t){for(var r in e)"datasetName"!==r?"output"!==r?(t.analyst=t.analyst||{},t.analyst[r]="bounds"===r?e[r].toBBOX():e[r],"mappingParameters"===r&&(t.analyst[r]=t.analyst[r]||{},t.analyst.mappingParameters=e[r])):(t.output=t.output||{},t.output=e[r]):(t.input=t.input||{},t.input[r]=e[r])}}]),e}();n.SuperMap.BuffersAnalystJobsParameter=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkItem=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(131);
  972. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  973. * This program are made available under the terms of the Apache License, Version 2.0
  974. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.LinkItem=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.datasourceConnectionInfo=null,this.foreignKeys=null,this.foreignTable=null,this.linkFields=null,this.linkFilter=null,this.name=null,this.primaryKeys=null,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.LinkItem"}return i(e,[{key:"destroy",value:function(){var e=this;e.datasourceConnectionInfo instanceof o.DatasourceConnectionInfo&&(e.datasourceConnectionInfo.destroy(),e.datasourceConnectionInfo=null),e.foreignKeys=null,e.foreignTable=null,e.linkFields=null,e.linkFilter=null,e.name=null,e.primaryKeys=null}}]),e}();n.SuperMap.LinkItem=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DatasetBufferAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(132),s=r(63),l=r(16);
  975. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  976. * This program are made available under the terms of the Apache License, Version 2.0
  977. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  978. var u=t.DatasetBufferAnalystParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.dataset=null,r.filterQueryParameter=new l.FilterParameter,r.resultSetting=new s.DataReturnOption,r.isAttributeRetained=!0,r.isUnion=!1,a.Util.extend(r,e),r.CLASS_NAME="SuperMap.DatasetBufferAnalystParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.BufferAnalystParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;e.dataset=null,e.filterQueryParameter&&(e.filterQueryParameter.destroy(),e.filterQueryParameter=null),e.resultSetting&&(e.resultSetting.destroy(),e.resultSetting=null),e.isAttributeRetained=null,e.isUnion=null}}],[{key:"toObject",value:function(e,t){for(var r in e)if("bufferSetting"===r)e.bufferSetting.radiusUnit=e.bufferSetting.radiusUnit.toUpperCase(),t.bufferAnalystParameter=e.bufferSetting;else if("resultSetting"===r)t.dataReturnOption=e.resultSetting;else{if("dataset"===r)continue;t[r]=e[r]}}}]),t}();n.SuperMap.DatasetBufferAnalystParameters=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferDistance=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  979. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  980. * This program are made available under the terms of the Apache License, Version 2.0
  981. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.BufferDistance=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.exp=null,this.value=100,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.BufferDistance"}return i(e,[{key:"destroy",value:function(){this.exp=null,this.value=null}}]),e}();n.SuperMap.BufferDistance=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferSetting=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(313);
  982. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  983. * This program are made available under the terms of the Apache License, Version 2.0
  984. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.BufferSetting=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.endType=o.BufferEndType.FLAT,this.leftDistance=new s.BufferDistance,this.rightDistance=new s.BufferDistance,this.semicircleLineSegment=4,this.radiusUnit=o.BufferRadiusUnit.METER,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.BufferSetting"}return i(e,[{key:"destroy",value:function(){var e=this;e.endType=null,e.leftDistance&&(e.leftDistance.destroy(),e.leftDistance=null),e.rightDistance&&(e.rightDistance.destroy(),e.rightDistance=null),e.semicircleLineSegment=null,e.radiusUnit=null}}]),e}();n.SuperMap.BufferSetting=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AreaSolarRadiationParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  985. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  986. * This program are made available under the terms of the Apache License, Version 2.0
  987. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.AreaSolarRadiationParameters=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.dataset=null,this.targetDatasourceName=null,this.totalGridName=null,this.diffuseDatasetGridName=null,this.durationDatasetGridName=null,this.directDatasetGridName=null,this.latitude=null,this.timeMode="MULTIDAYS",this.dayStart=null,this.dayEnd=null,this.hourStart=null,this.hourEnd=null,this.transmittance=null,this.hourInterval=null,this.dayInterval=null,this.deleteExistResultDataset=!1,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.AreaSolarRadiationParameters"}return i(e,[{key:"destroy",value:function(){var e=this;e.dataset=null,e.zFactor=1,e.averageCurvatureName=null,e.profileCurvatureName=null,e.planCurvatureName=null,e.deleteExistResultDataset=!0}}],[{key:"toObject",value:function(e,t){var r={};for(var i in e){if("dataset"!==i)"latitude"===i||"timeMode"===i||"dayStart"===i||("dayEnd"===i||"hourStart"===i||"hourEnd"===i)||("transmittance"===i||"hourInterval"===i||"dayInterval"===i)?r[i]=e[i]:t[i]=e[i]}t.parameter=r}}]),e}();n.SuperMap.AreaSolarRadiationParameters=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeoDecodingParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  988. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  989. * This program are made available under the terms of the Apache License, Version 2.0
  990. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.GeoDecodingParameter=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.filters){var r=[];t.filters.split(",").map(function(e){return r.push('"'+e+'"'),e}),t.filters=r}this.x=null,this.y=null,this.fromIndex=null,this.toIndex=null,this.filters=null,this.prjCoordSys=null,this.maxReturn=null,this.geoDecodingRadius=null,a.Util.extend(this,t)}return i(e,[{key:"destroy",value:function(){this.x=null,this.y=null,this.fromIndex=null,this.toIndex=null,this.filters=null,this.prjCoordSys=null,this.maxReturn=null,this.geoDecodingRadius=null}}]),e}();n.SuperMap.GeoDecodingParameter=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeoCodingParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  991. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  992. * This program are made available under the terms of the Apache License, Version 2.0
  993. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.GeoCodingParameter=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t.filters){var r=[];t.filters.split(",").map(function(e){return r.push('"'+e+'"'),e}),t.filters=r}this.address=null,this.fromIndex=null,this.toIndex=null,this.filters=null,this.prjCoordSys=null,this.maxReturn=null,a.Util.extend(this,t)}return i(e,[{key:"destroy",value:function(){this.address=null,this.fromIndex=null,this.toIndex=null,this.filters=null,this.prjCoordSys=null,this.maxReturn=null}}]),e}();n.SuperMap.GeoCodingParameter=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IPortalMap=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(90);
  994. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  995. * This program are made available under the terms of the Apache License, Version 2.0
  996. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  997. var s=t.IPortalMap=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r=r||{},i.authorizeSetting=[],i.center="",i.controls=null,i.checkStatus="",i.createTime=0,i.description="",i.epsgCode=0,i.extent="",i.id=0,i.isDefaultBottomMap=!1,i.layers=[],i.level=null,i.nickname="",i.sourceType="",i.status=null,i.tags=[],i.thumbnail="",i.title="",i.units=null,i.updateTime=0,i.userName="",i.visitCount=0,a.Util.extend(i,r),i.mapUrl=e,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.IPortalServiceBase),i(t,[{key:"load",value:function(){var e=this;return e.request("GET",e.mapUrl+".json").then(function(t){if(t.error)return t;for(var r in t)e[r]=t[r]})}},{key:"update",value:function(){var e={units:this.units,level:this.level,center:this.center,controls:this.controls,description:this.description,epsgCode:this.epsgCode,extent:this.extent,status:this.status,tags:this.tags,layers:this.layers,title:this.title,thumbnail:this.thumbnail,sourceType:this.sourceType,authorizeSetting:this.authorizeSetting};return this.request("PUT",this.mapUrl,JSON.stringify(e),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})}}]),t}();n.SuperMap.iPortalMap=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IPortalService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(90);
  998. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  999. * This program are made available under the terms of the Apache License, Version 2.0
  1000. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1001. var s=t.IPortalService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return r=r||{},i.addedMapNames=null,i.addedSceneNames=null,i.authorizeSetting=[],i.checkStatus="",i.createTime=0,i.description="",i.enable=!0,i.id=0,i.isBatch=!1,i.isDataItemService=!1,i.linkPage=null,i.mapInfos=[],i.metadata=null,i.nickname="",i.offline=!1,i.proxiedUrl=null,i.resTitle="",i.scenes=[],i.serviceRootUrlId=null,i.tags=[],i.thumbnail=null,i.type="",i.updateTime=0,i.userName="",i.verifyReason=null,i.version=null,i.visitCount=0,a.Util.extend(i,r),i.serviceUrl=e,i.id&&(i.serviceUrl=e+"/"+i.id),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.IPortalServiceBase),i(t,[{key:"load",value:function(){var e=this;return e.request("GET",e.serviceUrl+".json").then(function(t){if(t.error)return t;for(var r in t)e[r]=t[r]})}},{key:"update",value:function(){var e={authorizeSetting:this.authorizeSetting,metadata:this.metadata,tags:this.tags,thumbnail:this.thumbnail};return this.request("PUT",this.serviceUrl,JSON.stringify(e),{headers:{"Content-Type":"application/x-www-form-urlencoded"}})}}]),t}();n.SuperMap.iPortalService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IPortalMapsQueryParam=void 0;var i=r(0),n=r(1);
  1002. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1003. * This program are made available under the terms of the Apache License, Version 2.0
  1004. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1005. var a=t.IPortalMapsQueryParam=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.userNames=null,this.tags=null,this.suggest=!1,this.sourceTypes=null,this.keywords=null,this.epsgCode=null,this.orderBy=null,this.currentPage=null,this.pageSize=null,this.dirIds=null,this.isNotInDir=!1,this.updateStart=null,this.updateEnd=null,this.visitStart=null,this.visitEnd=null,this.filterFields=null,n.Util.extend(this,t)};i.SuperMap.iPortalMapsQueryParam=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IPortalServicesQueryParam=void 0;var i=r(0),n=r(1);
  1006. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1007. * This program are made available under the terms of the Apache License, Version 2.0
  1008. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1009. var a=t.IPortalServicesQueryParam=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.tags=[],this.userNames="",this.types=[],this.checkStatus="",this.offline=!1,this.orderBy="",this.orderType="",this.keywords=[],this.currentPage=0,this.pageSize=0,this.isBatch=!1,this.dirIds=[],this.isNotInDir=!1,this.filterFields=[],this.authorizedOnly=!1,n.Util.extend(this,t)};i.SuperMap.iPortalServicesQueryParam=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IManagerCreateNodeParam=void 0;var i=r(0),n=r(1);
  1010. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1011. * This program are made available under the terms of the Apache License, Version 2.0
  1012. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1013. var a=t.IManagerCreateNodeParam=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.nodeSpec="SMALL",this.nodeCount=1,this.nodeName="",this.password="",this.description="",this.physicalMachineName="",this.ips=[],this.userName="",n.Util.extend(this,t)};i.SuperMap.iManagerCreateNodeParam=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IManagerServiceBase=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(40),o=r(17);
  1014. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1015. * This program are made available under the terms of the Apache License, Version 2.0
  1016. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.IManagerServiceBase=function(){function e(t,r){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t){var i=t.substr(t.length-1,1);this.serviceUrl="/"===i?t.substr(0,t.length-2):t}this.options=r||{},this.CLASS_NAME="SuperMap.iManagerServiceBase"}return i(e,[{key:"request",value:function(e,t,r,i){(i=i||{headers:{Accept:"*/*","Content-Type":"application/json"}}).hasOwnProperty("withCredentials")||(i.withCredentials=!0),i.crossOrigin=this.options.crossOrigin;var n=a.SecurityManager.imanagerToken;return n&&(i.headers||(i.headers=[]),i.headers["X-Auth-Token"]=n),r&&(r=JSON.stringify(r)),o.FetchRequest.commit(e,t,r,i).then(function(e){return e.json()})}}]),e}();n.SuperMap.iManagerServiceBase=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeControlBase=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(48);
  1017. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1018. * This program are made available under the terms of the Apache License, Version 2.0
  1019. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.TimeControlBase=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);var r=this;t=t||{},this.speed=t.speed&&t.speed>=0?t.speed:1,this.frequency=t.speed&&t.frequency>=0?t.frequency:1e3,this.startTime=t.startTime&&null!=t.startTime?t.startTime:0,this.endTime=t.endTime&&null!=t.endTime&&t.endTime>=r.startTime?t.endTime:+new Date,this.repeat=void 0===t.repeat||t.repeat,this.reverse=void 0!==t.reverse&&t.reverse,this.currentTime=null,this.oldTime=null,this.running=!1,this.EVENT_TYPES=["start","pause","stop"],r.events=new a.Events(this,null,this.EVENT_TYPES),r.speed=Number(r.speed),r.frequency=Number(r.frequency),r.startTime=Number(r.startTime),r.endTime=Number(r.endTime),r.startTime=Date.parse(new Date(r.startTime)),r.endTime=Date.parse(new Date(r.endTime)),r.currentTime=r.startTime,this.CLASS_NAME="SuperMap.TimeControlBase"}return i(e,[{key:"updateOptions",value:function(e){var t=this;(e=e||{}).speed&&e.speed>=0&&(t.speed=e.speed,t.speed=Number(t.speed)),e.speed&&e.frequency>=0&&(t.frequency=e.frequency,t.frequency=Number(t.frequency)),e.startTime&&null!=e.startTime&&(t.startTime=e.startTime,t.startTime=Date.parse(new Date(t.startTime))),e.endTime&&null!=e.endTime&&e.endTime>=t.startTime&&(t.endTime=e.endTime,t.endTime=Date.parse(new Date(t.endTime))),null!=e.repeat&&(t.repeat=e.repeat),null!=e.reverse&&(t.reverse=e.reverse)}},{key:"start",value:function(){var e=this;e.running||(e.running=!0,e.tick(),e.events.triggerEvent("start",e.currentTime))}},{key:"pause",value:function(){this.running=!1,this.events.triggerEvent("pause",this.currentTime)}},{key:"stop",value:function(){var e=this;e.currentTime=e.startTime,e.running&&(e.running=!1),e.events.triggerEvent("stop",e.currentTime)}},{key:"toggle",value:function(){this.running?this.pause():this.start()}},{key:"setSpeed",value:function(e){return e>=0&&(this.speed=e,!0)}},{key:"getSpeed",value:function(){return this.speed}},{key:"setFrequency",value:function(e){return e>=0&&(this.frequency=e,!0)}},{key:"getFrequency",value:function(){return this.frequency}},{key:"setStartTime",value:function(e){var t=this;return!((e=Date.parse(new Date(e)))>t.endTime)&&(t.startTime=e,t.currentTime<t.startTime&&(t.currentTime=t.startTime,t.tick()),!0)}},{key:"getStartTime",value:function(){return this.startTime}},{key:"setEndTime",value:function(e){var t=this;return t.endTime=Date.parse(new Date(t.endTime)),!(e<t.startTime)&&(t.endTime=e,t.currentTime>=t.endTime&&(t.currentTime=t.startTime,t.tick()),!0)}},{key:"getEndTime",value:function(){return this.endTime}},{key:"setCurrentTime",value:function(e){var t=this;return t.currentTime=Date.parse(new Date(t.currentTime)),e>=t.startTime&&e<=t.endTime&&(t.currentTime=e,t.startTime=t.currentTime,t.tick(),!0)}},{key:"getCurrentTime",value:function(){return this.currentTime}},{key:"setRepeat",value:function(e){this.repeat=e}},{key:"getRepeat",value:function(){return this.repeat}},{key:"setReverse",value:function(e){this.reverse=e}},{key:"getReverse",value:function(){return this.reverse}},{key:"getRunning",value:function(){return this.running}},{key:"destroy",value:function(){var e=this;e.speed=null,e.frequency=null,e.startTime=null,e.endTime=null,e.currentTime=null,e.repeat=null,e.running=!1,e.reverse=null}},{key:"tick",value:function(){}}]),e}();n.SuperMap.TimeControlBase=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});
  1020. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1021. * This program are made available under the terms of the Apache License, Version 2.0
  1022. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1023. t.LogoBase64="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAF4AAAAdCAYAAAAjHtusAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA4ZpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMDY3IDc5LjE1Nzc0NywgMjAxNS8wMy8zMC0yMzo0MDo0MiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDozYWZlOGIwMi01MWE3LTRiZjYtYWVkYS05MGQ2ZTQ4YjZiMmUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6ODg0NkFBQUE3RjEzMTFFNzhFRjJFQkY4RjcxQjc1NjIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6ODg0NkFBQTk3RjEzMTFFNzhFRjJFQkY4RjcxQjc1NjIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTUgKE1hY2ludG9zaCkiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4MWI3NzdhNC1lZmEyLTQ1MzUtOGQzNi03MmRjNDkyODMzN2UiIHN0UmVmOmRvY3VtZW50SUQ9ImFkb2JlOmRvY2lkOnBob3Rvc2hvcDpjYTYzODVjMi1jNDQ1LTExN2EtYTc0ZC1lM2I5MzJlMGE4Y2QiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5q1HM0AAAF/ElEQVR42tSabYhUVRjHZ7W01C1uaCRW4F3oi9SXCUnwQ9gsGUFvOEtQH1bLu5VS9sbYh5KicjYt29qiGQwVg2xWWKgocob91AvC+CWsoJqB3qHMSdTMpZyeU/+Df07n3pk7997Z6cBv99z7nHvOvf/z/pxJNZvNVI/jCKXmv6EquAmVkxPSlvtp2GItr0/96fFQForChJAWDiVYTkMYMu4XBFcYjLOwWS3sNwmn8NGzZ0h4Flv/zwIdchAnh/slCGmmKUNIBzYPaXOUr0vPuEjD71JAPh7l61embzinhV3V8nnCGmGT8LwlzSL8/yUh4Tfjo9T/CgnCIYNKycA2Qq21AcHU/VHE80Idoo3Qs0W6p0UtUnkZvEMDeVcCyqxEafF7hL8Qf0oYsIj+lfC9cH1CwhchWAGCtZO+AooQOkdC1Km1VtCb63StW73uFSzgKFUkNwBbmZGGmqowhvg8ZNpH9oXChcIcYRdeNomgxLkaH+S1SGubAxyIpFv+Zp+0DYjrAS00j/dem2VGEl6FJ4Qa4quEu8j2hTCJ+GJhe4JjfQMf6JCYPPbysMPxBlp0BUKOogEF9Rg9/heNvNKYfM0KsZUZaYxX4STGrzJa+zbhPeFH2DcK10KItcI+pI0rVElwXl1ULaKnIJhDw0oRQpTQc1zcbwRU8ATy4DR6yMlTzwkqMziEWHvubJ4Nk4ZtHdnqwvwY17xq3Z4FjrG+z2Kdrdf2ZSGD+xlLPh6t1R0jP9fI22ZzKI92yvQl7EbmBxI4S7Y+vIAOL87QZqsc5uNnssxZIcfYjXT9snCR7jjobidp+FkxA2v+Cq1QervMDmp4P7Xs3YZtE9kOC3P/By6JGaETl8ElwueYTNTDq4UDsKnd7YfCNbT239LF1udS72xYJt1UWxNfN4IIP4bWuTpEja01JtMFZFsm/AHbtHBlDE6yasA4moYTrUbvdBTXHqUrAH4uSadbyzF+vbBM2IsNkS3MNa5305JxqfA02T4TnkX8XOH1mPw8ruVejpxbI9hZD2Cz1U7LdrrUvjP/WfZinNZhr6V27hP+FPZh9aLvLxVO4DllX0G2OcKnlO/DCblxaz6uXBtmi+8mBaP3/SP8IuEIiTRoPPQm2TaEmEyXo0JU+F0YiPFD0hhOsiE/vqeEVwyTgF8L51OilcIZ2I4Ll5NttvAJPfukUeB2sk0ZPSbKIUUJpCII7+DasWy08uhNNazT0wGHI7mAtB7KqMKm38HhDdAUibTVKGicbB8YAqrJ9DRsp43JdB4qUof1HQrPE6XTQWu3Ce/inVzjXhXpMiTwUYugNVQ+p80jrUsV5EH0POKeuXO9QjhFq5GryNYvfEMCDhsftYVsB9ETtG0V9ZjfhCURhbcJFpfwVZ9jvhxsLHwTYtp2svlWQw3vXL8UnqHVSIG8l8ex+tHhBXgjddgqHEZ8ufAA2aaEnYgrF/KrPXrEmMUqZ9THLW06xhoBaVueQpkug+ewOUphE3Qv2Q5gGamXYa+QbVq4O+DQ5FHyZqrjxNt7UHh9uuRa0F7HjCF8o9PCTOGnscM7g2u1Hl9C9oeEnxC/1ajZg8JLiM9Hj9GHJseMShwL2DO0G5yEWn3Zh1QUods5CPkIoqlwAZxhXMsb6HrcEPBxchhdJ6wj29vCW4hfLOzo8J3rltYX50nXQAATSf/K4DEaGlTLvplsk/QCpoD60EQ7gLYZc8H9wq+I3yncEOEcNhuz6HWf3XEiwU/4Y8YEqVp2P10rt+8REvBGw026i4aDcbL9jF8r8Blmf4fCOzhViiscskygXRdehf3CO4hfigmTBXyQrl8TFtD1IzQX3CbcQrY3hPcRv4z8OmHPXwchVNln2MmE7BX6VwIFi/he6uxvb6JM3m0fdqvx/ATidxg2JeC7VDErAw5NzGfvwRJVheEIQ8Mg/pdwIM+UOmi9Q8ivCsrIy0tF+wVbEcLrd3Pb2XisEb4Tdlhsi4WP4RBbaLGrHfC3PrvMIezy9rTpGm5lz9LOMG15xvFxD/j5gjzjjDbMOzk+9zzt3v5bgAEAibzFeFHVgYkAAAAASUVORK5CYII="},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PointWithMeasure=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(24);
  1024. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1025. * This program are made available under the terms of the Apache License, Version 2.0
  1026. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1027. var s=t.PointWithMeasure=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.measure=null,e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.PointWithMeasure",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.Point),i(t,[{key:"equals",value:function(e){var t=!1;if(null!=e){var r=this.x===e.x&&this.y===e.y&&this.measure===e.measure,i=isNaN(this.x)&&isNaN(this.y)&&isNaN(this.measure),n=isNaN(e.x)&&isNaN(e.y)&&isNaN(e.measure);t=r||i&&n}return t}},{key:"toJson",value:function(){var e="{";return null!=this.measure&&void 0!=this.measure&&(e+='"measure":'+this.measure+","),e+='"x":'+this.x+",",e+='"y":'+this.y,e+="}"}},{key:"destroy",value:function(){this.measure=null,this.x=null,this.y=null}}],[{key:"fromJson",value:function(e){if(e)return new t({x:e.x,y:e.y,measure:e.measure})}}]),t}();n.SuperMap.PointWithMeasure=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Feature=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  1028. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1029. * This program are made available under the terms of the Apache License, Version 2.0
  1030. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.Feature=function(){function e(t,r,i){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.CLASS_NAME="SuperMap.Feature",this.layer=t,this.id=a.Util.createUniqueID(this.CLASS_NAME+"_"),this.lonlat=r,this.data=null!=i?i:{}}return i(e,[{key:"destroy",value:function(){this.id=null,this.lonlat=null,this.data=null}}]),e}();n.SuperMap.Feature=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Event=void 0;var i=r(0),n=r(1),a=t.Event=i.SuperMap.Event={observers:!1,KEY_SPACE:32,KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(e){return e.target||e.srcElement},isSingleTouch:function(e){return e.touches&&1===e.touches.length},isMultiTouch:function(e){return e.touches&&e.touches.length>1},isLeftClick:function(e){return e.which&&1===e.which||e.button&&1===e.button},isRightClick:function(e){return e.which&&3===e.which||e.button&&2===e.button},stop:function(e,t){t||(e.preventDefault?e.preventDefault():e.returnValue=!1),e.stopPropagation?e.stopPropagation():e.cancelBubble=!0},findElement:function(e,t){for(var r=i.SuperMap.Event.element(e);r.parentNode&&(!r.tagName||r.tagName.toUpperCase()!=t.toUpperCase());)r=r.parentNode;return r},observe:function(e,t,r,i){var a=n.Util.getElement(e);if(i=i||!1,"keypress"===t&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||a.attachEvent)&&(t="keydown"),this.observers||(this.observers={}),!a._eventCacheID){var o="eventCacheID_";a.id&&(o=a.id+"_"+o),a._eventCacheID=n.Util.createUniqueID(o)}var s=a._eventCacheID;this.observers[s]||(this.observers[s]=[]),this.observers[s].push({element:a,name:t,observer:r,useCapture:i}),a.addEventListener?a.addEventListener(t,r,i):a.attachEvent&&a.attachEvent("on"+t,r)},stopObservingElement:function(e){var t=n.Util.getElement(e)._eventCacheID;this._removeElementObservers(i.SuperMap.Event.observers[t])},_removeElementObservers:function(e){if(e)for(var t=e.length-1;t>=0;t--){var r=e[t],n=new Array(r.element,r.name,r.observer,r.useCapture);i.SuperMap.Event.stopObserving.apply(this,n)}},stopObserving:function(e,t,r,a){a=a||!1;var o=n.Util.getElement(e),s=o._eventCacheID;"keypress"===t&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||o.detachEvent)&&(t="keydown");var l=!1,u=i.SuperMap.Event.observers[s];if(u)for(var c=0;!l&&c<u.length;){var p=u[c];if(p.name===t&&p.observer===r&&p.useCapture===a){u.splice(c,1),0==u.length&&delete i.SuperMap.Event.observers[s],l=!0;break}c++}return l&&(o.removeEventListener?o.removeEventListener(t,r,a):o&&o.detachEvent&&o.detachEvent("on"+t,r)),l},unloadCache:function(){if(i.SuperMap.Event&&i.SuperMap.Event.observers){for(var e in i.SuperMap.Event.observers){var t=i.SuperMap.Event.observers[e];i.SuperMap.Event._removeElementObservers.apply(this,[t])}i.SuperMap.Event.observers=!1}},CLASS_NAME:"SuperMap.Event"};i.SuperMap.Event=a,i.SuperMap.Event.observe(window,"unload",i.SuperMap.Event.unloadCache,!1)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rectangle=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(29),o=r(30);
  1031. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1032. * This program are made available under the terms of the Apache License, Version 2.0
  1033. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1034. var s=t.Rectangle=function(e){function t(e,r,i,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var a=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i,n));return a.x=e,a.y=r,a.width=i,a.height=n,a.CLASS_NAME="SuperMap.Geometry.Rectangle",a.geometryType="Rectangle",a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Geometry),i(t,[{key:"calculateBounds",value:function(){this.bounds=new o.Bounds(this.x,this.y,this.x+this.width,this.y+this.height)}},{key:"getArea",value:function(){return this.width*this.height}}]),t}();n.SuperMap.Geometry.Rectangle=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Size=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0);
  1035. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1036. * This program are made available under the terms of the Apache License, Version 2.0
  1037. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var a=t.Size=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.w=t?parseFloat(t):0,this.h=t?parseFloat(r):0,this.CLASS_NAME="SuperMap.Size"}return i(e,[{key:"toString",value:function(){return"w="+this.w+",h="+this.h}},{key:"clone",value:function(){return new e(this.w,this.h)}},{key:"equals",value:function(e){var t=!1;return null!=e&&(t=this.w===e.w&&this.h===e.h||isNaN(this.w)&&isNaN(this.h)&&isNaN(e.w)&&isNaN(e.h)),t}},{key:"destroy",value:function(){this.w=null,this.h=null}}]),e}();n.SuperMap.Size=a},function(e,t,r){"use strict";r(619),r(612),r(607),r(595),r(594),r(593),r(592),r(591),r(590),r(589),r(588),r(587),r(586),r(585),r(584),r(583),r(582),r(581)},function(e,t,r){"use strict";r(331),r(580)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataServiceQueryView=t.DataServiceQueryView=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(42),s=r(141),l=r(5);
  1038. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1039. * This program are made available under the terms of the Apache License, Version 2.0
  1040. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1041. var u=t.DataServiceQueryView=o.WidgetsViewBase.extend({initialize:function(e,t,r){if(o.WidgetsViewBase.prototype.initialize.apply(this,[r]),this.dataServiceUrl=e,!t||0===t.length)throw new Error("Please configure the dataset of the query!");t instanceof Array?this.dataSetNames=t:this.dataSetNames=t.split(" ")},onAdd:function(e){return o.WidgetsViewBase.prototype.onAdd.apply(this,[e])},onRemove:function(){this.map.off("pm:create")},setDataSetNames:function(e){e instanceof Array?this.dataSetNames=e:this.dataSetNames=e.split(" ")},setGetFeatureMode:function(e){this.getFeatureMode=e,this._getFeatureModeOnchange(this.getFeatureMode)},setDataServiceUrl:function(e){this.dataServiceUrl=e,this.viewModel=new s.DataServiceQueryViewModel(this.dataServiceUrl)},_getFeatureModeOnchange:function(e){var t=void 0;t=e&&"{}"!=JSON.stringify(e)?e:["ID","SQL","BOUNDS","BUFFER","SPATIAL"];var r=document.getElementById("queryModelControl");r.innerHTML="",this.creatQueryModeSelect(t,r)},_initView:function(){var e=this;this.viewModel=new s.DataServiceQueryViewModel(this.dataServiceUrl),this.messageBox=new l.MessageBox;var t=new l.CommonContainer({title:l.Lang.i18n("title_dataServiceQuery")}).getElement();t.classList.add("widget-servicequery__container"),t.children[0].classList.add("widget-servicequery__title");var r=t.children[1];r.classList.add("widget-content--scroll"),r.classList.add("data-services");var i=a.default.DomUtil.create("div","widget-analysis__container",r),n=a.default.DomUtil.create("div","widget-servicequery__analysistype",i),o=a.default.DomUtil.create("div","widget-analysis__container__analysisLayer",n),u=void 0,c=this.options.getFeatureMode;u=c&&"{}"!=JSON.stringify(c)?c:["ID","SQL","BOUNDS","BUFFER","SPATIAL"];var p=a.default.DomUtil.create("div","",o);p.id="queryModelContainer";var h=a.default.DomUtil.create("div","widget-analysis__selecttool",p);h.id="queryModelControl",this.creatQueryModeSelect=function(e,t){var r=void 0;if(e instanceof Array&&e.length>1){var i={optionsArr:e,labelName:l.Lang.i18n("text_label_queryMode"),optionsClickCb:this.queryModeltOnchange},n=new l.Select(i).getElement();t.appendChild(n),r=n.children[1].children[0],n.children[1].classList.add("dataservice-select");var o=n.children[1];o.classList.add("dataservice-select"),o.classList.add("querymodel-select")}else{var s=a.default.DomUtil.create("span","",p);s.innerHTML=l.Lang.i18n("text_label_queryMode"),r=a.default.DomUtil.create("div","widget-servicequery__querymode-selectname",p);var u=a.default.DomUtil.create("span","",r);e instanceof Array?u.innerHTML=e[0]:u.innerHTML=e,r.title=u.innerHTML,this.queryModeltOnchange(r)}return r.id="queryModelSelectName",r}.bind(this),this.queryModeltOnchange=X.bind(this),this.creatQueryModeSelect(u,h);var f=a.default.DomUtil.create("div","widget-analysis__container widget-textarea--dataservice__container",o),d=a.default.DomUtil.create("span","textarea-name",f);d.innerHTML=l.Lang.i18n("text_label_IDArrayOfFeatures");var y=a.default.DomUtil.create("div","widget-textarea widget-textarea--dataservice",f);y.id="getfeaturesIdArr";var v=a.default.DomUtil.create("div","scrollarea",y),m=a.default.DomUtil.create("div","widget-scrollarea-content",v);m.setAttribute("tabindex","1");var g=a.default.DomUtil.create("textarea","widget-textarea__content",m);g.value="[1,2,3]",g.id="getValueTextArea";var b=a.default.DomUtil.create("div","widget-servicequery__maxfeatures-container hidden",o),S={spanName:l.Lang.i18n("text_label_maxFeatures"),value:"1000"},_=this._creatInputBox(S,b).children[1];_.classList.add("max-features-input");var P=a.default.DomUtil.create("div","widget-servicequery__distance-container hidden",o),w={spanName:l.Lang.i18n("text_label_bufferDistance"),value:"10"},O=this._creatInputBox(w,P).children[1],T=a.default.DomUtil.create("div","widget-analysis__container widget-textarea--dataservice__container hidden",o),M=a.default.DomUtil.create("span","textarea-name",T),C=a.default.DomUtil.create("div","",T),x=a.default.DomUtil.create("div","widget-servicequery__rangeicon-container",C);M.innerHTML=l.Lang.i18n("text_label_queryRange1");var E=a.default.DomUtil.create("div","widget-servicequery__rangeicon supermapol-icons-polygon-layer bounds",x),L=a.default.DomUtil.create("div","widget-servicequery__rangeicon supermapol-icons-line-layer hidden",x),A=a.default.DomUtil.create("div","widget-servicequery__rangeicon supermapol-icons-point-layer hidden",x),k=a.default.DomUtil.create("div","widget-textarea widget-textarea--rangequery",C);k.id="getfeaturesIdArr";var F=a.default.DomUtil.create("div","",k),j=a.default.DomUtil.create("div","widget-scrollarea-content",F);j.setAttribute("tabindex","1");var I=a.default.DomUtil.create("textarea","widget-textarea__content widget-textarea--rangequery__content",j);I.value='{"leftBottom":{"x":-5,"y":-5},"rightTop":{"x":5,"y":5}}';var N=a.default.DomUtil.create("div","widget-servicequery__spatialquerymode-container hidden",o),D={optionsArr:["CONTAIN","CROSS","DISJOINT","IDENTITY","INTERSECT","NONE","OVERLAP","TOUCH","WITHIN"],labelName:l.Lang.i18n("text_label_spatialQueryMode")},R=a.default.DomUtil.create("div","widget-analysis__selecttool",N),G=new l.Select(D).getElement();G.children[1].classList.add("dataservice-select"),R.appendChild(G);var B=G.children[1].children[0];B.id="spatialQueryModeSelectName",G.children[1].children[2].classList.add("widget-servicequery__spatialquerymode__selectcontent");var U=a.default.DomUtil.create("div","widget-analysis__container__analysisbtn",o),V=a.default.DomUtil.create("div","widget-analysis__analysisbtn",U),J=a.default.DomUtil.create("button","widget-analysis__analysisbtn--analysis",V);J.innerHTML=l.Lang.i18n("btn_query");var z=a.default.DomUtil.create("div","widget-analysis__analysisbtn--analysing-container hidden",V),q=a.default.DomUtil.create("div","widget-analysis__analysisbtn--analysising widget-servicequery__querybtn--querying",z);a.default.DomUtil.create("div","widget-analysis__svg-container",q).innerHTML='<svg class="widget-analysis__svg-rotate" width="16px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg">\n <path id="ring" fill="#FFF" transform="translate(8,8)" d="M 0 0 v -8 A 8 8 0 1 1 -8.00 0 z"></path>\n <circle cx="8" cy="8" r="6" fill="#38ADF5"></circle>\n <rect class="svg-top" x="8" y="0" rx="2" ry="2" width="2" height="2" style="fill: rgb(255, 255, 255); stroke-width: 0;"></rect>\n <rect class="svg-left" x="0" y="8" rx="2" ry="2" width="2" height="2" style="fill: rgb(255, 255, 255); stroke-width: 0;"></rect>\n </svg>',a.default.DomUtil.create("span","",q).innerHTML=l.Lang.i18n("btn_querying");var H=a.default.DomUtil.create("button","widget-analysis__analysisbtn--analysis widget-analysis__analysisbtn--deletelayers",V);H.innerHTML=l.Lang.i18n("btn_emptyTheRresultLayer"),X(u[0]);var W=this;J.onclick=function(){e.messageBox.closeView(),z.style.display="block",J.style.display="none";var t=function(){var e=W.dataSetNames,t=document.getElementById("queryModelSelectName").title,r=g.value,i=void 0;if("ID"===t){var n=g.value,o=n.substring(1,n.length-1).split(",");i=new l.GetFeaturesByIDsParameters({IDs:o,datasetNames:e})}else if("SQL"===t){var s=_.value;i=new l.GetFeaturesBySQLParameters({queryParameter:{attributeFilter:r},datasetNames:e,maxFeatures:s})}else if("BOUNDS"===t){if(!Q){var u=JSON.parse(I.value);Q=a.default.bounds([u.leftBottom.x,u.leftBottom.y],[u.rightTop.x,u.rightTop.y])}i=new l.GetFeaturesByBoundsParameters({attributeFilter:r,datasetNames:e,bounds:Q})}else if("BUFFER"===t){var c=O.value,p=JSON.parse(I.value),h=Y||p;i=new l.GetFeaturesByBufferParameters({attributeFilter:r,datasetNames:e,bufferDistance:c,geometry:h})}else if("SPATIAL"===t){var f=B.title,d=JSON.parse(I.value),y=Y||d;i=new l.GetFeaturesByGeometryParameters({attributeFilter:r,datasetNames:e,spatialQueryMode:f,geometry:y})}return i}();e.viewModel.on("getfeaturessucceeded",function(t){z.style.display="none",J.style.display="block",0===t.result.features.length&&e.messageBox.showView(l.Lang.i18n("msg_dataReturnedIsEmpty"),"success"),e._event.fire("getfeaturessucceeded",{result:t.result})}),e.viewModel.on("getfeaturesfailed",function(t){z.style.display="none",J.style.display="block",e.messageBox.showView(t.error.errorMsg,"failure"),e._event.fire("getfeaturesfailed",{error:t.error})}),e.viewModel.getFeatures(t,e.map)};var Q=void 0,Y=void 0;function X(e){var t=void 0;switch(t=e.title?e.title:e,b.classList.add("hidden"),T.classList.add("hidden"),P.classList.add("hidden"),L.classList.add("hidden"),A.classList.add("hidden"),E.classList.remove("bounds"),N.classList.add("hidden"),d.innerHTML=l.Lang.i18n("text_label_featureFilter"),g.value="SMID<10","BUFFER"!==t&&"SPATIAL"!==t||(T.classList.remove("hidden"),M.innerHTML=l.Lang.i18n("text_label_geometricObject"),I.value='{"type":"Feature","properties":{},"geometry":{"type":"Point","coordinates":[84.90234375,40.25390625]}}',L.classList.remove("hidden"),A.classList.remove("hidden")),t){case"ID":d.innerHTML=l.Lang.i18n("text_label_IDArrayOfFeatures"),g.value="[1,2,3]";break;case"SQL":b.classList.remove("hidden");break;case"BOUNDS":T.classList.remove("hidden"),M.innerHTML=l.Lang.i18n("text_label_queryRange"),I.value='{"leftBottom":{"x":-5,"y":-5},"rightTop":{"x":5,"y":5}}',E.classList.add("bounds");break;case"BUFFER":P.classList.remove("hidden");break;case"SPATIAL":N.classList.remove("hidden")}}return E.onclick=function(t){var r=document.getElementById("queryModelSelectName").title;Y&&Y.remove(),"BOUNDS"===r?e.map.pm.enableDraw("Rectangle"):e.map.pm.enableDraw("Poly"),t.stopPropagation(),t.preventDefault()},L.onclick=function(t){Y&&Y.remove(),e.map.pm.enableDraw("Line"),t.stopPropagation(),t.preventDefault()},A.onclick=function(t){Y&&Y.remove(),e.map.pm.enableDraw("Marker"),t.stopPropagation(),t.preventDefault()},this.map.on("pm:create",function(t){if("Rectangle"===t.shape){var r=(Y=t.layer).getBounds();Q=a.default.bounds([r._southWest.lng,r._southWest.lat],[r._northEast.lng,r._northEast.lat]);var i={leftBottom:{x:r._southWest.lng,y:r._southWest.lat},rightTop:{x:r._northEast.lng,y:r._northEast.lat}};I.value=JSON.stringify(i)}"Marker"===t.shape&&(Y=t.layer,I.value=JSON.stringify(t.layer.toGeoJSON()),e.map.pm.disableDraw("Marker")),"Line"===t.shape&&(Y=t.layer,I.value=JSON.stringify(t.layer.toGeoJSON())),"Poly"===t.shape&&(Y=t.layer,I.value=JSON.stringify(t.layer.toGeoJSON()))}),H.onclick=function(){e.viewModel.clearLayers()},this._preventMapEvent(t,this.map),t},_creatInputBox:function(e,t){var r=a.default.DomUtil.create("div","",t);return a.default.DomUtil.create("span","",r).innerHTML=e.spanName,a.default.DomUtil.create("input","",r).value=e.value,r}}),c=t.dataServiceQueryView=function(e,t,r){return new u(e,t,r)};a.default.supermap.widgets.dataServiceQuery=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DistributedAnalysisModel=void 0;var i,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=r(2),o=(i=a)&&i.__esModule?i:{default:i};r(3);var s=r(5);
  1042. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1043. * This program are made available under the terms of the Apache License, Version 2.0
  1044. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1045. var l=t.DistributedAnalysisModel=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o["default"].Evented),n(t,[{key:"initialize",value:function(e){this.processingUrl=e}},{key:"getDatasetsName",value:function(){var e=this.processingUrl;this.dataset=[],this.dataset.datasetNames=[],this.dataset.childUrl=[];var t="http://"+e.split("/")[2],r=t+"/iserver/services/datacatalog/rest/datacatalog/sharefile.json",i=t+"/iserver/services/datacatalog/rest/datacatalog/relationship/datasets.json",n=this;s.FetchRequest.get(r).then(function(e){return e.json()}).then(function(e){n.dataset.datasetNames=n.dataset.datasetNames.concat(e.datasetNames),n.dataset.childUrl=n.dataset.childUrl.concat(e.childUriList);var t=n;s.FetchRequest.get(i).then(function(e){return e.json()}).then(function(e){t.dataset.datasetNames=t.dataset.datasetNames.concat(e.datasetNames),t.dataset.childUrl=t.dataset.childUrl.concat(e.childUriList);var r=[];for(var i in t.dataset.datasetNames)r[t.dataset.datasetNames[i]]=t.dataset.childUrl[i];t.fire("datasetsloaded",{result:{dataset:t.dataset,datasetHash:r}})})})}},{key:"getDatasetInfo",value:function(e){var t=void 0,r=this;s.FetchRequest.get(e).then(function(e){return e.json()}).then(function(e){var i=e.datasetInfo;"LINE"===i.datasetType||"LINE"===i.type?t="LINE":"POINT"===i.datasetType||"POINT"===i.type||"CSV"===i.type?t="POINT":"REGION"!==i.datasetType&&"REGION"!==i.type||(t="REGION");var n=[],a=i.fieldInfos||i.fieldInfo||null;if(a){for(var o in a)n.push(a[o].name);r.fire("datasetinfoloaded",{result:{type:t,fields:n}})}else{var l=e.childUriList[0].replace("//fields","/fields");s.FetchRequest.get(l).then(function(e){return e.json()}).then(function(e){var i=e.fieldNames,n=[];for(var a in i)n.push(i[a]);r.fire("datasetinfoloaded",{result:{type:t,fields:n}})})}})}}]),t}();o.default.supermap.widgets.DistributedAnalysisModel=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.distributedAnalysisView=t.DistributedAnalysisView=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(42),s=r(142),l=r(5);
  1046. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1047. * This program are made available under the terms of the Apache License, Version 2.0
  1048. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1049. var u=t.DistributedAnalysisView=o.WidgetsViewBase.extend({initialize:function(e,t){o.WidgetsViewBase.prototype.initialize.apply(this,[t]),this.viewModel=new s.DistributedAnalysisViewModel(e)},onAdd:function(e){return this._fillDataToView(),o.WidgetsViewBase.prototype.onAdd.apply(this,[e])},_fillDataToView:function(){var e=this;this.viewModel.on("datasetsloaded",function(t){var r=t.result.dataset.datasetNames;e.datasetSelect.innerHTML="",e._createOptions(e.datasetSelect,r),e.datasetSelectObj.optionClickEvent(e.datasetSelect,e.datasetSelectName,e.datasetSelectOnchange),e.dataHash=t.result.datasetHash}),this.viewModel.getDatasetsName()},_initView:function(){var e=this,t=new l.CommonContainer({title:l.Lang.i18n("title_distributedAnalysis")}).getElement();t.classList.add("widget-analysis"),t.children[0].style.fontSize="12px";var r=a.default.DomUtil.create("div","widget-content widget-content--scroll widget-content--analysis",t),i=[{title:l.Lang.i18n("text_densityAnalysis"),dataValue:"density",remark:l.Lang.i18n("text_CalculateTheValuePerUnitArea"),icon:{className:"widget-analyst-density-img"}}],n=new l.DropDownBox(i).getElement();r.appendChild(n);var o=n.children[0].children[0].children[0],s=a.default.DomUtil.create("div","widget-analysis__container",r),u=a.default.DomUtil.create("div","analysistype",s),c=a.default.DomUtil.create("div","widget-analysis__container__analysisLayer",u),p=a.default.DomUtil.create("div","widget-analysis__selecttool",c),h={optionsArr:[l.Lang.i18n("text_option_selectDataset")],labelName:l.Lang.i18n("text_label_dataset"),optionsClickCb:se.bind(this)},f=new l.Select(h),d=f.getElement();this.datasetSelectObj=f,p.appendChild(d);var y=d.children[1].children[0];this.datasetSelectName=y;var v=d.children[1].children[2].children[0].children[0];v.children[0].style.display="none",this.datasetSelect=v;var m=a.default.DomUtil.create("div","widget-analysis__idw",c),g=[{optionsArr:[l.Lang.i18n("text_option_simplePointDensityAnalysis"),l.Lang.i18n("text_option_nuclearDensityAnalysis")],labelName:l.Lang.i18n("text_label_analyticalMethod")},{optionsArr:[l.Lang.i18n("text_option_quadrilateral"),l.Lang.i18n("text_option_hexagon")],labelName:l.Lang.i18n("text_label_meshType")}],b=a.default.DomUtil.create("div","widget-analysis__idw__selecttool",m);for(var S in g){var _=new l.Select(g[S]).getElement();b.appendChild(_)}var P={optionsArr:[l.Lang.i18n("text_option_notSet")],labelName:l.Lang.i18n("text_label_weightField")},w=new l.Select(P),O=w.getElement();b.appendChild(O),this.weightFieldsSelectObj=w;var T=b.children[0].children[1].children[0];T.setAttribute("data-value","0");var M=b.children[0].children[1].children[2].children[0].children[0];this._setEleAtribute(["0","1"],"data-value",M.children);var C=b.children[1].children[1].children[0];C.setAttribute("data-value","0");var x=b.children[1].children[1].children[2].children[0].children[0];this._setEleAtribute(["0","1"],"data-value",x.children);var E=b.children[2].children[1].children[0],L=b.children[2].children[1].children[2].children[0].children[0],A=[{spanName:l.Lang.i18n("text_label_queryRange"),value:""}];for(var k in A)this._creatInputBox(A[k],b);var F=b.children[3].children[1];F.setAttribute("placeholder",l.Lang.i18n("text_label_queryRangeTips")),F.title=l.Lang.i18n("text_label_queryRangeTips");var j={labelName:l.Lang.i18n("text_label_gridSizeInMeters"),selectOptions:{optionsArr:["Meter","Kilometer","Yard","Foot","Mile"]}},I=this._creatUnitSelectBox(j,b),N=I.children[1].children[0];N.value="1000";var D=I.children[1].children[1].children[0].children[0].children[0],R={labelName:l.Lang.i18n("text_label_searchRadius"),selectOptions:{optionsArr:["Meter","Kilometer","Yard","Foot","Mile"]}},G=this._creatUnitSelectBox(R,b),B=G.children[1].children[0];B.value="300";var U=G.children[1].children[1].children[0].children[0].children[0],V={labelName:l.Lang.i18n("text_label_areaUnit"),optionsArr:["SquareMile","SquareMeter","Hectare","Acre","SquareFoot","SquareYard"]},J=new l.Select(V).getElement();b.appendChild(J);var z=J.children[1].children[0],q=a.default.DomUtil.create("div","range-content",u),H={optionsArr:[l.Lang.i18n("text_option_notSet"),l.Lang.i18n("text_option_equidistantSegmentation"),l.Lang.i18n("text_option_logarithm"),l.Lang.i18n("text_option_equalCountingSegment"),l.Lang.i18n("text_option_squareRootSegmentation")],labelName:l.Lang.i18n("text_label_thematicMapSegmentationMode"),optionsClickCb:function(e){"NOTSET"!==e.getAttribute("data-value")?(Y.classList.remove("hidden"),X.classList.remove("hidden")):(Y.classList.add("hidden"),X.classList.add("hidden"))}};q.appendChild(new l.Select(H).getElement());var W=q.children[0].children[1].children[0];W.setAttribute("data-value","NOTSET");var Q=q.children[0].children[1].children[2].children[0].children[0];this._setEleAtribute(["NOTSET","EQUALINTERVAL","LOGARITHM","QUANTILE","SQUAREROOT"],"data-value",Q.children);var Y=this._creatInputBox({spanName:l.Lang.i18n("text_label_thematicMapSegmentationParameters"),value:"20"},q);Y.classList.add("hidden");var X=new l.Select({optionsArr:[l.Lang.i18n("text_option_greenOrangePurpleGradient"),l.Lang.i18n("text_option_greenOrangeRedGradient"),l.Lang.i18n("text_option_rainbowGradient"),l.Lang.i18n("text_option_spectralGradient"),l.Lang.i18n("text_option_terrainGradient")],labelName:l.Lang.i18n("text_label_thematicMapColorGradientMode")}).getElement();q.appendChild(X),X.classList.add("hidden");var K=X.children[1].children[2].children[0].children[0],Z=X.children[1].children[0];Z.setAttribute("data-value","GREENORANGEVIOLET");this._setEleAtribute(["GREENORANGEVIOLET","GREENORANGERED","RAINBOW","SPECTRUM","TERRAIN"],"data-value",K.children);var $=a.default.DomUtil.create("div","",u);a.default.DomUtil.create("span","",$).innerHTML=l.Lang.i18n("text_label_resultLayerName");var ee=a.default.DomUtil.create("input","widget-distributeanalysis__input",$),te=a.default.DomUtil.create("div","widget-analysis__container__analysisbtn",s),re=a.default.DomUtil.create("div","widget-analysis__analysisbtn",te),ie=a.default.DomUtil.create("button","widget-analysis__analysisbtn--analysis",re);ie.innerHTML=l.Lang.i18n("btn_analyze");var ne=a.default.DomUtil.create("div","widget-analysis__analysisbtn--analysing-container hidden",re),ae=a.default.DomUtil.create("div","widget-analysis__analysisbtn--analysising",ne);ae.style.width="200px",a.default.DomUtil.create("div","widget-analysis__svg-container",ae).innerHTML='<svg class="widget-analysis__svg-rotate" width="16px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg">\n <path id="ring" fill="#FFF" transform="translate(8,8)" d="M 0 0 v -8 A 8 8 0 1 1 -8.00 0 z"></path>\n <circle cx="8" cy="8" r="6" fill="#38ADF5"></circle>\n <rect class="svg-top" x="8" y="0" rx="2" ry="2" width="2" height="2" style="fill: rgb(255, 255, 255); stroke-width: 0;"></rect>\n <rect class="svg-left" x="0" y="8" rx="2" ry="2" width="2" height="2" style="fill: rgb(255, 255, 255); stroke-width: 0;"></rect>\n </svg>',a.default.DomUtil.create("span","",ae).innerHTML=l.Lang.i18n("btn_analyzing");var oe=a.default.DomUtil.create("button","widget-analysis__analysisbtn--analysis widget-analysis__analysisbtn--deletelayers",re);function se(e){if(this.messageBox.closeView(),this.dataHash){L.innerHTML="";var t=this.dataHash[e.title],r=this;this.viewModel.on("datasetinfoloaded",function(e){E.title=l.Lang.i18n("text_option_notSet"),E.innerHTML=l.Lang.i18n("text_option_notSet"),L.innerHTML="";var t=o.getAttribute("data-value"),i=e.result.type,n=e.result.fields;"density"===t&&("REGION"===i||"LINE"===i?r.messageBox.showView(l.Lang.i18n("msg_datasetOrMethodUnsupport"),"failure"):(r.messageBox.closeView(),r._createOptions(L,n),r.weightFieldsSelectObj.optionClickEvent(L,E)))}),this.viewModel.getDatasetInfo(t)}}return oe.id="deleteLayersBtn",oe.innerHTML=l.Lang.i18n("btn_emptyTheAnalysisLayer"),this.messageBox=new l.MessageBox,this.datasetSelectOnchange=se.bind(this),ie.onclick=function(){e.messageBox.closeView();var t=function(){var e=o.getAttribute("data-value"),t=T.getAttribute("data-value"),r=C.getAttribute("data-value"),i=F.value,n=D.title,a=U.title,s=z.title,u=Z.getAttribute("data-value"),c=W.getAttribute("data-value"),p=new Date,h=ee.value||p.getTime(),f=void 0;f="NOTSET"===c?"":{rangeMode:c,rangeCount:Y.value,colorGradientType:u};var d=void 0;"density"===e&&(d=new l.KernelDensityJobParameter({datasetName:y.title,method:t,meshType:r,resolution:N.value,fields:E.title,radius:B.value,meshSizeUnit:n,radiusUnit:a,areaUnit:s,query:i,mappingParameters:new l.MappingParameters({rangeMode:f.rangeMode,rangeCount:f.rangeCount,colorGradientType:f.colorGradientType})}));return{analysisParam:d,resultLayerName:h}}();y.title===l.Lang.i18n("text_option_selectDataset")?e.messageBox.showView(l.Lang.i18n("msg_selectDataset"),"failure"):E.title===l.Lang.i18n("text_option_notSet")?e.messageBox.showView(l.Lang.i18n("msg_setTheWeightField"),"failure"):(e.messageBox.closeView(),ne.style.display="block",ie.style.display="none",e.viewModel.on("layerloaded",function(t){ne.style.display="none",ie.style.display="block",e._event.fire("analysissucceeded",{layer:t.layer,name:t.name})}),e.viewModel.on("analysisfailed",function(t){e.messageBox.showView(l.Lang.i18n("msg_theFieldNotSupportAnalysis"),"failure"),ne.style.display="none",ie.style.display="block",e._event.fire("analysisfailed",{error:t.error})}),e.viewModel.analysis(t,e.map))},oe.onclick=function(){e.viewModel.on("layersremoved",function(t){e._event.fire("layersremoved",{layers:t.layers})}),e.viewModel.clearLayers()},this._preventMapEvent(t,this.map),t},_createOptions:function(e,t){for(var r in t){var i=document.createElement("div");i.className="widget-selecttool__option",i.title=t[r],i.innerHTML=t[r],i.setAttribute("data-value",t[r]),e.appendChild(i)}},_creatInputBox:function(e,t){var r=a.default.DomUtil.create("div","",t);a.default.DomUtil.create("span","",r).innerHTML=e.spanName;var i=a.default.DomUtil.create("input","",r);return i.value=e.value,i.className="widget-distributeanalysis__input",r},_creatUnitSelectBox:function(e,t){var r=a.default.DomUtil.create("div","widget-clientcomputation__buffer--radius",t);a.default.DomUtil.create("span","",r).innerHTML=e.labelName;var i=a.default.DomUtil.create("div","",r);a.default.DomUtil.create("input","buffer-radius-input",i);var n=a.default.DomUtil.create("div","widget-clientcomputation__buffer--unit",i),o=e.selectOptions,s=new l.Select(o).getElement();return n.appendChild(s),r},_setEleAtribute:function(e,t,r){for(var i=0;i<r.length;i++)r[i].setAttribute(t,e[i])}}),c=t.distributedAnalysisView=function(e){return new u(e)};a.default.supermap.widgets.distributedAnalysis=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clientComputationLayer=t.ClientComputationLayer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);
  1050. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1051. * This program are made available under the terms of the Apache License, Version 2.0
  1052. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1053. var o=t.ClientComputationLayer=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.layerName=t.layerName,this.layer=t.layer,this.fields=t.fields||null},s=t.clientComputationLayer=function(e){return new o(e)};a.default.supermap.widgets.clientComputationLayer=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clientComputationView=t.ClientComputationView=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(42),s=r(144),l=r(5);
  1054. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1055. * This program are made available under the terms of the Apache License, Version 2.0
  1056. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1057. var u=t.ClientComputationView=o.WidgetsViewBase.extend({initialize:function(e,t){if(!e)throw new Error("workerUrl is required");this.workerUrl=e,o.WidgetsViewBase.prototype.initialize.apply(this,[t])},onAdd:function(e){return this.map=e,o.WidgetsViewBase.prototype.onAdd.apply(this,[e])},addLayer:function(e){this.layers=this.layers||[],this.layers.push(e);var t=this.viewModel.getLayersData(this.layers);this.fillDataToView(t)},fillDataToView:function(e){if(e){this.fillData=e;var t={};switch(document.getElementById("dropDownTop").getAttribute("data-value")){case"isolines":case"buffer":t=e.point}if("{}"!=JSON.stringify(t)){var r=[];for(var i in t)r.push(i);var n=document.getElementById("layersSelect"),a=document.getElementById("layerSelectName");n.innerHTML="",a.title=r[0],a.innerHTML=r[0],this._createOptions(n,r),this.layerSelectObj.optionClickEvent(n,a,this.layersSelectOnchange);var o=t[a.title],s=o.fields,u=o.fieldsValue;this.currentData=o,this.currentFillData=t;var c=document.getElementById("fieldsSelect");c.innerHTML="";var p=document.getElementById("fieldsSelectName");p.innerHTML=s[0],p.title=s[0],this._createOptions(c,s),this.fieldsSelectObj.optionClickEvent(c,p,this.fieldsSelectOnchange);var h=p.title,f=document.getElementById("getValueTextArea");f.value=u[h].toString().replace(/,/g,",\r\n"),f.setAttribute("data-value",u[h]);var d=document.getElementById("resultLayersName");switch(document.getElementById("dropDownTop").getAttribute("data-value")){case"isolines":d.value=l.Lang.i18n("text_label_isolines")+a.title;break;case"buffer":d.value=l.Lang.i18n("text_label_buffer")+a.title}}}},_initView:function(){var e=this;this.workerUrl&&(this.viewModel=new s.ClientComputationViewModel(this.workerUrl));var t=new l.CommonContainer({title:l.Lang.i18n("title_clientComputing")}).getElement();t.classList.add("widget-analysis"),t.children[0].style.fontSize="12px";var r=[{title:l.Lang.i18n("text_isoline"),dataValue:"isolines",remark:l.Lang.i18n("text_extractDiscreteValue"),icon:{className:"widget-analyst-isoline-img"}},{title:l.Lang.i18n("text_buffer"),dataValue:"buffer",remark:l.Lang.i18n("text_specifyTheDistance"),icon:{className:"widget-analyst-buffer-img"}}],i=t.children[1];i.classList.add("widget-content--scroll"),i.classList.add("widget-content--analysis");var n=new l.DropDownBox(r).getElement();i.appendChild(n);var o=n.children[0].children[0],u=n.children[0].children[2].children[0];o.children[0].id="dropDownTop";var c=a.default.DomUtil.create("div","widget-analysis__container",i),p=a.default.DomUtil.create("div","widget-analysis__container__analysisLayer",c),h=a.default.DomUtil.create("div","widget-analysis__selecttool",p);h.id="layerSelectControl";var f={optionsArr:[""],labelName:l.Lang.i18n("text_label_analysisLayer")},d=new l.Select(f),y=d.getElement();this.layerSelectObj=d,h.appendChild(y);var v=y.children[1].children[0];v.id="layerSelectName",y.children[1].children[2].children[0].children[0].id="layersSelect";var m=a.default.DomUtil.create("div","widget-analysis__container__analysistype",c),g=a.default.DomUtil.create("div","widget-clientcomputation__isoline",m),b={optionsArr:[""],labelName:l.Lang.i18n("text_label_extractField"),optionsClickCb:this.fieldsSelectOnchange},S=a.default.DomUtil.create("div","widget-analysis__selecttool",g),_=new l.Select(b),P=_.getElement();this.fieldsSelectObj=_;var w=P.children[1].children[0];w.id="fieldsSelectName";var O=P.children[1].children[2].children[0].children[0];O.id="fieldsSelect",S.appendChild(P);var T=a.default.DomUtil.create("div","widget-analysis__container",g);a.default.DomUtil.create("span","widget-textarea__name",T).innerHTML=l.Lang.i18n("text_label_extractedValue");var M=a.default.DomUtil.create("div","widget-textarea",T);M.id="getValueText";var C=a.default.DomUtil.create("div","",M),x=a.default.DomUtil.create("div","widget-scrollarea-content",C);x.setAttribute("tabindex","1");var E=a.default.DomUtil.create("textarea","widget-textarea__content",x);E.id="getValueTextArea",E.setAttribute("rows","20");var L=a.default.DomUtil.create("div","",g);a.default.DomUtil.create("span","",L).innerHTML=l.Lang.i18n("text_label_distanceAttenuation");var A=a.default.DomUtil.create("input","",L);A.value="3";var k=a.default.DomUtil.create("div","",g);a.default.DomUtil.create("span","",k).innerHTML=l.Lang.i18n("text_label_gridSize");var F=a.default.DomUtil.create("input","",k);F.value="30";var j=a.default.DomUtil.create("div","widget-clientcomputation__buffer hidden",m),I=a.default.DomUtil.create("div","widget-clientcomputation__buffer--radius",j);a.default.DomUtil.create("span","",I).innerHTML=l.Lang.i18n("text_label_bufferRadius");var N=a.default.DomUtil.create("div","",I),D=a.default.DomUtil.create("input","buffer-radius-input",N);D.id="bufferRadiusInput",D.value="10",D.setAttribute("placeholder",l.Lang.i18n("text_label_defaultkilometers"));var R=a.default.DomUtil.create("div","widget-clientcomputation__buffer--unit",N);R.id="bufferUnit";var G={optionsArr:[l.Lang.i18n("text_option_kilometer")],labelName:l.Lang.i18n("text_label_unit")},B=new l.Select(G).getElement(),U=B.children[1].children[0];U.id="bufferUnitSelectName",B.children[1].children[2].children[0].children[0].id="bufferUnitSelect",B.children[0].style.display="none",R.appendChild(B);var V=a.default.DomUtil.create("div","",I),J=a.default.DomUtil.create("div","widget-clientcomputation__buffer--issaveattrs",V);J.id="saveAttrsContainer";var z=a.default.DomUtil.create("div","checkbox checkbox-fault",J);z.id="saveAttrsCheckbox";var q=a.default.DomUtil.create("div","lable",J);q.id="saveAttrsLabel",q.innerHTML=l.Lang.i18n("text_retainOriginal");var H=a.default.DomUtil.create("div","widget-clientcomputation__buffer--isunion",V);H.id="isUnionContainer";var W=a.default.DomUtil.create("div","checkbox checkbox-fault",H);W.id="isUnionCheckbox";var Q=a.default.DomUtil.create("div","lable",H);Q.innerHTML=l.Lang.i18n("text_mergeBuffer"),Q.id="isUnionLabel";var Y=a.default.DomUtil.create("div","widget-analysis__container__resultLayersName",c);a.default.DomUtil.create("span","",Y).innerHTML=l.Lang.i18n("text_label_resultLayerName");var X=a.default.DomUtil.create("input","",Y);X.id="resultLayersName";var K=a.default.DomUtil.create("div","widget-analysis__container__analysisbtn",c),Z=a.default.DomUtil.create("div","widget-analysis__analysisbtn",K),$=a.default.DomUtil.create("button","widget-analysis__analysisbtn--analysis",Z);$.innerHTML=l.Lang.i18n("btn_analyze");var ee=a.default.DomUtil.create("div","widget-analysis__analysisbtn--analysing-container hidden",Z),te=a.default.DomUtil.create("div","widget-analysis__analysisbtn--analysising",ee),re=a.default.DomUtil.create("div","widget-analysis__svg-container",te);re.id="analyse_background",re.innerHTML='<svg class="widget-analysis__svg-rotate" width="16px" height="16px" version="1.1" xmlns="http://www.w3.org/2000/svg">\n <path id="ring" fill="#FFF" transform="translate(8,8)" d="M 0 0 v -8 A 8 8 0 1 1 -8.00 0 z"></path>\n <circle cx="8" cy="8" r="6" fill="#38ADF5"></circle>\n <rect class="svg-top" x="8" y="0" rx="2" ry="2" width="2" height="2" style="fill: rgb(255, 255, 255); stroke-width: 0;"></rect>\n <rect class="svg-left" x="0" y="8" rx="2" ry="2" width="2" height="2" style="fill: rgb(255, 255, 255); stroke-width: 0;"></rect>\n </svg>',a.default.DomUtil.create("span","",te).innerHTML=l.Lang.i18n("btn_analyzing");var ie=a.default.DomUtil.create("button","widget-analysis__analysisbtn--cancel",ee);ie.innerHTML=l.Lang.i18n("btn_cancelAnalysis");var ne=a.default.DomUtil.create("button","widget-analysis__analysisbtn--analysis widget-analysis__analysisbtn--deletelayers",Z);ne.innerHTML=l.Lang.i18n("btn_emptyTheAnalysisLayer");for(var ae=function(t){u.children[t].onclick=function(){o.innerHTML=u.children[t].outerHTML,o.children[0].id="dropDownTop";var r=document.getElementById("layersSelect"),n=document.getElementById("layerSelectName"),a=u.children[t].getAttribute("data-value"),s={};switch(a){case"buffer":g.classList.add("hidden"),j.classList.remove("hidden"),i.style.height="422px",X.value=l.Lang.i18n("text_label_buffer")+n.title,s=e.fillData.point;break;case"isolines":g.classList.remove("hidden"),j.classList.add("hidden"),i.style.height="712px",X.value=l.Lang.i18n("text_label_isolines")+n.title,s=e.fillData.point}if(e.currentFillData!==s){if(r.innerHTML="","{}"==JSON.stringify(s))return X.value="",n.title="",void(n.innerHTML="");var c=[];for(var p in s)c.push(p);n.title=c[0],n.innerHTML=c[0],e._createOptions(r,c),e.layerSelectObj.optionClickEvent(r,n,e.layersSelectOnchange),"buffer"===a?X.value=l.Lang.i18n("text_label_buffer")+c[0]:"isolines"===a&&(X.value=l.Lang.i18n("text_label_isolines")+c[0]),e.currentData=s[n.title],e.currentFillData=s}}},oe=0;oe<u.children.length;oe++)ae(oe);this.fieldsSelectOnchange=function(e){if(this.currentData){var t=this.currentData,r=e.title;E.value=t.fieldsValue[r].toString().replace(/,/g,",\r\n"),E.setAttribute("data-value",t.fieldsValue[r])}}.bind(this),this.layersSelectOnchange=function(e){if(this.currentData){var t=e.title,r=this.currentFillData[t];this.currentData=r,O.innerHTML="",this._createOptions(O,r.fields);var i=document.getElementById("fieldsSelectName"),n=r.fields[0];i.title=n,i.innerHTML=n;var a=n;this.fieldsSelectObj.optionClickEvent(O,i,this.fieldsSelectOnchange),E.value=r.fieldsValue[a].toString().replace(/,/g,",\r\n"),E.setAttribute("data-value",r.fieldsValue[a]);var o=document.getElementById("dropDownTop").getAttribute("data-value");switch(o){case"buffer":X.value=l.Lang.i18n("text_label_buffer")+t;break;case"isolines":X.value=l.Lang.i18n("text_label_isolines")+t}}}.bind(this);var se=!0;q.classList.add("selected"),z.classList.add("checkbox-active"),J.onclick=function(){se?(z.classList.add("checkbox-fault"),z.classList.remove("checkbox-active"),q.classList.remove("selected"),se=!1):(z.classList.add("checkbox-active"),z.classList.remove("checkbox-fault"),q.classList.add("selected"),se=!0,le&&(W.classList.add("checkbox-fault"),W.classList.remove("checkbox-active"),le=!1))};var le=!1;return H.onclick=function(){le?(W.classList.add("checkbox-fault"),W.classList.remove("checkbox-active"),Q.classList.remove("selected"),le=!1):(W.classList.add("checkbox-active"),W.classList.remove("checkbox-fault"),Q.classList.add("selected"),le=!0,se&&(z.classList.add("checkbox-fault"),z.classList.remove("checkbox-active"),se=!1))},this.messageBox=new l.MessageBox,$.onclick=function(){ee.style.display="block",$.style.display="none";var t=void 0;switch(document.getElementById("dropDownTop").getAttribute("data-value")){case"isolines":t=function(){var e=document.getElementById("dropDownTop").getAttribute("data-value"),t=document.getElementById("resultLayersName").value,r=v.title,i=w.title,n=E.value.replace(/[\r\n]/g,"").split(",").toString(),a=A.value,o=F.value;return{analysisMethod:e,analysisLayers:r,analysisFields:i,analysisFieldsValue:n,analysisBreaks:a,analysisCellSize:o,resultLayersName:t}}();break;case"buffer":t=function(){var e=document.getElementById("dropDownTop"),t=document.getElementById("resultLayersName").value,r=v.title,i=e.getAttribute("data-value"),n=D.value,a=U.title;return{analysisMethod:i,analysisLayers:r,radius:n,unit:a,resultLayersName:t,isSaveStatus:se,isUnion:le}}()}e.viewModel.analysis(t,e.map),e.viewModel.on("layerloaded",function(t){ee.style.display="none",$.style.display="block",e._event.fire("analysissucceeded",{layer:t.layer,name:t.name})}),e.viewModel.on("analysisfailed",function(){ee.style.display="none",$.style.display="block",e.messageBox.showView(l.Lang.i18n("msg_resultIsEmpty"),"failure"),e._event.fire("analysisfailed")})},ie.onclick=function(){ee.style.display="none",$.style.display="block",e.viewModel.cancelAnalysis()},ne.onclick=function(){e.viewModel.on("layersremoved",function(t){e._event.fire("layersremoved",{layers:t.layers})}),e.viewModel.clearLayers()},this._preventMapEvent(t,this.map),t},_createOptions:function(e,t){for(var r in t){var i=document.createElement("div"),n=t[r];i.className="widget-selecttool__option",i.title=n,i.innerHTML=n,i.setAttribute("data-value",n),e.appendChild(i)}}}),c=t.clientComputationView=function(e){return new u(e)};a.default.supermap.widgets.clientComputation=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataFlowViewModel=t.DataFlowViewModel=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(162),s=r(25);
  1058. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1059. * This program are made available under the terms of the Apache License, Version 2.0
  1060. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1061. var l=t.DataFlowViewModel=a.default.Evented.extend({options:{_defaultLayerOptions:{style:null,onEachFeature:function(e,t){var r="属性信息如下:<br>";for(var i in e.properties)r+=i+": "+e.properties[i]+"<br>";t.bindPopup(r)}}},initialize:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return new Error("Cannot find map, fileModel.map cannot be null.");this.map=e,a.default.Util.extend(this.options._defaultLayerOptions,t),this.options._defaultLayerOptions.pointToLayer=this.options._defaultLayerOptions.style,this.popupsStatus=!0,this.dataFlowStatus=!1,this.dataFlowUrl="",this.currentFeatures=[],this.dataFlowLayer=null},subscribe:function(e){var t=this;if(this.dataFlowUrl===e){if(this.dataFlowStatus)return void this.fire("dataflowservicesubscribed")}else this.dataFlowUrl=e;this.dataFlowStatus=!0,this.dataFlowLayer&&(this.dataFlowLayer.remove(),this.dataFlowLayer=null);var r=new o.DataFlowLayer(e,this.options._defaultLayerOptions);r.on("subscribesucceeded",function(e){t.fire("subscribesucceeded",{result:e})}),r.on("subscribefailed",function(e){t.fire("subscribefailed",{result:e})}),r.on("dataupdated",function(e){t.fire("dataupdated",{result:e});var r=e.layer.getBounds(),i=s.CommontypesConversion.toSuperMapBounds(t.map.getBounds()),n=s.CommontypesConversion.toSuperMapBounds(r);i.intersectsBounds(n)||(n.left===n.right&&n.top===n.bottom?t.map.setView(r.getCenter()):t.map.flyToBounds(r)),t.popupsStatus&&t.openPopups()}),r.addTo(this.map),this.dataFlowLayer=r},cancelSubscribe:function(){this.dataFlowLayer&&(this.dataFlowStatus=!1,this.dataFlowLayer.dataService.unSubscribe(),this.dataFlowLayer.remove(),this.dataFlowLayer=null)},openPopups:function(){if(this.popupsStatus=!0,this.dataFlowLayer)for(var e=this.dataFlowLayer.getLayers(),t=0;t<e.length;t++)for(var r=0;r<e[t].getLayers().length;r++)e[t].getLayers()[r].openPopup()},closePopups:function(){if(this.popupsStatus=!1,this.dataFlowLayer)for(var e=this.dataFlowLayer.getLayers(),t=0;t<e.length;t++)for(var r=0;r<e[t].getLayers().length;r++)e[t].getLayers()[r].closePopup()}}),u=t.dataFlowViewModel=function(e){return new l(e)};a.default.supermap.widgets.dataFlowViewModel=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataFlowView=t.DataFlowView=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(42),s=r(5),l=r(338);
  1062. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1063. * This program are made available under the terms of the Apache License, Version 2.0
  1064. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1065. var u=t.DataFlowView=o.WidgetsViewBase.extend({initialize:function(e){o.WidgetsViewBase.prototype.initialize.apply(this,[e])},onAdd:function(e){var t={};return this.options.style&&(t.style=this.options.style),this.options.onEachFeature&&(t.style=this.options.onEachFeature),this.viewModel=new l.DataFlowViewModel(e,t),o.WidgetsViewBase.prototype.onAdd.apply(this,[e])},_initView:function(){var e=this,t=new s.CommonContainer({title:s.Lang.i18n("title_dataFlowService")}),r=t.getElement(),i=t.getContentElement();i.style.padding="10px 18px";var n=document.createElement("div");n.setAttribute("class","widget-dataflow__container");var a=document.createElement("div");a.setAttribute("class","widget-input-default");var o=document.createElement("input");o.setAttribute("class","widget-input-default"),o.type="text",o.placeholder=s.Lang.i18n("text_input_value_inputDataFlowUrl"),o.title=s.Lang.i18n("text_input_value_inputDataFlowUrl"),a.appendChild(o);var l=document.createElement("span");l.setAttribute("class","supermapol-icons-close"),l.hidden=!0,l.onclick=function(e){o.value="",e.target.hidden=!0},o.oninput=function(){l.hidden=!1},a.appendChild(l),n.appendChild(a),i.appendChild(n);var u=document.createElement("div");u.setAttribute("class","widget-dataflow__container");var c=document.createElement("div");c.setAttribute("class","widget-checkbox-container");var p=document.createElement("div");p.setAttribute("class","widget-checkbox-default widget-checkbox-selected-img"),p.checked=!0,c.appendChild(p);var h=document.createElement("div");h.setAttribute("class","widget-label widget-label-selected"),h.innerHTML=s.Lang.i18n("text_displayFeaturesInfo"),c.appendChild(h),p.onclick=function(t){t.target.checked=!t.target.checked,t.target.checked?(h.setAttribute("class","widget-label widget-label-selected"),t.target.setAttribute("class","widget-checkbox-default widget-checkbox-selected-img"),e.viewModel.openPopups()):(h.setAttribute("class","widget-label"),t.target.setAttribute("class","widget-checkbox-default widget-checkbox-default-img"),e.viewModel.closePopups())},u.appendChild(c),i.appendChild(u);var f=document.createElement("div");f.setAttribute("class","widget-dataflow__container widget-init-center");var d=document.createElement("button");d.setAttribute("class","widget-button-default"),d.innerHTML=s.Lang.i18n("text_subscribe"),d.onclick=function(){var t=o.value;""!==t?e.viewModel.subscribe(t):e.messageBox.showView(s.Lang.i18n("msg_inputDataFlowUrlFirst"))},f.appendChild(d);var y=document.createElement("button");return y.setAttribute("class","widget-button-default"),y.innerHTML=s.Lang.i18n("text_cancelSubscribe"),y.onclick=function(){e.viewModel.cancelSubscribe()},f.appendChild(y),i.appendChild(f),this.messageBox=new s.MessageBox,this.viewModel.on("dataflowservicesubscribed",function(){e.messageBox.showView(s.Lang.i18n("msg_dataflowservicesubscribed"))}),this.viewModel.on("subscribesucceeded",function(){e.messageBox.showView(s.Lang.i18n("msg_subscribesucceeded"))}),this.viewModel.on("dataupdated",function(t){e.messageBox.closeView(),e._event.fire("dataupdated",t)}),this._preventMapEvent(r,this.map),r}}),c=t.dataFlowView=function(e){return new u(e)};a.default.supermap.widgets.dataFlow=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.config={HOT:{HOT:["北京市","上海市","广州市","深圳市","南京市","杭州市","天津市","重庆市","成都市","青岛市","苏州市","无锡市","常州市","温州市","武汉市","长沙市","南昌市","三亚市","合肥市","石家庄市"]},AB:{A:["阿拉善盟","鞍山市","安庆市","安阳市","阿坝藏族羌族自治州","安顺市","阿里地区","安康市","阿克苏地区","阿勒泰地区","阿拉尔市"],B:["北京市","保定市","包头市","巴彦淖尔市","本溪市","白山市","白城市","蚌埠市","亳州市","滨州市","北海市","百色市","白沙黎族自治县","保亭黎族苗族自治县","巴中市","毕节地区","保山市","宝鸡市","白银市","博尔塔拉蒙古自治州","巴音郭楞蒙古自治州","北区"]},CD:{C:["重庆市","成都市","常州市","长沙市","承德市","沧州市","长治市","赤峰市","朝阳市","长春市","滁州市","巢湖市","池州市","常德市","郴州市","潮州市","崇左市","澄迈县","昌江黎族自治县","楚雄彝族自治州","昌都地区","昌吉回族自治州"],D:["大同市","大连市","丹东市","大庆市","大兴安岭地区","东营市","德州市","东莞市","儋州市","东方市","定安县","德阳市","达州市","大理白族自治州","德宏傣族景颇族自治州","迪庆藏族自治州","定西市","东区","大埔区","大堂区"]},EFG:{E:["鄂尔多斯市","鄂州市","恩施土家族苗族自治州"],F:["抚顺市","阜新市","阜阳市","福州市","抚州市","佛山市","防城港市"],G:["广州市","赣州市","桂林市","贵港市","广元市","广安市","贵阳市","固原市","高雄市","高雄县","甘南藏族自治州","甘孜藏族自治州"]},H:{H:["杭州市","合肥市","邯郸市","衡水市","呼和浩特市","呼伦贝尔市","葫芦岛市","哈尔滨市","鹤岗市","黑河市","淮安市","湖州市","淮南市","淮北市","黄山市","菏泽市","鹤壁市","黄石市","黄冈市","衡阳市","怀化市","惠州市","河源市","贺州市","河池市","海口市","红河哈尼族彝族自治州","汉中市","海东地区","海北藏族自治州","黄南藏族自治州","海南藏族自治州","果洛藏族自治州","海西蒙古族藏族自治州","哈密地区","和田地区","花莲县","黄大仙区","花地玛堂区"]},J:{J:["晋城市","晋中市","锦州市","吉林市","鸡西市","佳木斯市","嘉兴市","金华市","景德镇市","九江市","吉安市","济南市","济宁市","焦作市","济源市","荆门市","荆州市","江门市","湛江市","揭阳市","嘉峪关市","金昌市","酒泉市","基隆市","嘉义市","嘉义县","九龙城区","嘉模堂区"]},KL:{K:["开封市","昆明市","克拉玛依市","克孜勒苏柯尔克孜自治州","喀什地区"],L:["廊坊市","临汾市","吕梁市","辽阳市","辽源市","连云港市","丽水市","六安市","龙岩市","莱芜市","临沂市","聊城市","洛阳市","漯河市","娄底市","柳州市","来宾市","临高县","乐东黎族自治县","陵水黎族自治县","泸州市","乐山市","凉山彝族自治州","六盘水市","丽江市","临沧市","拉萨市","林芝地区","兰州市","陇南市","临夏回族自治州"]},MNP:{M:["牡丹江市","马鞍山市","茂名市","梅州市","绵阳市","眉山市","苗栗县"],N:["南京市","南昌市","南通市","宁波市","南平市","宁德市","南阳市","南宁市","南沙群岛","内江市","南充市","怒江傈傈族自治州","那曲地区","南投县"],P:["盘锦市","莆田市","萍乡市","平顶山市","濮阳市","攀枝花市","平凉市","屏东县","澎湖县"]},QR:{Q:["青岛市","秦皇岛市","齐齐哈尔市","黔西南布依族苗族自治州","七台河市","衢州市","泉州市","潜江市","清远市","钦州市","琼海市","曲靖市","庆阳市","荃湾区","黔东南苗族侗族自治州","黔南布依族苗族自治州","琼中黎族苗族自治县"],R:["日照市","日喀则地区"]},S:{S:["上海市","深圳市","苏州市","石家庄市","三亚市","朔州市","沈阳市","四平市","松原市","双鸭山市","绥化市","宿迁市","绍兴市","宿州市","三明市","上饶市","三门峡市","商丘市","十堰市","随州市","邵阳市","韶关市","汕头市","汕尾市","三亚市","遂宁市","思茅市","山南地区","商洛市","石嘴山市","石河子市","深水埗区","沙田区","神农架林区","圣安多尼堂区","圣方济各堂区"]},T:{T:["天津市","唐山市","太原市","通辽市","铁岭市","通化市","泰州市","台州市","铜陵市","泰安市","天门市","屯昌县","铜仁地区","铜川市","天水市","吐鲁番地区","塔城地区","图木舒克市","台北市","台中市","台南市","台北县","桃园县","台中县","台南县","台东县","屯门区"]},W:{W:["无锡市","温州市","武汉市","乌海市","乌兰察布市","芜湖市","潍坊市","威海市","梧州市","五指山市","文昌市","万宁市","文山壮族苗族自治州","渭南市","武威市","吴忠市","乌鲁木齐市","五家渠市","湾仔区","望德堂区"]},X:{X:["邢台市","忻州市","兴安盟","徐州市","宣城市","厦门市","新余市","新乡市","许昌市","信阳市","襄樊市","孝感市","咸宁市","仙桃市","湘潭市","西安市","咸阳市","西宁市","新竹市","新竹县","西贡区","锡林郭勒盟","西沙群岛","湘西土家族苗族自治州","西双版纳傣族自治州"]},Y:{Y:["阳泉市","运城市","营口市","延边朝鲜族自治州","伊春市","盐城市","扬州市","鹰潭市","宜春市","烟台市","宜昌市","岳阳市","益阳市","永州市","阳江市","云浮市","玉林市","宜宾市","雅安市","玉溪市","延安市","榆林市","玉树藏族自治州","银川市","伊犁哈萨克自治州","宜兰县","云林县","油尖旺区","元朗区"]},Z:{Z:["郑州市","张家口市","镇江市","舟山市","漳州市","淄博市","枣庄市","周口市","驻马店市","株洲市","张家界市","珠海市","肇庆市","中山市","自贡市","资阳市","遵义市","昭通市","张掖市","中卫市","彰化县","中西区","中沙群岛的岛礁及其海域"]}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.searchView=t.SearchView=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(42),s=r(340),l=r(5),u=r(145);var c=t.SearchView=o.WidgetsViewBase.extend({options:{cityConfig:s.config,cityGeoCodingConfig:{addressUrl:"http://www.supermapol.com/iserver/services/localsearch/rest/searchdatas/China/poiinfos",key:"fvV2osxwuZWlY0wJb8FEb2i5"},isGeoCoding:!0,pageSize:10,pageNum:1,perPageDataNum:8},initialize:function(e){o.WidgetsViewBase.prototype.initialize.apply(this,[e]),this.currentSearchLayerName="",this.isSearchLayer=!1,this.perPageDataNum=this.options.perPageDataNum},onAdd:function(e){return this.viewModel=new u.SearchViewModel(e,this.options),o.WidgetsViewBase.prototype.onAdd.apply(this,[e])},addSearchLayer:function(e){this.viewModel.addSearchLayers(e)},_initView:function(){var e=this,t=this,r=document.createElement("div");r.setAttribute("class","widget-search-container");var i=document.createElement("div");i.setAttribute("class","widget-search");var n=document.createElement("div");n.setAttribute("class","widget-search__settings");var a=document.createElement("div");a.setAttribute("class","widget-search__settings__name"),n.appendChild(a);var o=document.createElement("span");o.setAttribute("class","supermapol-icons-solid-down-triangle"),n.appendChild(o);var s=null;if(this.options.isGeoCoding){var u=new l.CityTabsPage({config:this.options.cityConfig});s=u.getElement(),u.content.onclick=function(t){"SPAN"===t.target.nodeName&&t.target.innerText&&(e.viewModel.panToCity(t.target.innerHTML),e.messageBox.closeView(),a.removeChild(a.firstChild),a.insertBefore(document.createTextNode(t.target.innerHTML),a.firstChild),e.isSearchLayer=!1)},a.appendChild(document.createTextNode(u.content.getElementsByTagName("span")[0].innerText))}var c=function(){var e=document.createElement("div");e.setAttribute("class","widget-search__layers");var r=document.createElement("div");r.setAttribute("class","widget-search-layers-content"),e.appendChild(r);var i=document.createElement("div");i.setAttribute("class","widget-search__layers__header");var n=document.createElement("div");n.setAttribute("class","load-btn"),i.appendChild(n);var o=document.createElement("span");o.setAttribute("class","supermapol-icons-poi-load"),n.appendChild(o);var s=document.createElement("span");s.appendChild(document.createTextNode(l.Lang.i18n("text_loadSearchCriteria"))),n.appendChild(s);var u=document.createElement("div");u.setAttribute("class","save-btn"),i.appendChild(u);var c=document.createElement("span");c.setAttribute("class","supermapol-icons-poi-save"),u.appendChild(c);var p=document.createElement("span");p.appendChild(document.createTextNode(l.Lang.i18n("text_saveSearchCriteria"))),u.appendChild(p);var h=document.createElement("div");return h.setAttribute("class","widget-search__layers__body"),h.onclick=function(e){t.clearSearchResult();var r=null;if("widget-search__layers__itme__singleselect"===e.target.classList[0])r=e.target;else{if("widget-single-default-img"!==e.target.classList[0]&&"single-label"!==e.target.classList[0])return;r=e.target.parentNode}document.getElementsByClassName("widget-single-checked-img").length>0&&document.getElementsByClassName("widget-single-checked-img")[0].setAttribute("class","widget-single-default-img"),r.firstChild.setAttribute("class","widget-single-checked-img"),t.currentSearchLayerName=r.lastChild.innerText,t.isSearchLayer=!0,a.removeChild(a.firstChild),a.insertBefore(document.createTextNode(t.currentSearchLayerName),a.firstChild),t.viewModel.panToLayer(t.currentSearchLayerName),t.messageBox.closeView()},r.appendChild(h),e}(),p=[];s&&p.push({title:l.Lang.i18n("title_searchCity"),content:s}),p.push({title:l.Lang.i18n("title_searchLayer"),content:c});var h=new l.NavTabsPage({tabs:p}),f=h.getElement();h.closeView(),i.appendChild(f),n.onclick=function(){f.hidden?h.showView():h.closeView()},i.appendChild(n),a.innerText||a.appendChild(document.createTextNode(l.Lang.i18n("text_label_chooseSearchLayers")));var d=document.createElement("div");d.setAttribute("class","widget-search__input");var y=document.createElement("input");y.type="text",y.placeholder=l.Lang.i18n("text_label_searchTips"),d.appendChild(y),this.poiInput=y;var v=document.createElement("span");v.setAttribute("class","supermapol-icons-close"),v.hidden=!0,d.appendChild(v),i.appendChild(d);var m=document.createElement("div");m.setAttribute("class","widget-search-icon supermapol-icons-search"),m.onclick=function(){g.closeView(),e.clearSearchResult(),e.messageBox.closeView(),h.closeView();var t=e.poiInput.value.trim();""!==t?e.isSearchLayer?e.viewModel.search(t,e.currentSearchLayerName):e.viewModel.search(t):e.messageBox.showView(l.Lang.i18n("msg_searchKeywords"))},y.onkeypress=function(e){if(13==e.which){var t=document.createEvent("HTMLEvents");t.initEvent("click",!1,!0),m.dispatchEvent(t)}},i.appendChild(m);var g=new l.PaginationContainer;this._resultDomObj=g;var b=function(){var e=g.getElement();return e.style.position="absolute",e.style.top="44px",e.style.right="0",g.closeView(),g.content.onclick=function(e){var r=null;if("widget-search-result-info"===e.target.parentNode.className)r=e.target.parentNode.parentNode;else if("widget-search__resultitme"===e.target.parentNode.className)r=e.target.parentNode;else{if("widget-search__resultitme"!==e.target.className)return;r=e.target}document.getElementsByClassName("widget-search__resultitme-selected").length>0&&document.getElementsByClassName("widget-search__resultitme-selected")[0].classList.remove("widget-search__resultitme-selected"),r.firstChild.classList.add("widget-search__resultitme-selected");var i=r.children[1].firstChild.innerText;t._linkageFeature(i)},e}();return i.appendChild(b),v.onclick=function(t){e.clearSearchResult(),y.value="",t.target.hidden=!0,g.closeView()},y.oninput=function(){v.hidden=!1},this.messageBox=new l.MessageBox,this._addViewModelListener(),r.appendChild(i),this._preventMapEvent(r,this.map),r},_createSearchLayerItem:function(e){var t=document.createElement("div");t.setAttribute("class","widget-search__layers__itme");var r=document.createElement("div");r.setAttribute("class","widget-search__layers__itme__singleselect");var i=document.createElement("div");i.setAttribute("class","widget-single-default-img"),r.appendChild(i);var n=document.createElement("span");n.setAttribute("class","single-label"),n.innerHTML=e,r.appendChild(n),t.appendChild(r),document.getElementsByClassName("widget-search__layers__body")[0].appendChild(t)},_createResultItem:function(e,t){var r=document.createElement("div");r.setAttribute("class","widget-search__resultitme");var i=document.createElement("div");"Point"===e||"MultiPoint"===e?i.setAttribute("class","supermapol-icons-marker-layer widget-search-result-icon"):"LineString"===e||"MultiLineString "===e?i.setAttribute("class","supermapol-icons-line-layer widget-search-result-icon"):"Polygon"===e||"MultiPolygon"===e?i.setAttribute("class","supermapol-icons-polygon-layer widget-search-result-icon"):i.setAttribute("class","supermapol-icons-point-layer widget-search-result-icon"),r.appendChild(i);var n=document.createElement("div");n.setAttribute("class","widget-search-result-info");var a=document.createElement("div");n.appendChild(a);var o=document.createElement("div");return t.name?(a.innerHTML=t.name,o.innerHTML=t.address,n.appendChild(o)):a.innerHTML=t.filterAttributeName+": "+t.filterAttributeValue,r.appendChild(n),document.createElement("div").setAttribute("class","widget-checkbox widget-checkbox-default-img"),r},_addViewModelListener:function(){var e=this;this.viewModel.on("searchlayerschanged",function(t){for(var r=0;r<t.length;r++)e._createSearchLayerItem(t[r])}),this.viewModel.on("newlayeradded",function(t){e._createSearchLayerItem(t.layerName)}),this.viewModel.on("searchlayersucceeded",function(t){var r=t.result;e.clearSearchResult(),e.searchResultLayer=a.default.featureGroup(r,{pointToLayer:e.options.style,style:e.options.style}).bindPopup(function(e){if(e.feature.properties)return new l.AttributesPopContainer({attributes:e.feature.properties}).getElement()}).addTo(e.map),e.searchResultLayer.eachLayer(function(t){e.options.onEachFeature?e.options.onEachFeature(t.toGeoJSON(),t):e._featureOnclickEvent.bind(e)(t.toGeoJSON(),t)}),e.searchLayersData=r,e._prepareResultData(r),e._event.fire("searchlayersucceeded",{result:e.searchResultLayer.toGeoJSON()})}),this.viewModel.on("geocodesucceeded",function(t){var r=t.result;e.clearSearchResult(),e.searchResultLayer=a.default.geoJSON(r,{pointToLayer:e.options.style,style:e.options.style,onEachFeature:e.options.onEachFeature||e._featureOnclickEvent.bind(e)}).bindPopup(function(e){if(e.feature.properties)return new l.AttributesPopContainer({attributes:e.feature.properties}).getElement()}).addTo(e.map),e.searchLayersData=r,e._prepareResultData(r),e._event.fire("geocodesucceeded",{result:r})}),this.viewModel.on("searchfailed",function(t){var r="";r="searchGeocodeField"===t.searchType?l.Lang.i18n("msg_searchGeocodeField"):"cityGeocodeField"===t.searchType?l.Lang.i18n("msg_cityGeocodeField"):l.Lang.i18n("msg_getFeatureField"),e.messageBox.showView(r),e._event.fire("searchfailed",{message:r})})},_prepareResultData:function(e){this.currentResult=e;var t=Math.ceil(e.length/this.perPageDataNum);this._resultDomObj.setPageLink(t),this._createResultListByPageNum(1,e),this._resultDomObj.showView(),this._resultDomObj.setLinkageEvent(function(e){r._createResultListByPageNum(e,r.currentResult)});var r=this},_createResultListByPageNum:function(e,t){var r=0,i=void 0;1===e&&t.length<this.perPageDataNum?i=t.length-1:e*this.perPageDataNum>t.length?(r=this.perPageDataNum*(e-1),i=t.length-1):(r=this.perPageDataNum*(e-1),i=e*this.perPageDataNum-1);for(var n=document.createElement("div"),a=r;a<=i;a++){var o=void 0,s="Point";t[a].filterAttribute?(s=t[a].feature.geometry.type,o=t[a].filterAttribute):o=t[a].properties,n.appendChild(this._createResultItem(s,o))}this._resultDomObj.setContent(n),this._resultDomObj.showView(),n.firstChild.getElementsByClassName("widget-search-result-icon")[0].classList.add("widget-search__resultitme-selected");var l=n.firstChild.getElementsByClassName("widget-search-result-info")[0].firstChild.innerText;!this._selectMarkerFeature&&this._linkageFeature(l)},_flyToBounds:function(e){var t=e.getSouthWest(),r=e.getNorthEast();t.lat===r.lat&&t.lng===r.lng?this.map.flyTo(t):this.map.fitBounds(e)},_linkageFeature:function(e){var t=this,r="";r=this.isSearchLayer?e.split(":")[1].trim():e,this._selectFeature&&this._selectFeature.addTo(this.map),this.searchResultLayer.eachLayer(function(e){(!r||e.filterAttribute&&e.filterAttribute.filterAttributeValue===r||e.feature.properties&&e.feature.properties.name===r)&&(e.remove(),t._setSelectedLayerStyle(e))})},clearSearchResult:function(){this.searchResultLayer&&(this.map.closePopup(),!this.isSearchLayer&&this.map.removeLayer(this.searchResultLayer),this._selectMarkerFeature&&this.map.removeLayer(this._selectMarkerFeature),this._selectFeaturethis&&this.map.removeLayer(this._selectFeature),this._selectMarkerFeature=null,this._selectFeature=null,this.searchResultLayer=null,this.currentResult=null)},_featureOnclickEvent:function(e,t){var r=this;t.on("click",function(){var i=document.getElementsByClassName("widget-pagination__link")[0];r._resultDomObj._changePageEvent({target:i.children[0].children[0]}),r._selectFeature&&r._selectFeature.addTo(r.map),t.remove();for(var n=void 0,a=void 0,o=0;o<r.searchLayersData.length;o++){var s=r.searchLayersData[o];if(s.properties&&s.properties.name===e.properties.name||s.filterAttribute&&s.filterAttribute.filterAttributeName+": "+s.filterAttribute.filterAttributeValue==t.filterAttribute.filterAttributeName+": "+t.filterAttribute.filterAttributeValue){a=o%r.perPageDataNum,n=parseInt(o/r.perPageDataNum)+1;break}}if(n>1)for(var l=1;l<n;l++){var u;u=document.getElementsByClassName("widget-pagination__link")[0],r._resultDomObj._changePageEvent({target:u.children[u.children.length-2].children[0]})}var c=document.getElementsByClassName("widget-search-result-info"),p=c[a].children[0];if(p.innerHTML===e.properties.name||p.innerHTML===t.filterAttribute.filterAttributeName+": "+t.filterAttribute.filterAttributeValue){var h=c[a].parentNode;document.getElementsByClassName("widget-search__resultitme-selected").length>0&&document.getElementsByClassName("widget-search__resultitme-selected")[0].classList.remove("widget-search__resultitme-selected"),h.firstChild.classList.add("widget-search__resultitme-selected"),r._setSelectedLayerStyle(t)}},this)},_setSelectedLayerStyle:function(e){this._selectMarkerFeature&&this._selectMarkerFeature.remove(),this._selectMarkerFeature=null,this._selectFeature=e,this._selectMarkerFeature=a.default.geoJSON(e.toGeoJSON(),{pointToLayer:function(e,t){return a.default.marker(t,{icon:a.default.divIcon({className:"widget-select-marker-icon",iconAnchor:[15,0]})})},style:{fillColor:"red",weight:1,opacity:1,color:"red",fillOpacity:.2}}).addTo(this.map),this._selectMarkerFeature.bindPopup(function(){return new l.AttributesPopContainer({attributes:e.feature.properties}).getElement()},{closeOnClick:!1}).openPopup().addTo(this.map),this._flyToBounds(this.searchResultLayer.getBounds());var t=void 0;e.getLatLng?t=e.getLatLng():e.getCenter&&(t=e.getCenter()),this.map.setView(t)}}),p=t.searchView=function(e){return new c(e)};
  1066. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1067. * This program are made available under the terms of the Apache License, Version 2.0
  1068. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/a.default.supermap.widgets.search=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openFileView=t.OpenFileView=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(42),s=r(146),l=r(5);
  1069. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1070. * This program are made available under the terms of the Apache License, Version 2.0
  1071. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1072. var u=t.OpenFileView=o.WidgetsViewBase.extend({options:{layer:null},initialize:function(e){o.WidgetsViewBase.prototype.initialize.apply(this,[e]),this.viewModel=new s.OpenFileViewModel},setViewStyle:function(e,t){this.rootContainer.style[e]=t},_initView:function(){var e=this,t=a.default.DomUtil.create("div","widget-openfile");return t.id="openFile",this.fileSelect=a.default.DomUtil.create("div","",t),this.label=a.default.DomUtil.create("label","widget-openfile__span--select",this.fileSelect),this.label.htmlFor="input_file",a.default.DomUtil.create("div","supermapol-icons-upload",this.label),a.default.DomUtil.create("span","widget-openfile__span",this.label).appendChild(document.createTextNode(l.Lang.i18n("text_chooseFile"))),this.fileInput=a.default.DomUtil.create("input","widget-openfile__input",this.fileSelect),this.fileInput.id="input_file",this.fileInput.type="file",this.fileInput.accept=".json,.geojson,.csv,.xls,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,application/vnd.ms-excel",this.fileInput.onchange=function(t){e.messageBox.closeView(),e.viewModel.readFile(t)},this.messageBox=new l.MessageBox,this.viewModel.on("filesizeexceed",function(t){e.messageBox.showView(t.message,t.messageType)}),this.viewModel.on("errorfileformat",function(t){e.messageBox.showView(t.message,t.messageType)}),this.viewModel.on("openfilefailed",function(t){e.messageBox.showView(t.message,t.messageType),e._event.fire("openfilefailed",t)}),this.viewModel.on("readdatafail",function(t){e.messageBox.showView(t.message,t.messageType)}),this.viewModel.on("openfilesucceeded",function(t){e._event.fire("openfilesucceeded",t)}),this._preventMapEvent(t,this.map),t}}),c=t.openFileView=function(e){return new u(e)};a.default.supermap.widgets.openFile=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.dataServiceQueryViewModel=t.DataServiceQueryViewModel=t.dataServiceQueryView=t.DataServiceQueryView=t.distributedAnalysisViewModel=t.DistributedAnalysisViewModel=t.distributedAnalysisView=t.DistributedAnalysisView=t.geoJSONLayerWithName=t.GeoJSONLayerWithName=t.GeoJsonLayerDataModel=t.GeoJsonLayersDataModel=t.clientComputationLayer=t.ClientComputationLayer=t.ClientComputationViewModel=t.clientComputationView=t.ClientComputationView=t.dataFlowView=t.DataFlowView=t.SearchViewModel=t.searchViewModel=t.searchView=t.SearchView=t.openFileViewModel=t.OpenFileViewModel=t.openFileView=t.OpenFileView=void 0;var i=r(342),n=r(146),a=r(341),o=r(145),s=r(339),l=r(337),u=r(144),c=r(336),p=r(94),h=r(143),f=r(335),d=r(142),y=r(333),v=r(141);
  1073. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1074. * This program are made available under the terms of the Apache License, Version 2.0
  1075. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1076. t.OpenFileView=i.OpenFileView,t.openFileView=i.openFileView,t.OpenFileViewModel=n.OpenFileViewModel,t.openFileViewModel=n.openFileViewModel,t.SearchView=a.SearchView,t.searchView=a.searchView,t.searchViewModel=o.searchViewModel,t.SearchViewModel=o.SearchViewModel,t.DataFlowView=s.DataFlowView,t.dataFlowView=s.dataFlowView,t.ClientComputationView=l.ClientComputationView,t.clientComputationView=l.clientComputationView,t.ClientComputationViewModel=u.ClientComputationViewModel,t.ClientComputationLayer=c.ClientComputationLayer,t.clientComputationLayer=c.clientComputationLayer,t.GeoJsonLayersDataModel=p.GeoJsonLayersDataModel,t.GeoJsonLayerDataModel=p.GeoJsonLayerDataModel,t.GeoJSONLayerWithName=h.GeoJSONLayerWithName,t.geoJSONLayerWithName=h.geoJSONLayerWithName,t.DistributedAnalysisView=f.DistributedAnalysisView,t.distributedAnalysisView=f.distributedAnalysisView,t.DistributedAnalysisViewModel=d.DistributedAnalysisViewModel,t.distributedAnalysisViewModel=d.distributedAnalysisViewModel,t.DataServiceQueryView=y.DataServiceQueryView,t.dataServiceQueryView=y.dataServiceQueryView,t.DataServiceQueryViewModel=v.DataServiceQueryViewModel,t.dataServiceQueryViewModel=v.dataServiceQueryViewModel},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trafficTransferAnalystService=t.TrafficTransferAnalystService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(8),s=r(5);
  1077. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1078. * This program are made available under the terms of the Apache License, Version 2.0
  1079. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1080. var l=t.TrafficTransferAnalystService=o.ServiceBase.extend({initialize:function(e,t){o.ServiceBase.prototype.initialize.call(this,e,t)},queryStop:function(e,t){var r=this;new s.StopQueryService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).processAsync(e)},analysisTransferPath:function(e,t){var r=this;new s.TransferPathService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).processAsync(r._processParams(e))},analysisTransferSolution:function(e,t){var r=this;new s.TransferSolutionService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).processAsync(r._processParams(e))},_processParams:function(e){return e?(e.points&&a.default.Util.isArray(e.points)&&e.points.map(function(t,r){return e.points[r]=t instanceof a.default.LatLng?{x:t.lng,y:t.lat}:t,e.points[r]}),e):{}}}),u=t.trafficTransferAnalystService=function(e,t){return new l(e,t)};a.default.supermap.trafficTransferAnalystService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.themeService=t.ThemeService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(8);r(3);var s=r(5);
  1081. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1082. * This program are made available under the terms of the Apache License, Version 2.0
  1083. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1084. var l=t.ThemeService=o.ServiceBase.extend({initialize:function(e,t){o.ServiceBase.prototype.initialize.call(this,e,t)},getThemeInfo:function(e,t){var r=this;new s.ThemeService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).processAsync(e)}}),u=t.themeService=function(e,t){return new l(e,t)};a.default.supermap.themeService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spatialAnalystService=t.SpatialAnalystService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(8),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(31)),l=r(25),u=r(5);
  1085. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1086. * This program are made available under the terms of the Apache License, Version 2.0
  1087. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1088. var c=t.SpatialAnalystService=o.ServiceBase.extend({initialize:function(e,t){o.ServiceBase.prototype.initialize.call(this,e,t)},getAreaSolarRadiationResult:function(e,t,r){var i=this;new u.AreaSolarRadiationService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(e)},bufferAnalysis:function(e,t,r){var i=this;new u.BufferAnalystService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},densityAnalysis:function(e,t,r){var i=this;new u.DensityAnalystService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},generateSpatialData:function(e,t,r){var i=this;new u.GenerateSpatialDataService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(e)},geoRelationAnalysis:function(e,t,r){var i=this;new u.GeoRelationAnalystService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(e)},interpolationAnalysis:function(e,t,r){var i=this;new u.InterpolationAnalystService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},mathExpressionAnalysis:function(e,t,r){var i=this;new u.MathExpressionAnalysisService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},overlayAnalysis:function(e,t,r){var i=this;new u.OverlayAnalystService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},routeCalculateMeasure:function(e,t,r){var i=this;new u.RouteCalculateMeasureService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},routeLocate:function(e,t,r){var i=this;new u.RouteLocatorService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},surfaceAnalysis:function(e,t,r){var i=this;new u.SurfaceAnalystService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},terrainCurvatureCalculate:function(e,t,r){var i=this;new u.TerrainCurvatureCalculationService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(e)},thiessenAnalysis:function(e,t,r){var i=this;new u.ThiessenAnalystService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},geometrybatchAnalysis:function(e,t,r){for(var i=this,n=new u.GeometryBatchAnalystService(i.url,{serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}),a=[],o=0;o<e.length;o++){var s=e[o];a.push({analystName:s.analystName,param:i._processParams(s.param)})}n.processAsync(a)},_processParams:function(e){if(!e)return{};if(e.bounds&&(e.bounds=l.CommontypesConversion.toSuperMapBounds(e.bounds)),e.inputPoints)for(var t=0;t<e.inputPoints.length;t++){var r=e.inputPoints[t];a.default.Util.isArray(r)&&(e.inputPoints[t]={x:r[0],y:r[1],tag:r[2]})}if(e.points)for(var i=0;i<e.points.length;i++){var n=e.points[i];a.default.Util.isArray(n)?e.points[i]={x:n[0],y:n[1]}:n instanceof a.default.LatLng?e.points[i]={x:n.lng,y:n.lat}:e.points[i]={x:n.x,y:n.y}}if(e.point&&(a.default.Util.isArray(e.point)?e.point={x:e.point[0],y:e.point[1]}:e.point instanceof a.default.LatLng?e.point={x:e.point.lng,y:e.point.lat}:e.point={x:e.point.x,y:e.point.y}),e.extractRegion&&(e.extractRegion=s.toSuperMapGeometry(e.extractRegion)),e.extractParameter&&e.extractParameter.clipRegion&&(e.extractParameter.clipRegion=s.toSuperMapGeometry(e.extractParameter.clipRegion)),e.clipParam&&e.clipParam.clipRegion&&(e.clipParam.clipRegion=s.toSuperMapGeometry(e.clipParam.clipRegion)),e.sourceGeometry){var o=null;e.sourceGeometrySRID&&(o=e.sourceGeometrySRID),e.sourceGeometry=s.toSuperMapGeometry(e.sourceGeometry),o&&(e.sourceGeometry.SRID=o),delete e.sourceGeometry.sourceGeometrySRID}if(e.operateGeometry&&(e.operateGeometry=s.toSuperMapGeometry(e.operateGeometry)),e.sourceGeometries){for(var u=[],c=0;c<e.sourceGeometries.length;c++)u.push(s.toSuperMapGeometry(e.sourceGeometries[c]));e.sourceGeometries=u}if(e.operateGeometries){for(var p=[],h=0;h<e.operateGeometries.length;h++)p.push(s.toSuperMapGeometry(e.operateGeometries[h]));e.operateGeometries=p}if(e.sourceRoute&&e.sourceRoute instanceof a.default.Polyline){var f={type:"LINEM"};f.parts=[e.sourceRoute.getLatLngs().length],f.points=[];for(var d=0;d<e.sourceRoute.getLatLngs().length;d++){var y=e.sourceRoute.getLatLngs()[d];f.points=f.points.concat({x:y.lng,y:y.lat,measure:y.alt})}e.sourceRoute=f}return e.operateRegions&&a.default.Util.isArray(e.operateRegions)&&e.operateRegions.map(function(t,r){return e.operateRegions[r]=s.toSuperMapGeometry(t),e.operateRegions[r]}),e},_processFormat:function(e){return e||u.DataFormat.GEOJSON}}),p=t.spatialAnalystService=function(e,t){return new c(e,t)};a.default.supermap.spatialAnalystService=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.queryService=t.QueryService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(8),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(31)),l=r(25),u=r(5);
  1089. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1090. * This program are made available under the terms of the Apache License, Version 2.0
  1091. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1092. var c=t.QueryService=o.ServiceBase.extend({initialize:function(e,t){o.ServiceBase.prototype.initialize.call(this,e,t)},queryByBounds:function(e,t,r){var i=this;new u.QueryByBoundsService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},queryByDistance:function(e,t,r){var i=this;new u.QueryByDistanceService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},queryBySQL:function(e,t,r){var i=this;new u.QueryBySQLService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},queryByGeometry:function(e,t,r){var i=this;new u.QueryByGeometryService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},_processParams:function(e){return e?(e.returnContent=null==e.returnContent||e.returnContent,e.queryParams&&!a.default.Util.isArray(e.queryParams)&&(e.queryParams=[e.queryParams]),e.bounds&&(e.bounds=l.CommontypesConversion.toSuperMapBounds(e.bounds)),e.geometry&&(e.geometry instanceof a.default.Point?e.geometry=new u.GeometryPoint(e.geometry.x,e.geometry.y):e.geometry=s.toSuperMapGeometry(e.geometry)),e):{}},_processFormat:function(e){return e||u.DataFormat.GEOJSON}}),p=t.queryService=function(e,t){return new c(e,t)};a.default.supermap.queryService=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.networkAnalystService=t.NetworkAnalystService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(8),s=r(5);
  1093. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1094. * This program are made available under the terms of the Apache License, Version 2.0
  1095. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1096. var l=t.NetworkAnalystService=o.ServiceBase.extend({initialize:function(e,t){o.ServiceBase.prototype.initialize.call(this,e,t)},burstPipelineAnalyst:function(e,t){var r=this;new s.BurstPipelineAnalystService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).processAsync(r._processParams(e))},computeWeightMatrix:function(e,t){var r=this;new s.ComputeWeightMatrixService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).processAsync(r._processParams(e))},findClosestFacilities:function(e,t,r){var i=this;new s.FindClosestFacilitiesService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},streamFacilityAnalyst:function(e,t,r){var i=this;new s.FacilityAnalystStreamService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},findLocation:function(e,t,r){var i=this;new s.FindLocationService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},findPath:function(e,t,r){var i=this;new s.FindPathService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},findTSPPaths:function(e,t,r){var i=this;new s.FindTSPPathsService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},findMTSPPaths:function(e,t,r){var i=this;new s.FindMTSPPathsService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},findServiceAreas:function(e,t,r){var i=this;new s.FindServiceAreasService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:i._processFormat(r)}).processAsync(i._processParams(e))},updateEdgeWeight:function(e,t){var r=this;new s.UpdateEdgeWeightService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).processAsync(e)},updateTurnNodeWeight:function(e,t){var r=this;new s.UpdateTurnNodeWeightService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).processAsync(e)},_processParams:function(e){if(!e)return{};if(e.centers&&a.default.Util.isArray(e.centers)&&e.centers.map(function(t,r){return e.centers[r]=t instanceof a.default.LatLng?{x:t.lng,y:t.lat}:t,e.centers[r]}),e.nodes&&a.default.Util.isArray(e.nodes)&&e.nodes.map(function(t,r){return e.nodes[r]=t instanceof a.default.LatLng?{x:t.lng,y:t.lat}:t,e.nodes[r]}),e.event&&e.event instanceof a.default.LatLng&&(e.event={x:e.event.lng,y:e.event.lat}),e.facilities&&a.default.Util.isArray(e.facilities)&&e.facilities.map(function(t,r){return e.facilities[r]=t instanceof a.default.LatLng?{x:t.lng,y:t.lat}:t,e.facilities[r]}),e.parameter&&e.parameter.barrierPoints){var t=e.parameter.barrierPoints;a.default.Util.isArray(t)?t.map(function(t,r){return e.parameter.barrierPoints[r]=t instanceof a.default.LatLng?{x:t.lng,y:t.lat}:t,e.parameter.barrierPoints[r]}):e.parameter.barrierPoints=[t instanceof a.default.LatLng?{x:t.lng,y:t.lat}:t]}return e},_processFormat:function(e){return e||s.DataFormat.GEOJSON}}),u=t.networkAnalystService=function(e,t){return new l(e,t)};a.default.supermap.networkAnalystService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.networkAnalyst3DService=t.NetworkAnalyst3DService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(8);r(3);var s=r(5);
  1097. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1098. * This program are made available under the terms of the Apache License, Version 2.0
  1099. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1100. var l=t.NetworkAnalyst3DService=o.ServiceBase.extend({initialize:function(e,t){o.ServiceBase.prototype.initialize.call(this,e,t)},sinksFacilityAnalyst:function(e,t){var r=this;new s.FacilityAnalystSinks3DService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).processAsync(e)},sourcesFacilityAnalyst:function(e,t){var r=this;new s.FacilityAnalystSources3DService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).processAsync(e)},traceUpFacilityAnalyst:function(e,t){var r=this;new s.FacilityAnalystTraceup3DService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).processAsync(e)},traceDownFacilityAnalyst:function(e,t){var r=this;new s.FacilityAnalystTracedown3DService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).processAsync(e)},upstreamFacilityAnalyst:function(e,t){var r=this;new s.FacilityAnalystUpstream3DService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).processAsync(e)}}),u=t.networkAnalyst3DService=function(e,t){return new l(e,t)};a.default.supermap.networkAnalyst3DService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.measureService=t.MeasureService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(8);r(3);var s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(31)),l=r(5);var u=t.MeasureService=o.ServiceBase.extend({initialize:function(e,t){o.ServiceBase.prototype.initialize.call(this,e,t)},measureDistance:function(e,t){return this.measure(l.MeasureMode.DISTANCE,e,t),this},measureArea:function(e,t){return this.measure(l.MeasureMode.AREA,e,t),this},measure:function(e,t,r){if(t instanceof l.MeasureParameters){var i=this;t.geometry&&(t.geometry=s.toSuperMapGeometry(t.geometry)),new l.MeasureService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,measureMode:e,eventListeners:{scope:i,processCompleted:r,processFailed:r}}).processAsync(t)}}}),c=t.measureService=function(e,t){return new u(e,t)};
  1101. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1102. * This program are made available under the terms of the Apache License, Version 2.0
  1103. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/a.default.supermap.measureService=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.layerInfoService=t.LayerInfoService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(8);r(3);var s=r(5);
  1104. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1105. * This program are made available under the terms of the Apache License, Version 2.0
  1106. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1107. var l=t.LayerInfoService=o.ServiceBase.extend({initialize:function(e,t){o.ServiceBase.prototype.initialize.call(this,e,t)},getLayersInfo:function(e){var t=this;new s.GetLayersInfoService(t.url,{proxy:t.options.proxy,withCredentials:t.options.withCredentials,crossOrigin:t.options.crossOrigin,serverType:t.options.serverType,eventListeners:{processCompleted:e,processFailed:e}}).processAsync()},setLayerInfo:function(e,t){if(e instanceof s.SetLayerInfoParameters){var r=this,i=e.resourceID,n=e.tempLayerName,a=e.layerInfo;if(i&&n){var o=r.url.concat();o+="/tempLayersSet/"+i+"/"+n,new s.SetLayerInfoService(o,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{processCompleted:t,processFailed:t}}).processAsync(a)}}},setLayersInfo:function(e,t){if(e instanceof s.SetLayersInfoParameters){var r=this,i=e.resourceID,n=!!e.isTempLayers&&e.isTempLayers,a=e.layersInfo;if((!n||i)&&a)new s.SetLayersInfoService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{processCompleted:t,processFailed:t},resourceID:i,isTempLayers:n}).processAsync(a)}},setLayerStatus:function(e,t){if(e instanceof s.SetLayerStatusParameters){var r=this;new s.SetLayerStatusService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{processCompleted:t,processFailed:t}}).processAsync(e)}}}),u=t.layerInfoService=function(e,t){return new l(e,t)};a.default.supermap.layerInfoService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.gridCellInfosService=t.GridCellInfosService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(8);r(3);var s=r(5);
  1108. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1109. * This program are made available under the terms of the Apache License, Version 2.0
  1110. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1111. var l=t.GridCellInfosService=o.ServiceBase.extend({initialize:function(e,t){o.ServiceBase.prototype.initialize.call(this,e,t)},getGridCellInfos:function(e,t){if(e instanceof s.GetGridCellInfosParameters){var r=this;new s.GetGridCellInfosService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).processAsync(e)}}}),u=t.gridCellInfosService=function(e,t){return new l(e,t)};a.default.supermap.gridCellInfosService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fieldService=t.FieldService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(8),s=r(5);
  1112. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1113. * This program are made available under the terms of the Apache License, Version 2.0
  1114. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1115. var l=t.FieldService=o.ServiceBase.extend({initialize:function(e,t){o.ServiceBase.prototype.initialize.call(this,e,t)},getFields:function(e,t){var r=this;new s.GetFieldsService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t},datasource:e.datasource,dataset:e.dataset}).processAsync()},getFieldStatisticsInfo:function(e,t){if(e instanceof s.FieldStatisticsParameters){var r=e.fieldName,i=e.statisticMode;for(var n in i&&!a.default.Util.isArray(i)&&(i=[i]),this.currentStatisticResult={fieldName:r},this._statisticsCallback=t,i)this.currentStatisticResult[i[n]]=null,this._fieldStatisticRequest(e.datasource,e.dataset,r,i[n])}},_fieldStatisticRequest:function(e,t,r,i){new s.FieldStatisticService(this.url,{eventListeners:{scope:this,processCompleted:this._processCompleted,processFailed:this._statisticsCallback},datasource:e,dataset:t,field:r,statisticMode:i}).processAsync()},_processCompleted:function(e){var t=this,r=!0,i=e.result;for(var n in this.currentStatisticResult&&null==t.currentStatisticResult[i.mode]&&(this.currentStatisticResult[i.mode]=i.result),t.currentStatisticResult)if(null==t.currentStatisticResult[n]){r=!1;break}r&&t._statisticsCallback({result:t.currentStatisticResult})}}),u=t.fieldService=function(e,t){return new l(e,t)};a.default.supermap.fieldService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.chartService=t.ChartService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(5),s=r(8),l=r(25);var u=t.ChartService=s.ServiceBase.extend({initialize:function(e,t){s.ServiceBase.prototype.initialize.call(this,e,t)},queryChart:function(e,t,r){var i=this,n=i._processParams(e),a=i._processFormat(r);new o.ChartQueryService(i.url,{proxy:i.options.proxy,withCredentials:i.options.withCredentials,crossOrigin:i.options.crossOrigin,serverType:i.options.serverType,eventListeners:{scope:i,processCompleted:t,processFailed:t},format:a}).processAsync(n)},getChartFeatureInfo:function(e){var t=this,r=t.url.concat();r+="/chartFeatureInfoSpecs",new o.ChartFeatureInfoSpecsService(r,{proxy:t.options.proxy,withCredentials:t.options.withCredentials,crossOrigin:t.options.crossOrigin,serverType:t.options.serverType,eventListeners:{scope:t,processCompleted:e,processFailed:e}}).processAsync()},_processParams:function(e){if(!e)return{};e.returnContent=null==e.returnContent||e.returnContent,e.chartQueryFilterParameters&&!a.default.Util.isArray(e.chartQueryFilterParameters)&&(e.chartQueryFilterParameters=[e.chartQueryFilterParameters]),e.bounds&&(e.bounds=l.CommontypesConversion.toSuperMapBounds(e.bounds))},_processFormat:function(e){return e||o.DataFormat.GEOJSON}}),c=t.chartService=function(e,t){return new u(e,t)};
  1116. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1117. * This program are made available under the terms of the Apache License, Version 2.0
  1118. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/a.default.supermap.chartService=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addressMatchService=t.AddressMatchService=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(8);r(3);var s=r(5);
  1119. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1120. * This program are made available under the terms of the Apache License, Version 2.0
  1121. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1122. var l=t.AddressMatchService=o.ServiceBase.extend({initialize:function(e,t){o.ServiceBase.prototype.initialize.call(this,e,t)},code:function(e,t){var r=this;new s.AddressMatchService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).code(r.url+"/geocoding",e)},decode:function(e,t){var r=this;new s.AddressMatchService(r.url,{proxy:r.options.proxy,withCredentials:r.options.withCredentials,crossOrigin:r.options.crossOrigin,serverType:r.options.serverType,eventListeners:{scope:r,processCompleted:t,processFailed:t}}).decode(r.url+"/geodecoding",e)}}),u=t.addressMatchService=function(e,t){return new l(e,t)};a.default.supermap.addressMatchService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trafficTransferAnalystService=t.TrafficTransferAnalystService=t.themeService=t.ThemeService=t.spatialAnalystService=t.SpatialAnalystService=t.ServiceBase=t.queryService=t.QueryService=t.processingService=t.ProcessingService=t.networkAnalystService=t.NetworkAnalystService=t.networkAnalyst3DService=t.NetworkAnalyst3DService=t.measureService=t.MeasureService=t.mapService=t.MapService=t.layerInfoService=t.LayerInfoService=t.gridCellInfosService=t.GridCellInfosService=t.fieldService=t.FieldService=t.featureService=t.FeatureService=t.dataFlowService=t.DataFlowService=t.chartService=t.ChartService=t.addressMatchService=t.AddressMatchService=void 0;var i=r(355),n=r(354),a=r(161),o=r(164),s=r(353),l=r(352),u=r(351),c=r(175),p=r(350),h=r(349),f=r(348),d=r(147),y=r(347),v=r(8),m=r(346),g=r(345),b=r(344);t.AddressMatchService=i.AddressMatchService,t.addressMatchService=i.addressMatchService,
  1123. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1124. * This program are made available under the terms of the Apache License, Version 2.0
  1125. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1126. t.ChartService=n.ChartService,t.chartService=n.chartService,t.DataFlowService=a.DataFlowService,t.dataFlowService=a.dataFlowService,t.FeatureService=o.FeatureService,t.featureService=o.featureService,t.FieldService=s.FieldService,t.fieldService=s.fieldService,t.GridCellInfosService=l.GridCellInfosService,t.gridCellInfosService=l.gridCellInfosService,t.LayerInfoService=u.LayerInfoService,t.layerInfoService=u.layerInfoService,t.MapService=c.MapService,t.mapService=c.mapService,t.MeasureService=p.MeasureService,t.measureService=p.measureService,t.NetworkAnalyst3DService=h.NetworkAnalyst3DService,t.networkAnalyst3DService=h.networkAnalyst3DService,t.NetworkAnalystService=f.NetworkAnalystService,t.networkAnalystService=f.networkAnalystService,t.ProcessingService=d.ProcessingService,t.processingService=d.processingService,t.QueryService=y.QueryService,t.queryService=y.queryService,t.ServiceBase=v.ServiceBase,t.SpatialAnalystService=m.SpatialAnalystService,t.spatialAnalystService=m.spatialAnalystService,t.ThemeService=g.ThemeService,t.themeService=g.themeService,t.TrafficTransferAnalystService=b.TrafficTransferAnalystService,t.trafficTransferAnalystService=b.trafficTransferAnalystService},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VectorTilePBF=t.VectorTileJSON=t.VectorTile=t.VectorGrid=t.VectorFeatureType=t.TextSymbolizer=t.PolyBase=t.Symbolizer=t.SVGRenderer=t.RegionSymbolizer=t.PointSymbolizer=t.LineSymbolizer=t.CanvasRenderer=void 0;var i=r(98),n=r(153),a=r(154),o=r(152),s=r(99),l=r(51),u=r(96),c=r(97),p=r(52),h=r(156),f=r(155),d=r(148),y=r(151);t.CanvasRenderer=i.CanvasRenderer,
  1127. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1128. * This program are made available under the terms of the Apache License, Version 2.0
  1129. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1130. t.LineSymbolizer=n.LineSymbolizer,t.PointSymbolizer=a.PointSymbolizer,t.RegionSymbolizer=o.RegionSymbolizer,t.SVGRenderer=s.SVGRenderer,t.Symbolizer=l.Symbolizer,t.PolyBase=u.PolyBase,t.TextSymbolizer=c.TextSymbolizer,t.VectorFeatureType=p.VectorFeatureType,t.VectorGrid=h.VectorGrid,t.VectorTile=f.VectorTile,t.VectorTileJSON=d.VectorTileJSON,t.VectorTilePBF=y.VectorTilePBF},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeLayer=t.themeFeature=t.ThemeFeature=t.GeoFeatureThemeLayer=void 0;var i=r(68),n=r(100),a=r(101);t.GeoFeatureThemeLayer=i.GeoFeatureThemeLayer,
  1131. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1132. * This program are made available under the terms of the Apache License, Version 2.0
  1133. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1134. t.ThemeFeature=n.ThemeFeature,t.themeFeature=n.themeFeature,t.ThemeLayer=a.ThemeLayer},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MapVRenderer=void 0;var i=r(159);t.MapVRenderer=i.MapVRenderer},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CompOpMap=t.ServerStyleMap=t.CartoStyleMap=t.DefaultStyle=t.CartoCSSToLeaflet=void 0;var i=r(102),n=r(170),a=r(169);t.CartoCSSToLeaflet=i.CartoCSSToLeaflet,
  1135. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1136. * This program are made available under the terms of the Apache License, Version 2.0
  1137. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1138. t.DefaultStyle=n.DefaultStyle,t.CartoStyleMap=a.CartoStyleMap,t.ServerStyleMap=a.ServerStyleMap,t.CompOpMap=a.CompOpMap},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.heatMapFeature=t.HeatMapFeature=t.heatMapLayer=t.HeatMapLayer=void 0;var i=o(r(2)),n=r(5),a=o(r(11));function o(e){return e&&e.__esModule?e:{default:e}}var s=t.HeatMapLayer=i.default.Layer.extend({options:{alwaysMapCRS:!1,id:n.CommonUtil.createUniqueID("heatMapLayer_"),featureWeight:null,opacity:1,colors:["blue","cyan","lime","yellow","red"],useGeoUnit:!1,radius:50,attribution:a.default.Common.attribution},initialize:function(e,t){i.default.Util.setOptions(this,t),this.name=e,this.features=[],this.maxWeight=null,this.minWeight=null,this.rootCanvas=null,this.canvasContext=null,this.maxWidth=null,this.maxHeight=null,this.id=this.options.id,this.featureWeight=this.options.featureWeight,this.colors=this.options.colors,this.useGeoUnit=this.options.useGeoUnit,this.opacity=this.options.opacity,this.radius=this.options.radius,this.movingOffset=[0,0]},onRemove:function(e){i.default.DomUtil.remove(this.rootCanvas),e.off("mousemove",this.mouseMoveHandler)},onAdd:function(e){var t=this;if(t._map=e,t._createCanvasContainer(),t.rootCanvas){var r=e.getSize();t.rootCanvas.width=t.maxWidth=r.x,t.rootCanvas.height=t.maxHeight=r.y,t._updateOpacity(),t.mouseMoveHandler=function(e){var r=e.layerPoint;t.currentMousePosition=i.default.point(r.x+t.movingOffset[0],r.y+t.movingOffset[1])},e.on("mousemove",t.mouseMoveHandler),t.update()}else e.removeLayer(t)},addFeatures:function(e){this.features=this.toiClientFeature(e),this.refresh()},refresh:function(){if(0!==this.features.length&&this._map){var e=this._map.getBounds();this.updateHeatPoints(e)}},updateHeatPoints:function(e){this.features&&this.features.length>0?this.convertFastToPixelPoints(e):this.canvasContext.clearRect(0,0,this.maxWidth,this.maxWidth)},convertFastToPixelPoints:function(e){var t,r,i,a,o,s,l,u=[],c=e.getEast()-e.getWest(),p=e.getNorth()-e.getSouth(),h=this._map.getSize();a=c/h.x>p/h.y?c/h.x:p/h.y,this.useRadius=this.useGeoUnit?parseInt(this.radius/a):this.radius;for(var f=0;f<this.features.length;f++){var d=this.features[f],y=d.geometry,v=this.getLocalXY(new n.LonLat(y.x,y.y));this.featureWeight?(v.weight=d.attributes[this.featureWeight],this.maxWeight||(o=o||v.weight,s=s||v.weight,o=Math.max(o,v.weight),s=Math.min(s,v.weight))):v.weight=1,t=Math.floor(v[0]),r=Math.floor(v[1]),i=v.weight,u.push([t,r,i])}this.maxWeight?this.draw(u,this.maxWeight):(l=o&&s?(o+s)/2:1,this.draw(u,l))},draw:function(e,t){if(!(this.maxHeight>0&&this.maxWidth>0))return!1;var r=this.canvasContext;this.canvasContext.clearRect(0,0,this.maxWidth,this.maxHeight),this.drawCircle(this.useRadius),this.createGradient();for(var i=0;i<e.length;i++){var n=e[i];this.canvasContext.globalAlpha=Math.max(n[2]/t,.05),this.canvasContext.drawImage(this.circle,n[0]-this.useRadius,n[1]-this.useRadius)}var a=r.getImageData(0,0,this.maxWidth,this.maxHeight);this.colorize(a.data,this.grad),r.putImageData(a,0,0)},colorize:function(e,t){for(var r,i=0;i<e.length;i+=4)(r=4*e[i+3])&&(e[i]=t[r],e[i+1]=t[r+1],e[i+2]=t[r+2])},drawCircle:function(e){var t=e/2,r=this.circle=document.createElement("canvas"),i=r.getContext("2d");r.height=2*e,r.width=2*e,i.shadowOffsetX=i.shadowOffsetY=2*e,i.shadowBlur=t,i.shadowColor="#000000",i.beginPath(),i.arc(-e,-e,e/2,0,2*Math.PI,!0),i.closePath(),i.fill()},createGradient:function(){var e=this.colors,t=document.createElement("canvas"),r=t.getContext("2d"),i=r.createLinearGradient(0,0,0,256);t.height=256,t.width=1;for(var n=1,a=0,o=e.length;a<o;a++)i.addColorStop(n/o,e[a]),n++;r.fillStyle=i,r.fillRect(0,0,1,256),this.grad=r.getImageData(0,0,1,256).data},update:function(){var e=this._map.containerPointToLayerPoint([0,0]);i.default.DomUtil.setPosition(this.rootCanvas,e);var t=this;t.refresh(),t.currentMousePosition&&(t.currentMousePosition=i.default.point(t.currentMousePosition.x-t.movingOffset[0],t.currentMousePosition.y-t.movingOffset[1])),t.movingOffset=[0,0],t._zoom=t._map.getZoom(),t._center=t._map.getCenter()},getLocalXY:function(e){if(!this._map)return e;var t=e;i.default.Util.isArray(e)&&(t=i.default.point(e[0],e[1])),e instanceof i.default.Point||(t=e instanceof n.GeometryPoint||e instanceof n.GeoText?i.default.point(e.x,e.y):i.default.point(e.lon,e.lat));var r=this._map.latLngToContainerPoint(this.options.alwaysMapCRS?this._map.options.crs.unproject(t):i.default.latLng(t.y,t.x));return[r.x,r.y]},setOpacity:function(e){e!==this.options.opacity&&(e&&(this.options.opacity=e),this._updateOpacity())},removeFeatures:function(e){if(e&&0!==e.length&&this.features&&0!==this.features.length){if(e===this.features)return this.removeAllFeatures();n.CommonUtil.isArray(e)||(e=[e]);for(var t,r,i=[],a=0,o=e.length;a<o;a++)t=e[a],-1!==(r=n.CommonUtil.indexOf(this.features,t))?this.features.splice(r,1):i.push(t);var s=0==i.length;this._map.fire("featuresremoved",{features:i,succeed:s}),this.refresh()}},removeAllFeatures:function(){this.features=[],this.refresh()},_createCanvasContainer:function(){var e=this.getPane(),t="heatMapLayer leaflet-layer leaflet-zoom-"+(this._map.options.zoomAnimation&&i.default.Browser.any3d?"animated":"hide");this.rootCanvas=i.default.DomUtil.create("canvas",t,e);var r=i.default.DomUtil.testProp(["transformOrigin","WebkitTransformOrigin","msTransformOrigin"]);this.rootCanvas.id=this.id,this.rootCanvas.style[r]="50% 50%",this.rootCanvas.style.position="absolute",this.rootCanvas.style.zIndex=200,n.CommonUtil.modifyDOMElement(this.rootCanvas,null,null,null,null,null,null,this.opacity),this.canvasContext=this.rootCanvas.getContext("2d")},_updateOpacity:function(){var e=this;n.CommonUtil.modifyDOMElement(e.rootCanvas,null,null,null,null,null,null,e.options.opacity),null!==e._map&&e._map.fire("changelayer",{layer:e,property:"opacity"})},getEvents:function(){var e={zoomend:this._reset,moveend:this._reset,resize:this._resize};return this._map._zoomAnimated&&(e.zoomanim=this._zoomAnim),e},toiClientFeature:function(e){i.default.Util.isArray(e)||(e=[e]);for(var t=[],r=0,a=e.length;r<a;r++)if(e[r]instanceof u)t.push(e[r].toFeature());else if(-1!=["FeatureCollection","Feature","Geometry"].indexOf(e[r].type)){var o=new n.GeoJSON;t=t.concat(o.read(e[r]))}else{if(!e[r].geometry||!e[r].geometry.parts)throw new Error("Features's type does not match, please check.");t.push(n.ServerFeature.fromJson(e[r]).toFeature())}return t},_zoomAnim:function(e){var t=this._map.getZoomScale(e.zoom),r=this._map._getCenterOffset(e.center)._multiplyBy(-t).subtract(this._map._getMapPanePos());i.default.DomUtil.setTransform?i.default.DomUtil.setTransform(this.rootCanvas,r,t):this.rootCanvas.style[i.default.DomUtil.TRANSFORM]=i.default.DomUtil.getTranslateString(r)+" scale("+t+")"},_reset:function(){var e=this;e.update();var t=e._map.getSize(),r=this._map.containerPointToLayerPoint([0,0]);i.default.DomUtil.setPosition(this.rootCanvas,r),parseFloat(e.rootCanvas.width)!==parseFloat(t.x)&&(e.rootCanvas.width=t.x),parseFloat(e.rootCanvas.height)!==parseFloat(t.y)&&(e.rootCanvas.height=t.y),e.refresh()},_resize:function(){var e=this._map.getSize();this.maxWidth=e.x,this.maxHeight=e.y}}),l=t.heatMapLayer=function(e,t){return new s(e,t)};
  1139. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1140. * This program are made available under the terms of the Apache License, Version 2.0
  1141. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/i.default.supermap.heatMapLayer=l;var u=t.HeatMapFeature=i.default.Class.extend({initialize:function(e,t){this.geometry=e,this.attributes=t},toFeature:function(){var e=this.geometry,t=[];if(e instanceof i.default.LatLng)t=[e.lng,e.lat];else if(e instanceof i.default.Point)t=[e.x,e.y];else if(e instanceof i.default.CircleMarker){var r=e.getLatLng();t=[r.lng,r.lat]}else t=e;return 2===t.length&&(e=new n.GeometryPoint(t[0],t[1])),new n.GeometryVector(e,this.attributes)}}),c=t.heatMapFeature=function(e,t){return new u(e,t)};i.default.supermap.heatMapFeature=c},function(e,t){e.exports=function(){try{return turf}catch(e){return{}}}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.turfLayer=t.TurfLayer=void 0;var i=o(r(2));r(3);var n=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(362)),a=o(r(11));function o(e){return e&&e.__esModule?e:{default:e}}
  1142. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1143. * This program are made available under the terms of the Apache License, Version 2.0
  1144. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.TurfLayer=i.default.GeoJSON.extend({turfMap:{"Measurement.along":["line","distance","units"],"Measurement.area":["geojson"],"Measurement.bbox":["geojson"],"Measurement.bboxPolygon":["bbox"],"Measurement.bearing":["start","end","final"],"Measurement.center":["geojson","properties"],"Measurement.centerOfMass":["geojson","properties"],"Measurement.centroid":["geojson","properties"],"Measurement.destination":["origin","distance","bearing","units"],"Measurement.distance":["from","to","units"],"Measurement.envelope":["geojson"],"Measurement.length":["geojson","units"],"Measurement.midpoint":["point1","point2"],"Measurement.pointOnFeature":["geojson"],"Measurement.polygonTangents":["point","polygon"],"Measurement.rhumbBearing":["start","end","final"],"Measurement.rhumbDestination":["origin","distance","bearing","units"],"Measurement.rhumbDistance":["from","to","units"],"Measurement.square":["bbox"],"Measurement.greatCircle":["start","end","properties","npoints","offset"],"CoordinateMutation.cleanCoords":["geojson","mutate"],"CoordinateMutation.flip":["geojson","mutate"],"CoordinateMutation.rewind":["geojson","reverse","mutate"],"CoordinateMutation.round":["num","precision"],"CoordinateMutation.truncate":["geojson","precision","coordinates","mutate"],"Transformation.bboxClip":["feature","bbox"],"Transformation.bezierSpline":["line","resolution","sharpness"],"Transformation.buffer":["geojson","radius","units","steps"],"Transformation.circle":["center","radius","steps","units","properties"],"Transformation.clone":["geojson"],"Transformation.concave":["points","maxEdge","units"],"Transformation.convex":["geojson","concavity"],"Transformation.difference":["polygon1","polygon2"],"Transformation.dissolve":["featureCollection","propertyName"],"Transformation.intersect":["poly1","poly2"],"Transformation.lineOffset":["geojson","distance","units"],"Transformation.simplify":["feature","tolerance","highQuality"],"Transformation.tesselate":["poly"],"Transformation.transformRotate":["geojson","angle","pivot","mutate"],"Transformation.transformTranslate":["geojson","distance","direction","units","zTranslation","mutate"],"Transformation.transformScale":["geojson","factor","origin","mutate"],"Transformation.union":["A"],"Transformation.voronoi":["points","bbox"],"featureConversion.combine":["fc"],"featureConversion.explode":["geojson"],"featureConversion.flatten":["geojson"],"featureConversion.lineStringToPolygon":["lines","properties","autoComplete","orderCoords"],"featureConversion.polygonize":["geojson"],"featureConversion.polygonToLineString":["polygon","properties"],"Misc.kinks":["featureIn"],"Misc.lineArc":["center","radius","bearing1","bearing2","steps","units"],"Misc.lineChunk":["geojson","segmentLength","units","reverse"],"Misc.lineIntersect":["line1","line2"],"Misc.lineOverlap":["line1","line2"],"Misc.lineSegment":["geojson"],"Misc.lineSlice":["startPt","stopPt","line"],"Misc.lineSliceAlong":["line","startDist","stopDist","units"],"Misc.lineSplit":["line","splitter"],"Misc.mask":["polygon","mask"],"Misc.pointOnLine":["lines","pt","units"],"Misc.sector":["center","radius","bearing1","bearing2","steps","units"],"Misc.shortestPath":["start","end","obstacles","units","resolution"],"Misc.unkinkPolygon":["geojson"],"Helper.featureCollection":["features","bbox","id"],"Helper.feature":["geometry","properties","bbox","id"],"Helper.geometryCollection":["geometries","properties","bbox","id"],"Helper.lineString":["coordinates","properties","bbox","id"],"Helper.multiLineString":["coordinates","properties","bbox","id"],"Helper.multiPoint":["coordinates","properties","bbox","id"],"Helper.multiPolygon":["coordinates","properties","bbox","id"],"Helper.point":["coordinates","properties","bbox","id"],"Helper.polygon":["coordinates","properties","bbox","id"],"Data.sample":["featurecollection","num"],"Interpolation.interpolate":["points","cellSize","gridType","property","units","weight"],"Interpolation.isobands":["pointGrid","breaks","zProperty","commonProperties","breaksProperties"],"Interpolation.isolines":["pointGrid","breaks","zProperty","commonProperties","breaksProperties"],"Interpolation.planepoint":["point","triangle"],"Interpolation.tin":["points","z"],"Joins.pointsWithinPolygon":["points","polygons"],"Joins.tag":["points","polygons","field","outField","mask","properties"],"Grids.hexGrid":["bbox","cellSide","units","triangles"],"Grids.pointGrid":["bbox","cellSide","units","mask","properties"],"Grids.squareGrid":["bbox","cellSide","units","mask","properties"],"Grids.triangleGrid":["bbox","cellSide","units","mask","properties"],"Classification.nearestPoint":["targetPoint","points"],"Aggregation.collect":["polygons","points","inProperty","outProperty"],"Aggregation.clustersDbscan":["points","maxDistance","units","minPoints","mutate"],"Aggregation.clustersKmeans":["points","numberOfClusters","mutate"],"Meta.coordAll":["geojson"],"Meta.coordEach":["geojson","callback","excludeWrapCoord"],"Meta.coordReduce":["geojson","callback","initialValue","excludeWrapCoord"],"Meta.featureEach":["geojson","callback"],"Meta.featureReduce":["geojson","callback","initialValue"],"Meta.flattenEach":["geojson","callback"],"Meta.flattenReduce":["geojson","callback","initialValue"],"Meta.getCoord":["coord"],"Meta.getCoords":["coords"],"Meta.getGeom":["geojson"],"Meta.getGeomType":["geojson","name"],"Meta.geomEach":["geojson","callback"],"Meta.geomReduce":["geojson","callback","initialValue"],"Meta.propEach":["geojson","callback"],"Meta.propReduce":["geojson","callback","initialValue"],"Meta.segmentEach":["geojson","callback"],"Meta.segmentReduce":["geojson","callback","initialValue"],"Meta.getCluster":["geojson","filter"],"Meta.clusterEach":["geojson","property","callback"],"Meta.clusterReduce":["geojson","property","callback","initialValue"],"Assertions.collectionOf":["featureCollection","type","name"],"Assertions.containsNumber":["coordinates"],"Assertions.geojsonType":["value","type","name"],"Assertions.featureOf":["feature","type","name"],"Booleans.booleanClockwise":["line"],"Booleans.booleanContains":["feature1","feature2"],"Booleans.booleanCrosses":["feature1","feature2"],"Booleans.booleanDisjoint":["feature1","feature2"],"Booleans.booleanEqual":["feature1","feature2"],"Booleans.booleanOverlap":["feature1","feature2"],"Booleans.booleanParallel":["feature1","feature2"],"Booleans.booleanPointInPolygon":["point","polygon","ignoreBoundary"],"Booleans.booleanPointOnLine":["point","linestring","ignoreEndVertices"],"UnitConversion.bearingToAngle":["bearing"],"UnitConversion.convertArea":["area","originalUnit","finalUnit"],"UnitConversion.convertLength":["length","originalUnit","finalUnit"],"UnitConversion.degreesToradians":["degrees"],"UnitConversion.lengthToRadians":["distance","units"],"UnitConversion.lengthToDegrees":["distance","units"],"UnitConversion.radiansToLength":["radians","units"],"UnitConversion.radiansToDegrees":["radians"],"UnitConversion.toMercator":["geojson","mutate"],"UnitConversion.toWgs84":["geojson","mutate"]},options:{attribution:a.default.Turf.attribution},initialize:function(e){e=e||{},i.default.Util.setOptions(this,e),i.default.stamp(this),this._layers={}},turfOptionMap:{"Measurement.along":["line","distance",{units:""}],"Measurement.bboxPolygon":["bbox",{properties:"",id:""}],"Measurement.bearing":["start","end",{final:""}],"Measurement.center":["geojson",{properties:""}],"Measurement.destination":["origin","distance","bearing",{units:"",properties:""}],"Measurement.distance":["from","to",{units:""}],"Measurement.length":["geojson",{units:""}],"Measurement.rhumbBearing":["start","end",{final:""}],"Measurement.rhumbDestination":["origin","distance","bearing",{units:"",properties:""}],"Measurement.rhumbDistance":["from","to",{units:""}],"Measurement.greatCircle":["start","end",{properties:"",npoints:"",offset:""}],"CoordinateMutation.cleanCoords":["geojson",{mutate:""}],"CoordinateMutation.flip":["geojson",{mutate:""}],"CoordinateMutation.rewind":["geojson",{mutate:"",reverse:""}],"CoordinateMutation.truncate":["geojson",{precision:"",coordinates:"",mutate:""}],"Transformation.bezierSpline":["line",{resolution:"",sharpness:""}],"Transformation.buffer":["geojson","radius",{units:"",steps:""}],"Transformation.circle":["center","radius",{units:"",steps:"",properties:""}],"Transformation.concave":["points",{maxEdge:"",units:""}],"Transformation.convex":["geojson",{concavity:""}],"Transformation.dissolve":["featureCollection",{propertyName:""}],"Transformation.lineOffset":["geojson","distance",{units:""}],"Transformation.simplify":["geojson",{tolerance:"",highQuality:""}],"Transformation.transformRotate":["geojson","angle",{pivot:"",mutate:""}],"Transformation.transformTranslate":["geojson","distance","direction",{units:"",zTranslation:"",mutate:""}],"Transformation.transformScale":["geojson","factor",{origin:"",mutate:""}],"Transformation.voronoi":["points",{bbox:""}],"featureConversion.lineStringToPolygon":["lines",{properties:"",autoComplete:"",orderCoords:""}],"featureConversion.polygonToLineString":["polygon",{properties:""}],"Misc.lineArc":["center","radius","bearing1","bearing2",{steps:"",units:""}],"Misc.lineChunk":["geojson","segmentLength",{units:"",reverse:""}],"Misc.lineOverlap":["line1","line2",{tolerance:""}],"Misc.lineSliceAlong":["line","startDist","stopDist",{units:""}],"Misc.pointOnLine":["lines","pt",{units:""}],"Misc.sector":["center","radius","bearing1","bearing2",{units:"",steps:"",properties:""}],"Misc.shortestPath":["start","end",{obstacles:"",units:"",resolution:""}],"Helper.feature":["geometry","properties",{bbox:"",id:""}],"Helper.geometryCollection":["geometries","properties",{bbox:"",id:""}],"Helper.lineString":["coordinates","properties",{bbox:"",id:""}],"Helper.multiLineString":["coordinates","properties",{bbox:"",id:""}],"Helper.multiPoint":["coordinates","properties",{bbox:"",id:""}],"Helper.multiPolygon":["coordinates","properties",{bbox:"",id:""}],"Helper.point":["coordinates","properties",{bbox:"",id:""}],"Helper.polygon":["coordinates","properties",{bbox:"",id:""}],"Interpolation.interpolate":["points","cellSize",{gridType:"",property:"",units:"",weight:""}],"Interpolation.isobands":["pointGrid","breaks",{zProperty:"",commonProperties:"",breaksProperties:""}],"Interpolation.isolines":["pointGrid","breaks",{zProperty:"",commonProperties:"",breaksProperties:""}],"Grids.hexGrid":["bbox","cellSide",{units:"",triangles:"",properties:"",mask:""}],"Grids.pointGrid":["bbox","cellSide",{units:"",mask:"",properties:""}],"Grids.squareGrid":["bbox","cellSide",{units:"",mask:"",properties:""}],"Grids.triangleGrid":["bbox","cellSide",{units:"",mask:"",properties:""}],"Aggregation.clustersDbscan":["points","maxDistance",{units:"",minPoints:"",mutate:""}],"Aggregation.clustersKmeans":["points",{numberOfClusters:"",mutate:""}],"Booleans.booleanPointInPolygon":["point","polygon",{ignoreBoundary:""}],"Booleans.booleanPointOnLine":["point","linestring",{ignoreEndVertices:""}],"UnitConversion.toMercator":["geojson",{mutate:""}],"UnitConversion.toWgs84":["geojson",{mutate:""}]},process:function(e,t,r,i){var a;try{a=n[e.split(".")[1]].apply(this,this.parse(e,t))}catch(r){a=n[e.split(".")[1]].apply(this,this.parseOption(e,t))}(i=null==i||i)&&this.addData([a]),r&&r(a)},parse:function(e,t){if("Transformation.union"===e)return t.A;var r=[],i=this.turfMap[e];return i&&i.map(function(e){return r.push(t[e]),t[e]}),r},parseOption:function(e,t){var r=[];return this.turfOptionMap[e].map(function(e){if(e instanceof Object){var i=e;Object.keys(i).forEach(function(e){i[e]=t[e]}),r.push(i)}else r.push(t[e]);return t}),r}}),l=t.turfLayer=function(e){return new s(e)};i.default.supermap.turfLayer=l},function(e,t,r){"use strict";function i(e,t){this.x=e,this.y=t}e.exports=i,i.prototype={clone:function(){return new i(this.x,this.y)},add:function(e){return this.clone()._add(e)},sub:function(e){return this.clone()._sub(e)},multByPoint:function(e){return this.clone()._multByPoint(e)},divByPoint:function(e){return this.clone()._divByPoint(e)},mult:function(e){return this.clone()._mult(e)},div:function(e){return this.clone()._div(e)},rotate:function(e){return this.clone()._rotate(e)},rotateAround:function(e,t){return this.clone()._rotateAround(e,t)},matMult:function(e){return this.clone()._matMult(e)},unit:function(){return this.clone()._unit()},perp:function(){return this.clone()._perp()},round:function(){return this.clone()._round()},mag:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},equals:function(e){return this.x===e.x&&this.y===e.y},dist:function(e){return Math.sqrt(this.distSqr(e))},distSqr:function(e){var t=e.x-this.x,r=e.y-this.y;return t*t+r*r},angle:function(){return Math.atan2(this.y,this.x)},angleTo:function(e){return Math.atan2(this.y-e.y,this.x-e.x)},angleWith:function(e){return this.angleWithSep(e.x,e.y)},angleWithSep:function(e,t){return Math.atan2(this.x*t-this.y*e,this.x*e+this.y*t)},_matMult:function(e){var t=e[0]*this.x+e[1]*this.y,r=e[2]*this.x+e[3]*this.y;return this.x=t,this.y=r,this},_add:function(e){return this.x+=e.x,this.y+=e.y,this},_sub:function(e){return this.x-=e.x,this.y-=e.y,this},_mult:function(e){return this.x*=e,this.y*=e,this},_div:function(e){return this.x/=e,this.y/=e,this},_multByPoint:function(e){return this.x*=e.x,this.y*=e.y,this},_divByPoint:function(e){return this.x/=e.x,this.y/=e.y,this},_unit:function(){return this._div(this.mag()),this},_perp:function(){var e=this.y;return this.y=this.x,this.x=-e,this},_rotate:function(e){var t=Math.cos(e),r=Math.sin(e),i=t*this.x-r*this.y,n=r*this.x+t*this.y;return this.x=i,this.y=n,this},_rotateAround:function(e,t){var r=Math.cos(e),i=Math.sin(e),n=t.x+r*(this.x-t.x)-i*(this.y-t.y),a=t.y+i*(this.x-t.x)+r*(this.y-t.y);return this.x=n,this.y=a,this},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this}},i.convert=function(e){return e instanceof i?e:Array.isArray(e)?new i(e[0],e[1]):e}},function(e,t,r){"use strict";var i=r(150);function n(e,t,r){if(3===e){var n=new i(r,r.readVarint()+r.pos);n.length&&(t[n.name]=n)}}e.exports=function(e,t){this.layers=e.readFields(n,{},t)}},function(e,t,r){"use strict";e.exports.VectorTile=r(365),e.exports.VectorTileFeature=r(149),e.exports.VectorTileLayer=r(150)},function(e,t,r){"use strict";t.read=function(e,t,r,i,n){var a,o,s=8*n-i-1,l=(1<<s)-1,u=l>>1,c=-7,p=r?n-1:0,h=r?-1:1,f=e[t+p];for(p+=h,a=f&(1<<-c)-1,f>>=-c,c+=s;c>0;a=256*a+e[t+p],p+=h,c-=8);for(o=a&(1<<-c)-1,a>>=-c,c+=i;c>0;o=256*o+e[t+p],p+=h,c-=8);if(0===a)a=1-u;else{if(a===l)return o?NaN:1/0*(f?-1:1);o+=Math.pow(2,i),a-=u}return(f?-1:1)*o*Math.pow(2,a-i)},t.write=function(e,t,r,i,n,a){var o,s,l,u=8*a-n-1,c=(1<<u)-1,p=c>>1,h=23===n?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:a-1,d=i?1:-1,y=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=c):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),(t+=o+p>=1?h/l:h*Math.pow(2,1-p))*l>=2&&(o++,l/=2),o+p>=c?(s=0,o=c):o+p>=1?(s=(t*l-1)*Math.pow(2,n),o+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,n),o=0));n>=8;e[r+f]=255&s,f+=d,s/=256,n-=8);for(o=o<<n|s,u+=n;u>0;e[r+f]=255&o,f+=d,o/=256,u-=8);e[r+f-d]|=128*y}},function(e,t,r){"use strict";e.exports=n;var i=r(367);function n(e){this.buf=ArrayBuffer.isView(e)?e:new Uint8Array(e||0),this.pos=0,this.type=0,this.length=this.buf.length}n.Varint=0,n.Fixed64=1,n.Bytes=2,n.Fixed32=5;function a(e){return e.type===n.Bytes?e.readVarint()+e.pos:e.pos+1}function o(e,t,r){return r?4294967296*t+(e>>>0):4294967296*(t>>>0)+(e>>>0)}function s(e,t,r){var i=t<=16383?1:t<=2097151?2:t<=268435455?3:Math.ceil(Math.log(t)/(7*Math.LN2));r.realloc(i);for(var n=r.pos-1;n>=e;n--)r.buf[n+i]=r.buf[n]}function l(e,t){for(var r=0;r<e.length;r++)t.writeVarint(e[r])}function u(e,t){for(var r=0;r<e.length;r++)t.writeSVarint(e[r])}function c(e,t){for(var r=0;r<e.length;r++)t.writeFloat(e[r])}function p(e,t){for(var r=0;r<e.length;r++)t.writeDouble(e[r])}function h(e,t){for(var r=0;r<e.length;r++)t.writeBoolean(e[r])}function f(e,t){for(var r=0;r<e.length;r++)t.writeFixed32(e[r])}function d(e,t){for(var r=0;r<e.length;r++)t.writeSFixed32(e[r])}function y(e,t){for(var r=0;r<e.length;r++)t.writeFixed64(e[r])}function v(e,t){for(var r=0;r<e.length;r++)t.writeSFixed64(e[r])}function m(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+16777216*e[t+3]}function g(e,t,r){e[r]=t,e[r+1]=t>>>8,e[r+2]=t>>>16,e[r+3]=t>>>24}function b(e,t){return(e[t]|e[t+1]<<8|e[t+2]<<16)+(e[t+3]<<24)}n.prototype={destroy:function(){this.buf=null},readFields:function(e,t,r){for(r=r||this.length;this.pos<r;){var i=this.readVarint(),n=i>>3,a=this.pos;this.type=7&i,e(n,t,this),this.pos===a&&this.skip(i)}return t},readMessage:function(e,t){return this.readFields(e,t,this.readVarint()+this.pos)},readFixed32:function(){var e=m(this.buf,this.pos);return this.pos+=4,e},readSFixed32:function(){var e=b(this.buf,this.pos);return this.pos+=4,e},readFixed64:function(){var e=m(this.buf,this.pos)+4294967296*m(this.buf,this.pos+4);return this.pos+=8,e},readSFixed64:function(){var e=m(this.buf,this.pos)+4294967296*b(this.buf,this.pos+4);return this.pos+=8,e},readFloat:function(){var e=i.read(this.buf,this.pos,!0,23,4);return this.pos+=4,e},readDouble:function(){var e=i.read(this.buf,this.pos,!0,52,8);return this.pos+=8,e},readVarint:function(e){var t,r,i=this.buf;return t=127&(r=i[this.pos++]),r<128?t:(t|=(127&(r=i[this.pos++]))<<7,r<128?t:(t|=(127&(r=i[this.pos++]))<<14,r<128?t:(t|=(127&(r=i[this.pos++]))<<21,r<128?t:function(e,t,r){var i,n,a=r.buf;if(n=a[r.pos++],i=(112&n)>>4,n<128)return o(e,i,t);if(n=a[r.pos++],i|=(127&n)<<3,n<128)return o(e,i,t);if(n=a[r.pos++],i|=(127&n)<<10,n<128)return o(e,i,t);if(n=a[r.pos++],i|=(127&n)<<17,n<128)return o(e,i,t);if(n=a[r.pos++],i|=(127&n)<<24,n<128)return o(e,i,t);if(n=a[r.pos++],i|=(1&n)<<31,n<128)return o(e,i,t);throw new Error("Expected varint not more than 10 bytes")}(t|=(15&(r=i[this.pos]))<<28,e,this))))},readVarint64:function(){return this.readVarint(!0)},readSVarint:function(){var e=this.readVarint();return e%2==1?(e+1)/-2:e/2},readBoolean:function(){return Boolean(this.readVarint())},readString:function(){var e=this.readVarint()+this.pos,t=function(e,t,r){var i="",n=t;for(;n<r;){var a,o,s,l=e[n],u=null,c=l>239?4:l>223?3:l>191?2:1;if(n+c>r)break;1===c?l<128&&(u=l):2===c?128==(192&(a=e[n+1]))&&(u=(31&l)<<6|63&a)<=127&&(u=null):3===c?(a=e[n+1],o=e[n+2],128==(192&a)&&128==(192&o)&&((u=(15&l)<<12|(63&a)<<6|63&o)<=2047||u>=55296&&u<=57343)&&(u=null)):4===c&&(a=e[n+1],o=e[n+2],s=e[n+3],128==(192&a)&&128==(192&o)&&128==(192&s)&&((u=(15&l)<<18|(63&a)<<12|(63&o)<<6|63&s)<=65535||u>=1114112)&&(u=null)),null===u?(u=65533,c=1):u>65535&&(u-=65536,i+=String.fromCharCode(u>>>10&1023|55296),u=56320|1023&u),i+=String.fromCharCode(u),n+=c}return i}(this.buf,this.pos,e);return this.pos=e,t},readBytes:function(){var e=this.readVarint()+this.pos,t=this.buf.subarray(this.pos,e);return this.pos=e,t},readPackedVarint:function(e,t){var r=a(this);for(e=e||[];this.pos<r;)e.push(this.readVarint(t));return e},readPackedSVarint:function(e){var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readSVarint());return e},readPackedBoolean:function(e){var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readBoolean());return e},readPackedFloat:function(e){var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readFloat());return e},readPackedDouble:function(e){var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readDouble());return e},readPackedFixed32:function(e){var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readFixed32());return e},readPackedSFixed32:function(e){var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed32());return e},readPackedFixed64:function(e){var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readFixed64());return e},readPackedSFixed64:function(e){var t=a(this);for(e=e||[];this.pos<t;)e.push(this.readSFixed64());return e},skip:function(e){var t=7&e;if(t===n.Varint)for(;this.buf[this.pos++]>127;);else if(t===n.Bytes)this.pos=this.readVarint()+this.pos;else if(t===n.Fixed32)this.pos+=4;else{if(t!==n.Fixed64)throw new Error("Unimplemented type: "+t);this.pos+=8}},writeTag:function(e,t){this.writeVarint(e<<3|t)},realloc:function(e){for(var t=this.length||16;t<this.pos+e;)t*=2;if(t!==this.length){var r=new Uint8Array(t);r.set(this.buf),this.buf=r,this.length=t}},finish:function(){return this.length=this.pos,this.pos=0,this.buf.subarray(0,this.length)},writeFixed32:function(e){this.realloc(4),g(this.buf,e,this.pos),this.pos+=4},writeSFixed32:function(e){this.realloc(4),g(this.buf,e,this.pos),this.pos+=4},writeFixed64:function(e){this.realloc(8),g(this.buf,-1&e,this.pos),g(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeSFixed64:function(e){this.realloc(8),g(this.buf,-1&e,this.pos),g(this.buf,Math.floor(e*(1/4294967296)),this.pos+4),this.pos+=8},writeVarint:function(e){(e=+e||0)>268435455||e<0?function(e,t){var r,i;e>=0?(r=e%4294967296|0,i=e/4294967296|0):(i=~(-e/4294967296),4294967295^(r=~(-e%4294967296))?r=r+1|0:(r=0,i=i+1|0));if(e>=0x10000000000000000||e<-0x10000000000000000)throw new Error("Given varint doesn't fit into 10 bytes");t.realloc(10),function(e,t,r){r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos++]=127&e|128,e>>>=7,r.buf[r.pos]=127&e}(r,0,t),function(e,t){var r=(7&e)<<4;if(t.buf[t.pos++]|=r|((e>>>=3)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;if(t.buf[t.pos++]=127&e|((e>>>=7)?128:0),!e)return;t.buf[t.pos++]=127&e}(i,t)}(e,this):(this.realloc(4),this.buf[this.pos++]=127&e|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=127&(e>>>=7)|(e>127?128:0),e<=127||(this.buf[this.pos++]=e>>>7&127))))},writeSVarint:function(e){this.writeVarint(e<0?2*-e-1:2*e)},writeBoolean:function(e){this.writeVarint(Boolean(e))},writeString:function(e){e=String(e),this.realloc(4*e.length),this.pos++;var t=this.pos;this.pos=function(e,t,r){for(var i,n,a=0;a<t.length;a++){if((i=t.charCodeAt(a))>55295&&i<57344){if(!n){i>56319||a+1===t.length?(e[r++]=239,e[r++]=191,e[r++]=189):n=i;continue}if(i<56320){e[r++]=239,e[r++]=191,e[r++]=189,n=i;continue}i=n-55296<<10|i-56320|65536,n=null}else n&&(e[r++]=239,e[r++]=191,e[r++]=189,n=null);i<128?e[r++]=i:(i<2048?e[r++]=i>>6|192:(i<65536?e[r++]=i>>12|224:(e[r++]=i>>18|240,e[r++]=i>>12&63|128),e[r++]=i>>6&63|128),e[r++]=63&i|128)}return r}(this.buf,e,this.pos);var r=this.pos-t;r>=128&&s(t,r,this),this.pos=t-1,this.writeVarint(r),this.pos+=r},writeFloat:function(e){this.realloc(4),i.write(this.buf,e,this.pos,!0,23,4),this.pos+=4},writeDouble:function(e){this.realloc(8),i.write(this.buf,e,this.pos,!0,52,8),this.pos+=8},writeBytes:function(e){var t=e.length;this.writeVarint(t),this.realloc(t);for(var r=0;r<t;r++)this.buf[this.pos++]=e[r]},writeRawMessage:function(e,t){this.pos++;var r=this.pos;e(t,this);var i=this.pos-r;i>=128&&s(r,i,this),this.pos=r-1,this.writeVarint(i),this.pos+=i},writeMessage:function(e,t,r){this.writeTag(e,n.Bytes),this.writeRawMessage(t,r)},writePackedVarint:function(e,t){this.writeMessage(e,l,t)},writePackedSVarint:function(e,t){this.writeMessage(e,u,t)},writePackedBoolean:function(e,t){this.writeMessage(e,h,t)},writePackedFloat:function(e,t){this.writeMessage(e,c,t)},writePackedDouble:function(e,t){this.writeMessage(e,p,t)},writePackedFixed32:function(e,t){this.writeMessage(e,f,t)},writePackedSFixed32:function(e,t){this.writeMessage(e,d,t)},writePackedFixed64:function(e,t){this.writeMessage(e,y,t)},writePackedSFixed64:function(e,t){this.writeMessage(e,v,t)},writeBytesField:function(e,t){this.writeTag(e,n.Bytes),this.writeBytes(t)},writeFixed32Field:function(e,t){this.writeTag(e,n.Fixed32),this.writeFixed32(t)},writeSFixed32Field:function(e,t){this.writeTag(e,n.Fixed32),this.writeSFixed32(t)},writeFixed64Field:function(e,t){this.writeTag(e,n.Fixed64),this.writeFixed64(t)},writeSFixed64Field:function(e,t){this.writeTag(e,n.Fixed64),this.writeSFixed64(t)},writeVarintField:function(e,t){this.writeTag(e,n.Varint),this.writeVarint(t)},writeSVarintField:function(e,t){this.writeTag(e,n.Varint),this.writeSVarint(t)},writeStringField:function(e,t){this.writeTag(e,n.Bytes),this.writeString(t)},writeFloatField:function(e,t){this.writeTag(e,n.Fixed32),this.writeFloat(t)},writeDoubleField:function(e,t){this.writeTag(e,n.Fixed64),this.writeDouble(t)},writeBooleanField:function(e,t){this.writeVarintField(e,Boolean(t))}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tiledVectorLayer=t.TileVectorLayer=void 0;var i=u(r(2));r(3);var n=r(156),a=r(102),o=r(5),s=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}(r(31)),l=u(r(11));function u(e){return e&&e.__esModule?e:{default:e}}var c=t.TileVectorLayer=n.VectorGrid.extend({options:{serverType:null,crs:null,cartoCSS:null,layerNames:null,layersID:null,serverCartoCSSStyle:!0,processCharacters:!1,returnAttributes:!1,expands:null,cacheEnabled:!1,tileTemplate:null,subdomains:"abc",timeout:1e4,attribution:l.default.Common.attribution},initialize:function(e,t){(t=t||{}).noWrap=null==t.noWrap||t.noWrap,i.default.setOptions(this,t),n.VectorGrid.prototype.initialize.call(this,t),i.default.stamp(this);var r=this;if(!e||e.indexOf("http")<0)return e="",this;r.url=e,e.indexOf("/")===e.length-1&&(e=e.substr(0,e.length-1),r.url=e),this.cartoCSSToLeaflet=new a.CartoCSSToLeaflet(r.url),r.initLayersInfo(),!r.options.serverCartoCSSStyle&&r.options.cartoCSS&&r.setClientCartoCSS(r.options.cartoCSS)},onAdd:function(e){this._crs=this.options.crs||e.options.crs,this._map=e,this._initLayerUrl(),!this.options.tileTemplate&&this.options.serverCartoCSSStyle||this._initGrid()},initLayersInfo:function(){var e=this,t=e.url+"/layers.json";o.FetchRequest.get(t,null,{timeout:e.options.timeout}).then(function(e){return e.json()}).then(function(t){if(e.layersInfoInitialized=!0,e.layersInfo=t,e.layersInfo){for(var r={},i=0,n=e.layersInfo.length;i<n;i++)for(var a=e.layersInfo[i].subLayers.layers,o=0,s=a.length;o<s;o++)a[o].layerIndex=s-o,r[a[o].name]=a[o];e.layersInfo=r,e.cartoCSSToLeaflet.layersInfo=r,e.options.serverCartoCSSStyle&&e.getVectorStylesFromServer()}}).catch(function(e){console.error("error",e)})},getLayerStyleInfo:function(e){var t,r=this;if(r.layersStyles=r.layersStyles||{},t=r.layersStyles[e])return t;if(!r.layersInfo)return{};var i=r.layersInfo[e];if(!i)return null;switch(t={layerIndex:i.layerIndex,ugcLayerType:i.ugcLayerType},i.ugcLayerType){case"VECTOR":t.layerStyle=i.style?i.style:null;break;case"THEME":var n=i.theme;t.layerStyle=n?n.defaultStyle:null,n&&"LABEL"===n.type&&(t.type=n.type,t.textField=n.labelExpression);break;default:i.style&&(t.layerStyle=i.style)}return r.layersStyles[e]=t,t},getVectorStylesFromServer:function(){var e=this,t=e.url+"/tileFeature/vectorstyles.json";o.FetchRequest.get(t,null,{timeout:e.options.timeout}).then(function(e){return e.json()}).then(function(t){if(!t||!t.style)return null;t.style&&"cartoCSS"===t.type&&e.setServerCartoCSS(t.style),e.options&&e.setClientCartoCSS(e.options.cartoCSS),e._initGrid()}).catch(function(e){console.error("error",e)})},setServerCartoCSS:function(e){this.cartoCSSToLeaflet.pretreatedCartoCSS(e,!0)},setClientCartoCSS:function(e){var t=!1;this.options.processCharacters&&(t=this.options.processCharacters),this.cartoCSSToLeaflet.pretreatedCartoCSS(e,t)},getVectorTileLayerStyle:function(e,t){if(!t)return null;var r=this,i=t.layerName,n=r.getLayerStyleInfo(i);if(n&&n.textField){var a=n.textField;if(a&&a.indexOf(".")){var o=a.split(".");a=o&&o.length>0&&o[o.length-1]}t.properties.textField=a}r.vectorTileLayerStyles=r.vectorTileLayerStyles||{};var s=r.vectorTileLayerStyles[i];if(s)return t=this._mergeFeatureTextField(t,s),s;var l=this.getScaleFromCoords(e),u=this.cartoCSSToLeaflet.pickShader(i)||[];for(var c in s=[],u)for(var p=u[c],h=0;h<p.length;h++){var f=this.cartoCSSToLeaflet.getValidStyleFromCarto(e.z,l,p[h],t);f&&s.push(f)}return"TEXT"!==(t=this._mergeFeatureTextField(t,s)).type&&0!==s.length||(s=this.cartoCSSToLeaflet.getValidStyleFromLayerInfo(t,n),"TEXT"===t.type&&(s.textName="["+t.properties.textField+"]")),r.vectorTileLayerStyles[i]=s,s},getScale:function(e){var t=e||this._map.getZoom();return this.scales[t]},getScaleFromCoords:function(e){var t,r=this;return r.scales&&r.scales[e.z]?r.scales[e.z]:(r.scales=r.scales||{},t=r.getDefaultScale(e),r.scales[e.z]=t,t)},getDefaultScale:function(e){var t=this._crs;if(t.scales)return t.scales[e.z];var r=this._tileCoordsToBounds(e),i=t.project(r.getNorthEast()),n=t.project(r.getSouthWest()),a=this.options.tileSize,l=Math.max(Math.abs(i.x-n.x)/a,Math.abs(i.y-n.y)/a),u=o.Unit.METER;if(t.code){var c=t.code.split(":");if(c&&c.length>1){var p=parseInt(c[1]);u=p&&p>=4e3&&p<=5e3?o.Unit.DEGREE:o.Unit.METER}}return s.resolutionToScale(l,96,u)},_mergeFeatureTextField:function(e,t){if(!this.options.serverCartoCSSStyle||!t||"TEXT"!==e.type)return e;var r=t;i.default.Util.isArray(t)||(r=[t]);for(var n=0;n<r.length;n++){var a=r[n].textName;a&&e.properties&&(e.properties.textField=a.substring(1,a.length-1))}return e},_getTileUrl:function(e){return this.options.tileTemplate?this._getTileTemplateUrl(e):this._getDefaultTileUrl(e)},_getTileTemplateUrl:function(e){var t=this,r=t.options.tileTemplate,n={s:t._getSubdomain(e),x:e.x,y:e.y,z:e.z};if(t._map&&!t._map.options.crs.infinite){var a=t._globalTileRange.max.y-e.y;t.options.tms&&(n.y=a),n["-y"]=a}return i.default.Util.template(r,i.default.extend(n,t.options))},_initGrid:function(){n.VectorGrid.prototype.onAdd.call(this,this._map)},_getSubdomain:i.default.TileLayer.prototype._getSubdomain,_getDefaultTileUrl:function(e){var t=e.x,r=e.y,i=this._tileUrl+"&x="+t+"&y="+r;return i+="&scale="+this.getScaleFromCoords(e)},_initLayerUrl:function(){var e=this.options;if(this.url){var t=e.format.toString().toLowerCase();this._tileUrl=this.url+"/tileFeature."+t+"?",this._tileUrl+=encodeURI(this._createURLParam(e))}},_createURLParam:function(e){var t=[],r=this._getCredential();if(r&&t.push(r),e.layersID&&t.push("layersID="+e.layersID),e.layerNames){i.default.Util.isArray(e.layerNames)||(e.layerNames=[e.layerNames]);var n="["+e.layerNames.join(",")+"]";t.push("layerNames="+n)}var a=this._crs;if(a.options&&a.options.origin)t.push("origin="+JSON.stringify({x:a.options.origin[0],y:a.options.origin[1]}));else if(a.projection&&a.projection.bounds){var o=a.projection.bounds,s=i.default.point(o.min.x,o.max.y);t.push("origin="+JSON.stringify({x:s.x,y:s.y}))}e.expands&&t.push("expands="+e.expands),t.push("returnAttributes="+e.returnAttributes),t.push("cacheEnabled="+e.cacheEnabled);var l=this.options.tileSize;return t.push("width="+l),t.push("height="+l),t.join("&")},_getCredential:function(e){var t,r;switch(this.options.serverType){case o.ServerType.IPORTAL:(t=(r=o.SecurityManager.getToken(e))?new o.Credential(r,"token"):null)||(t=(r=o.SecurityManager.getKey(e))?new o.Credential(r,"key"):null);break;case o.ServerType.ONLINE:t=(r=o.SecurityManager.getKey(e))?new o.Credential(r,"key"):null;break;default:t=(r=o.SecurityManager.getToken(e))?new o.Credential(r,"token"):null}return t?t.getUrlParameters():null}}),p=t.tiledVectorLayer=function(e,t){return new c(e,t)};
  1145. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1146. * This program are made available under the terms of the Apache License, Version 2.0
  1147. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/i.default.supermap.tiledVectorLayer=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.rankSymbolThemeLayer=t.RankSymbolThemeLayer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(5),s=r(157);
  1148. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1149. * This program are made available under the terms of the Apache License, Version 2.0
  1150. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1151. var l=t.RankSymbolThemeLayer=s.GraphThemeLayer.extend({initialize:function(e,t,r){s.GraphThemeLayer.prototype.initialize.apply(this,arguments),this.symbolType=t,this.symbolSetting={}},setSymbolType:function(e){this.symbolType=e,this.redraw()},createThematicFeature:function(e){var t,r=this;return o.FeatureTheme[r.symbolType]&&r.themeField&&r.symbolSetting&&(t=new o.FeatureTheme[r.symbolType](e,r,[r.themeField],r.symbolSetting)),!!t&&(t.assembleShapes(),t)}}),u=t.rankSymbolThemeLayer=function(e,t,r){return new l(e,t,r)};a.default.supermap.rankSymbolThemeLayer=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphicWebGLRenderer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};var o=a.default.Util.falseFn,s=function(){for(var e=document.createElement("div"),t=["transform","WebkitTransform","MozTransform","OTransform","msTransform"],r=0;r<t.length;r++){var i=t[r];if(void 0!==e.style[i])return i}return t[0]}();
  1152. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1153. * This program are made available under the terms of the Apache License, Version 2.0
  1154. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.GraphicWebGLRenderer=a.default.Class.extend({initialize:function(e,t){this.layer=e;var r=t||{};a.default.Util.setOptions(this,r),this.options.radius=this._pixelToMeter(this.options.radius),this._initContainer()},getRenderer:function(){return this},update:function(e){e&&e.length>-1&&(this._data=e),this._renderLayer.setChangeFlags({dataChanged:!0,propsChanged:!0,viewportChanged:!0,updateTriggersChanged:!0}),this._refreshData();var t=this._getLayerState();t.data=this._data||[],this._layerDefaultStyleCache=null,this._renderLayer.setNeedsRedraw(!0),this._renderLayer.setState(t)},drawGraphics:function(e){this._clearBuffer();var t=this.layer._map.getSize();this._container.width!==t.x&&(this._container.width=t.x),this._container.height!==t.y&&(this._container.height=t.y);var r=this.layer._map.getPanes().mapPane._leaflet_pos;this._container.style[s]="translate("+-Math.round(r.x)+"px,"+-Math.round(r.y)+"px)",this._data=e||[],this._renderLayer||this._createInnerRender(),this._draw()},_initContainer:function(){this._container=this._createCanvas(this.options.width,this.options.height),this._layerContainer=this.options.container,this._wrapper=a.default.DomUtil.create("div","deck-wrapper",this._layerContainer),this._wrapper.appendChild(this._container)},_createCanvas:function(e,t){var r=a.default.DomUtil.create("canvas","graphicLayer leaflet-layer leaflet-zoom-hide");return r.oncontextmenu=a.default.Util.falseFn,r.width=e,r.height=t,r.style.width=e+"px",r.style.height=t+"px",r},_pixelToMeter:function(e){var t=this.layer._map.getBounds();return e*((t.getEast()-t.getWest())/this.layer._map.getSize().x*(6378137*Math.PI/180))},_createInnerRender:function(){var e=this,t=this._getLayerState(),r=t.color,i=t.radius,n=t.opacity,a=t.highlightColor,o=t.radiusScale,s=t.radiusMinPixels,l=t.radiusMaxPixels,u=t.strokeWidth,c=t.outline,p={id:"scatter-plot",data:e._data,pickable:Boolean(this.options.onClick)||Boolean(this.options.onHover),autoHighlight:!0,color:r,opacity:n,radius:i,radiusScale:o,highlightColor:a,radiusMinPixels:s,radiusMaxPixels:l,strokeWidth:u,outline:c,getPosition:function(e){if(!e)return[0,0,0];var t=e.getLatLng();return t&&[t.lng,t.lat,0]},getColor:function(t){var r=e._getLayerDefaultStyle(),i=t&&t.options;return i&&i.color||r.color},getRadius:function(t){var r=e._getLayerDefaultStyle(),i=t&&t.getStyle();return i&&i.radius||r.radius},updateTriggers:{getColor:[r],getRadius:[i]}},h=this;this.options.onClick&&(p.onClick=function(){h._container.style.cursor="pointer",h.options.onClick.apply(h,arguments)}),this.options.onHover&&(p.onHover=function(){h._container.style.cursor="pointer",h.options.onHover.apply(h,arguments)}),e._renderLayer=new window.DeckGL.ScatterplotLayer(p)},_getLayerDefaultStyle:function(){if(this._layerDefaultStyleCache)return this._layerDefaultStyleCache;var e=this.layer.options,t=e.color,r=e.opacity,i=e.radius,n=e.radiusScale,a=e.radiusMinPixels,o=e.radiusMaxPixels,s=e.strokeWidth,l=e.outline;return i=this._pixelToMeter(i),this._layerDefaultStyleCache={color:t,opacity:r,radius:i,radiusScale:n,radiusMinPixels:a,radiusMaxPixels:o,strokeWidth:s,outline:l},this._layerDefaultStyleCache},_getLayerState:function(){var e=this.layer.getState();return e.zoom=e.zoom-1,e},_draw:function(){var e=this._getLayerState();this._refreshData(),e.data=this._data||[];var t={};for(var r in e)t[r]=e[r];this._layerDefaultStyleCache=null,this._renderLayer.setNeedsRedraw(!0),t.layers=[this._renderLayer],t.canvas=this._container,t.onBeforeRender=this._onBeforeRender.bind(this),t.onAfterRender=this._onAfterRender.bind(this),this.deckGL?this.deckGL.setProps(t):this.deckGL=new window.DeckGL.experimental.DeckGLJS(t)},_clearBuffer:function(){if(this.deckGL){var e=this.deckGL.layerManager;e&&e.context.gl.clear(e.context.gl.COLOR_BUFFER_BIT)}return this},_refreshData:function(){var e=this._data||[],t=a.default.Util.isArray(e)?[].concat(e):[e];this._renderLayer.props.data||(this._renderLayer.props.data=[]),this._renderLayer.props.data.length=0;for(var r=0;r<t.length;r++)this._renderLayer.props.data.push(t[r]);this._data=this._renderLayer.props.data},_handleClick:o,_onBeforeRender:o,_onAfterRender:o,_removePath:function(){return this._wrapper.parentElement.removeChild(this._wrapper),this._container=null,this._wrapper=null,this},_initPath:o,_addPath:o})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GraphicCanvasRenderer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};var o=a.default.Util.falseFn;
  1155. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1156. * This program are made available under the terms of the Apache License, Version 2.0
  1157. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.GraphicCanvasRenderer=a.default.Class.extend({initialize:function(e,t){this.layer=e,t=t||{},a.default.Util.setOptions(this,t)},getRenderer:function(){return this.options.renderer},update:function(){this.getRenderer()._clear(),this.getRenderer()._draw()},_handleClick:function(e){var t=this.layer,r=t._map;if(t.options.onClick){this.layer._renderer._ctx.canvas.style.cursor="pointer";for(var i=t._getGraphicsInBounds(),n=0;n<i.length;n++){var o=void 0,s=void 0,l=r.latLngToLayerPoint(i[n].getLatLng()),u=i[n].getStyle();if(!u&&this.defaultStyle&&(u=this.defaultStyle),u.img){var c=u.anchor||[u.img.width/2,u.img.height/2];o=a.default.point(l.x-c[0],l.y-c[1]),s=a.default.point(o.x+u.img.width,o.y+u.img.height)}else o=a.default.point(l.x-u.width/2,l.y-u.height/2),s=a.default.point(l.x+u.width/2,l.y+u.height/2);if(a.default.bounds(o,s).contains(r.latLngToLayerPoint(e.latlng)))return t.options.onClick.call(t,i[n],e)}}},_clearBuffer:o});a.default.Canvas.include({drawGraphics:function(e,t){var r=this;r._drawing&&e.forEach(function(e){var i=e.getStyle();!i&&t&&(i=t),i.img?r._drawImage.call(r,r._ctx,i,e.getLatLng()):r._drawCanvas.call(r,r._ctx,i,e.getLatLng())})},_drawCanvas:function(e,t,r){var i=t,n=this._map.latLngToLayerPoint(r),a=n.x-i.width/2,o=n.y-i.height/2,s=i.width,l=i.height;e.drawImage(i,a,o,s,l)},_drawImage:function(e,t,r){var i,n;if(t.size){var o=t.size;i=o[0],n=o[1]}else i=t.img.width,n=t.img.height;var s=this._coordinateToPoint(r),l=a.default.point(s),u=a.default.point(t.anchor||[i/2,n/2]);s=[l.x-u.x,l.y-u.y],e.drawImage(t.img,s[0],s[1],i,n)},_coordinateToPoint:function(e){if(!this._map)return e;var t=e;a.default.Util.isArray(e)?t=a.default.latLng(e[0],e[1]):e instanceof a.default.LatLng&&(t=a.default.latLng(e.lat,e.lng));var r=this._map.latLngToLayerPoint(t);return[r.x,r.y]}})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageStyle=t.ImageStyle=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);
  1158. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1159. * This program are made available under the terms of the Apache License, Version 2.0
  1160. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1161. var o=t.ImageStyle=a.default.Class.extend({options:{img:null,origin:[0,0],anchor:null,size:null},initialize:function(e){e=e||{},a.default.Util.setOptions(this,e),this._canvas=document.createElement("canvas"),this._canvas.width=2*(this.options.radius+this.options.weight),this._canvas.height=2*(this.options.radius+this.options.weight),this._ctx=this._canvas.getContext("2d")},getStyle:function(){return this.options}}),s=t.imageStyle=function(e){return new o(e)};a.default.supermap.imageStyle=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.circleStyle=t.CircleStyle=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);
  1162. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1163. * This program are made available under the terms of the Apache License, Version 2.0
  1164. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1165. var o=t.CircleStyle=a.default.Class.extend({options:{stroke:!0,color:"#3388ff",weight:1,opacity:1,lineCap:"round",lineJoin:"round",fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",radius:3},initialize:function(e){e=e||{},a.default.Util.setOptions(this,e),this._canvas=document.createElement("canvas"),this._canvas.width=2*(this.options.radius+this.options.weight),this._canvas.height=2*(this.options.radius+this.options.weight),this._ctx=this._canvas.getContext("2d"),this._initStyle()},getCanvas:function(){return this._canvas},getStyle:function(){return this._canvas},_initStyle:function(){this._ctx.beginPath(),this._ctx.arc(this._canvas.width/2,this._canvas.height/2,this.options.radius,0,2*Math.PI),this._fillStroke()},_fillStroke:function(){var e=this.options;e.fill&&(this._ctx.globalAlpha=e.fillOpacity,this._ctx.fillStyle=e.fillColor||e.color,this._ctx.fill(e.fillRule||"evenodd")),e.stroke&&0!==e.weight&&(this._ctx.globalAlpha=e.opacity,this._ctx.lineWidth=e.weight,this._ctx.strokeStyle=e.color,this._ctx.lineCap=e.lineCap,this._ctx.lineJoin=e.lineJoin,this._ctx.stroke())}}),s=t.circleStyle=function(e){return new o(e)};a.default.supermap.circleStyle=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cloverStyle=t.CloverStyle=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);
  1166. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1167. * This program are made available under the terms of the Apache License, Version 2.0
  1168. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1169. var o=t.CloverStyle=a.default.Class.extend({options:{radius:10,angele:60,spaceAngle:0,count:3,fill:!1,stroke:!0,color:"#3388ff",weight:1,lineCap:"round",lineJoin:"round",fillColor:"#66ccff",fillOpacity:.2,fillRule:"evenodd",opacity:1,strokeWidth:1},initialize:function(e){e=e||{},a.default.Util.setOptions(this,e),this._canvas=document.createElement("canvas"),this._canvas.width=2*(this.options.radius+this.options.weight),this._canvas.height=2*(this.options.radius+this.options.weight),this._ctx=this._canvas.getContext("2d");var t=void 0===this.options.strokeWidth?1:this.options.strokeWidth;this.options.width=2*(this.options.radius+t)+1,this._initStyle()},getStyle:function(){return this._canvas},drawSector:function(e,t,r,i,n,a){n=n/180*Math.PI,a=a/180*Math.PI,e.moveTo(t,r),e.lineTo(t+i*Math.cos(n),r+i*Math.sin(n)),e.arc(t,r,i,n,a),e.lineTo(t,r)},_initStyle:function(){var e=0,t=this.options,r=t.angle;if(t.spaceAngle=360/t.count-t.angle,!(t.spaceAngle<0)){this._ctx.beginPath(),this.anchor=[t.width/2,t.width/2];for(var i=0;i<t.count;i++)this.drawSector(this._ctx,this.anchor[0],this.anchor[1],t.radius,e,r),r=(e=r+t.spaceAngle)+t.angle;this._fillStroke()}},_fillStroke:function(){var e=this.options;e.fill&&(this._ctx.globalAlpha=e.fillOpacity,this._ctx.fillStyle=e.fillColor||e.color,this._ctx.fill(e.fillRule||"evenodd")),e.stroke&&0!==e.weight&&(this._ctx.globalAlpha=e.opacity,this._ctx.lineWidth=e.weight,this._ctx.strokeStyle=e.color,this._ctx.lineCap=e.lineCap,this._ctx.lineJoin=e.lineJoin,this._ctx.stroke())}}),s=t.cloverStyle=function(e){return new o(e)};a.default.supermap.cloverStyle=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}();
  1170. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1171. * This program are made available under the terms of the Apache License, Version 2.0
  1172. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1173. t.Detector=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return i(e,null,[{key:"supportWebGL",value:function(){return n("webgl")}},{key:"supportWebGL2",value:function(){return n("webgl2")}},{key:"supportCanvas",value:function(){return n("2d")}}]),e}();function n(e){var t=document.createElement("canvas");return t&&t.getContext(e)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.graphicLayer=t.GraphicLayer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(376),s=r(5),l=r(158);var u=["canvas","webgl"],c={color:[0,0,0,255],opacity:.8,radius:10,radiusScale:1,radiusMinPixels:0,radiusMaxPixels:Number.MAX_SAFE_INTEGER,strokeWidth:1,outline:!1},p=t.GraphicLayer=a.default.Path.extend({initialize:function(e,t){this.graphics=[].concat(e);var r=t||{};r.pane="overlayPane",a.default.Util.setOptions(this,r),this.options.render=this.options.render||u[0],o.Detector.supportWebGL2()||(this.options.render=u[0])},getEvents:function(){return{click:this._handleClick.bind(this),resize:this._resize.bind(this),moveend:this._moveEnd.bind(this)}},onAdd:function(e){this._map=e,this.defaultStyle=this._getDefaultStyle(this.options),this._renderer=this._createRenderer(),this._container=this._renderer._container,a.default.Path.prototype.onAdd.call(this)},onRemove:function(){this._renderer._removePath(this)},setGraphics:function(e){this.graphics=this.graphics||[],this.graphics.length=0;var t=a.default.Util.isArray(e)?[].concat(e):[e];this.graphics=[].concat(t),this.update()},addGraphics:function(e){this.graphics=this.graphics||[];var t=a.default.Util.isArray(e)?[].concat(e):[e];this.graphics=this.graphics.concat(t),this.update()},getGraphicBy:function(e,t){var r=null;for(var i in this.graphics)if(this.graphics[i][e]===t){r=this.graphics[i];break}return r},getGraphicById:function(e){return this.getGraphicBy("id",e)},getGraphicsByAttribute:function(e,t){var r,i=[];for(var n in this.graphics)(r=this.graphics[n])&&r.attributes&&r.attributes[e]===t&&i.push(r);return i},removeGraphics:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(!e||0===e.length||e===this.graphics)return this.graphics.length=0,void this.update();s.CommonUtil.isArray(e)||(e=[e]);for(var t=e.length-1;t>=0;t--){var r=e[t],i=s.CommonUtil.indexOf(this.graphics,r);-1!==i&&this.graphics.splice(i,1)}this.update()},setStyle:function(e){var t=this.options,r={color:t.color,radius:t.radius,opacity:t.opacity,highlightColor:t.highlightColor,radiusScale:t.radiusScale,radiusMinPixels:t.radiusMinPixels,radiusMaxPixels:t.radiusMaxPixels,strokeWidth:t.strokeWidth,outline:t.outline};this.options=a.default.Util.extend(this.options,r,e),this.defaultStyle=this._getDefaultStyle(this.options),this.update()},update:function(){this._layerRenderer.update(this.graphics)},clear:function(){this.removeGraphics()},getRenderer:function(){return this._renderer},getState:function(){var e=this._map,t=e.getSize().x,r=e.getSize().y,i=e.getCenter(),n={longitude:i.lng,latitude:i.lat,zoom:e.getZoom(),maxZoom:e.getMaxZoom(),pitch:0,bearing:0},a={};for(var o in n)a[o]=n[o];a.width=t,a.height=r;var s=this.options;return a.color=s.color,a.radius=s.radius,a.opacity=s.opacity,a.highlightColor=s.highlightColor,a.radiusScale=s.radiusScale,a.radiusMinPixels=s.radiusMinPixels,a.radiusMaxPixels=s.radiusMaxPixels,a.strokeWidth=s.strokeWidth,a.outline=s.outline,a},_resize:function(){var e=this._map.getSize();this._container.width=e.x,this._container.height=e.y,this._container.style.width=e.x+"px",this._container.style.height=e.y+"px";var t=this._map.containerPointToLayerPoint([0,0]);a.default.DomUtil.setPosition(this._container,t),this._update()},_moveEnd:function(){this._layerRenderer instanceof l.GraphicWebGLRenderer&&this._update()},_createRenderer:function(){var e=this._map,t=e.getSize().x,r=e.getSize().y,i=void 0;if(this.options.render===u[0])i=new l.GraphicCanvasRenderer(this,{width:t,height:r,renderer:e.getRenderer(this)});else{var n=a.default.Util.setOptions({},c),o=a.default.Util.setOptions({options:n},this.options);(o=a.default.Util.setOptions(this,o)).container=e.getPane("overlayPane"),o.width=t,o.height=r,i=new l.GraphicWebGLRenderer(this,o)}return i.defaultStyle=this.defaultStyle,this._layerRenderer=i,this._layerRenderer.getRenderer()},_update:function(){this._map&&this._updatePath()},_updatePath:function(){var e=this._getGraphicsInBounds();this._renderer.drawGraphics(e,this.defaultStyle)},_project:function(){var e=this;e._getGraphicsInBounds().map(function(t){var r=e._map.latLngToLayerPoint(t.getLatLng()),i=e._clickTolerance(),n=[t._anchor+i,t._anchor+i];return t._pxBounds=new a.default.Bounds(r.subtract(n),r.add(n)),t}),e._pxBounds=a.default.bounds(a.default.point(0,0),a.default.point(this._container.width,this._container.height))},_getDefaultStyle:function(e){var t={};if(e.color){t.fill=!0;var r=this.toRGBA(e.color);t.color=r,t.fillColor=r}return e.opacity&&(t.opacity=e.opacity,t.fillOpacity=e.opacity),e.radius&&(t.radius=e.radius),e.strokeWidth&&(t.weight=e.strokeWidth),e.outline&&(t.stroke=e.outline),new l.CircleStyle(t).getStyle()},toRGBA:function(e){return"rgba("+e[0]+","+e[1]+","+e[2]+","+(e[3]||255)/255+")"},_getGraphicsInBounds:function(){var e=[],t=this._map.getBounds();return this.graphics.map(function(r){return t.contains(r.getLatLng())&&e.push(r),r}),e},_handleClick:function(e){this._layerRenderer._handleClick(e)},beforeAdd:a.default.Util.falseFn,_containsPoint:a.default.Util.falseFn}),h=t.graphicLayer=function(e,t){return new p(e,t)};
  1174. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1175. * This program are made available under the terms of the Apache License, Version 2.0
  1176. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/a.default.supermap.graphicLayer=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.echartsLayer=t.EchartsLayer=void 0,t.LeafletMapCoordSys=l;var i=o(r(2));r(3);var n=o(r(191)),a=o(r(11));function o(e){return e&&e.__esModule?e:{default:e}}
  1177. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1178. * This program are made available under the terms of the Apache License, Version 2.0
  1179. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.EchartsLayer=i.default.Layer.extend({includes:[],_echartsContainer:null,_map:null,_ec:null,_echartsOptions:null,options:{attribution:a.default.ECharts.attribution,loadWhileAnimating:!1},initialize:function(e,t){i.default.Util.setOptions(this,t),this.setOption(e)},setOption:function(e,t,r){var i=e.baseOption||e;i.LeafletMap=i.LeafletMap||{roam:!0},i.animation=!0===i.animation,this._echartsOptions=e,this._ec&&this._ec.setOption(e,t,r)},getEcharts:function(){return this._ec},_disableEchartsContainer:function(){this._echartsContainer.style.visibility="hidden"},_enableEchartsContainer:function(){this._echartsContainer.style.visibility="visible"},onAdd:function(e){this._map=e,this._initEchartsContainer(),this._ec=n.default.init(this._echartsContainer),this._ec.leafletMap=e;var t=this;e.on("zoomstart",function(){t._disableEchartsContainer()}),!t.options.loadWhileAnimating&&e.on("movestart",function(){t._disableEchartsContainer()}),n.default.registerAction({type:"LeafletMapLayout",event:"LeafletMapLayout",update:"updateLayout"},function(e){}),n.default.registerCoordinateSystem("leaflet",l),n.default.extendComponentModel({type:"LeafletMap",getBMap:function(){return this.__LeafletMap},defaultOption:{roam:!1}}),n.default.extendComponentView({type:"LeafletMap",render:function(e,r,n){var a=!0,o=r.scheduler.ecInstance.leafletMap,s=n.getZr().painter.getViewportRoot(),l=o.options.zoomAnimation&&i.default.Browser.any3d;s.className=" leaflet-layer leaflet-zoom-"+(l?"animated":"hide")+" echarts-layer";var u=i.default.DomUtil.testProp(["transformOrigin","WebkitTransformOrigin","msTransformOrigin"]);s.style[u]="50% 50%";var c=e.coordinateSystem,p=n.getZr().painter.getLayers(),h=function(){if(!a){var r,i=t._map.containerPointToLayerPoint([0,0]),o=[i.x||0,i.y||0];if(s.style.left=o[0]+"px",s.style.top=o[1]+"px",!t.options.loadWhileAnimating){for(var l in p)p.hasOwnProperty(l)&&p[l]&&(r=p[l].ctx)&&r.clearRect&&r.clearRect(0,0,r.canvas.width,r.canvas.height);t._enableEchartsContainer()}c.setMapOffset(o),e.__mapOffset=o,n.dispatchAction({type:"LeafletMapLayout"})}};function f(){a||(n.dispatchAction({type:"LeafletMapLayout"}),t._enableEchartsContainer())}t._oldMoveHandler&&o.off(t.options.loadWhileAnimating?"move":"moveend",t._oldMoveHandler),t._oldZoomEndHandler&&o.off("zoomend",t._oldZoomEndHandler),o.on(t.options.loadWhileAnimating?"move":"moveend",h),o.on("zoomend",f),t._oldMoveHandler=h,t._oldZoomEndHandler=f,a=!1}}),this._ec.setOption(this._echartsOptions)},onRemove:function(){this._ec.clear(),this._ec.dispose(),delete this._ec,i.default.DomUtil.remove(this._echartsContainer),this._oldZoomEndHandler&&(this._map.off("zoomend",this._oldZoomEndHandler),this._oldZoomEndHandler=null),this._oldMoveHandler&&(this._map.off(this.options.loadWhileAnimating?"move":"moveend",this._oldMoveHandler),this._oldMoveHandler=null),this._resizeHandler&&(this._map.off("resize",this._resizeHandler),this._resizeHandler=null),delete this._map},_initEchartsContainer:function(){var e=this._map.getSize(),t=document.createElement("div");t.style.position="absolute",t.style.height=e.y+"px",t.style.width=e.x+"px",t.style.zIndex=10,this._echartsContainer=t,this.getPane().appendChild(this._echartsContainer);var r=this;function i(e){var t=e.newSize;r._echartsContainer.style.width=t.x+"px",r._echartsContainer.style.height=t.y+"px",r._ec.resize()}this._map.on("resize",i),this._resizeHandler=i}});function l(e){this._LeafletMap=e,this.dimensions=["lng","lat"],this._mapOffset=[0,0]}l.prototype.dimensions=["lng","lat"],l.prototype.setMapOffset=function(e){this._mapOffset=e},l.prototype.getBMap=function(){return this._LeafletMap},l.prototype.prepareCustoms=function(){var e=n.default.util,t=this.getViewRect();return{coordSys:{type:"leaflet",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:e.bind(this.dataToPoint,this),size:e.bind(function(t,r){return r=r||[0,0],e.map([0,1],function(e){var i=r[e],n=t[e]/2,a=[],o=[];return a[e]=i-n,o[e]=i+n,a[1-e]=o[1-e]=r[1-e],Math.abs(this.dataToPoint(a)[e]-this.dataToPoint(o)[e])},this)},this)}}},l.prototype.dataToPoint=function(e){null===e[1]&&(e[1]=i.default.CRS.EPSG3857.projection.MAX_LATITUDE);var t=this._LeafletMap.latLngToLayerPoint([e[1],e[0]]),r=this._mapOffset;return[t.x-r[0],t.y-r[1]]},l.prototype.fixLat=function(e){return e>=90?89.99999999999999:e<=-90?-89.99999999999999:e},l.prototype.pointToData=function(e){var t=this._mapOffset,r=this._LeafletMap.layerPointToLatLng([e[0]+t[0],e[1]+t[1]]);return[r.lng,r.lat]},l.prototype.getViewRect=function(){var e=this._LeafletMap.getSize();return new n.default.graphic.BoundingRect(0,0,e.x,e.y)},l.prototype.getRoamTransform=function(){return n.default.matrix.create()},l.dimensions=l.prototype.dimensions,l.create=function(e){var t=void 0,r=e.scheduler.ecInstance.leafletMap;e.eachComponent("LeafletMap",function(e){t||(t=new l(r)),e.coordinateSystem=t,e.coordinateSystem.setMapOffset(e.__mapOffset||[0,0])}),e.eachSeries(function(e){e.get("coordinateSystem")&&"leaflet"!==e.get("coordinateSystem")||(t||(t=new l(r)),e.coordinateSystem=t,e.animation=!0===e.animation)})};var u=t.echartsLayer=function(e,t){return new s(e,t)};i.default.supermap.echartsLayer=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NormalRenderer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);
  1180. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1181. * This program are made available under the terms of the Apache License, Version 2.0
  1182. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1183. t.NormalRenderer=a.default.GeoJSON.extend({initialize:function(e,t){(t=t||{}).style&&!t.pointToLayer&&(t.pointToLayer=function(e,r){return a.default.circleMarker(r,t.style())}),a.default.Util.setOptions(this,t),this._layers={},a.default.stamp(this),this.url=e,this.idCache={}},onMessageSuccessed:function(e){var t=e.featureResult,r=e.featureResult.properties[this.options.idField],i=null;void 0!==r&&this.idCache[r]?(i=this.getLayer(this.idCache[r]),this._updateLayerData(i,t)):((i=a.default.GeoJSON.geometryToLayer(t,this.options)).feature=a.default.GeoJSON.asFeature(t),this.addLayer(i),void 0!==r&&(this.idCache[r]=this.getLayerId(i))),this.options.onEachFeature&&this.options.onEachFeature(t,i)},_updateLayerData:function(e,t){t.properties&&(e.feature.properties=t.properties);var r=[];switch(t.geometry.type){case"Point":r=a.default.GeoJSON.coordsToLatLng(t.geometry.coordinates),e.setLatLng(r);break;case"LineString":r=a.default.GeoJSON.coordsToLatLngs(t.geometry.coordinates,0),e.setLatLngs(r);break;case"MultiLineString":case"Polygon":r=a.default.GeoJSON.coordsToLatLngs(t.geometry.coordinates,1),e.setLatLngs(r);break;case"MultiPolygon":r=a.default.GeoJSON.coordsToLatLngs(t.geometry.coordinates,2),e.setLatLngs(r)}}})},function(e,t){e.exports=function(){try{return mapv}catch(e){return{}}}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MapvRenderer=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(160);t.MapvRenderer=o.MapVLayer.extend({initialize:function(e,t){t=t||{},a.default.Util.setOptions(this,t),this.data=[],this.mapVOptions={draw:"simple"},o.MapVLayer.prototype.initialize.call(this,new window.mapv.DataSet([]),this.mapVOptions,t),this.idCache={},this.url=e,this._last=new Date,this._imageCache={}},onMessageSuccessed:function(e){var t=this,r=e.featureResult.properties.id,i=e.featureResult.geometry,n={geometry:e.featureResult.geometry};if("Point"===i.type&&this.options.pointToLayer){var o=this.options.pointToLayer(e.featureResult,a.default.latLng(i.coordinates[1],i.coordinates[0]));if(o instanceof a.default.Marker){this.mapVOptions.draw="icon";var s=o.options.icon,l=s._getIconUrl("icon")+"_"+(s.options.iconSize?s.options.iconSize[0]:null)+"_"+(s.options.iconSize?s.options.iconSize[1]:null),u=this._imageCache[l];u||(u=s.createIcon(),this._imageCache[l]=u,u.onload=function(){t.update({data:t.data,options:t.mapVOptions})}),n.icon=u,(s.options.iconSize||u.style.height)&&(this.mapVOptions.offset={x:0,y:-(s.options.iconSize[1]||u.style.height)/2}),this.options.deg&&(n.deg=this.options.deg,"function"==typeof n.deg&&this.idCache[r]&&this.data[this.idCache[r]]&&(n.deg=n.deg(e.featureResult,a.default.latLng(i.coordinates[1],i.coordinates[0]),this.data[this.idCache[r]])))}if(o instanceof a.default.CircleMarker){this.mapVOptions.draw="simple";var c=this._toMapvStyle(o);for(var p in c)c.hasOwnProperty(p)&&(n[p]=c[p])}}else if(this.options.style){var h=this._toMapvStyle(this.options.style(e.featureResult));for(var f in h)h.hasOwnProperty(f)&&(n[f]=h[f])}void 0==this.idCache[r]?(this.data.push(n),this.idCache[r]=this.data.length-1):this.data[this.idCache[r]]=n,new Date-this._last>200&&(this._last=new Date,this.update({data:this.data,options:this.mapVOptions}))},_toMapvStyle:function(e){var t={draw:"simple"};return t.strokeStyle=e.color,t.lineWidth=e.width,t.globalAlpha=e.fillOpacity||e.opacity,t.lineCap=e.lineCap,t.lineJoin=e.lineJoin,t.fillStyle=e.fillColor,t.size=e.radius,t}});
  1184. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1185. * This program are made available under the terms of the Apache License, Version 2.0
  1186. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VectorTilePBF=t.VectorTileJSON=t.VectorTile=t.VectorGrid=t.VectorFeatureType=t.TextSymbolizer=t.PolyBase=t.Symbolizer=t.SVGRenderer=t.RegionSymbolizer=t.PointSymbolizer=t.LineSymbolizer=t.CanvasRenderer=t.ThemeLayer=t.themeFeature=t.ThemeFeature=t.GeoFeatureThemeLayer=t.MapVRenderer=t.graphic=t.Graphic=t.circleStyle=t.CircleStyle=t.cloverStyle=t.CloverStyle=t.imageStyle=t.ImageStyle=t.CompOpMap=t.ServerStyleMap=t.CartoStyleMap=t.DefaultStyle=t.CartoCSSToLeaflet=t.VectorTileFormat=t.heatMapFeature=t.HeatMapFeature=t.heatMapLayer=t.HeatMapLayer=t.uniqueThemeLayer=t.UniqueThemeLayer=t.unicodeMarker=t.UnicodeMarker=t.turfLayer=t.TurfLayer=t.tiledVectorLayer=t.TileVectorLayer=t.rankSymbolThemeLayer=t.RankSymbolThemeLayer=t.rangeThemeLayer=t.RangeThemeLayer=t.mapVLayer=t.MapVLayer=t.labelThemeLayer=t.LabelThemeLayer=t.graphThemeLayer=t.GraphThemeLayer=t.graphicLayer=t.GraphicLayer=t.LeafletMapCoordSys=t.echartsLayer=t.EchartsLayer=t.dataFlowLayer=t.DataFlowLayer=void 0;var i=r(162),n=r(378),a=r(377),o=r(157),s=r(165),l=r(160),u=r(166),c=r(370),p=r(369),h=r(363),f=r(163),d=r(167),y=r(361),v=r(95),m=r(360),g=r(158),b=r(359),S=r(358),_=r(357);t.DataFlowLayer=i.DataFlowLayer,t.dataFlowLayer=i.dataFlowLayer,
  1187. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1188. * This program are made available under the terms of the Apache License, Version 2.0
  1189. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1190. t.EchartsLayer=n.EchartsLayer,t.echartsLayer=n.echartsLayer,t.LeafletMapCoordSys=n.LeafletMapCoordSys,t.GraphicLayer=a.GraphicLayer,t.graphicLayer=a.graphicLayer,t.GraphThemeLayer=o.GraphThemeLayer,t.graphThemeLayer=o.graphThemeLayer,t.LabelThemeLayer=s.LabelThemeLayer,t.labelThemeLayer=s.labelThemeLayer,t.MapVLayer=l.MapVLayer,t.mapVLayer=l.mapVLayer,t.RangeThemeLayer=u.RangeThemeLayer,t.rangeThemeLayer=u.rangeThemeLayer,t.RankSymbolThemeLayer=c.RankSymbolThemeLayer,t.rankSymbolThemeLayer=c.rankSymbolThemeLayer,t.TileVectorLayer=p.TileVectorLayer,t.tiledVectorLayer=p.tiledVectorLayer,t.TurfLayer=h.TurfLayer,t.turfLayer=h.turfLayer,t.UnicodeMarker=f.UnicodeMarker,t.unicodeMarker=f.unicodeMarker,t.UniqueThemeLayer=d.UniqueThemeLayer,t.uniqueThemeLayer=d.uniqueThemeLayer,t.HeatMapLayer=y.HeatMapLayer,t.heatMapLayer=y.heatMapLayer,t.HeatMapFeature=y.HeatMapFeature,t.heatMapFeature=y.heatMapFeature,t.VectorTileFormat=v.VectorTileFormat,t.CartoCSSToLeaflet=m.CartoCSSToLeaflet,t.DefaultStyle=m.DefaultStyle,t.CartoStyleMap=m.CartoStyleMap,t.ServerStyleMap=m.ServerStyleMap,t.CompOpMap=m.CompOpMap,t.ImageStyle=g.ImageStyle,t.imageStyle=g.imageStyle,t.CloverStyle=g.CloverStyle,t.cloverStyle=g.cloverStyle,t.CircleStyle=g.CircleStyle,t.circleStyle=g.circleStyle,t.Graphic=g.Graphic,t.graphic=g.graphic,t.MapVRenderer=b.MapVRenderer,t.GeoFeatureThemeLayer=S.GeoFeatureThemeLayer,t.ThemeFeature=S.ThemeFeature,t.themeFeature=S.themeFeature,t.ThemeLayer=S.ThemeLayer,t.CanvasRenderer=_.CanvasRenderer,t.LineSymbolizer=_.LineSymbolizer,t.PointSymbolizer=_.PointSymbolizer,t.RegionSymbolizer=_.RegionSymbolizer,t.SVGRenderer=_.SVGRenderer,t.Symbolizer=_.Symbolizer,t.PolyBase=_.PolyBase,t.TextSymbolizer=_.TextSymbolizer,t.VectorFeatureType=_.VectorFeatureType,t.VectorGrid=_.VectorGrid,t.VectorTile=_.VectorTile,t.VectorTileJSON=_.VectorTileJSON,t.VectorTilePBF=_.VectorTilePBF},function(e,t,r){"use strict";function i(e){return Object.prototype.toString.call(e)}function n(e){return"[object String]"===i(e)}e.exports={getObjectType:i,isDate:function(e){return"[object Date]"===i(e)},isString:n,isDateString:function(e){return n(e)&&!isNaN(Date.parse(e))},parseDateFromString:function(e){return Date.parse(e)},isNumber:function(e){return"number"==typeof e}}},function(e,t,r){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=r(383),a="&&",o="||",s="and",l="or",u="=",c="~",p="!"+u,h="!"+c,f=">",d=">=",y="<",v="<=",m="*",g=",",b=".",S="(",_=")",P="where",w={pathway:[],groups:{}},O={},T={},M=console.log;function C(e){var t=E(e,P),r=t[0],i=t[1];w.pathway=E(r,g);for(var n=0,s=w.pathway.length;n<s;n++)w.pathway[n]=E(w.pathway[n],b),w.pathway[n][0]==m&&w.pathway[n].shift(),0===w.pathway[n].length&&w.pathway.splice(n,1);for(var l=-1,T=-1,M=0;M<i.length;){if(i[M]===S)l=M;else if(i[M]===_&&(T=M)>l&&-1!==l){var C="gr_"+(new Date).getTime();w.groups[C]=i.substring(l+1,T),i=i.replace(S+w.groups[C]+_,C),M=-1}M+=1}!function e(t,r){var i=x(r,a),n=x(r,o);if(i!==Number.MAX_VALUE||n!==Number.MAX_VALUE)if(i<n){t.and=t.and||[];var s=E(r,a);t.and.push(s[0]),e(t.and,s[1])}else{t.or=t.or||[];var s=E(r,o);t.or.push(s[0]),e(t.or,s[1])}else w.groups[r]?(r=w.groups[r],e(t,r)):(Array.isArray(t)?t.push(r):t.or=[r],function e(t){for(var r in t)if(t.hasOwnProperty(r))if(Array.isArray(t[r]))e(t[r]);else if("string"==typeof t[r])if(L(t[r],p)){var i=E(t[r],p);t[r]={ne:[i[0],i[1]]}}else if(L(t[r],h)){var i=E(t[r],h);t[r]={nreq:[i[0],i[1]]}}else if(L(t[r],c)){var i=E(t[r],c);t[r]={req:[i[0],i[1]]}}else if(L(t[r],d)){var i=E(t[r],d);t[r]={ge:[i[0],i[1]]}}else if(L(t[r],f)){var i=E(t[r],f);t[r]={gt:[i[0],i[1]]}}else if(L(t[r],v)){var i=E(t[r],v);t[r]={le:[i[0],i[1]]}}else if(L(t[r],y)){var i=E(t[r],y);t[r]={lt:[i[0],i[1]]}}else if(L(t[r],u)){var i=E(t[r],u);t[r]={eq:[i[0],i[1]]}}}(O.or?O.or:O.and))}(O,i)}function x(e,t){var r=e.indexOf(t);return-1===r?Number.MAX_VALUE:r}function E(e,t){return e.split(t).map(function(e){return e.trim()})}function L(e,t){return e.indexOf(t)>-1}function A(e,t){var r=E(t,b),i=e;for(var a in r){if(!i.hasOwnProperty(r[a]))return"";i=i[r[a]]}return i=n.isDate(i)?i.valueOf():n.isDateString(i)?n.parseDateFromString(i):i.toString()}function k(e,t){var r=!1;for(var i in e){if(r=r||(i===s?F:i===l?k:j)(e[i],t),T.trace&&M(w.step,"======((( or",e[i],r),r)return r}return r}function F(e,t){var r=!0;for(var i in e){if(r=r&&(i===s?F:i===l?k:j)(e[i],t),T.trace&&M(w.step,"======((( and",e[i],r),!r)return r}return r}function j(e,t){if(w.step+=1,e.or){var r=k(e.or,t);return T.trace&&M(w.step,"OR",e,r),r}if(e.and){r=F(e.and,t);return T.trace&&M(w.step,"AND",e,r),r}if("object"===(void 0===e?"undefined":i(e)))return e.eq?A(t,e.eq[0])===e.eq[1]:e.ne?A(t,e.ne[0])!==e.ne[1]:e.req?L(A(t,e.req[0]),e.req[1]):e.nreq?!L(A(t,e.nreq[0]),e.nreq[1]):e.gt?A(t,e.gt[0])>e.gt[1]:e.ge?A(t,e.ge[0])>=e.ge[1]:e.lt?A(t,e.lt[0])<e.lt[1]:e.le?A(t,e.le[0])<=e.le[1]:j(e,t)}function I(e,t,r){return w={pathway:[],groups:{},step:0},O={},T=r=r||{trace:!1},C(t),(i=function(e){var t=[];for(var r in e)j(O,e[r])&&t.push(e[r]);return t}(e))&&w.pathway.length>0?i.map(function(e){for(var t={},r=0,i=w.pathway.length;r<i;r++){var n=w.pathway[r].join(b);t[n]=A(e,n)}return t}):i;var i}void 0!==e&&void 0!==e.exports&&(e.exports=I),"undefined"!=typeof window&&(window.Query=I)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.webMap=t.WebMap=void 0;var i=P(r(2)),n=P(r(384)),a=P(r(185));r(3);var o=r(5),s=r(102),l=r(109),u=r(168),c=r(174),p=r(103),h=r(173),f=r(171),d=r(167),y=r(166),v=r(165),m=r(164),g=r(100),b=r(163),S=r(172),_=P(r(11));function P(e){return e&&e.__esModule?e:{default:e}}
  1191. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1192. * This program are made available under the terms of the Apache License, Version 2.0
  1193. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var w=t.WebMap=i.default.LayerGroup.extend({options:{map:"map",server:"http://www.supermapol.com",featureLayerPopupEnable:!0,featureLayerPopup:null,credentialValue:null,credentialKey:"key",attribution:_.default.Online.attribution},defaultFeatureLayerPopup:function(e){return e.feature.properties.attributes.title+":"+e.feature.properties.attributes.description},initialize:function(e,t){(e||t)&&(this._layers={},i.default.setOptions(this,t),this.id=e,this.load(),this.cartoCSSToLeaflet=new s.CartoCSSToLeaflet)},load:function(){this.options.server.indexOf("http://")<0&&this.options.server.indexOf("https://")<0&&(this.options.server="http://"+this.options.server);var e=this.options.server+"/web/maps/"+this.id+".json";this.options.credentialValue&&(e+="?"+this.options.credentialKey+"="+this.options.credentialValue);var t=this;o.FetchRequest.get(e).then(function(e){return e.json()}).then(function(e){if(e){var r=e.layers;t.mapInfo=e,t.createLayersByJson(r)}})},addLayerWrapper:function(e,t,r){return t&&this.createMap(r),this.addLayer(e),e.labelLayer&&this.addLayer(e.labelLayer),this},createLayersByJson:function(e){if(i.default.Util.isArray(e)&&0!==e.length){this.layers=[];for(var t=[],r=0;r<e.length;r++){var n=e[r];n._originIndex=r,"BASE_LAYER"===(n.layerType=n.layerType||"BASE_LAYER")?(n.isBaseLayer=!0,this.createLayer(n.type,n)):t.unshift(n)}for(;t.length>0;){var a=t.pop(),o=a.type,s=a.layerType=a.layerType||"BASE_LAYER";"OVERLAY_LAYER"!==s&&(o=s),this.createLayer(o,a)}this.fire("maploaded",{map:this._map})}},createCRS:function(e,t,r,n,a){return e<0?new l.NonEarthCRS({bounds:a,origin:n,resolutions:r}):910112===e||910102===e?i.default.CRS.BaiduCRS:(910111===e&&(e=3857),910101===e&&(e=4326),i.default.Proj.CRS("EPSG:"+e,{origin:n,resolutions:r,bounds:a}))},createMap:function(e){var t=e.crs||i.default.CRS.EPSG3857,r=i.default.latLngBounds(t.unproject(e.bounds.min),t.unproject(e.bounds.max));this._map=i.default.map(this.options.map,{center:r.getCenter(),maxZoom:e.maxZoom||22,minZoom:e.minZoom||0,zoom:e.zoom||0,crs:t,renderer:i.default.canvas()}),t instanceof l.NonEarthCRS?this._map.setZoom(e.zoom?e.zoom+2:2,{maxZoom:e.maxZoom||22}):this._map.fitBounds(r,{maxZoom:e.maxZoom||22})},getResolutionsFromScales:function(e,t,r,n){for(var a=[],o=0;o<e.length;o++)a.push(i.default.Util.GetResolutionFromScaleDpi(e[o],t,r,n));return a},createLayer:function(e,t){var r=t.prjCoordSys,n=r&&r.epsgCode||this.mapInfo.epsgCode,a=this.mapInfo.center||t.center,o=this.mapInfo.level||t.level,s=this.mapInfo.extent||t.bounds,l=t.scales,u=t.isBaseLayer,d=t.opacity,y=i.default.bounds([s.leftBottom.x,s.leftBottom.y],[s.rightTop.x,s.rightTop.y]),v=t.bounds?i.default.bounds([t.bounds.leftBottom.x,t.bounds.leftBottom.y],[t.bounds.rightTop.x,t.bounds.rightTop.y]):y;a||(a=v.getCenter());var m,g=i.default.point(v.min.x,v.max.y),b=l?this.getResolutionsFromScales(l,96,t.units):null,S=this.createCRS(n,r?r.type:"",b,g,v),_={bounds:y,center:i.default.point(a.x,a.y),crs:S,zoom:o};switch(e){case"SUPERMAP_REST":m=(0,f.tiledMapLayer)(t.url,{transparent:!0,opacity:d});break;case"SUPERMAP_REST_VECTOR":break;case"TIANDITU_VEC":case"TIANDITU_IMG":case"TIANDITU_TER":_.crs=4326===n?i.default.CRS.TianDiTu_WGS84:i.default.CRS.TianDiTu_Mercator,_.minZoom=1,_.zoom=1+_.zoom,m=this.createTiandituLayer(t);break;case"BAIDU":_.crs=i.default.CRS.BaiduCRS,_.zoom=3+_.zoom,_.minZoom=3,m=(0,c.baiduTileLayer)();break;case"BING":break;case"WMS":m=this.createWmsLayer(t);break;case"WMTS":_.resolutions=this.getResolutionsFromScales(l,90.71446714322,t.units);var P=t.identifier,w=P.substring(P.indexOf("_")+1);m=(0,p.wmtsLayer)(t.url,{layer:w,style:"default",tilematrixSet:P,format:"image/png"});break;case"CLOUD":_.crs=i.default.CRS.EPSG3857,_.zoom=3+_.zoom,_.minZoom=3,m=(0,h.cloudTileLayer)(t.url,{opacity:d});break;case"MARKER_LAYER":m=this.createMarkersLayer(t,S);break;case"FEATURE_LAYER":"ANIMATORVECTOR"==t.identifier||(m="THEME"==t.identifier?this.createThemeLayer(t):this.createVectorLayer(t,S));break;default:throw new Error("unSupported Layer Type")}m&&t.isVisible&&this.addLayerWrapper(m,u,_)},createTiandituLayer:function(e){var t=e.type.split("_")[1].toLowerCase(),r="OVERLAY_LAYER"===e.layerType;return new S.TiandituTileLayer({layerType:t,isLabel:r})},createMarkersLayer:function(e,t){var r=this,n=e.markers||[],a=i.default.geoJSON(i.default.Util.toGeoJSON(n),{pointToLayer:function(e,t){var r=new i.default.Marker(t);return r.setStyle=function(e){e&&r.setIcon(e)},r},coordsToLatLng:function(e){var r=t.unproject(i.default.point(e[0],e[1]));return new i.default.LatLng(r.lat,r.lng,e[2])},style:function(e){return r.cartoCSSToLeaflet.getStyleFromiPortalMarker(e.properties.icon)}});return this.options.featureLayerPopupEnable&&a.bindPopup(this.options.featureLayerPopup||this.defaultFeatureLayerPopup),a},createWmsLayer:function(e){var t=e.url,r=e.opacity,n=e.subLayers;return n&&"undefined"!==n&&"null"!==n||(n="0"),i.default.tileLayer.wms(t,{layers:n,format:"image/png",transparent:!0,noWrap:!0,opacity:r})},createVectorLayer:function(e,t){var r=this,n=e.style,a=e.opacity,s=this,l=function(e){var r=t.unproject(i.default.point(e[0],e[1]));return new i.default.LatLng(r.lat,r.lng,e[2])};if(!e.url){var u=i.default.geoJSON(i.default.Util.toGeoJSON(e.features),{pointToLayer:function(e,t){var r=new i.default.Marker(t);return r.setStyle=function(e){e&&r.setIcon(e)},r},coordsToLatLng:l,style:function(e){var t=s.cartoCSSToLeaflet.getStyleFromiPortalStyle(n||{},e.geometry.type,e.properties.style);return t.dashArray&&0==t.dashArray.length&&(t.dashArray=null),t},opacity:a});return this.options.featureLayerPopupEnable&&u.bindPopup(this.options.featureLayerPopup||this.defaultFeatureLayerPopup),u}for(var c=e.url,p=e.name,h=e.features,f=0;f<h.length;f++){var d=h[f];d.visible&&this.getFeaturesBySQL(c,p,d.name,"",o.DataFormat.GEOJSON,function(e){var t=i.default.geoJSON(e.result,{pointToLayer:function(e,t){var r=new i.default.Marker(t);return r.setStyle=function(e){e&&r.setIcon(e)},r},coordsToLatLng:l,style:function(e){return this.cartoCSSToLeaflet.getStyleFromiPortalStyle(n||{},e.geometry.type,e.properties.style)},opacity:a});r.options.featureLayerPopupEnable&&t.bindPopup(s.options.featureLayerPopup||s.defaultFeatureLayerPopup),r.addLayer(t)})}},getFeaturesBySQL:function(e,t,r,i,n,a){i=i||"SMID > 0";var s=new o.GetFeaturesBySQLParameters({queryParameter:{name:r+"@"+t,attributeFilter:i},datasetNames:[t+":"+r],fromIndex:0,toIndex:1e5});(0,m.featureService)(e).getFeaturesBySQL(s,a,n)},createThemeLayer:function(e){var t,r=this,i=e.themeSettings&&JSON.parse(e.themeSettings),n=i.type;if(e.themeSettings=i,(t="HEAT"===n?this.createHeatLayer(e,i):"UNIQUE"===n?this.createUniqueLayer(e,i):"RANGE"===n?this.createRangeLayer(e,i):this.createBaseThemeLayer(e,i))&&(this.addFeature2ThemeLayer(e,t),t.on("add",function(e){r.registerThemeEvent(e.target)})),i&&i.labelField){var a=this.createLabelLayer(e,i);a.on("add",function(e){r.registerThemeEvent(e.target)}),t.labelLayer=a}return t},createBaseThemeLayer:function(e,t){var r=e.style,n=e.opacity,a=t.vectorType,o=r.pointStyle;o.fill="LINE"!==a;var s={};s.radius=o.pointRadius,s.color=o.strokeColor,s.opacity=o.strokeOpacity,s.lineCap=o.strokeLineCap,s.weight=o.strokeWidth,s.fillColor=o.fillColor,s.fillOpacity=o.fillOpacity;var l=function(e,t){return i.default.circleMarker(t,s)};return o.unicode&&(l=function(e,t){return new b.UnicodeMarker(t,o)}),i.default.geoJSON({type:"GeometryCollection",geometries:[]},{pointToLayer:l,opacity:n})},createUniqueLayer:function(e,t){for(var r=e.title,i=t.field,n=[],a=t.settings,o=e.isVisible,s=e.opacity,l=t.vectorType,u=0;u<a.length;u++){var c={};c.value=a[u].value,c.style=a[u].style,n.push(c)}var p=new d.UniqueThemeLayer(r,{opacity:s,visibility:o});this.registerThemeEvent(p),p.style=e.style.pointStyle,p.style.fill="LINE"!==l,p.style.stroke=!0,p.themeField=i,p.styleGroups=n;var h=this;return p.on("click",function(e){if(e.target&&e.target.refDataID){var t=p.getFeatureById(e.target.refDataID);h.events.triggerEvent("uniquefeatureclicked",t,p)}}),p},createRangeLayer:function(e,t){var r=e.title,i=t.field,n=[],a=t.settings,o=e.isVisible,s=e.opacity,l=t.vectorType,u=e.style.pointStyle;u.fill="LINE"!==l;for(var c=0;c<a.length;c++){var p={};p.start=a[c].start,p.end=a[c].end,p.style=a[c].style,n.push(p)}var h=new y.RangeThemeLayer(r,{visibility:o,opacity:s});return this.registerThemeEvent(h),h.style=e.style.pointStyle,h.style.stroke=!0,h.themeField=i,h.styleGroups=n,h},createLabelLayer:function(e,t){var r,n=e.title,a=t.labelField,s=t.settings,l=e.isVisible;r=!s||s.length>0?{fillColor:"#ffffff"}:s[0].style;var u=i.default.Util.extend(new o.ThemeStyle,r);u.fontWeight="bold",u.fontSize="14px",u.labelRect=!0,u.strokeColor=u.fillColor,u.fontColor=t.labelColor,t.labelFont&&(u.fontFamily=t.labelFont);var c=new v.LabelThemeLayer(n,{visibility:l,opacity:.7});return this.registerThemeEvent(c),c.style=u,c.themeField=a,c.styleGroups=[],c},createHeatLayer:function(e,t){for(var r=t.colors||["blue","cyan","lime","yellow","red"],n={},a=void 0,o=0,s=r.length,l=1;o<s;o++)n[l/s]=r[o],l++;var u=t.settings[0].radius;return"千米"!==t.heatUnit&&"km"!==t.heatUnit||(u=1e3*t.heatRadius),t.settings[0]&&t.settings[0].featureWeight&&(a=t.settings[0].featureWeight),i.default.heatLayer([],{radius:u/2,minOpacity:e.opacity,gradient:n,blur:u/2,featureWeight:a})},addFeature2ThemeLayer:function(e,t){var r=this;if("FEATURE_LAYER"===e.layerType&&"THEME"===e.identifier){var a=this,s=!!e.datasourceName,l=e.cartoCSS;if(l)var u=this.getCartoCSS2Obj(l).needTransform,c=this.getCartoCSS2Obj(l).isAddFile;var p,h,f,d=e.url,y=e.credential,m=e.themeSettings,g=m.filter;if(c){var b=JSON.parse(e.datasourceName),S=this.getSQLFromFilter(g);if(d)this.getFeatureFromFileAdded(e,function(r){var i,o=[];if("EXCEL"===r.type||"CSV"===r.type)for(var s=0,l=(i=a.parseFeatureFromEXCEL.apply(a,[r.content.rows,r.content.colTitles,!1,b])).length;s<l;s++)(0,n.default)({attr:i[s].attributes},S).length>0&&o.push(i[s]);else for(var c=0,p=(i=a.parseFeatureFromJson(r.content)).length;c<p;c++)(0,n.default)({attr:i[c].attributes},S).length>0&&o.push(i[c]);var h=e.prjCoordSys&&e.prjCoordSys.epsgCode;u?a.changeFeatureLayerEpsgCode(h,"4326",t,o,function(e){k(e)}):k(o)},function(){});else{for(var _=[],P=e.features,w=0,O=P.length;w<O;w++){var T=P[w];if((0,n.default)({attr:T.attributes},S).length>0){var M=T.geometry.points[0].x,C=T.geometry.points[0].y,x=new o.GeometryPoint(M,C),E=new o.GeometryVector(x,T.attributes,T.style);_.push(E)}}k(_)}}else if(s){var L=e.datasourceName;f=(h=(p=e.subLayers&&JSON.parse(e.subLayers)).length&&p.length>0?p[0]:p)&&h.name,this.getFeaturesBySQL(e.url,L,f,m.filter,o.DataFormat.ISERVER,function(i){var n,a,s=i.result,l=[];if(s&&s.features){for(var c=0,p=(n=s.features).length;c<p;c++)a=o.ServerFeature.fromJson(n[c]).toFeature(),l.push(a);var h=e.prjCoordSys&&e.prjCoordSys.epsgCode;u?r.changeFeatureLayerEpsgCode(h,"4326",t,l,function(e){k(e)}):k(n)}})}else{f=(h=(p=e.subLayers&&JSON.parse(e.subLayers)).length&&p.length>0?p[0]:p)&&h.name;var A=e.prjCoordSys&&e.prjCoordSys.epsgCode;this.getFeaturesBySQL(d,y,f,g,o.DataFormat.ISERVER,function(e){u?a.changeFeatureLayerEpsgCode(A,"4326",t,e,function(e){k(e)}):k(e)})}}function k(r){if(t&&t.labelLayer instanceof v.LabelThemeLayer&&a.addFeature2LabelLayer(t.labelLayer,r,e),i.default.HeatLayer&&t instanceof i.default.HeatLayer){for(var n=[],s=0,l=r.length;s<l;s++){var u=r[s].geometry;n[s]=i.default.latLng(u.y,u.x),t.options.featureWeight&&(n[s]=[n[s].lat,n[s].lng,parseFloat(r[s].attributes[t.options.featureWeight])])}t.setLatLngs(n)}else t instanceof i.default.GeoJSON?t.addData((new o.GeoJSON).toGeoJSON(r)):t.addFeatures(r)}},addFeature2LabelLayer:function(e,t,r){if(t){for(var i,n,a=r.themeSettings,o=(a="string"==typeof a?JSON.parse(r.themeSettings):r.themeSettings).labelField,s=e.style,l=[],u=r.styleString&&JSON.parse(r.styleString),c=0;c<t.length;c++){n=this.getLabelLngLat(a.vectorType,t[c]),this.setLabelOffset(a.vectorType,u,t[c],s);var p=t[c].attributes;i=new g.ThemeFeature([n.lat,n.lng,p[o]],p),l.push(i)}e.style=s,e.addFeatures(l)}},setLabelOffset:function(e,t,r,i){if("POINT"===e){var n=t.pointStyle.pointRadius||0,a=t.pointStyle.strokeWidth||0,o=parseInt(t.pointStyle.fontSize)||0;i.labelXOffset=0,i.labelYOffset=t.pointStyle.unicode?20+o:25+(n+a)}},getLabelLngLat:function(e,t){var r={};if("POINT"===e){var i=t.geometry;r.lng=i.x,r.lat=i.y}else if("LINE"===e){var n,a,o=t.geometry.components;if(o[0].x)n=o.length,a=parseInt(n/2),r.lng=o[a].x,r.lat=o[a].y;else{var s=o[0].components;n=s.length,a=parseInt(n/2),r.lng=s[a].x,r.lat=s[a].y}}else{var l=t.geometry.getCentroid();r.lng=l.x,r.lat=l.y}return r},changeFeatureLayerEpsgCode:function(e,t,r,i,n){var a,o,s=this,l=[];if(e&&t){if(i&&i.length>0){for(a=0,o=i.length;a<o;a++){var u=i[a].geometry.getVertices();l=l.concat(u)}e="EPSG:"+e,t="EPSG:"+t,s.coordsTransform(e,t,l,function(e,t){return function(e){var r=e.length;for(a=0;a<r;a++){var i=l[a],o=e[a];i.x=o.x,i.y=o.y,i.calculateBounds()}for(a=0,r=t.length;a<r;a++){var u=t[a].geometry;u.components&&s.calculateComponents(u.components),u.calculateBounds()}n&&n.call(s,t)}}(0,i))}return!0}},calculateComponents:function(e){if(e)if(e.components)this.calculateComponents(e.components);else for(var t=0,r=e.length;t<r;t++){var i=e[t];i.components&&this.calculateComponents(i.components),i.calculateBounds()}},coordsTransform:function(e,t,r,i){var n,a=this.SERVER_TYPE_MAP[e],o=this.SERVER_TYPE_MAP[t];if(e!==t&&a&&o){var s=this.SERVER_TYPE_MAP["EPSG:3857"],l=this.SERVER_TYPE_MAP["EPSG:4326"];if(a!==s&&a!==l||o!==s&&o!==l){var u=a+"_"+o;this.postTransform(u,r,i)}else this.projTransform(e,t,r,i)}else{if(r&&void 0!==r.length){n=[];for(var c=0,p=r.length;c<p;c++){var h={x:r[c].x,y:r[c].y};n.push(h)}}else n={x:r.x,y:r.y};i&&i.call(this,n)}},projTransform:function(e,t,r,i){var n;if(a.default){if(r&&void 0!==r.length){n=[];for(var o=0,s=r.length;o<s;o++){var l=(0,a.default)(e,t,[r[o].x,r[o].y]);n.push({x:l[0],y:l[1]})}}else n={x:(n=(0,a.default)(e,t,[r.x,r.y]))[0],y:n[1]};i&&(this.fire("coordconvertsuccess",{newCoor:n}),i.call(this,n))}},postTransform:function(e,t,r){var i=this,n=[];if(!e)return r.call(this,null);if(t&&void 0!==t.length)for(var a=0,s=t.length;a<s;a++)n.push({x:t[a].x,y:t[a].y});else n=[{x:t.x,y:t.y}];if(0===n.length)return r.call(this,null);var l={convertType:e,points:n},u=this.server+"/apps/viewer/coordconvert.json";l=JSON.stringify(l);var c={};!o.CommonUtil.isInTheSameDomain(u)&&this.proxy&&(c.proxy=this.proxy),o.FetchRequest.post(u,l,c).then(function(e){return e.json()}).then(function(e){var n=e;t||void 0===t.length||(n=n[0]),i.fire("coordconvertsuccess",{newCoors:n}),r.call(i,n)}).catch(function(e){i.actived&&i.fire("coordconvertfailed",{err:e})})},getSQLFromFilter:function(e){return e?" * where ("+(e=e.replace(/=/g,"==").replace(/and|AND/g,"&&").replace(/or|OR/g,"||").replace(/>==/g,">=").replace(/<==/g,"<="))+")":" * where (1==1||1>=0)"},getAttributesObjFromTable:function(e,t){if(0!==e.length&&0!==t.length){for(var r=[],i=0;i<e.length;i++){for(var n={},a=0;a<t.length;a++)n[t[a]]=e[i][a];r.push(n)}return r}},parseFeatureFromEXCEL:function(e,t,r,i){for(var n=this.getAttributesObjFromTable(e,t),a=[],s=0,l=n.length;s<l;s++){var c=n[s][i.lon],p=n[s][i.lat];if(c&&p){c=parseFloat(c),p=parseFloat(p);var h,f=new o.GeometryPoint(c,p);h=r?new u.Graphic(f,n[s],null):new o.GeometryVector(f,n[s],null),a.push(h)}}return a},parseFeatureFromJson:function(e){var t=new o.GeoJSON,r=t.read(e);if(null==r){var i=JSON.parse(e.replace(/'/,'"'));(i.isAnalyseResult||"MapEditor"===i.type||"DataInsights"===i.type||"ISERVER"===i.type)&&(i=i.data.recordsets[0].features),r=(t=new o.GeoJSON).read(i)}for(var n=0,a=r.length;n<a;n++)r[n].attributes=r[n].attributes.properties||r[n].attributes;return r},getFeatureFromFileAdded:function(e,t,r,i){var n=i?e.url+"?currentPage=1&&pageSize=9999999":e.url;o.FetchRequest.get(n).then(function(e){return e.json()}).then(function(e){t&&t(e)}).catch(function(e){return r&&r(e)})},getCartoCSS2Obj:function(e){var t,r=!1;return e.indexOf("}")>-1?(r=(e=JSON.parse(e)).needTransform,t=e.isAddFile):"needTransform"===e?(r=!0,t=!1):t="true"===e,{isAddFile:t,needTransform:r}},registerThemeEvent:function(e){var t=this;e.on("click",function(r){if(e.map){t.selectedFeature&&(t.fire("featureunselected",{feature:t.selectedFeature}),t.selectedFeature=null);var i=void 0;r.target&&r.target.refDataID&&(i=e.getFeatureById(r.target.refDataID)),i&&(t.selectedFeature=i,t.fire("featureselected",{feature:i}))}}),e.on("mousemove",function(r){if(e.map&&r.target&&r.target.refDataID){var i=void 0;r.target&&r.target.refDataID&&(i=e.getFeatureById(r.target.refDataID)),i&&t.fire("featuremousemove",{feature:i})}})},SERVER_TYPE_MAP:{"EPSG:4326":"WGS84","EPSG:3857":"MERCATOR","EPSG:900913":"MERCATOR","EPSG:102113":"MERCATOR","EPSG:910101":"GCJ02","EPSG:910111":"GCJ02MERCATOR","EPSG:910102":"BD","EPSG:910112":"BDMERCATOR"}}),O=t.webMap=function(e,t){return new w(e,t)};i.default.supermap.webmap=O},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.imageMapLayer=t.ImageMapLayer=void 0;var i=r(2),n=s(i);r(3);var a=r(5),o=s(r(11));function s(e){return e&&e.__esModule?e:{default:e}}
  1194. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1195. * This program are made available under the terms of the Apache License, Version 2.0
  1196. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.ImageMapLayer=i.Layer.extend({options:{layersID:null,redirect:!1,transparent:!0,cacheEnabled:!0,clipRegionEnabled:!1,clipRegion:null,prjCoordSys:null,overlapDisplayed:!1,overlapDisplayedOptions:null,opacity:1,alt:"",pane:"tilePane",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:"",serverType:a.ServerType.ISERVER,attribution:o.default.Common.attribution,updateInterval:150,tileProxy:null,format:"png"},initialize:function(e,t){this._url=e,i.Util.setOptions(this,t)},onAdd:function(e){this.update=i.Util.throttle(this.update,this.options.updateInterval,this),e.on("moveend",this.update,this),this._currentImage&&this._currentImage._bounds.equals(this._map.getBounds())?e.addLayer(this._currentImage):this._currentImage&&(this._map.removeLayer(this._currentImage),this._currentImage=null),this.update()},onRemove:function(e){this._currentImage&&this._map.removeLayer(this._currentImage),this._map.off("moveend",this.update,this)},bringToFront:function(){return this.options.position="front",this._currentImage&&this._currentImage.bringToFront(),this},bringToBack:function(){return this.options.position="back",this._currentImage&&this._currentImage.bringToBack(),this},getOpacity:function(){return this.options.opacity},setOpacity:function(e){return this.options.opacity=e,this._currentImage&&this._currentImage.setOpacity(e),this},getImageUrl:function(e){var t=i.Util.getParamString(e)+this._initLayerUrl();return t=this._url+"/image."+this.options.format+t,t=this._appendCredential(t),this.options.tileProxy&&(t=this.options.tileProxy+encodeURIComponent(t)),this.options.cacheEnabled||(t+="&_t="+(new Date).getTime()),t},_getImageParams:function(){var e=this._calculateImageSize();return{viewBounds:this._compriseBounds(this._calculateBounds()),width:e.x,height:e.y}},_initLayerUrl:function(){var e="&";return e+=encodeURI(this._initAllRequestParams().join("&"))},_initAllRequestParams:function(){var e=this.options||{},t=[],r=!0===e.redirect&&e.redirect;t.push("redirect="+r);var i=!0===e.transparent&&e.transparent;t.push("transparent="+i);var o=!1!==e.cacheEnabled||e.cacheEnabled;return t.push("cacheEnabled="+o),e.prjCoordSys&&t.push("prjCoordSys="+JSON.stringify(e.prjCoordSys)),e.layersID&&t.push("layersID="+e.layersID),e.clipRegionEnabled&&e.clipRegion instanceof n.default.Path&&(e.clipRegion=n.default.Util.toSuperMapGeometry(e.clipRegion.toGeoJSON()),e.clipRegion=a.CommonUtil.toJSON(a.ServerGeometry.fromGeometry(e.clipRegion)),t.push("clipRegionEnabled="+e.clipRegionEnabled),t.push("clipRegion="+JSON.stringify(e.clipRegion))),!1===e.overlapDisplayed?(t.push("overlapDisplayed=false"),e.overlapDisplayedOptions&&t.push("overlapDisplayedOptions="+this.overlapDisplayedOptions.toString())):t.push("overlapDisplayed=true"),t},_requestImage:function(e,t){var r=this.getImageUrl(e);this._loadImage(r,t)},_loadImage:function(e,t){if(this._map){var r=new i.ImageOverlay(e,t,{opacity:0,alt:this.options.alt,zIndex:this.options.zIndex,className:this.options.className,errorOverlayUrl:this.options.error,crossOrigin:this.options.crossOrigin,pane:this.options.pane||this.getPane(),interactive:this.options.interactive}).addTo(this._map),n=function e(i){r.off("error",e,this);var n=this._map;if(n){var a=i.target,o=this._currentImage;a._bounds&&a._bounds.equals(t)&&a._bounds.equals(n.getBounds())?(this._currentImage=a,"front"===this.options.position&&this.bringToFront(),"back"===this.options.position&&this.bringToBack(),this._currentImage._map&&this._currentImage.setOpacity(this.options.opacity),o&&n.removeLayer(o),o&&o._map&&o._map.removeLayer(o)):n.removeLayer(a),this.fire("load",{bounds:t})}};r.once("load",n,this),r.once("error",function(){this._map.removeLayer(r),this.fire("error"),r.off("load",n,this)},this),this.fire("loading",{bounds:t})}},update:function(){if(this._map){var e=this._map.getZoom(),t=this._map.getBounds();if(e>this._map.options.maxZoom||e<this._map.options.zoom)this._currentImage&&(this._currentImage._map.removeLayer(this._currentImage),this._currentImage=null);else{var r=this._getImageParams();r?this._requestImage(r,t):this._currentImage&&(this._currentImage._map.removeLayer(this._currentImage),this._currentImage=null)}}},_calculateBounds:function(){var e=this._map.getPixelBounds(),t=this._map.unproject(e.getBottomLeft()),r=this._map.unproject(e.getTopRight()),i=this._map.options.crs.project(r),a=this._map.options.crs.project(t);return n.default.bounds(i,a)},_compriseBounds:function(e){var t={leftBottom:{x:e.getBottomLeft().x,y:e.getTopRight().y},rightTop:{x:e.getTopRight().x,y:e.getBottomLeft().y}};return JSON.stringify(t)},_calculateImageSize:function(){var e=this._map,t=e.getPixelBounds(),r=e.getSize(),i=e.unproject(t.getBottomLeft()),n=e.unproject(t.getTopRight()),a=e.latLngToLayerPoint(n).y,o=e.latLngToLayerPoint(i).y;return(a>0||o<r.y)&&(r.y=o-a),r},_appendCredential:function(e){var t,r,i=e;switch(this.options.serverType){case a.ServerType.IPORTAL:(t=(r=a.SecurityManager.getToken(this._url))?new a.Credential(r,"token"):null)||(t=(r=a.SecurityManager.getKey(this._url))?new a.Credential(r,"key"):null);break;case a.ServerType.ONLINE:t=(r=a.SecurityManager.getKey(this._url))?new a.Credential(r,"key"):null;break;default:t=(r=a.SecurityManager.getToken(this._url))?new a.Credential(r,"token"):null}return t&&(i+="&"+t.getUrlParameters()),i}}),u=t.imageMapLayer=function(e,t){return new l(e,t)};n.default.supermap.imageMapLayer=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.webMap=t.WebMap=t.wmtsLayer=t.WMTSLayer=t.tiledMapLayer=t.TiledMapLayer=t.tiandituTileLayer=t.TiandituTileLayer=t.imageMapLayer=t.ImageMapLayer=t.cloudTileLayer=t.CloudTileLayer=t.baiduTileLayer=t.BaiduTileLayer=void 0;var i=r(174),n=r(173),a=r(386),o=r(172),s=r(171),l=r(103),u=r(385);t.BaiduTileLayer=i.BaiduTileLayer,t.baiduTileLayer=i.baiduTileLayer,
  1197. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1198. * This program are made available under the terms of the Apache License, Version 2.0
  1199. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1200. t.CloudTileLayer=n.CloudTileLayer,t.cloudTileLayer=n.cloudTileLayer,t.ImageMapLayer=a.ImageMapLayer,t.imageMapLayer=a.imageMapLayer,t.TiandituTileLayer=o.TiandituTileLayer,t.tiandituTileLayer=o.tiandituTileLayer,t.TiledMapLayer=s.TiledMapLayer,t.tiledMapLayer=s.tiledMapLayer,t.WMTSLayer=l.WMTSLayer,t.wmtsLayer=l.wmtsLayer,t.WebMap=u.WebMap,t.webMap=u.webMap},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transform=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i},o=r(5);
  1201. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1202. * This program are made available under the terms of the Apache License, Version 2.0
  1203. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1204. var s=t.transform=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.default.CRS.EPSG4326,r=arguments[2],i=null,n=null;if(-1===["FeatureCollection","Feature","Geometry"].indexOf(e.type))if(e.toGeoJSON)e=e.toGeoJSON();else if(e instanceof a.default.LatLngBounds)e=a.default.rectangle(e).toGeoJSON();else{if(!(e instanceof a.default.Bounds))throw new Error("This tool only supports data conversion in geojson format or Vector Layers of Leaflet.");e=a.default.rectangle([[e.getTopLeft().x,e.getTopLeft().y],[e.getBottomRight().x,e.getBottomRight().y]]).toGeoJSON()}var s={point:function(e){return n(e)},multipoint:function(e){return s.linestring.apply(this,[e])},linestring:function(e){for(var t=[],r=null,i=0,n=e.length;i<n;++i){try{r=s.point.apply(this,[e[i]])}catch(e){throw e}t.push(r)}return t},multilinestring:function(e){return s.polygon.apply(this,[e])},polygon:function(e){for(var t=[],r=void 0,i=0,n=e.length;i<n;++i){try{r=s.linestring.apply(this,[e[i]])}catch(e){throw e}t.push(r)}return t},multipolygon:function(e){for(var t=[],r=null,i=0,n=e.length;i<n;++i){try{r=s.polygon.apply(this,[e[i]])}catch(e){throw e}t.push(r)}return t}};return function(e,t){if(i=e,n=t,"Feature"===e.type)i=l(e);else if("FeatureCollection"===e.type){for(var r=[],a=0;a<e.features.length;++a)try{r.push(l(e.features[a]))}catch(e){r=null}i.features=r}return i}(e,function(e){var i=t.unproject({x:e[0],y:e[1]}),n=r.project(i);return[n.x,n.y]});function l(e){var t=e.geometry;if(!o.CommonUtil.isArray(t.coordinates))throw"Geometry must have coordinates array: "+t;if(!s[t.type.toLowerCase()])throw"Unsupported geometry type: "+t.type;try{t.coordinates=s[t.type.toLowerCase()].apply(this,[t.coordinates])}catch(e){throw e}return e.geometry=t,e}};a.default.Util.transform=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transform=t.NormalizeScale=t.GetResolutionFromScaleDpi=t.scaleToResolution=t.resolutionToScale=t.getMeterPerMapUnit=t.toSuperMapGeometry=t.toGeoJSON=t.crs=t.CRS=t.nonEarthCRS=t.NonEarthCRS=t.nonProjection=t.NonProjection=t.TianDiTu_MercatorCRS=t.TianDiTu_WGS84CRS=t.BaiduCRS=t.CommontypesConversion=void 0;var i=r(25),n=r(176),a=r(109),o=r(186),s=r(31),l=r(388);
  1205. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1206. * This program are made available under the terms of the Apache License, Version 2.0
  1207. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1208. t.CommontypesConversion=i.CommontypesConversion,t.BaiduCRS=n.BaiduCRS,t.TianDiTu_WGS84CRS=n.TianDiTu_WGS84CRS,t.TianDiTu_MercatorCRS=n.TianDiTu_MercatorCRS,t.NonProjection=a.NonProjection,t.nonProjection=a.nonProjection,t.NonEarthCRS=a.NonEarthCRS,t.nonEarthCRS=a.nonEarthCRS,t.CRS=o.CRS,t.crs=o.crs,t.toGeoJSON=s.toGeoJSON,t.toSuperMapGeometry=s.toSuperMapGeometry,t.getMeterPerMapUnit=s.getMeterPerMapUnit,t.resolutionToScale=s.resolutionToScale,t.scaleToResolution=s.scaleToResolution,t.GetResolutionFromScaleDpi=s.GetResolutionFromScaleDpi,t.NormalizeScale=s.NormalizeScale,t.transform=l.transform},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logo=t.Logo=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(325);var s=t.Logo=a.default.Control.extend({options:{position:"bottomright",imageUrl:null,link:null,width:null,height:null,alt:"SuperMap iClient"},onAdd:function(){var e=a.default.DomUtil.create("div","iclient-leaflet-logo");e.style.marginTop=0,e.style.marginBottom=0,e.style.marginLeft=0,e.style.marginRight=0;var t=o.LogoBase64;this.options.imageUrl&&(t=this.options.imageUrl);var r=this.options.alt,i="94px",n="29px",s="width:"+i+";height:"+n+";";this.options.imageUrl&&(s="width:"+(i=this.options.width)+";height:"+(n=this.options.height)+";",i&&n||(s=""));var l=this.options.link||"http://iclient.supermap.io";return e.innerHTML="<a href='"+l+"' target='_blank' style='border: none;display: block;'><img src="+t+" alt='"+r+"' style='border: none;"+s+"margin-right:5px;margin-bottom:2px;white-space: nowrap'></a>",e}});
  1209. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1210. * This program are made available under the terms of the Apache License, Version 2.0
  1211. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/a.default.Map.mergeOptions({logoControl:!0}),a.default.Map.addInitHook(function(){!this._logoAdded&&this.options.logoControl&&(!0===this.options.logoControl?this.logoControl=new s:this.options.logoControl instanceof a.default.Control&&(this.logoControl=this.options.logoControl),this.logoControl&&(this.addControl(this.logoControl),this._logoAdded=!0))});var l=t.logo=function(e){return new s(e)};a.default.supermap.control.logo=l},function(e,t,r){"use strict";var i=r(7),n=Math.PI/2,a=r(54),o=r(58),s=r(57),l=r(56),u=r(55),c=r(106),p=r(43),h=r(105);t.init=function(){this.sin_p12=Math.sin(this.lat0),this.cos_p12=Math.cos(this.lat0)},t.forward=function(e){var t,r,p,h,f,d,y,v,m,g,b,S,_,P,w,O,T,M,C,x,E,L,A=e.x,k=e.y,F=Math.sin(e.y),j=Math.cos(e.y),I=i(A-this.long0);return this.sphere?Math.abs(this.sin_p12-1)<=1e-10?(e.x=this.x0+this.a*(n-k)*Math.sin(I),e.y=this.y0-this.a*(n-k)*Math.cos(I),e):Math.abs(this.sin_p12+1)<=1e-10?(e.x=this.x0+this.a*(n+k)*Math.sin(I),e.y=this.y0+this.a*(n+k)*Math.cos(I),e):(M=this.sin_p12*F+this.cos_p12*j*Math.cos(I),T=(O=Math.acos(M))/Math.sin(O),e.x=this.x0+this.a*T*j*Math.sin(I),e.y=this.y0+this.a*T*(this.cos_p12*F-this.sin_p12*j*Math.cos(I)),e):(t=o(this.es),r=s(this.es),p=l(this.es),h=u(this.es),Math.abs(this.sin_p12-1)<=1e-10?(f=this.a*a(t,r,p,h,n),d=this.a*a(t,r,p,h,k),e.x=this.x0+(f-d)*Math.sin(I),e.y=this.y0-(f-d)*Math.cos(I),e):Math.abs(this.sin_p12+1)<=1e-10?(f=this.a*a(t,r,p,h,n),d=this.a*a(t,r,p,h,k),e.x=this.x0+(f+d)*Math.sin(I),e.y=this.y0+(f+d)*Math.cos(I),e):(y=F/j,v=c(this.a,this.e,this.sin_p12),m=c(this.a,this.e,F),g=Math.atan((1-this.es)*y+this.es*v*this.sin_p12/(m*j)),C=0===(b=Math.atan2(Math.sin(I),this.cos_p12*Math.tan(g)-this.sin_p12*Math.cos(I)))?Math.asin(this.cos_p12*Math.sin(g)-this.sin_p12*Math.cos(g)):Math.abs(Math.abs(b)-Math.PI)<=1e-10?-Math.asin(this.cos_p12*Math.sin(g)-this.sin_p12*Math.cos(g)):Math.asin(Math.sin(I)*Math.cos(g)/Math.sin(b)),S=this.e*this.sin_p12/Math.sqrt(1-this.es),O=v*C*(1-(x=C*C)*(w=(_=this.e*this.cos_p12*Math.cos(b)/Math.sqrt(1-this.es))*_)*(1-w)/6+(E=x*C)/8*(P=S*_)*(1-2*w)+(L=E*C)/120*(w*(4-7*w)-3*S*S*(1-7*w))-L*C/48*P),e.x=this.x0+O*Math.sin(b),e.y=this.y0+O*Math.cos(b),e))},t.inverse=function(e){var t,r,f,d,y,v,m,g,b,S,_,P,w,O,T,M,C,x,E,L,A,k;if(e.x-=this.x0,e.y-=this.y0,this.sphere){if((t=Math.sqrt(e.x*e.x+e.y*e.y))>2*n*this.a)return;return r=t/this.a,f=Math.sin(r),d=Math.cos(r),y=this.long0,Math.abs(t)<=1e-10?v=this.lat0:(v=p(d*this.sin_p12+e.y*f*this.cos_p12/t),m=Math.abs(this.lat0)-n,y=Math.abs(m)<=1e-10?this.lat0>=0?i(this.long0+Math.atan2(e.x,-e.y)):i(this.long0-Math.atan2(-e.x,e.y)):i(this.long0+Math.atan2(e.x*f,t*this.cos_p12*d-e.y*this.sin_p12*f))),e.x=y,e.y=v,e}return g=o(this.es),b=s(this.es),S=l(this.es),_=u(this.es),Math.abs(this.sin_p12-1)<=1e-10?(P=this.a*a(g,b,S,_,n),t=Math.sqrt(e.x*e.x+e.y*e.y),v=h((P-t)/this.a,g,b,S,_),y=i(this.long0+Math.atan2(e.x,-1*e.y)),e.x=y,e.y=v,e):Math.abs(this.sin_p12+1)<=1e-10?(P=this.a*a(g,b,S,_,n),t=Math.sqrt(e.x*e.x+e.y*e.y),v=h((t-P)/this.a,g,b,S,_),y=i(this.long0+Math.atan2(e.x,e.y)),e.x=y,e.y=v,e):(t=Math.sqrt(e.x*e.x+e.y*e.y),T=Math.atan2(e.x,e.y),w=c(this.a,this.e,this.sin_p12),M=Math.cos(T),x=-(C=this.e*this.cos_p12*M)*C/(1-this.es),E=3*this.es*(1-x)*this.sin_p12*this.cos_p12*M/(1-this.es),k=1-x*(A=(L=t/w)-x*(1+x)*Math.pow(L,3)/6-E*(1+3*x)*Math.pow(L,4)/24)*A/2-L*A*A*A/6,O=Math.asin(this.sin_p12*Math.cos(A)+this.cos_p12*Math.sin(A)*M),y=i(this.long0+Math.asin(Math.sin(T)*Math.sin(A)/Math.cos(O))),v=Math.atan((1-this.es*k*this.sin_p12/Math.sin(O))*Math.tan(O)/(1-this.es)),e.x=y,e.y=v,e)},t.names=["Azimuthal_Equidistant","aeqd"]},function(e,t,r){"use strict";var i=r(7),n=Math.PI/2,a=r(43);t.init=function(){this.R=this.a},t.forward=function(e){var t,r,o=e.x,s=e.y,l=i(o-this.long0);Math.abs(s)<=1e-10&&(t=this.x0+this.R*l,r=this.y0);var u=a(2*Math.abs(s/Math.PI));(Math.abs(l)<=1e-10||Math.abs(Math.abs(s)-n)<=1e-10)&&(t=this.x0,r=s>=0?this.y0+Math.PI*this.R*Math.tan(.5*u):this.y0+Math.PI*this.R*-Math.tan(.5*u));var c=.5*Math.abs(Math.PI/l-l/Math.PI),p=c*c,h=Math.sin(u),f=Math.cos(u),d=f/(h+f-1),y=d*d,v=d*(2/h-1),m=v*v,g=Math.PI*this.R*(c*(d-m)+Math.sqrt(p*(d-m)*(d-m)-(m+p)*(y-m)))/(m+p);l<0&&(g=-g),t=this.x0+g;var b=p+d;return g=Math.PI*this.R*(v*b-c*Math.sqrt((m+p)*(p+1)-b*b))/(m+p),r=s>=0?this.y0+g:this.y0-g,e.x=t,e.y=r,e},t.inverse=function(e){var t,r,n,a,o,s,l,u,c,p,h,f;return e.x-=this.x0,e.y-=this.y0,h=Math.PI*this.R,o=(n=e.x/h)*n+(a=e.y/h)*a,h=3*(a*a/(u=-2*(s=-Math.abs(a)*(1+o))+1+2*a*a+o*o)+(2*(l=s-2*a*a+n*n)*l*l/u/u/u-9*s*l/u/u)/27)/(c=(s-l*l/3/u)/u)/(p=2*Math.sqrt(-c/3)),Math.abs(h)>1&&(h=h>=0?1:-1),f=Math.acos(h)/3,r=e.y>=0?(-p*Math.cos(f+Math.PI/3)-l/3/u)*Math.PI:-(-p*Math.cos(f+Math.PI/3)-l/3/u)*Math.PI,t=Math.abs(n)<1e-10?this.long0:i(this.long0+Math.PI*(o-1+Math.sqrt(1+2*(n*n-a*a)+o*o))/2/n),e.x=t,e.y=r,e},t.names=["Van_der_Grinten_I","VanDerGrinten","vandg"]},function(e,t,r){"use strict";var i=r(58),n=r(57),a=r(56),o=r(55),s=r(44),l=r(54),u=r(7),c=r(53),p=r(105);t.init=function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.lat2=this.lat2||this.lat1,this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=i(this.es),this.e1=n(this.es),this.e2=a(this.es),this.e3=o(this.es),this.sinphi=Math.sin(this.lat1),this.cosphi=Math.cos(this.lat1),this.ms1=s(this.e,this.sinphi,this.cosphi),this.ml1=l(this.e0,this.e1,this.e2,this.e3,this.lat1),Math.abs(this.lat1-this.lat2)<1e-10?this.ns=this.sinphi:(this.sinphi=Math.sin(this.lat2),this.cosphi=Math.cos(this.lat2),this.ms2=s(this.e,this.sinphi,this.cosphi),this.ml2=l(this.e0,this.e1,this.e2,this.e3,this.lat2),this.ns=(this.ms1-this.ms2)/(this.ml2-this.ml1)),this.g=this.ml1+this.ms1/this.ns,this.ml0=l(this.e0,this.e1,this.e2,this.e3,this.lat0),this.rh=this.a*(this.g-this.ml0))},t.forward=function(e){var t,r=e.x,i=e.y;if(this.sphere)t=this.a*(this.g-i);else{var n=l(this.e0,this.e1,this.e2,this.e3,i);t=this.a*(this.g-n)}var a=this.ns*u(r-this.long0),o=this.x0+t*Math.sin(a),s=this.y0+this.rh-t*Math.cos(a);return e.x=o,e.y=s,e},t.inverse=function(e){var t,r,i,n;e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns>=0?(r=Math.sqrt(e.x*e.x+e.y*e.y),t=1):(r=-Math.sqrt(e.x*e.x+e.y*e.y),t=-1);var a=0;if(0!==r&&(a=Math.atan2(t*e.x,t*e.y)),this.sphere)return n=u(this.long0+a/this.ns),i=c(this.g-r/this.a),e.x=n,e.y=i,e;var o=this.g-r/this.a;return i=p(o,this.e0,this.e1,this.e2,this.e3),n=u(this.long0+a/this.ns),e.x=n,e.y=i,e},t.names=["Equidistant_Conic","eqdc"]},function(e,t,r){"use strict";var i=r(7);t.init=function(){},t.forward=function(e){for(var t=e.x,r=e.y,n=i(t-this.long0),a=r,o=Math.PI*Math.sin(r),s=0;;s++){var l=-(a+Math.sin(a)-o)/(1+Math.cos(a));if(a+=l,Math.abs(l)<1e-10)break}a/=2,Math.PI/2-Math.abs(r)<1e-10&&(n=0);var u=.900316316158*this.a*n*Math.cos(a)+this.x0,c=1.4142135623731*this.a*Math.sin(a)+this.y0;return e.x=u,e.y=c,e},t.inverse=function(e){var t,r;e.x-=this.x0,e.y-=this.y0,r=e.y/(1.4142135623731*this.a),Math.abs(r)>.999999999999&&(r=.999999999999),t=Math.asin(r);var n=i(this.long0+e.x/(.900316316158*this.a*Math.cos(t)));n<-Math.PI&&(n=-Math.PI),n>Math.PI&&(n=Math.PI),r=(2*t+Math.sin(2*t))/Math.PI,Math.abs(r)>1&&(r=1);var a=Math.asin(r);return e.x=n,e.y=a,e},t.names=["Mollweide","moll"]},function(e,t,r){"use strict";var i=r(177);e.exports=function(e,t,r){for(var n=1/(1-t),a=e,o=20;o;--o){var s=Math.sin(a),l=1-t*s*s;if(a-=l=(i(a,s,Math.cos(a),r)-e)*(l*Math.sqrt(l))*n,Math.abs(l)<1e-10)return a}return a}},function(e,t,r){"use strict";var i=.01068115234375;e.exports=function(e){var t=[];t[0]=1-e*(.25+e*(.046875+e*(.01953125+e*i))),t[1]=e*(.75-e*(.046875+e*(.01953125+e*i)));var r=e*e;return t[2]=r*(.46875-e*(.013020833333333334+.007120768229166667*e)),r*=e,t[3]=r*(.3645833333333333-.005696614583333333*e),t[4]=r*e*.3076171875,t}},function(e,t,r){"use strict";var i=r(7),n=r(53),a=r(396),o=r(177),s=r(395),l=Math.PI/2,u=r(43);t.init=function(){this.sphere?(this.n=1,this.m=0,this.es=0,this.C_y=Math.sqrt((this.m+1)/this.n),this.C_x=this.C_y/(this.m+1)):this.en=a(this.es)},t.forward=function(e){var t,r,n=e.x,a=e.y;if(n=i(n-this.long0),this.sphere){if(this.m)for(var s=this.n*Math.sin(a),l=20;l;--l){var u=(this.m*a+Math.sin(a)-s)/(this.m+Math.cos(a));if(a-=u,Math.abs(u)<1e-10)break}else a=1!==this.n?Math.asin(this.n*Math.sin(a)):a;t=this.a*this.C_x*n*(this.m+Math.cos(a)),r=this.a*this.C_y*a}else{var c=Math.sin(a),p=Math.cos(a);r=this.a*o(a,c,p,this.en),t=this.a*n*p/Math.sqrt(1-this.es*c*c)}return e.x=t,e.y=r,e},t.inverse=function(e){var t,r,a,o;return e.x-=this.x0,a=e.x/this.a,e.y-=this.y0,t=e.y/this.a,this.sphere?(t/=this.C_y,a/=this.C_x*(this.m+Math.cos(t)),this.m?t=u((this.m*t+Math.sin(t))/this.n):1!==this.n&&(t=u(Math.sin(t)/this.n)),a=i(a+this.long0),t=n(t)):(t=s(e.y/this.a,this.es,this.en),(o=Math.abs(t))<l?(o=Math.sin(t),r=this.long0+e.x*Math.sqrt(1-this.es*o*o)/(this.a*Math.cos(t)),a=i(r)):o-1e-10<l&&(a=this.long0)),e.x=a,e.y=t,e},t.names=["Sinusoidal","sinu"]},function(e,t,r){"use strict";var i=r(7);t.init=function(){},t.forward=function(e){var t=e.x,r=e.y,n=i(t-this.long0),a=this.x0+this.a*n,o=this.y0+this.a*Math.log(Math.tan(Math.PI/4+r/2.5))*1.25;return e.x=a,e.y=o,e},t.inverse=function(e){e.x-=this.x0,e.y-=this.y0;var t=i(this.long0+e.x/this.a),r=2.5*(Math.atan(Math.exp(.8*e.y/this.a))-Math.PI/4);return e.x=t,e.y=r,e},t.names=["Miller_Cylindrical","mill"]},function(e,t,r){"use strict";t.iterations=1,t.init=function(){this.A=[],this.A[1]=.6399175073,this.A[2]=-.1358797613,this.A[3]=.063294409,this.A[4]=-.02526853,this.A[5]=.0117879,this.A[6]=-.0055161,this.A[7]=.0026906,this.A[8]=-.001333,this.A[9]=67e-5,this.A[10]=-34e-5,this.B_re=[],this.B_im=[],this.B_re[1]=.7557853228,this.B_im[1]=0,this.B_re[2]=.249204646,this.B_im[2]=.003371507,this.B_re[3]=-.001541739,this.B_im[3]=.04105856,this.B_re[4]=-.10162907,this.B_im[4]=.01727609,this.B_re[5]=-.26623489,this.B_im[5]=-.36249218,this.B_re[6]=-.6870983,this.B_im[6]=-1.1651967,this.C_re=[],this.C_im=[],this.C_re[1]=1.3231270439,this.C_im[1]=0,this.C_re[2]=-.577245789,this.C_im[2]=-.007809598,this.C_re[3]=.508307513,this.C_im[3]=-.112208952,this.C_re[4]=-.15094762,this.C_im[4]=.18200602,this.C_re[5]=1.01418179,this.C_im[5]=1.64497696,this.C_re[6]=1.9660549,this.C_im[6]=2.5127645,this.D=[],this.D[1]=1.5627014243,this.D[2]=.5185406398,this.D[3]=-.03333098,this.D[4]=-.1052906,this.D[5]=-.0368594,this.D[6]=.007317,this.D[7]=.0122,this.D[8]=.00394,this.D[9]=-.0013},t.forward=function(e){var t,r=e.x,i=(e.y-this.lat0)/484813681109536e-20*1e-5,n=r-this.long0,a=1,o=0;for(t=1;t<=10;t++)a*=i,o+=this.A[t]*a;var s,l=o,u=n,c=1,p=0,h=0,f=0;for(t=1;t<=6;t++)s=p*l+c*u,c=c*l-p*u,p=s,h=h+this.B_re[t]*c-this.B_im[t]*p,f=f+this.B_im[t]*c+this.B_re[t]*p;return e.x=f*this.a+this.x0,e.y=h*this.a+this.y0,e},t.inverse=function(e){var t,r,i=e.x,n=e.y,a=i-this.x0,o=(n-this.y0)/this.a,s=a/this.a,l=1,u=0,c=0,p=0;for(t=1;t<=6;t++)r=u*o+l*s,l=l*o-u*s,u=r,c=c+this.C_re[t]*l-this.C_im[t]*u,p=p+this.C_im[t]*l+this.C_re[t]*u;for(var h=0;h<this.iterations;h++){var f,d=c,y=p,v=o,m=s;for(t=2;t<=6;t++)f=y*c+d*p,d=d*c-y*p,y=f,v+=(t-1)*(this.B_re[t]*d-this.B_im[t]*y),m+=(t-1)*(this.B_im[t]*d+this.B_re[t]*y);d=1,y=0;var g=this.B_re[1],b=this.B_im[1];for(t=2;t<=6;t++)f=y*c+d*p,d=d*c-y*p,y=f,g+=t*(this.B_re[t]*d-this.B_im[t]*y),b+=t*(this.B_im[t]*d+this.B_re[t]*y);var S=g*g+b*b;c=(v*g+m*b)/S,p=(m*g-v*b)/S}var _=c,P=p,w=1,O=0;for(t=1;t<=9;t++)w*=_,O+=this.D[t]*w;var T=this.lat0+484813681109536e-20*O*1e5,M=this.long0+P;return e.x=M,e.y=T,e},t.names=["New_Zealand_Map_Grid","nzmg"]},function(e,t,r){"use strict";var i=r(58),n=r(57),a=r(56),o=r(55),s=r(7),l=r(53),u=r(54),c=r(106);t.init=function(){this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e=Math.sqrt(this.es),this.e0=i(this.es),this.e1=n(this.es),this.e2=a(this.es),this.e3=o(this.es),this.ml0=this.a*u(this.e0,this.e1,this.e2,this.e3,this.lat0)},t.forward=function(e){var t,r,i,n=e.x,a=e.y,o=s(n-this.long0);if(i=o*Math.sin(a),this.sphere)Math.abs(a)<=1e-10?(t=this.a*o,r=-1*this.a*this.lat0):(t=this.a*Math.sin(i)/Math.tan(a),r=this.a*(l(a-this.lat0)+(1-Math.cos(i))/Math.tan(a)));else if(Math.abs(a)<=1e-10)t=this.a*o,r=-1*this.ml0;else{var p=c(this.a,this.e,Math.sin(a))/Math.tan(a);t=p*Math.sin(i),r=this.a*u(this.e0,this.e1,this.e2,this.e3,a)-this.ml0+p*(1-Math.cos(i))}return e.x=t+this.x0,e.y=r+this.y0,e},t.inverse=function(e){var t,r,i,n,a,o,l,c,p;if(i=e.x-this.x0,n=e.y-this.y0,this.sphere)if(Math.abs(n+this.a*this.lat0)<=1e-10)t=s(i/this.a+this.long0),r=0;else{var h;for(o=this.lat0+n/this.a,l=i*i/this.a/this.a+o*o,c=o,a=20;a;--a)if(c+=p=-1*(o*(c*(h=Math.tan(c))+1)-c-.5*(c*c+l)*h)/((c-o)/h-1),Math.abs(p)<=1e-10){r=c;break}t=s(this.long0+Math.asin(i*Math.tan(c)/this.a)/Math.sin(r))}else if(Math.abs(n+this.ml0)<=1e-10)r=0,t=s(this.long0+i/this.a);else{var f,d,y,v,m;for(o=(this.ml0+n)/this.a,l=i*i/this.a/this.a+o*o,c=o,a=20;a;--a)if(m=this.e*Math.sin(c),f=Math.sqrt(1-m*m)*Math.tan(c),d=this.a*u(this.e0,this.e1,this.e2,this.e3,c),y=this.e0-2*this.e1*Math.cos(2*c)+4*this.e2*Math.cos(4*c)-6*this.e3*Math.cos(6*c),c-=p=(o*(f*(v=d/this.a)+1)-v-.5*f*(v*v+l))/(this.es*Math.sin(2*c)*(v*v+l-2*o*v)/(4*f)+(o-v)*(f*y-2/Math.sin(2*c))-y),Math.abs(p)<=1e-10){r=c;break}f=Math.sqrt(1-this.es*Math.pow(Math.sin(r),2))*Math.tan(r),t=s(this.long0+Math.asin(i*f/this.a)/Math.sin(r))}return e.x=t,e.y=r,e},t.names=["Polyconic","poly"]},function(e,t,r){"use strict";var i=r(7),n=r(53);t.init=function(){this.x0=this.x0||0,this.y0=this.y0||0,this.lat0=this.lat0||0,this.long0=this.long0||0,this.lat_ts=this.lat_ts||0,this.title=this.title||"Equidistant Cylindrical (Plate Carre)",this.rc=Math.cos(this.lat_ts)},t.forward=function(e){var t=e.x,r=e.y,a=i(t-this.long0),o=n(r-this.lat0);return e.x=this.x0+this.a*a*this.rc,e.y=this.y0+this.a*o,e},t.inverse=function(e){var t=e.x,r=e.y;return e.x=i(this.long0+(t-this.x0)/(this.a*this.rc)),e.y=n(this.lat0+(r-this.y0)/this.a),e},t.names=["Equirectangular","Equidistant_Cylindrical","eqc"]},function(e,t,r){"use strict";var i=Math.PI/2;e.exports=function(e,t){var r=1-(1-e*e)/(2*e)*Math.log((1-e)/(1+e));if(Math.abs(Math.abs(t)-r)<1e-6)return t<0?-1*i:i;for(var n,a,o,s,l=Math.asin(.5*t),u=0;u<30;u++)if(a=Math.sin(l),o=Math.cos(l),s=e*a,l+=n=Math.pow(1-s*s,2)/(2*o)*(t/(1-e*e)-a/(1-s*s)+.5/e*Math.log((1-s)/(1+s))),Math.abs(n)<=1e-10)return l;return NaN}},function(e,t,r){"use strict";var i=r(7),n=r(104),a=r(44),o=r(402);t.init=function(){this.sphere||(this.k0=a(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)))},t.forward=function(e){var t,r,a=e.x,o=e.y,s=i(a-this.long0);if(this.sphere)t=this.x0+this.a*s*Math.cos(this.lat_ts),r=this.y0+this.a*Math.sin(o)/Math.cos(this.lat_ts);else{var l=n(this.e,Math.sin(o));t=this.x0+this.a*this.k0*s,r=this.y0+this.a*l*.5/this.k0}return e.x=t,e.y=r,e},t.inverse=function(e){var t,r;return e.x-=this.x0,e.y-=this.y0,this.sphere?(t=i(this.long0+e.x/this.a/Math.cos(this.lat_ts)),r=Math.asin(e.y/this.a*Math.cos(this.lat_ts))):(r=o(this.e,2*e.y*this.k0/this.a),t=i(this.long0+e.x/(this.a*this.k0))),e.x=t,e.y=r,e},t.names=["cea"]},function(e,t,r){"use strict";var i=r(7),n=r(43);t.init=function(){this.sin_p14=Math.sin(this.lat0),this.cos_p14=Math.cos(this.lat0),this.infinity_dist=1e3*this.a,this.rc=1},t.forward=function(e){var t,r,n,a,o,s,l,u=e.x,c=e.y;return n=i(u-this.long0),t=Math.sin(c),r=Math.cos(c),a=Math.cos(n),1,(o=this.sin_p14*t+this.cos_p14*r*a)>0||Math.abs(o)<=1e-10?(s=this.x0+1*this.a*r*Math.sin(n)/o,l=this.y0+1*this.a*(this.cos_p14*t-this.sin_p14*r*a)/o):(s=this.x0+this.infinity_dist*r*Math.sin(n),l=this.y0+this.infinity_dist*(this.cos_p14*t-this.sin_p14*r*a)),e.x=s,e.y=l,e},t.inverse=function(e){var t,r,a,o,s,l;return e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,(t=Math.sqrt(e.x*e.x+e.y*e.y))?(o=Math.atan2(t,this.rc),r=Math.sin(o),a=Math.cos(o),l=n(a*this.sin_p14+e.y*r*this.cos_p14/t),s=Math.atan2(e.x*r,t*this.cos_p14*a-e.y*this.sin_p14*r),s=i(this.long0+s)):(l=this.phic0,s=0),e.x=s,e.y=l,e},t.names=["gnom"]},function(e,t,r){"use strict";var i=r(44),n=r(104),a=r(7),o=r(43);t.init=function(){Math.abs(this.lat1+this.lat2)<1e-10||(this.temp=this.b/this.a,this.es=1-Math.pow(this.temp,2),this.e3=Math.sqrt(this.es),this.sin_po=Math.sin(this.lat1),this.cos_po=Math.cos(this.lat1),this.t1=this.sin_po,this.con=this.sin_po,this.ms1=i(this.e3,this.sin_po,this.cos_po),this.qs1=n(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat2),this.cos_po=Math.cos(this.lat2),this.t2=this.sin_po,this.ms2=i(this.e3,this.sin_po,this.cos_po),this.qs2=n(this.e3,this.sin_po,this.cos_po),this.sin_po=Math.sin(this.lat0),this.cos_po=Math.cos(this.lat0),this.t3=this.sin_po,this.qs0=n(this.e3,this.sin_po,this.cos_po),Math.abs(this.lat1-this.lat2)>1e-10?this.ns0=(this.ms1*this.ms1-this.ms2*this.ms2)/(this.qs2-this.qs1):this.ns0=this.con,this.c=this.ms1*this.ms1+this.ns0*this.qs1,this.rh=this.a*Math.sqrt(this.c-this.ns0*this.qs0)/this.ns0)},t.forward=function(e){var t=e.x,r=e.y;this.sin_phi=Math.sin(r),this.cos_phi=Math.cos(r);var i=n(this.e3,this.sin_phi,this.cos_phi),o=this.a*Math.sqrt(this.c-this.ns0*i)/this.ns0,s=this.ns0*a(t-this.long0),l=o*Math.sin(s)+this.x0,u=this.rh-o*Math.cos(s)+this.y0;return e.x=l,e.y=u,e},t.inverse=function(e){var t,r,i,n,o,s;return e.x-=this.x0,e.y=this.rh-e.y+this.y0,this.ns0>=0?(t=Math.sqrt(e.x*e.x+e.y*e.y),i=1):(t=-Math.sqrt(e.x*e.x+e.y*e.y),i=-1),n=0,0!==t&&(n=Math.atan2(i*e.x,i*e.y)),i=t*this.ns0/this.a,this.sphere?s=Math.asin((this.c-i*i)/(2*this.ns0)):(r=(this.c-i*i)/this.ns0,s=this.phi1z(this.e3,r)),o=a(n/this.ns0+this.long0),e.x=o,e.y=s,e},t.phi1z=function(e,t){var r,i,n,a,s,l=o(.5*t);if(e<1e-10)return l;for(var u=e*e,c=1;c<=25;c++)if(r=Math.sin(l),i=Math.cos(l),l+=s=.5*(a=1-(n=e*r)*n)*a/i*(t/(1-u)-r/a+.5/e*Math.log((1-n)/(1+n))),Math.abs(s)<=1e-7)return l;return null},t.names=["Albers_Conic_Equal_Area","Albers","aea"]},function(e,t,r){"use strict";var i=Math.PI/2,n=Math.PI/4,a=r(104),o=r(7);t.S_POLE=1,t.N_POLE=2,t.EQUIT=3,t.OBLIQ=4,t.init=function(){var e,t=Math.abs(this.lat0);if(Math.abs(t-i)<1e-10?this.mode=this.lat0<0?this.S_POLE:this.N_POLE:Math.abs(t)<1e-10?this.mode=this.EQUIT:this.mode=this.OBLIQ,this.es>0)switch(this.qp=a(this.e,1),this.mmf=.5/(1-this.es),this.apa=this.authset(this.es),this.mode){case this.N_POLE:case this.S_POLE:this.dd=1;break;case this.EQUIT:this.rq=Math.sqrt(.5*this.qp),this.dd=1/this.rq,this.xmf=1,this.ymf=.5*this.qp;break;case this.OBLIQ:this.rq=Math.sqrt(.5*this.qp),e=Math.sin(this.lat0),this.sinb1=a(this.e,e)/this.qp,this.cosb1=Math.sqrt(1-this.sinb1*this.sinb1),this.dd=Math.cos(this.lat0)/(Math.sqrt(1-this.es*e*e)*this.rq*this.cosb1),this.ymf=(this.xmf=this.rq)/this.dd,this.xmf*=this.dd}else this.mode===this.OBLIQ&&(this.sinph0=Math.sin(this.lat0),this.cosph0=Math.cos(this.lat0))},t.forward=function(e){var t,r,s,l,u,c,p,h,f,d,y=e.x,v=e.y;if(y=o(y-this.long0),this.sphere){if(u=Math.sin(v),d=Math.cos(v),s=Math.cos(y),this.mode===this.OBLIQ||this.mode===this.EQUIT){if((r=this.mode===this.EQUIT?1+d*s:1+this.sinph0*u+this.cosph0*d*s)<=1e-10)return null;t=(r=Math.sqrt(2/r))*d*Math.sin(y),r*=this.mode===this.EQUIT?u:this.cosph0*u-this.sinph0*d*s}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(s=-s),Math.abs(v+this.phi0)<1e-10)return null;r=n-.5*v,t=(r=2*(this.mode===this.S_POLE?Math.cos(r):Math.sin(r)))*Math.sin(y),r*=s}}else{switch(p=0,h=0,f=0,s=Math.cos(y),l=Math.sin(y),u=Math.sin(v),c=a(this.e,u),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(p=c/this.qp,h=Math.sqrt(1-p*p)),this.mode){case this.OBLIQ:f=1+this.sinb1*p+this.cosb1*h*s;break;case this.EQUIT:f=1+h*s;break;case this.N_POLE:f=i+v,c=this.qp-c;break;case this.S_POLE:f=v-i,c=this.qp+c}if(Math.abs(f)<1e-10)return null;switch(this.mode){case this.OBLIQ:case this.EQUIT:f=Math.sqrt(2/f),r=this.mode===this.OBLIQ?this.ymf*f*(this.cosb1*p-this.sinb1*h*s):(f=Math.sqrt(2/(1+h*s)))*p*this.ymf,t=this.xmf*f*h*l;break;case this.N_POLE:case this.S_POLE:c>=0?(t=(f=Math.sqrt(c))*l,r=s*(this.mode===this.S_POLE?f:-f)):t=r=0}}return e.x=this.a*t+this.x0,e.y=this.a*r+this.y0,e},t.inverse=function(e){e.x-=this.x0,e.y-=this.y0;var t,r,n,a,s,l,u,c=e.x/this.a,p=e.y/this.a;if(this.sphere){var h,f=0,d=0;if((r=.5*(h=Math.sqrt(c*c+p*p)))>1)return null;switch(r=2*Math.asin(r),this.mode!==this.OBLIQ&&this.mode!==this.EQUIT||(d=Math.sin(r),f=Math.cos(r)),this.mode){case this.EQUIT:r=Math.abs(h)<=1e-10?0:Math.asin(p*d/h),c*=d,p=f*h;break;case this.OBLIQ:r=Math.abs(h)<=1e-10?this.phi0:Math.asin(f*this.sinph0+p*d*this.cosph0/h),c*=d*this.cosph0,p=(f-Math.sin(r)*this.sinph0)*h;break;case this.N_POLE:p=-p,r=i-r;break;case this.S_POLE:r-=i}t=0!==p||this.mode!==this.EQUIT&&this.mode!==this.OBLIQ?Math.atan2(c,p):0}else{if(u=0,this.mode===this.OBLIQ||this.mode===this.EQUIT){if(c/=this.dd,p*=this.dd,(l=Math.sqrt(c*c+p*p))<1e-10)return e.x=0,e.y=this.phi0,e;a=2*Math.asin(.5*l/this.rq),n=Math.cos(a),c*=a=Math.sin(a),this.mode===this.OBLIQ?(u=n*this.sinb1+p*a*this.cosb1/l,s=this.qp*u,p=l*this.cosb1*n-p*this.sinb1*a):(u=p*a/l,s=this.qp*u,p=l*n)}else if(this.mode===this.N_POLE||this.mode===this.S_POLE){if(this.mode===this.N_POLE&&(p=-p),!(s=c*c+p*p))return e.x=0,e.y=this.phi0,e;u=1-s/this.qp,this.mode===this.S_POLE&&(u=-u)}t=Math.atan2(c,p),r=this.authlat(Math.asin(u),this.apa)}return e.x=o(this.long0+t),e.y=r,e},t.P00=.3333333333333333,t.P01=.17222222222222222,t.P02=.10257936507936508,t.P10=.06388888888888888,t.P11=.0664021164021164,t.P20=.016415012942191543,t.authset=function(e){var t,r=[];return r[0]=e*this.P00,t=e*e,r[0]+=t*this.P01,r[1]=t*this.P10,t*=e,r[0]+=t*this.P02,r[1]+=t*this.P11,r[2]=t*this.P20,r},t.authlat=function(e,t){var r=e+e;return e+t[0]*Math.sin(r)+t[1]*Math.sin(r+r)+t[2]*Math.sin(r+r+r)},t.names=["Lambert Azimuthal Equal Area","Lambert_Azimuthal_Equal_Area","laea"]},function(e,t,r){"use strict";var i=r(54),n=r(58),a=r(57),o=r(56),s=r(55),l=r(106),u=r(7),c=r(53),p=r(105),h=Math.PI/2;t.init=function(){this.sphere||(this.e0=n(this.es),this.e1=a(this.es),this.e2=o(this.es),this.e3=s(this.es),this.ml0=this.a*i(this.e0,this.e1,this.e2,this.e3,this.lat0))},t.forward=function(e){var t,r,n=e.x,a=e.y;if(n=u(n-this.long0),this.sphere)t=this.a*Math.asin(Math.cos(a)*Math.sin(n)),r=this.a*(Math.atan2(Math.tan(a),Math.cos(n))-this.lat0);else{var o=Math.sin(a),s=Math.cos(a),c=l(this.a,this.e,o),p=Math.tan(a)*Math.tan(a),h=n*Math.cos(a),f=h*h,d=this.es*s*s/(1-this.es);t=c*h*(1-f*p*(1/6-(8-p+8*d)*f/120)),r=this.a*i(this.e0,this.e1,this.e2,this.e3,a)-this.ml0+c*o/s*f*(.5+(5-p+6*d)*f/24)}return e.x=t+this.x0,e.y=r+this.y0,e},t.inverse=function(e){e.x-=this.x0,e.y-=this.y0;var t,r,i=e.x/this.a,n=e.y/this.a;if(this.sphere){var a=n+this.lat0;t=Math.asin(Math.sin(a)*Math.cos(i)),r=Math.atan2(Math.tan(i),Math.cos(a))}else{var o=this.ml0/this.a+n,s=p(o,this.e0,this.e1,this.e2,this.e3);if(Math.abs(Math.abs(s)-h)<=1e-10)return e.x=this.long0,e.y=h,n<0&&(e.y*=-1),e;var f=l(this.a,this.e,Math.sin(s)),d=f*f*f/this.a/this.a*(1-this.es),y=Math.pow(Math.tan(s),2),v=i*this.a/f,m=v*v;t=s-f*Math.tan(s)/d*v*v*(.5-(1+3*y)*v*v/24),r=v*(1-m*(y/3+(1+3*y)*y*m/15))/Math.cos(s)}return e.x=u(r+this.long0),e.y=c(t),e},t.names=["Cassini","Cassini_Soldner","cass"]},function(e,t,r){"use strict";var i=r(7);t.init=function(){this.a=6377397.155,this.es=.006674372230614,this.e=Math.sqrt(this.es),this.lat0||(this.lat0=.863937979737193),this.long0||(this.long0=.4334234309119251),this.k0||(this.k0=.9999),this.s45=.785398163397448,this.s90=2*this.s45,this.fi0=this.lat0,this.e2=this.es,this.e=Math.sqrt(this.e2),this.alfa=Math.sqrt(1+this.e2*Math.pow(Math.cos(this.fi0),4)/(1-this.e2)),this.uq=1.04216856380474,this.u0=Math.asin(Math.sin(this.fi0)/this.alfa),this.g=Math.pow((1+this.e*Math.sin(this.fi0))/(1-this.e*Math.sin(this.fi0)),this.alfa*this.e/2),this.k=Math.tan(this.u0/2+this.s45)/Math.pow(Math.tan(this.fi0/2+this.s45),this.alfa)*this.g,this.k1=this.k0,this.n0=this.a*Math.sqrt(1-this.e2)/(1-this.e2*Math.pow(Math.sin(this.fi0),2)),this.s0=1.37008346281555,this.n=Math.sin(this.s0),this.ro0=this.k1*this.n0/Math.tan(this.s0),this.ad=this.s90-this.uq},t.forward=function(e){var t,r,n,a,o,s,l,u=e.x,c=e.y,p=i(u-this.long0);return t=Math.pow((1+this.e*Math.sin(c))/(1-this.e*Math.sin(c)),this.alfa*this.e/2),r=2*(Math.atan(this.k*Math.pow(Math.tan(c/2+this.s45),this.alfa)/t)-this.s45),n=-p*this.alfa,a=Math.asin(Math.cos(this.ad)*Math.sin(r)+Math.sin(this.ad)*Math.cos(r)*Math.cos(n)),o=Math.asin(Math.cos(r)*Math.sin(n)/Math.cos(a)),s=this.n*o,l=this.ro0*Math.pow(Math.tan(this.s0/2+this.s45),this.n)/Math.pow(Math.tan(a/2+this.s45),this.n),e.y=l*Math.cos(s)/1,e.x=l*Math.sin(s)/1,this.czech||(e.y*=-1,e.x*=-1),e},t.inverse=function(e){var t,r,i,n,a,o,s,l=e.x;e.x=e.y,e.y=l,this.czech||(e.y*=-1,e.x*=-1),a=Math.sqrt(e.x*e.x+e.y*e.y),n=Math.atan2(e.y,e.x)/Math.sin(this.s0),i=2*(Math.atan(Math.pow(this.ro0/a,1/this.n)*Math.tan(this.s0/2+this.s45))-this.s45),t=Math.asin(Math.cos(this.ad)*Math.sin(i)-Math.sin(this.ad)*Math.cos(i)*Math.cos(n)),r=Math.asin(Math.cos(i)*Math.sin(n)/Math.cos(t)),e.x=this.long0-r/this.alfa,o=t,s=0;var u=0;do{e.y=2*(Math.atan(Math.pow(this.k,-1/this.alfa)*Math.pow(Math.tan(t/2+this.s45),1/this.alfa)*Math.pow((1+this.e*Math.sin(o))/(1-this.e*Math.sin(o)),this.e/2))-this.s45),Math.abs(o-e.y)<1e-10&&(s=1),o=e.y,u+=1}while(0===s&&u<15);return u>=15?null:e},t.names=["Krovak","krovak"]},function(e,t,r){"use strict";var i=r(44),n=r(70),a=Math.PI/2,o=r(59),s=r(7),l=r(69);t.init=function(){if(this.lat2||(this.lat2=this.lat1),this.k0||(this.k0=1),this.x0=this.x0||0,this.y0=this.y0||0,!(Math.abs(this.lat1+this.lat2)<1e-10)){var e=this.b/this.a;this.e=Math.sqrt(1-e*e);var t=Math.sin(this.lat1),r=Math.cos(this.lat1),a=i(this.e,t,r),o=n(this.e,this.lat1,t),s=Math.sin(this.lat2),l=Math.cos(this.lat2),u=i(this.e,s,l),c=n(this.e,this.lat2,s),p=n(this.e,this.lat0,Math.sin(this.lat0));Math.abs(this.lat1-this.lat2)>1e-10?this.ns=Math.log(a/u)/Math.log(o/c):this.ns=t,isNaN(this.ns)&&(this.ns=t),this.f0=a/(this.ns*Math.pow(o,this.ns)),this.rh=this.a*this.f0*Math.pow(p,this.ns),this.title||(this.title="Lambert Conformal Conic")}},t.forward=function(e){var t=e.x,r=e.y;Math.abs(2*Math.abs(r)-Math.PI)<=1e-10&&(r=o(r)*(a-2e-10));var i,l,u=Math.abs(Math.abs(r)-a);if(u>1e-10)i=n(this.e,r,Math.sin(r)),l=this.a*this.f0*Math.pow(i,this.ns);else{if((u=r*this.ns)<=0)return null;l=0}var c=this.ns*s(t-this.long0);return e.x=this.k0*(l*Math.sin(c))+this.x0,e.y=this.k0*(this.rh-l*Math.cos(c))+this.y0,e},t.inverse=function(e){var t,r,i,n,o,u=(e.x-this.x0)/this.k0,c=this.rh-(e.y-this.y0)/this.k0;this.ns>0?(t=Math.sqrt(u*u+c*c),r=1):(t=-Math.sqrt(u*u+c*c),r=-1);var p=0;if(0!==t&&(p=Math.atan2(r*u,r*c)),0!==t||this.ns>0){if(r=1/this.ns,i=Math.pow(t/(this.a*this.f0),r),-9999===(n=l(this.e,i)))return null}else n=-a;return o=s(p/this.ns+this.long0),e.x=o,e.y=n,e},t.names=["Lambert Tangential Conformal Conic Projection","Lambert_Conformal_Conic","Lambert_Conformal_Conic_2SP","lcc"]},function(e,t,r){"use strict";var i=r(70),n=r(7),a=r(69),o=Math.PI/2,s=Math.PI/4;t.init=function(){this.no_off=this.no_off||!1,this.no_rot=this.no_rot||!1,isNaN(this.k0)&&(this.k0=1);var e=Math.sin(this.lat0),t=Math.cos(this.lat0),r=this.e*e;this.bl=Math.sqrt(1+this.es/(1-this.es)*Math.pow(t,4)),this.al=this.a*this.bl*this.k0*Math.sqrt(1-this.es)/(1-r*r);var a,o,s=i(this.e,this.lat0,e),l=this.bl/t*Math.sqrt((1-this.es)/(1-r*r));if(l*l<1&&(l=1),isNaN(this.longc)){var u=i(this.e,this.lat1,Math.sin(this.lat1)),c=i(this.e,this.lat2,Math.sin(this.lat2));this.lat0>=0?this.el=(l+Math.sqrt(l*l-1))*Math.pow(s,this.bl):this.el=(l-Math.sqrt(l*l-1))*Math.pow(s,this.bl);var p=Math.pow(u,this.bl),h=Math.pow(c,this.bl);o=.5*((a=this.el/p)-1/a);var f=(this.el*this.el-h*p)/(this.el*this.el+h*p),d=(h-p)/(h+p),y=n(this.long1-this.long2);this.long0=.5*(this.long1+this.long2)-Math.atan(f*Math.tan(.5*this.bl*y)/d)/this.bl,this.long0=n(this.long0);var v=n(this.long1-this.long0);this.gamma0=Math.atan(Math.sin(this.bl*v)/o),this.alpha=Math.asin(l*Math.sin(this.gamma0))}else a=this.lat0>=0?l+Math.sqrt(l*l-1):l-Math.sqrt(l*l-1),this.el=a*Math.pow(s,this.bl),o=.5*(a-1/a),this.gamma0=Math.asin(Math.sin(this.alpha)/l),this.long0=this.longc-Math.asin(o*Math.tan(this.gamma0))/this.bl;this.no_off?this.uc=0:this.lat0>=0?this.uc=this.al/this.bl*Math.atan2(Math.sqrt(l*l-1),Math.cos(this.alpha)):this.uc=-1*this.al/this.bl*Math.atan2(Math.sqrt(l*l-1),Math.cos(this.alpha))},t.forward=function(e){var t,r,a,l=e.x,u=e.y,c=n(l-this.long0);if(Math.abs(Math.abs(u)-o)<=1e-10)a=u>0?-1:1,r=this.al/this.bl*Math.log(Math.tan(s+a*this.gamma0*.5)),t=-1*a*o*this.al/this.bl;else{var p=i(this.e,u,Math.sin(u)),h=this.el/Math.pow(p,this.bl),f=.5*(h-1/h),d=.5*(h+1/h),y=Math.sin(this.bl*c),v=(f*Math.sin(this.gamma0)-y*Math.cos(this.gamma0))/d;r=Math.abs(Math.abs(v)-1)<=1e-10?Number.POSITIVE_INFINITY:.5*this.al*Math.log((1-v)/(1+v))/this.bl,t=Math.abs(Math.cos(this.bl*c))<=1e-10?this.al*this.bl*c:this.al*Math.atan2(f*Math.cos(this.gamma0)+y*Math.sin(this.gamma0),Math.cos(this.bl*c))/this.bl}return this.no_rot?(e.x=this.x0+t,e.y=this.y0+r):(t-=this.uc,e.x=this.x0+r*Math.cos(this.alpha)+t*Math.sin(this.alpha),e.y=this.y0+t*Math.cos(this.alpha)-r*Math.sin(this.alpha)),e},t.inverse=function(e){var t,r;this.no_rot?(r=e.y-this.y0,t=e.x-this.x0):(r=(e.x-this.x0)*Math.cos(this.alpha)-(e.y-this.y0)*Math.sin(this.alpha),t=(e.y-this.y0)*Math.cos(this.alpha)+(e.x-this.x0)*Math.sin(this.alpha),t+=this.uc);var i=Math.exp(-1*this.bl*r/this.al),s=.5*(i-1/i),l=.5*(i+1/i),u=Math.sin(this.bl*t/this.al),c=(u*Math.cos(this.gamma0)+s*Math.sin(this.gamma0))/l,p=Math.pow(this.el/Math.sqrt((1+c)/(1-c)),1/this.bl);return Math.abs(c-1)<1e-10?(e.x=this.long0,e.y=o):Math.abs(c+1)<1e-10?(e.x=this.long0,e.y=-1*o):(e.y=a(this.e,p),e.x=n(this.long0-Math.atan2(s*Math.cos(this.gamma0)-u*Math.sin(this.gamma0),Math.cos(this.bl*t/this.al))/this.bl)),e},t.names=["Hotine_Oblique_Mercator","Hotine Oblique Mercator","Hotine_Oblique_Mercator_Azimuth_Natural_Origin","Hotine_Oblique_Mercator_Azimuth_Center","omerc"]},function(e,t,r){"use strict";t.init=function(){var e=this.lat0;this.lambda0=this.long0;var t=Math.sin(e),r=this.a,i=1/this.rf,n=2*i-Math.pow(i,2),a=this.e=Math.sqrt(n);this.R=this.k0*r*Math.sqrt(1-n)/(1-n*Math.pow(t,2)),this.alpha=Math.sqrt(1+n/(1-n)*Math.pow(Math.cos(e),4)),this.b0=Math.asin(t/this.alpha);var o=Math.log(Math.tan(Math.PI/4+this.b0/2)),s=Math.log(Math.tan(Math.PI/4+e/2)),l=Math.log((1+a*t)/(1-a*t));this.K=o-this.alpha*s+this.alpha*a/2*l},t.forward=function(e){var t=Math.log(Math.tan(Math.PI/4-e.y/2)),r=this.e/2*Math.log((1+this.e*Math.sin(e.y))/(1-this.e*Math.sin(e.y))),i=-this.alpha*(t+r)+this.K,n=2*(Math.atan(Math.exp(i))-Math.PI/4),a=this.alpha*(e.x-this.lambda0),o=Math.atan(Math.sin(a)/(Math.sin(this.b0)*Math.tan(n)+Math.cos(this.b0)*Math.cos(a))),s=Math.asin(Math.cos(this.b0)*Math.sin(n)-Math.sin(this.b0)*Math.cos(n)*Math.cos(a));return e.y=this.R/2*Math.log((1+Math.sin(s))/(1-Math.sin(s)))+this.y0,e.x=this.R*o+this.x0,e},t.inverse=function(e){for(var t=e.x-this.x0,r=e.y-this.y0,i=t/this.R,n=2*(Math.atan(Math.exp(r/this.R))-Math.PI/4),a=Math.asin(Math.cos(this.b0)*Math.sin(n)+Math.sin(this.b0)*Math.cos(n)*Math.cos(i)),o=Math.atan(Math.sin(i)/(Math.cos(this.b0)*Math.cos(i)-Math.sin(this.b0)*Math.tan(n))),s=this.lambda0+o/this.alpha,l=0,u=a,c=-1e3,p=0;Math.abs(u-c)>1e-7;){if(++p>20)return;l=1/this.alpha*(Math.log(Math.tan(Math.PI/4+a/2))-this.K)+this.e*Math.log(Math.tan(Math.PI/4+Math.asin(this.e*Math.sin(u))/2)),c=u,u=2*Math.atan(Math.exp(l))-Math.PI/2}return e.x=s,e.y=u,e},t.names=["somerc"]},function(e,t,r){"use strict";var i=Math.PI/2,n=r(59),a=r(44),o=r(70),s=r(69),l=r(7);t.ssfn_=function(e,t,r){return t*=r,Math.tan(.5*(i+e))*Math.pow((1-t)/(1+t),.5*r)},t.init=function(){this.coslat0=Math.cos(this.lat0),this.sinlat0=Math.sin(this.lat0),this.sphere?1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*(1+n(this.lat0)*Math.sin(this.lat_ts))):(Math.abs(this.coslat0)<=1e-10&&(this.lat0>0?this.con=1:this.con=-1),this.cons=Math.sqrt(Math.pow(1+this.e,1+this.e)*Math.pow(1-this.e,1-this.e)),1===this.k0&&!isNaN(this.lat_ts)&&Math.abs(this.coslat0)<=1e-10&&(this.k0=.5*this.cons*a(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts))/o(this.e,this.con*this.lat_ts,this.con*Math.sin(this.lat_ts))),this.ms1=a(this.e,this.sinlat0,this.coslat0),this.X0=2*Math.atan(this.ssfn_(this.lat0,this.sinlat0,this.e))-i,this.cosX0=Math.cos(this.X0),this.sinX0=Math.sin(this.X0))},t.forward=function(e){var t,r,n,a,s,u,c=e.x,p=e.y,h=Math.sin(p),f=Math.cos(p),d=l(c-this.long0);return Math.abs(Math.abs(c-this.long0)-Math.PI)<=1e-10&&Math.abs(p+this.lat0)<=1e-10?(e.x=NaN,e.y=NaN,e):this.sphere?(t=2*this.k0/(1+this.sinlat0*h+this.coslat0*f*Math.cos(d)),e.x=this.a*t*f*Math.sin(d)+this.x0,e.y=this.a*t*(this.coslat0*h-this.sinlat0*f*Math.cos(d))+this.y0,e):(r=2*Math.atan(this.ssfn_(p,h,this.e))-i,a=Math.cos(r),n=Math.sin(r),Math.abs(this.coslat0)<=1e-10?(s=o(this.e,p*this.con,this.con*h),u=2*this.a*this.k0*s/this.cons,e.x=this.x0+u*Math.sin(c-this.long0),e.y=this.y0-this.con*u*Math.cos(c-this.long0),e):(Math.abs(this.sinlat0)<1e-10?(t=2*this.a*this.k0/(1+a*Math.cos(d)),e.y=t*n):(t=2*this.a*this.k0*this.ms1/(this.cosX0*(1+this.sinX0*n+this.cosX0*a*Math.cos(d))),e.y=t*(this.cosX0*n-this.sinX0*a*Math.cos(d))+this.y0),e.x=t*a*Math.sin(d)+this.x0,e))},t.inverse=function(e){var t,r,n,a,o;e.x-=this.x0,e.y-=this.y0;var u=Math.sqrt(e.x*e.x+e.y*e.y);if(this.sphere){var c=2*Math.atan(u/(.5*this.a*this.k0));return t=this.long0,r=this.lat0,u<=1e-10?(e.x=t,e.y=r,e):(r=Math.asin(Math.cos(c)*this.sinlat0+e.y*Math.sin(c)*this.coslat0/u),t=Math.abs(this.coslat0)<1e-10?this.lat0>0?l(this.long0+Math.atan2(e.x,-1*e.y)):l(this.long0+Math.atan2(e.x,e.y)):l(this.long0+Math.atan2(e.x*Math.sin(c),u*this.coslat0*Math.cos(c)-e.y*this.sinlat0*Math.sin(c))),e.x=t,e.y=r,e)}if(Math.abs(this.coslat0)<=1e-10){if(u<=1e-10)return r=this.lat0,t=this.long0,e.x=t,e.y=r,e;e.x*=this.con,e.y*=this.con,n=u*this.cons/(2*this.a*this.k0),r=this.con*s(this.e,n),t=this.con*l(this.con*this.long0+Math.atan2(e.x,-1*e.y))}else a=2*Math.atan(u*this.cosX0/(2*this.a*this.k0*this.ms1)),t=this.long0,u<=1e-10?o=this.X0:(o=Math.asin(Math.cos(a)*this.sinX0+e.y*Math.sin(a)*this.cosX0/u),t=l(this.long0+Math.atan2(e.x*Math.sin(a),u*this.cosX0*Math.cos(a)-e.y*this.sinX0*Math.sin(a)))),r=-1*s(this.e,Math.tan(.5*(i+o)));return e.x=t,e.y=r,e},t.names=["stere","Stereographic_South_Pole","Polar Stereographic (variant B)"]},function(e,t,r){"use strict";e.exports=function(e,t){return Math.pow((1-e)/(1+e),t)}},function(e,t,r){"use strict";var i=Math.PI/4,n=r(413),a=Math.PI/2;t.init=function(){var e=Math.sin(this.lat0),t=Math.cos(this.lat0);t*=t,this.rc=Math.sqrt(1-this.es)/(1-this.es*e*e),this.C=Math.sqrt(1+this.es*t*t/(1-this.es)),this.phic0=Math.asin(e/this.C),this.ratexp=.5*this.C*this.e,this.K=Math.tan(.5*this.phic0+i)/(Math.pow(Math.tan(.5*this.lat0+i),this.C)*n(this.e*e,this.ratexp))},t.forward=function(e){var t=e.x,r=e.y;return e.y=2*Math.atan(this.K*Math.pow(Math.tan(.5*r+i),this.C)*n(this.e*Math.sin(r),this.ratexp))-a,e.x=this.C*t,e},t.inverse=function(e){for(var t=e.x/this.C,r=e.y,o=Math.pow(Math.tan(.5*r+i)/this.K,1/this.C),s=20;s>0&&(r=2*Math.atan(o*n(this.e*Math.sin(e.y),-.5*this.e))-a,!(Math.abs(r-e.y)<1e-14));--s)e.y=r;return s?(e.x=t,e.y=r,e):null},t.names=["gauss"]},function(e,t,r){"use strict";var i=r(414),n=r(7);t.init=function(){i.init.apply(this),this.rc&&(this.sinc0=Math.sin(this.phic0),this.cosc0=Math.cos(this.phic0),this.R2=2*this.rc,this.title||(this.title="Oblique Stereographic Alternative"))},t.forward=function(e){var t,r,a,o;return e.x=n(e.x-this.long0),i.forward.apply(this,[e]),t=Math.sin(e.y),r=Math.cos(e.y),a=Math.cos(e.x),o=this.k0*this.R2/(1+this.sinc0*t+this.cosc0*r*a),e.x=o*r*Math.sin(e.x),e.y=o*(this.cosc0*t-this.sinc0*r*a),e.x=this.a*e.x+this.x0,e.y=this.a*e.y+this.y0,e},t.inverse=function(e){var t,r,a,o,s;if(e.x=(e.x-this.x0)/this.a,e.y=(e.y-this.y0)/this.a,e.x/=this.k0,e.y/=this.k0,s=Math.sqrt(e.x*e.x+e.y*e.y)){var l=2*Math.atan2(s,this.R2);t=Math.sin(l),r=Math.cos(l),o=Math.asin(r*this.sinc0+e.y*t*this.cosc0/s),a=Math.atan2(e.x*t,s*this.cosc0*r-e.y*this.sinc0*t)}else o=this.phic0,a=0;return e.x=a,e.y=o,i.inverse.apply(this,[e]),e.x=n(e.x+this.long0),e},t.names=["Stereographic_North_Pole","Oblique_Stereographic","Polar_Stereographic","sterea","Oblique Stereographic Alternative"]},function(e,t,r){"use strict";var i=r(178);t.dependsOn="tmerc",t.init=function(){this.zone&&(this.lat0=0,this.long0=.017453292519943295*(6*Math.abs(this.zone)-183),this.x0=5e5,this.y0=this.utmSouth?1e7:0,this.k0=.9996,i.init.apply(this),this.forward=i.forward,this.inverse=i.inverse)},t.names=["Universal Transverse Mercator System","utm"]},function(e,t,r){"use strict";var i=[r(178),r(416),r(415),r(412),r(411),r(410),r(409),r(408),r(407),r(406),r(405),r(404),r(403),r(401),r(400),r(399),r(398),r(397),r(394),r(393),r(392),r(391)];e.exports=function(e){i.forEach(function(t){e.Proj.projections.add(t)})}},function(e){e.exports={_from:"proj4@2.3.15",_id:"proj4@2.3.15",_inBundle:!1,_integrity:"sha1-WtBui8owvg/6OJpJ5FZfUfBtCJ4=",_location:"/proj4",_phantomChildren:{},_requested:{type:"version",registry:!0,raw:"proj4@2.3.15",name:"proj4",escapedName:"proj4",rawSpec:"2.3.15",saveSpec:null,fetchSpec:"2.3.15"},_requiredBy:["/"],_resolved:"http://localhost:4873/proj4/-/proj4-2.3.15.tgz",_shasum:"5ad06e8bca30be0ffa389a49e4565f51f06d089e",_spec:"proj4@2.3.15",_where:"E:\\2018\\git\\iClient-JavaScript",author:"",bugs:{url:"https://github.com/proj4js/proj4js/issues"},bundleDependencies:!1,contributors:[{name:"Mike Adair",email:"madair@dmsolutions.ca"},{name:"Richard Greenwood",email:"rich@greenwoodmap.com"},{name:"Calvin Metcalf",email:"calvin.metcalf@gmail.com"},{name:"Richard Marsden",url:"http://www.winwaed.com"},{name:"T. Mittan"},{name:"D. Steinwand"},{name:"S. Nelson"}],dependencies:{mgrs:"~0.0.2"},deprecated:!1,description:"Proj4js is a JavaScript library to transform point coordinates from one coordinate system to another, including datum transformations.",devDependencies:{browserify:"~12.0.1",chai:"~1.8.1",curl:"git://github.com/cujojs/curl.git",grunt:"~0.4.2","grunt-browserify":"~4.0.1","grunt-cli":"~0.1.13","grunt-contrib-connect":"~0.6.0","grunt-contrib-jshint":"~0.8.0","grunt-contrib-uglify":"~0.11.1","grunt-mocha-phantomjs":"~0.4.0",istanbul:"~0.2.4",mocha:"~1.17.1",tin:"~0.4.0"},directories:{test:"test",doc:"docs"},homepage:"https://github.com/proj4js/proj4js#readme",jam:{main:"dist/proj4.js",include:["dist/proj4.js","README.md","AUTHORS","LICENSE.md"]},license:"MIT",main:"lib/index.js",name:"proj4",repository:{type:"git",url:"git://github.com/proj4js/proj4js.git"},scripts:{test:"./node_modules/istanbul/lib/cli.js test ./node_modules/mocha/bin/_mocha test/test.js"},version:"2.3.15"}},function(e,t,r){"use strict";var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=r(179);function a(e,t,r){if(!(this instanceof a))return new a(e,t,r);if(Array.isArray(e))this.x=e[0],this.y=e[1],this.z=e[2]||0;else if("object"===(void 0===e?"undefined":i(e)))this.x=e.x,this.y=e.y,this.z=e.z||0;else if("string"==typeof e&&void 0===t){var n=e.split(",");this.x=parseFloat(n[0],10),this.y=parseFloat(n[1],10),this.z=parseFloat(n[2],10)||0}else this.x=e,this.y=t,this.z=r||0;console.warn("proj4.Point will be removed in version 3, use proj4.toPoint")}a.fromMGRS=function(e){return new a(n.toPoint(e))},a.prototype.toMGRS=function(e){return n.forward([this.x,this.y],e)},e.exports=a},function(e,t,r){"use strict";e.exports=function(e,t,r){var i,n,a,o=r.x,s=r.y,l=r.z||0;for(a=0;a<3;a++)if(!t||2!==a||void 0!==r.z)switch(0===a?(i=o,n="x"):1===a?(i=s,n="y"):(i=l,n="z"),e.axis[a]){case"e":r[n]=i;break;case"w":r[n]=-i;break;case"n":r[n]=i;break;case"s":r[n]=-i;break;case"u":void 0!==r[n]&&(r.z=i);break;case"d":void 0!==r[n]&&(r.z=-i);break;default:return null}return r}},function(e,t,r){"use strict";var i=1,n=2;e.exports=function(e,t,r){var a,o,s;function l(e){return e===i||e===n}if(e.compare_datums(t))return r;if(5===e.datum_type||5===t.datum_type)return r;var u=e.a,c=e.es,p=t.a,h=t.es,f=e.datum_type;if(3===f)if(0===this.apply_gridshift(e,0,r))e.a=6378137,e.es=.006694379990141316;else{if(!e.datum_params)return e.a=u,e.es=e.es,r;for(a=1,o=0,s=e.datum_params.length;o<s;o++)a*=e.datum_params[o];if(0===a)return e.a=u,e.es=e.es,r;f=e.datum_params.length>3?n:i}return 3===t.datum_type&&(t.a=6378137,t.es=.006694379990141316),(e.es!==t.es||e.a!==t.a||l(f)||l(t.datum_type))&&(e.geodetic_to_geocentric(r),l(e.datum_type)&&e.geocentric_to_wgs84(r),l(t.datum_type)&&t.geocentric_from_wgs84(r),t.geocentric_to_geodetic(r)),3===t.datum_type&&this.apply_gridshift(t,1,r),e.a=u,e.es=c,t.a=p,t.es=h,r}},function(e,t,r){"use strict";var i=Math.PI/2,n=function e(t){if(!(this instanceof e))return new e(t);this.datum_type=4,t&&(t.datumCode&&"none"===t.datumCode&&(this.datum_type=5),t.datum_params&&(this.datum_params=t.datum_params.map(parseFloat),0===this.datum_params[0]&&0===this.datum_params[1]&&0===this.datum_params[2]||(this.datum_type=1),this.datum_params.length>3&&(0===this.datum_params[3]&&0===this.datum_params[4]&&0===this.datum_params[5]&&0===this.datum_params[6]||(this.datum_type=2,this.datum_params[3]*=484813681109536e-20,this.datum_params[4]*=484813681109536e-20,this.datum_params[5]*=484813681109536e-20,this.datum_params[6]=this.datum_params[6]/1e6+1))),this.datum_type=t.grids?3:this.datum_type,this.a=t.a,this.b=t.b,this.es=t.es,this.ep2=t.ep2,3===this.datum_type&&(this.grids=t.grids))};n.prototype={compare_datums:function(e){return this.datum_type===e.datum_type&&(!(this.a!==e.a||Math.abs(this.es-e.es)>5e-11)&&(1===this.datum_type?this.datum_params[0]===e.datum_params[0]&&this.datum_params[1]===e.datum_params[1]&&this.datum_params[2]===e.datum_params[2]:2===this.datum_type?this.datum_params[0]===e.datum_params[0]&&this.datum_params[1]===e.datum_params[1]&&this.datum_params[2]===e.datum_params[2]&&this.datum_params[3]===e.datum_params[3]&&this.datum_params[4]===e.datum_params[4]&&this.datum_params[5]===e.datum_params[5]&&this.datum_params[6]===e.datum_params[6]:3!==this.datum_type&&3!==e.datum_type||this.nadgrids===e.nadgrids))},geodetic_to_geocentric:function(e){var t,r,n,a,o,s,l,u=e.x,c=e.y,p=e.z?e.z:0;if(c<-i&&c>-1.001*i)c=-i;else if(c>i&&c<1.001*i)c=i;else if(c<-i||c>i)return null;return u>Math.PI&&(u-=2*Math.PI),o=Math.sin(c),l=Math.cos(c),s=o*o,t=((a=this.a/Math.sqrt(1-this.es*s))+p)*l*Math.cos(u),r=(a+p)*l*Math.sin(u),n=(a*(1-this.es)+p)*o,e.x=t,e.y=r,e.z=n,0},geocentric_to_geodetic:function(e){var t,r,n,a,o,s,l,u,c,p,h,f,d,y,v,m,g=e.x,b=e.y,S=e.z?e.z:0;if(!1,t=Math.sqrt(g*g+b*b),r=Math.sqrt(g*g+b*b+S*S),t/this.a<1e-12){if(!0,y=0,r/this.a<1e-12)return v=i,void(m=-this.b)}else y=Math.atan2(b,g);n=S/r,a=t/r,o=1/Math.sqrt(1-this.es*(2-this.es)*a*a),u=a*(1-this.es)*o,c=n*o,d=0;do{d++,m=t*u+S*c-(l=this.a/Math.sqrt(1-this.es*c*c))*(1-this.es*c*c),s=this.es*l/(l+m),f=(h=n*(o=1/Math.sqrt(1-s*(2-s)*a*a)))*u-(p=a*(1-s)*o)*c,u=p,c=h}while(f*f>1e-24&&d<30);return v=Math.atan(h/Math.abs(p)),e.x=y,e.y=v,e.z=m,e},geocentric_to_geodetic_noniter:function(e){var t,r,n,a,o,s,l,u,c,p,h,f,d,y,v,m,g,b=e.x,S=e.y,_=e.z?e.z:0;if(b=parseFloat(b),S=parseFloat(S),_=parseFloat(_),g=!1,0!==b)t=Math.atan2(S,b);else if(S>0)t=i;else if(S<0)t=-i;else if(g=!0,t=0,_>0)r=i;else{if(!(_<0))return r=i,void(n=-this.b);r=-i}return o=b*b+S*S,s=1.0026*_,f=(a=Math.sqrt(o))/(u=Math.sqrt(s*s+o)),h=(p=s/u)*p*p,l=_+this.b*this.ep2*h,m=a-this.a*this.es*f*f*f,d=l/(c=Math.sqrt(l*l+m*m)),y=m/c,v=this.a/Math.sqrt(1-this.es*d*d),n=y>=.3826834323650898?a/y-v:y<=-.3826834323650898?a/-y-v:_/d+v*(this.es-1),!1===g&&(r=Math.atan(d/y)),e.x=t,e.y=r,e.z=n,e},geocentric_to_wgs84:function(e){if(1===this.datum_type)e.x+=this.datum_params[0],e.y+=this.datum_params[1],e.z+=this.datum_params[2];else if(2===this.datum_type){var t=this.datum_params[0],r=this.datum_params[1],i=this.datum_params[2],n=this.datum_params[3],a=this.datum_params[4],o=this.datum_params[5],s=this.datum_params[6],l=s*(e.x-o*e.y+a*e.z)+t,u=s*(o*e.x+e.y-n*e.z)+r,c=s*(-a*e.x+n*e.y+e.z)+i;e.x=l,e.y=u,e.z=c}},geocentric_from_wgs84:function(e){if(1===this.datum_type)e.x-=this.datum_params[0],e.y-=this.datum_params[1],e.z-=this.datum_params[2];else if(2===this.datum_type){var t=this.datum_params[0],r=this.datum_params[1],i=this.datum_params[2],n=this.datum_params[3],a=this.datum_params[4],o=this.datum_params[5],s=this.datum_params[6],l=(e.x-t)/s,u=(e.y-r)/s,c=(e.z-i)/s;e.x=l+o*u-a*c,e.y=-o*l+u+n*c,e.z=a*l-n*u+c}}},e.exports=n},function(e,t,r){"use strict";t.MERIT={a:6378137,rf:298.257,ellipseName:"MERIT 1983"},t.SGS85={a:6378136,rf:298.257,ellipseName:"Soviet Geodetic System 85"},t.GRS80={a:6378137,rf:298.257222101,ellipseName:"GRS 1980(IUGG, 1980)"},t.IAU76={a:6378140,rf:298.257,ellipseName:"IAU 1976"},t.airy={a:6377563.396,b:6356256.91,ellipseName:"Airy 1830"},t.APL4={a:6378137,rf:298.25,ellipseName:"Appl. Physics. 1965"},t.NWL9D={a:6378145,rf:298.25,ellipseName:"Naval Weapons Lab., 1965"},t.mod_airy={a:6377340.189,b:6356034.446,ellipseName:"Modified Airy"},t.andrae={a:6377104.43,rf:300,ellipseName:"Andrae 1876 (Den., Iclnd.)"},t.aust_SA={a:6378160,rf:298.25,ellipseName:"Australian Natl & S. Amer. 1969"},t.GRS67={a:6378160,rf:298.247167427,ellipseName:"GRS 67(IUGG 1967)"},t.bessel={a:6377397.155,rf:299.1528128,ellipseName:"Bessel 1841"},t.bess_nam={a:6377483.865,rf:299.1528128,ellipseName:"Bessel 1841 (Namibia)"},t.clrk66={a:6378206.4,b:6356583.8,ellipseName:"Clarke 1866"},t.clrk80={a:6378249.145,rf:293.4663,ellipseName:"Clarke 1880 mod."},t.clrk58={a:6378293.645208759,rf:294.2606763692654,ellipseName:"Clarke 1858"},t.CPM={a:6375738.7,rf:334.29,ellipseName:"Comm. des Poids et Mesures 1799"},t.delmbr={a:6376428,rf:311.5,ellipseName:"Delambre 1810 (Belgium)"},t.engelis={a:6378136.05,rf:298.2566,ellipseName:"Engelis 1985"},t.evrst30={a:6377276.345,rf:300.8017,ellipseName:"Everest 1830"},t.evrst48={a:6377304.063,rf:300.8017,ellipseName:"Everest 1948"},t.evrst56={a:6377301.243,rf:300.8017,ellipseName:"Everest 1956"},t.evrst69={a:6377295.664,rf:300.8017,ellipseName:"Everest 1969"},t.evrstSS={a:6377298.556,rf:300.8017,ellipseName:"Everest (Sabah & Sarawak)"},t.fschr60={a:6378166,rf:298.3,ellipseName:"Fischer (Mercury Datum) 1960"},t.fschr60m={a:6378155,rf:298.3,ellipseName:"Fischer 1960"},t.fschr68={a:6378150,rf:298.3,ellipseName:"Fischer 1968"},t.helmert={a:6378200,rf:298.3,ellipseName:"Helmert 1906"},t.hough={a:6378270,rf:297,ellipseName:"Hough"},t.intl={a:6378388,rf:297,ellipseName:"International 1909 (Hayford)"},t.kaula={a:6378163,rf:298.24,ellipseName:"Kaula 1961"},t.lerch={a:6378139,rf:298.257,ellipseName:"Lerch 1979"},t.mprts={a:6397300,rf:191,ellipseName:"Maupertius 1738"},t.new_intl={a:6378157.5,b:6356772.2,ellipseName:"New International 1967"},t.plessis={a:6376523,rf:6355863,ellipseName:"Plessis 1817 (France)"},t.krass={a:6378245,rf:298.3,ellipseName:"Krassovsky, 1942"},t.SEasia={a:6378155,b:6356773.3205,ellipseName:"Southeast Asia"},t.walbeck={a:6376896,b:6355834.8467,ellipseName:"Walbeck"},t.WGS60={a:6378165,rf:298.3,ellipseName:"WGS 60"},t.WGS66={a:6378145,rf:298.25,ellipseName:"WGS 66"},t.WGS7={a:6378135,rf:298.26,ellipseName:"WGS 72"},t.WGS84={a:6378137,rf:298.257223563,ellipseName:"WGS 84"},t.sphere={a:6370997,b:6370997,ellipseName:"Normal Sphere (r=6370997)"}},function(e,t,r){"use strict";t.wgs84={towgs84:"0,0,0",ellipse:"WGS84",datumName:"WGS84"},t.ch1903={towgs84:"674.374,15.056,405.346",ellipse:"bessel",datumName:"swiss"},t.ggrs87={towgs84:"-199.87,74.79,246.62",ellipse:"GRS80",datumName:"Greek_Geodetic_Reference_System_1987"},t.nad83={towgs84:"0,0,0",ellipse:"GRS80",datumName:"North_American_Datum_1983"},t.nad27={nadgrids:"@conus,@alaska,@ntv2_0.gsb,@ntv1_can.dat",ellipse:"clrk66",datumName:"North_American_Datum_1927"},t.potsdam={towgs84:"606.0,23.0,413.0",ellipse:"bessel",datumName:"Potsdam Rauenberg 1950 DHDN"},t.carthage={towgs84:"-263.0,6.0,431.0",ellipse:"clark80",datumName:"Carthage 1934 Tunisia"},t.hermannskogel={towgs84:"653.0,-212.0,449.0",ellipse:"bessel",datumName:"Hermannskogel"},t.ire65={towgs84:"482.530,-130.596,564.557,-1.042,-0.214,-0.631,8.15",ellipse:"mod_airy",datumName:"Ireland 1965"},t.rassadiran={towgs84:"-133.63,-157.5,-158.62",ellipse:"intl",datumName:"Rassadiran"},t.nzgd49={towgs84:"59.47,-5.04,187.44,0.47,-0.1,1.024,-4.5993",ellipse:"intl",datumName:"New Zealand Geodetic Datum 1949"},t.osgb36={towgs84:"446.448,-125.157,542.060,0.1502,0.2470,0.8421,-20.4894",ellipse:"airy",datumName:"Airy 1830"},t.s_jtsk={towgs84:"589,76,480",ellipse:"bessel",datumName:"S-JTSK (Ferro)"},t.beduaram={towgs84:"-106,-87,188",ellipse:"clrk80",datumName:"Beduaram"},t.gunung_segara={towgs84:"-403,684,41",ellipse:"bessel",datumName:"Gunung Segara Jakarta"},t.rnb72={towgs84:"106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1",ellipse:"intl",datumName:"Reseau National Belge 1972"}},function(e,t,r){"use strict";var i=r(424),n=r(423),a=r(107),o=r(422);e.exports=function(e){if(e.datumCode&&"none"!==e.datumCode){var t=i[e.datumCode];t&&(e.datum_params=t.towgs84?t.towgs84.split(","):null,e.ellps=t.ellipse,e.datumName=t.datumName?t.datumName:e.datumCode)}if(!e.a){var r=n[e.ellps]?n[e.ellps]:n.WGS84;a(e,r)}return e.rf&&!e.b&&(e.b=(1-1/e.rf)*e.a),(0===e.rf||Math.abs(e.a-e.b)<1e-10)&&(e.sphere=!0,e.b=e.a),e.a2=e.a*e.a,e.b2=e.b*e.b,e.es=(e.a2-e.b2)/e.a2,e.e=Math.sqrt(e.es),e.R_A&&(e.a*=1-e.es*(.16666666666666666+e.es*(.04722222222222222+.022156084656084655*e.es)),e.a2=e.a*e.a,e.b2=e.b*e.b,e.es=0),e.ep2=(e.a2-e.b2)/e.b2,e.k0||(e.k0=1),e.axis||(e.axis="enu"),e.datum||(e.datum=o(e)),e}},function(e,t,r){"use strict";function i(e){return e}t.init=function(){},t.forward=i,t.inverse=i,t.names=["longlat","identity"]},function(e,t,r){"use strict";var i=r(44),n=Math.PI/2,a=57.29577951308232,o=r(7),s=Math.PI/4,l=r(70),u=r(69);t.init=function(){var e=this.b/this.a;this.es=1-e*e,"x0"in this||(this.x0=0),"y0"in this||(this.y0=0),this.e=Math.sqrt(this.es),this.lat_ts?this.sphere?this.k0=Math.cos(this.lat_ts):this.k0=i(this.e,Math.sin(this.lat_ts),Math.cos(this.lat_ts)):this.k0||(this.k?this.k0=this.k:this.k0=1)},t.forward=function(e){var t,r,i=e.x,u=e.y;if(u*a>90&&u*a<-90&&i*a>180&&i*a<-180)return null;if(Math.abs(Math.abs(u)-n)<=1e-10)return null;if(this.sphere)t=this.x0+this.a*this.k0*o(i-this.long0),r=this.y0+this.a*this.k0*Math.log(Math.tan(s+.5*u));else{var c=Math.sin(u),p=l(this.e,u,c);t=this.x0+this.a*this.k0*o(i-this.long0),r=this.y0-this.a*this.k0*Math.log(p)}return e.x=t,e.y=r,e},t.inverse=function(e){var t,r,i=e.x-this.x0,a=e.y-this.y0;if(this.sphere)r=n-2*Math.atan(Math.exp(-a/(this.a*this.k0)));else{var s=Math.exp(-a/(this.a*this.k0));if(-9999===(r=u(this.e,s)))return null}return t=o(this.long0+i/(this.a*this.k0)),e.x=t,e.y=r,e},t.names=["Mercator","Popular Visualisation Pseudo Mercator","Mercator_1SP","Mercator_Auxiliary_Sphere","merc"]},function(e,t,r){"use strict";var i=[r(427),r(426)],n={},a=[];function o(e,t){var r=a.length;return e.names?(a[r]=e,e.names.forEach(function(e){n[e.toLowerCase()]=r}),this):(console.log(t),!0)}t.add=o,t.get=function(e){if(!e)return!1;var t=e.toLowerCase();return void 0!==n[t]&&a[n[t]]?a[n[t]]:void 0},t.start=function(){i.forEach(o)}},function(e,t,r){"use strict";t.ft={to_meter:.3048},t["us-ft"]={to_meter:1200/3937}},function(e,t,r){"use strict";t.greenwich=0,t.lisbon=-9.131906111111,t.paris=2.337229166667,t.bogota=-74.080916666667,t.madrid=-3.687938888889,t.rome=12.452333333333,t.bern=7.439583333333,t.jakarta=106.807719444444,t.ferro=-17.666666666667,t.brussels=4.367975,t.stockholm=18.058277777778,t.athens=23.7163375,t.oslo=10.722916666667},function(e,t,r){"use strict";e.exports=function(e){e("EPSG:4326","+title=WGS 84 (long/lat) +proj=longlat +ellps=WGS84 +datum=WGS84 +units=degrees"),e("EPSG:4269","+title=NAD83 (long/lat) +proj=longlat +a=6378137.0 +b=6356752.31414036 +ellps=GRS80 +datum=NAD83 +units=degrees"),e("EPSG:3857","+title=WGS 84 / Pseudo-Mercator +proj=merc +a=6378137 +b=6378137 +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0 +k=1.0 +units=m +nadgrids=@null +no_defs"),e.WGS84=e["EPSG:4326"],e["EPSG:3785"]=e["EPSG:3857"],e.GOOGLE=e["EPSG:3857"],e["EPSG:900913"]=e["EPSG:3857"],e["EPSG:102113"]=e["EPSG:3857"]}},function(e,t,r){"use strict";var i=r(184),n=r(182),a=r(183);e.exports=function(e){return function(e){return"string"==typeof e}(e)?function(e){return e in i}(e)?i[e]:function(e){return["GEOGCS","GEOCCS","PROJCS","LOCAL_CS"].reduce(function(t,r){return t+1+e.indexOf(r)},0)}(e)?n(e):function(e){return"+"===e[0]}(e)?a(e):void 0:e}},function(e,t,r){"use strict";var i=r(108),n=r(181),a=i("WGS84");function o(e,t,r){var i;return Array.isArray(r)?(i=n(e,t,r),3===r.length?[i.x,i.y,i.z]:[i.x,i.y]):n(e,t,r)}function s(e){return e instanceof i?e:e.oProj?e.oProj:i(e)}e.exports=function(e,t,r){e=s(e);var i,n=!1;return void 0===t?(t=e,e=a,n=!0):(void 0!==t.x||Array.isArray(t))&&(r=t,t=e,e=a,n=!0),t=s(t),r?o(e,t,r):(i={forward:function(r){return o(e,t,r)},inverse:function(r){return o(t,e,r)}},n&&(i.oProj=t),i)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.changeTileVersion=t.ChangeTileVersion=void 0;var i,n=r(2),a=(i=n)&&i.__esModule?i:{default:i};r(3);var o=r(175);var s=t.ChangeTileVersion=a.default.Control.extend({options:{layer:null,position:"topleft",title:"switch tile version",tooltip:"top",collapsed:!0,nextText:"+",lastText:"-",ico:"V",orientation:"horizontal",switch:!0},onAdd:function(){"vertical"!==this.options.orientation&&(this.options.orientation="horizontal");var e=this._initLayout();return this.options.layer&&this.setLayer(this.options.layer),e},setContent:function(e){var t=a.default.Util.extend({},e);this.setVersionName(t.desc).setToolTip(t.desc)},setVersionName:function(e){var t=e;return e||(t=this.getValue()),this._sliderValue.innerHTML=t,this},setToolTip:function(e){return this.tooltip.innerHTML=e,this},updateLength:function(e){e>0&&(this.length=e,this.max=this.length-1,this.slider.setAttribute("max",this.max))},setLayer:function(e){e&&(this.options.layer=e);var t=this,r=t.options.layer;r.on("tilesetsinfoloaded",function(e){var r=e&&e.tileVersions;t.update(r)}),r.on("tileversionschanged",function(e){var r=e&&e.tileVersion;t.setContent(r)}),t.getTileSetsInfo()},update:function(e){this.tileVersions=e,this.updateLength(this.tileVersions.length)},getTileSetsInfo:function(){var e=this;e.options.layer&&new o.MapService(e.options.layer._url).getTilesets(function(t){e.options.layer.setTileSetsInfo(t.result)})},removeLayer:function(){this.options.layer=null},nextTilesVersion:function(){return this.firstLoad?(this.options.layer.nextTilesVersion(),this.firstLoad=!1,this):parseInt(this.slider.value)>this.max-1?this:(this.slider.value=parseInt(this.slider.value)+1,this.options.layer.nextTilesVersion(),this)},lastTilesVersion:function(){return parseInt(this.slider.value)<this.min+1?this:(this.slider.value=parseInt(this.slider.value)-1,this.options.layer.lastTilesVersion(),this)},tilesVersion:function(e){for(var t=this.options.layer,r=this.tileVersions,i=r.length,n=0;n<i;n++)if(r[n].name==e){t.updateCurrentTileSetsIndex(n),t.changeTilesVersion();break}},getValue:function(){return this.slider.value},getVersion:function(){var e=this.tileVersions[this.getValue()];return e&&e.name},_initLayout:function(){var e="leaflet-control-ctv";this._container=a.default.DomUtil.create("div",e+" "+e+"-"+this.options.orientation),this._sliderBtn=a.default.DomUtil.create("a",e+"-toggle",this._container),this._sliderBtn.setAttribute("title",this.options.title),this._sliderBtn.innerHTML=this.options.ico,this._sliderValue=a.default.DomUtil.create("p",e+"-value",this._container),this._sliderValue.innerHTML=this.options.ico;return this._sliderContent=a.default.DomUtil.create("div","leaflet-ctv-slider-main tooltip",this._container),this.tooltip=a.default.DomUtil.create("span","tooltip-text tooltip-"+this.options.tooltip,this._sliderContent),this.tooltip.innerHTML=this.options.ico,this.options.switch&&(this._next=a.default.DomUtil.create("a","leaflet-ctv-slider-incdec leaflet-ctv-slider-next",this._sliderContent),this._next.innerHTML=this.options.nextText,a.default.DomEvent.on(this._next,"click",this.nextTilesVersion,this),a.default.DomUtil.addClass(this._container,e+"-incdec")),this._sliderContainer=a.default.DomUtil.create("div","leaflet-ctv-slider-container",this._sliderContent),this.slider=a.default.DomUtil.create("input","leaflet-ctv-slider",this._sliderContainer),this.min=null==this.min||isNaN(this.min)?0:parseInt(this.min),this.slider.setAttribute("title",this.options.title),this.slider.setAttribute("id","slider"),this.slider.setAttribute("type","range"),this.slider.setAttribute("min",this.min),this.slider.setAttribute("max",0),this.slider.setAttribute("step",1),this.slider.setAttribute("value",0),this.firstLoad=!0,"oninput"in this.slider||"onchange"in this.slider?a.default.DomEvent.on(this.slider,"change",this._tilesVersion,this):this.slider.onpropertychange=this._tilesVersion,this.options.switch&&(this._last=a.default.DomUtil.create("a","leaflet-ctv-slider-incdec leaflet-ctv-slider-last",this._sliderContent),this._last.innerHTML=this.options.lastText,a.default.DomEvent.on(this._last,"click",this.lastTilesVersion,this)),"vertical"===this.options.orientation?(this.slider.style.width="170px",this._sliderContainer.style.height="170px"):this._sliderContainer.style.width="150px",a.default.DomEvent.disableClickPropagation(this._container),this.options.collapsed?(a.default.Browser.android||a.default.DomEvent.on(this._container,"mouseenter",this._expand,this).on(this._container,"mouseleave",this._collapse,this),a.default.Browser.touch?a.default.DomEvent.on(this._sliderBtn,"click",a.default.DomEvent.stop).on(this._sliderBtn,"click",this._expand,this):a.default.DomEvent.on(this._sliderBtn,"focus",this._expand,this)):this._expand(),this._container},_expand:function(){a.default.DomUtil.addClass(this._container,"leaflet-control-ctv-expanded")},_collapse:function(){a.default.DomUtil.removeClass(this._container,"leaflet-control-ctv-expanded")},_tilesVersion:function(){var e=this.getVersion();this.tilesVersion(e)}});
  1212. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1213. * This program are made available under the terms of the Apache License, Version 2.0
  1214. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/a.default.Map.mergeOptions({changeTileVersionControl:!1}),a.default.Map.addInitHook(function(){this.options.changeTileVersionControl&&(this.changeTileVersionControl=new s,this.addControl(this.changeTileVersionControl))});var l=t.changeTileVersion=function(e){return new s(e)};a.default.supermap.control.changeTileVersion=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logo=t.Logo=t.changeTileVersion=t.ChangeTileVersion=void 0;var i=r(434),n=r(390);
  1215. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1216. * This program are made available under the terms of the Apache License, Version 2.0
  1217. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1218. t.ChangeTileVersion=i.ChangeTileVersion,t.changeTileVersion=i.changeTileVersion,t.Logo=n.Logo,t.logo=n.logo},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zh=void 0;var i=r(0),n={title_dataFlowService:"数据流服务",title_distributedAnalysis:"分布式分析",title_clientComputing:"客户端计算",title_dataServiceQuery:"数据服务查询",title_searchCity:"搜索城市",title_searchLayer:"搜索图层",text_input_value_inputDataFlowUrl:"请输入数据流服务地址如:ws://{serviceRoot}/{dataFlowName}/dataflow/subscribe",text_displayFeaturesInfo:"显示要素信息",text_subscribe:"订阅",text_cancelSubscribe:"取消订阅",text_densityAnalysis:"密度分析",text_CalculateTheValuePerUnitArea:"计算点指定邻域形状内的每单位面积量值",text_option_selectDataset:"请选择数据集",text_label_dataset:"数据集",text_option_simplePointDensityAnalysis:"简单点密度分析",text_option_nuclearDensityAnalysis:"核密度分析",text_label_analyticalMethod:"分析方法",text_option_quadrilateral:"四边形",text_option_hexagon:"六边形",text_label_meshType:"网格面类型",text_option_notSet:"未设置",text_label_weightField:"权重字段",text_label_gridSizeInMeters:"网格大小",text_label_searchRadius:"搜索半径",text_label_queryRange:"分析范围",text_label_areaUnit:"面积单位",text_option_equidistantSegmentation:"等距离分段",text_option_logarithm:"对数",text_option_equalCountingSegment:"等计数分段",text_option_squareRootSegmentation:"平方根分段",text_label_thematicMapSegmentationMode:"专题图分段模式",text_label_thematicMapSegmentationParameters:"专题图分段参数",text_option_greenOrangePurpleGradient:"绿橙紫渐变",text_option_greenOrangeRedGradient:"绿橙红渐变",text_option_rainbowGradient:"彩虹渐变",text_option_spectralGradient:"光谱渐变",text_option_terrainGradient:"地形渐变",text_label_thematicMapColorGradientMode:"专题图颜色渐变模式",text_label_resultLayerName:"结果图层名称",text_chooseFile:"选择文件",text_isoline:"等值线",text_extractDiscreteValue:"提取离散值生成曲线",text_buffer:"缓冲区",text_specifyTheDistance:"指定距离创建周边区域",text_label_analysisLayer:"分析图层",text_label_extractField:"提取字段",text_label_extractedValue:"提取值",text_label_distanceAttenuation:"距离衰减",text_label_gridSize:"栅格大小",text_label_bufferRadius:"缓冲半径",text_label_defaultkilometers:"默认10千米",text_option_kilometer:"千米",text_label_unit:"单位",text_retainOriginal:"保留原对象字段属性",text_mergeBuffer:"合并缓冲区",text_label_color:"颜色",text_label_buffer:"[缓冲区]",text_label_isolines:"[等值线]",text_label_queryRangeTips:"默认为输入数据的全幅范围。范例:-74.050,40.650,-73.850,40.850",text_label_IDArrayOfFeatures:"要素 ID 数组",text_label_maxFeatures:"最多可返回的要素数量",text_label_bufferDistance:"缓冲区距离",text_label_queryRange1:"查询范围",text_label_spatialQueryMode:"空间查询模式",text_label_featureFilter:"要素过滤器",text_label_geometricObject:"几何对象",text_label_queryMode:"查询模式",text_label_searchTips:"搜索城市地点或图层要素",text_label_chooseSearchLayers:"选择查询图层",text_loadSearchCriteria:"加载搜索条件",text_saveSearchCriteria:"保存搜索条件",btn_analyze:"分析",btn_analyzing:"分析中",btn_emptyTheAnalysisLayer:"清空分析图层",btn_cancelAnalysis:"取消",btn_query:"查询",btn_querying:"查询中",btn_emptyTheRresultLayer:"清除所有结果图层",msg_dataFlowServiceHasBeenSubscribed:"已订阅该数据流服务。",msg_inputDataFlowUrlFirst:"请先输入数据流服务地址。",msg_datasetOrMethodUnsupport:"该数据集不支持本分析类型,请重新选择数据集",msg_selectDataset:"请选择数据集!",msg_setTheWeightField:"请设置权重字段!",msg_theFieldNotSupportAnalysis:"您当前选择的字段不支持分析!",msg_resultIsEmpty:"分析的结果为空!",msg_dataReturnedIsEmpty:"请求成功,查询返回的数据为空。",msg_openFileFail:"打开文件失败!",msg_fileTypeUnsupported:"不支持该文件格式!",msg_fileSizeExceeded:"文件大小超限!文件大小不得超过 10M!",msg_dataInWrongGeoJSONFormat:"数据格式错误!非标准的 GEOJSON 格式数据!",msg_dataInWrongFormat:"数据格式错误!非标准的 EXCEL, CSV 或 GEOJSON 格式数据!",msg_searchKeywords:"搜索关键字不能为空,请输入搜索条件。",msg_searchGeocodeField:"未匹配到地址匹配服务数据!",msg_cityGeocodeField:"未配置当前城市的地址匹配服务。",msg_getFeatureField:"未查找到相关矢量要素!",msg_dataflowservicesubscribed:"已订阅该数据流服务。",msg_subscribesucceeded:"数据流服务订阅成功。",msg_crsunsupport:"不支持当前地图的坐标系",msg_tilematrixsetunsupport:"不支持传入的TileMatrixSet",msg_jsonResolveFiled:"json格式解析失败!",msg_requestContentFiled:"通过iportal请求数据失败!",msg_getdatafailed:"获取数据失败!"};
  1219. /* CCopyright© 2000 - 2019 SuperMapSoftware Co.Ltd. All rights reserved.
  1220. * This program are made available under the terms of the Apache License, Version 2.0
  1221. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1222. t.zh=n,i.SuperMap.Lang["zh-CN"]=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.en=void 0;var i=r(0),n={title_dataFlowService:"Data Flow Service",title_distributedAnalysis:"Distributed Analysis",title_clientComputing:"Client Computing",title_dataServiceQuery:"Data Service Query",title_searchCity:"Search city",title_searchLayer:" Search layer",text_input_value_inputDataFlowUrl:"Please enter the data stream service address such as: ws://{serviceRoot}/{dataFlowName}/dataflow/subscribe",text_displayFeaturesInfo:"Display feature information",text_subscribe:"subscribe",text_cancelSubscribe:"unsubscribe",text_densityAnalysis:"Density Analysis",text_CalculateTheValuePerUnitArea:"Calculate the value per unit area within the neighborhood shape",text_option_selectDataset:"Please select a dataset",text_label_dataset:"Dataset",text_option_simplePointDensityAnalysis:"Simple point density analysis",text_option_nuclearDensityAnalysis:"Nuclear density analysis",text_label_analyticalMethod:"Analytical method",text_option_quadrilateral:"Quadrilateral",text_option_hexagon:"hexagon",text_label_meshType:"Mesh type",text_option_notSet:"Not set",text_label_weightField:"Weight field",text_label_gridSizeInMeters:"Grid size",text_label_searchRadius:"Search radius",text_label_queryRange:"Scope of analysis",text_label_areaUnit:"Area unit",text_option_equidistantSegmentation:"Equidistant segmentation",text_option_logarithm:"Logarithm",text_option_equalCountingSegment:"Equal counting segment",text_option_squareRootSegmentation:"Square root segmentation",text_label_thematicMapSegmentationMode:"Thematic map segmentation mode",text_label_thematicMapSegmentationParameters:"Thematic map segmentation parameters",text_option_greenOrangePurpleGradient:"Green orange purple gradient",text_option_greenOrangeRedGradient:"Green orange red gradient",text_option_rainbowGradient:"Rainbow gradient",text_option_spectralGradient:"Spectral gradient",text_option_terrainGradient:"Terrain gradient",text_label_thematicMapColorGradientMode:"Thematic map color gradient mode",text_label_resultLayerName:"Result layer name",text_chooseFile:"Open File",text_isoline:"Isoline",text_extractDiscreteValue:"Extract discrete value generation curve",text_buffer:"Buffer",text_specifyTheDistance:"Specify the distance to create the surrounding area",text_label_analysisLayer:"Analysis layer",text_label_extractField:"Extract field",text_label_extractedValue:"Extracted value",text_label_distanceAttenuation:"Distance attenuation",text_label_gridSize:"gridSize",text_label_bufferRadius:"Buffer radius",text_label_defaultkilometers:"Default 10 kilometers",text_label_kilometer:"kilometer",text_label_unit:"unit",text_retainOriginal:"Retain original object field",text_mergeBuffer:"Merge buffer",text_label_color:"Color",text_label_buffer:"[Buffer]",text_label_isolines:"[Isolines]",text_label_queryRangeTips:"The default is the full range of input data. Example: -74.050, 40.650, -73.850, 40.850",text_label_queryModel:"Query mode",text_label_IDArrayOfFeatures:"ID array of features",text_label_maxFeatures:"The maximum number of features that can be returned",text_label_bufferDistance:"Buffer distance",text_label_queryRange1:"Query range",text_label_spatialQueryMode:"Spatial query mode",text_label_featureFilter:"Feature filter",text_label_geometricObject:"Geometric object",text_label_queryMode:"Query mode",text_label_searchTips:"Search for city locations or layer features",text_label_chooseSearchLayers:"Select a query layer",text_loadSearchCriteria:"Load search criteria",text_saveSearchCriteria:"Save search criteria",btn_analyze:"Analyze",btn_analyzing:"Analyzing",btn_emptyTheAnalysisLayer:"Empty the analysis layer",btn_cancelAnalysis:"Cancel",btn_query:"Query",btn_querying:"Querying",btn_emptyTheRresultLayer:"Clear all result layers","msg_dataReturnedIsEmpty.":"The request is successful and the data returned by the query is empty.",msg_dataFlowServiceHasBeenSubscribed:"The data stream service has been subscribed to.",msg_inputDataFlowUrlFirst:"Please enter the data stream service address first.",msg_datasetOrMethodUnsupport:"This dataset does not support this analysis type. Please reselect the dataset.",msg_selectDataset:"Please select a data set!",msg_setTheWeightField:"Please set the weight field!",msg_theFieldNotSupportAnalysis:"The field you currently select does not support analysis!",msg_resultIsEmpty:"The result of the analysis is empty!",msg_openFileFail:"Failed to open file!",msg_fileTypeUnsupported:"File format is not supported!",msg_fileSizeExceeded:"File size exceeded! The file size should not exceed 10M!",msg_dataInWrongGeoJSONFormat:"Wrong data format! Non standard GEOJSON format data!",msg_dataInWrongFormat:"Wrong data format! Non standard EXCEL, CSV or GEOJSON format data!",msg_searchKeywords:"Search keywords cannot be empty. Please enter your search criteria.",msg_searchGeocodeField:"Did not match the address matching service data!",msg_cityGeocodeField:"The address matching service of the current city is not configured.",msg_getFeatureField:"No related vector features found!",msg_dataflowservicesubscribed:"The data stream service has been subscribed to.",msg_subscribesucceeded:"The data stream service subscription was successful.",msg_crsunsupport:"Does not support the coordinate system of the current map",msg_tilematrixsetunsupport:"Incoming TileMatrixSet is not supported",msg_jsonResolveFiled:"JSON format parsing failure!",msg_requestContentFiled:"Failed to request data through iportal!",msg_getdatafailed:"Failed to get data!"};
  1223. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1224. * This program are made available under the terms of the Apache License, Version 2.0
  1225. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1226. t.en=n,i.SuperMap.Lang["en-US"]=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.zh=t.en=t.Lang=void 0;var i=r(110),n=r(437),a=r(436);t.Lang=i.Lang,
  1227. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1228. * This program are made available under the terms of the Apache License, Version 2.0
  1229. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1230. t.en=n.en,t.zh=a.zh},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.widgetsUtil=void 0;var i=r(71);t.widgetsUtil={getFileType:function(e){return/^.*\.(?:xls|xlsx)$/i.test(e)?i.FileTypes.EXCEL:/^.*\.(?:csv)$/i.test(e)?i.FileTypes.CSV:/^.*\.(?:geojson|json)$/i.test(e)?i.FileTypes.GEOJSON:null}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileReaderUtil=t.widgetsUtil=void 0;var i=r(439),n=r(189);
  1231. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1232. * This program are made available under the terms of the Apache License, Version 2.0
  1233. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1234. t.widgetsUtil=i.widgetsUtil,t.FileReaderUtil=n.FileReaderUtil},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PaginationContainer=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(35);
  1235. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1236. * This program are made available under the terms of the Apache License, Version 2.0
  1237. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1238. var o=t.PaginationContainer=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e=e||{};var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.currentPage=0,r.pageNumberLis=[],r.currentPageNumberLis=[],r.linkageEvent=null,e.contents=e.contents?e.contents:null,e.pageCounts=e.pageCounts?e.pageCounts:0,r._initView(e.contents,e.pageCounts),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.TemplateBase),i(t,[{key:"setLinkageEvent",value:function(e){this.linkageEvent=e}},{key:"_initView",value:function(e,t){var r=document.createElement("div");r.setAttribute("class","widget-pagination");var i=document.createElement("div");i.setAttribute("class","widget-pagination__content"),r.appendChild(i),this.content=i;var n=document.createElement("ul");n.setAttribute("class","widget-pagination__link"),n.onclick=this._changePageEvent.bind(this),r.appendChild(n),this._createLink(n),this.link=n,e&&this.setContent(e),0!==t&&this.setPageLink(t),this.rootContainer=r}},{key:"setContent",value:function(e){this.clearContent(),this.appendContent(e)}},{key:"appendContent",value:function(e){this.content.appendChild(e)}},{key:"clearContent",value:function(){for(var e=this.content.children.length-1;e>=0;e--)this.content.removeChild(this.content.children[e])}},{key:"setPageLink",value:function(e){this.pageNumberLis=[],this.currentPageNumberLis=[],this.clearPageLink(),this._createPageLi(e),this._appendPageLink()}},{key:"_createPageLi",value:function(e){for(var t=0;t<e;t++){var r=document.createElement("li");r.innerHTML=t+1,this.pageNumberLis.push(r)}if(this.pageNumberLis[0].setAttribute("class","active"),this.currentPage=1,e<5)this.currentPageNumberLis=this.pageNumberLis;else for(var i=0;i<5;i++)this.currentPageNumberLis.push(this.pageNumberLis[i])}},{key:"_appendPageLink",value:function(){for(var e=0;e<this.currentPageNumberLis.length;e++)this.link.insertBefore(this.currentPageNumberLis[e],this.link.childNodes[this.link.children.length-2]);for(var t=0;t<this.currentPageNumberLis.length;t++)this.currentPageNumberLis[t].setAttribute("class",""),Number(this.currentPageNumberLis[t].innerHTML)===this.currentPage&&this.currentPageNumberLis[t].setAttribute("class","active");this._changeDisableState(),this.linkageEvent&&this.linkageEvent(this.currentPage)}},{key:"clearPageLink",value:function(){for(var e=this.link.children.length-3;e>1;e--)this.link.removeChild(this.link.children[e])}},{key:"_createLink",value:function(e){for(var t=0;t<4;t++){var r=document.createElement("li");r.setAttribute("class","disable");var i=document.createElement("span");r.appendChild(i),0===t?(i.id="first",i.setAttribute("class","supermapol-icons-first")):1===t?(i.id="prev",i.setAttribute("class","supermapol-icons-prev")):2===t?(i.id="next",i.setAttribute("class","supermapol-icons-next")):3===t&&(i.id="last",i.setAttribute("class","supermapol-icons-last")),e.appendChild(r)}}},{key:"_changePageEvent",value:function(e){var t=e.target;if("disable"!==t.parentElement.classList[0]){var r=void 0;if(t.id)r=t.id;else{if(!Number(t.innerHTML))return;r=Number(t.innerHTML)}this._prePageNum(r),this.clearPageLink(),this._appendPageLink()}}},{key:"_changeDisableState",value:function(){this.link.children[0].setAttribute("class",""),this.link.children[1].setAttribute("class",""),this.link.children[this.link.children.length-1].setAttribute("class",""),this.link.children[this.link.children.length-2].setAttribute("class",""),1===this.currentPage&&(this.link.children[0].setAttribute("class","disable"),this.link.children[1].setAttribute("class","disable")),this.currentPage===this.pageNumberLis.length&&(this.link.children[this.link.children.length-1].setAttribute("class","disable"),this.link.children[this.link.children.length-2].setAttribute("class","disable"))}},{key:"_prePageNum",value:function(e){var t=[];if(this.currentPage="first"===e?1:"last"===e?this.pageNumberLis.length:"prev"===e?this.currentPage-1:"next"===e?this.currentPage+1:e,this.pageNumberLis.length<=5)for(var r=0;r<this.pageNumberLis.length;r++)t.push(this.pageNumberLis[r]);else if(this.currentPage<=3)for(var i=0;i<5;i++)t.push(this.pageNumberLis[i]);else if(this.currentPage>=this.pageNumberLis.length-3)for(var n=this.pageNumberLis.length-5;n<this.pageNumberLis.length;n++)t.push(this.pageNumberLis[n]);else for(var a=this.currentPage-3;a<=this.currentPage+1;a++)t.push(this.pageNumberLis[a]);t.length>0&&(this.currentPageNumberLis=t)}}]),t}();n.SuperMap.Widgets.PaginationContainer=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.NavTabsPage=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(35);
  1239. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1240. * This program are made available under the terms of the Apache License, Version 2.0
  1241. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1242. var o=t.NavTabsPage=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.navTabsTitle=null,r.navTabsContent=null,e.tabs=e.tabs?e.tabs:[],r._initView(e.tabs),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.TemplateBase),i(t,[{key:"_initView",value:function(e){var t=document.createElement("div");t.setAttribute("class","widget-navtabspage");var r=document.createElement("span");r.setAttribute("class","supermapol-icons-close"),r.onclick=this.closeView.bind(this),t.appendChild(r);var i=document.createElement("div");this.navTabsTitle=i,i.setAttribute("class","widget-navtabspage__title"),t.appendChild(i);var n=document.createElement("div");this.navTabsContent=n,n.setAttribute("class","widget-navtabspage__content"),t.appendChild(n),e.length>0&&this.appendTabs(e),this.rootContainer=t}},{key:"setTabs",value:function(e){this.removeAllTabs(),this.appendTabs(e)}},{key:"appendTabs",value:function(e){for(var t=0;t<e.length;t++){var r=document.createElement("span");r.index=t,r.appendChild(document.createTextNode(e[t].title)),r.onclick=this._changeTabsPage.bind(this);var i=e[t].content;i.index=t,i.hidden=!0,this.navTabsTitle.appendChild(r),this.navTabsContent.appendChild(i)}this.navTabsTitle.firstChild.setAttribute("class","widget-navtabspage__tabs--select"),this.navTabsContent.firstChild.hidden=!1}},{key:"removeTab",value:function(e){this.navTabsTitle.removeChild(this.navTabsTitle.children[e]),this.navTabsContent.removeChild(this.navTabsContent.children[e])}},{key:"removeAllTabs",value:function(){for(var e=this.navTabsTitle.children.length;e>0;e--)this.navTabsTitle.removeChild(this.navTabsTitle.children[e]),this.navTabsContent.removeChild(this.navTabsContent.children[e])}},{key:"_changeTabsPage",value:function(e){for(var t=e.target.index,r=0;r<this.navTabsTitle.children.length;r++)this.navTabsTitle.children[r].setAttribute("class",""),this.navTabsContent.children[r].hidden=!0,r===t&&(this.navTabsTitle.children[r].setAttribute("class","widget-navtabspage__tabs--select"),this.navTabsContent.children[r].hidden=!1)}}]),t}();n.SuperMap.Widgets.NavTabsPage=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CityTabsPage=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(187),o=r(1);
  1243. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1244. * This program are made available under the terms of the Apache License, Version 2.0
  1245. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1246. var s=t.CityTabsPage=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.rootContainer.classList.add("widget-citytabpage--noneBoxShadow"),r.config=e.config,o.Util.isArray(r.config)?(r.header.hidden=!0,r._createCityItem("城市",r.config),r.content.style.border="none"):(r._createTabs(),r.header.onclick=function(e){for(var t=0;t<r.header.children.length;t++)r.header.children[t].setAttribute("class","");e.target.setAttribute("class","on"),r._createCityContent(e.target.innerHTML)}),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.IndexTabsPageContainer),i(t,[{key:"_createTabs",value:function(){if(o.Util.isArray(this.config))for(var e=0;e<this.config.length;e++){var t="";for(var r in this.config[e])t+=r;var i=document.createElement("li");i.innerHTML=t,this.header.appendChild(i)}else for(var n in this.config){var a=document.createElement("li");a.innerHTML=n,this.header.appendChild(a)}this.header.firstChild.setAttribute("class","on"),this._createCityContent(this.header.firstChild.innerHTML)}},{key:"_createCityContent",value:function(e){for(var t=this.content.children.length;t>0;t--)this.content.removeChild(this.content.children[t-1]);var r=this.config[e];for(var i in r)this._createCityItem(i,r[i])}},{key:"_createCityItem",value:function(e,t){var r=document.createElement("div"),i=document.createElement("div");i.setAttribute("class","widget-citytabpag__py-key"),i.innerHTML=e,r.appendChild(i);var n=document.createElement("div");n.setAttribute("class","widget-citytabpag__content");for(var a=0;a<t.length;a++){var o=document.createElement("span");o.innerHTML=t[a],n.appendChild(o)}"HOT"===e&&(n.style.width="428px"),r.appendChild(n),this.content.appendChild(r)}}]),t}();n.SuperMap.Widgets.CityTabsPage=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AttributesPopContainer=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(188);
  1247. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1248. * This program are made available under the terms of the Apache License, Version 2.0
  1249. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1250. var o=t.AttributesPopContainer=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),e.title=e.title?e.title:"属性";var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.rootContainer.firstChild.hidden=!0,e.attributes=e.attributes?e.attributes:[],r._createAttributesTable(e.attributes),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.PopContainer),i(t,[{key:"_createAttributesTable",value:function(e){var t=document.createElement("table");t.setAttribute("class","widget-popcontainer__content__table");var r=document.createElement("tbody"),i=!0;for(var n in e){var a=document.createElement("tr");i&&a.setAttribute("class","widget-popcontainer__content__td--color");var o=document.createElement("td"),s=document.createElement("Span");s.innerHTML=n,o.appendChild(s);var l=document.createElement("td");l.innerHTML=e[n],a.appendChild(o),a.appendChild(l),r.appendChild(a),i=!i}t.appendChild(r),this.appendContent(t)}}]),t}();n.SuperMap.Widgets.AttributesPopContainer=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DropDownBox=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(35);
  1251. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1252. * This program are made available under the terms of the Apache License, Version 2.0
  1253. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1254. var o=t.DropDownBox=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._initView(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.TemplateBase),i(t,[{key:"_initView",value:function(e){var t=document.createElement("div");t.className="widget-dropdownbox--container";var r=document.createElement("div");r.setAttribute("tabindex","1"),r.className="widget-dropdownbox",t.appendChild(r);var i=document.createElement("div");r.appendChild(i),this._createDropDownOption(e[0],i);var n=document.createElement("div");n.className="widget-dropdownbox__triangle-btn",r.appendChild(n);var a=document.createElement("div");a.className="widget-triangle-down-img",n.appendChild(a);var o={parentEle:r,dropDownContent:["widget-dropdownbox__content widget-dropdownbox__content--chart","dropDownContent"],scrollareaContent:"widget-selecttool__scrollarea__content",optionsArr:e,triangleBtn:a,dropDownTopContainer:i};this._createDropDownBox(o),this.rootContainer=t}},{key:"_createDropDownBox",value:function(e){var t=e.parentEle,r=e.dropDownTopContainer,i=document.createElement("div");i.className=e.dropDownContent[0],t.appendChild(i);var n=document.createElement("div");n.className=e.scrollareaContent,i.appendChild(n);for(var a=e.optionsArr,o=0;o<a.length;o++)this._createDropDownOption(a[o],n);var s=e.triangleBtn;this._dropDownClickEvent(t,i,s),this._eleOnblur(t,i,s);for(var l=n.children,u=function(e){l[e].onclick=function(){r.innerHTML=l[e].outerHTML}},c=0;c<l.length;c++)u(c)}},{key:"_createDropDownOption",value:function(e,t){var r=document.createElement("div");r.className="widget-dropdownbox__item";var i=e;i.dataValue&&r.setAttribute("data-value",i.dataValue),t.appendChild(r);var n=document.createElement("div");n.className="widget-dropdownbox__item__img",r.appendChild(n);var a=document.createElement("div");i.icon.className&&(a.className=i.icon.className),i.icon.background&&(a.style.background=i.icon.background),n.appendChild(a);var o=document.createElement("div");o.className="widget-dropdownbox__item__title",o.title=i.title,o.innerHTML=i.title,r.appendChild(o);var s=document.createElement("div");s.className="widget-dropdownbox__item__remark",s.title=i.remark,s.innerHTML=i.remark,r.appendChild(s)}},{key:"_dropDownClickEvent",value:function(e,t,r){e.onclick=function(e){"block"===t.style.display?(t.style.display="none",r.className="widget-triangle-down-img"):(t.style.display="block",r.className="triangle-up-img"),e.preventDefault(),e.stopPropagation()},e.onmousedown=function(e){e.target!==this&&(this.focus(),e.preventDefault(),e.stopPropagation())}}},{key:"_eleOnblur",value:function(e,t,r){e.onblur=function(){t.style.display="none",r.className="widget-triangle-down-img"}}},{key:"_createElement",value:function(e,t,r){var i=document.createElement(e||"div");return t&&(i.className=t),r&&r.appendChild(i),i}}]),t}();n.SuperMap.Widgets.DropDownBox=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Select=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(35);
  1255. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1256. * This program are made available under the terms of the Apache License, Version 2.0
  1257. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1258. var o=t.Select=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r._initView(e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.TemplateBase),i(t,[{key:"_initView",value:function(e){var t=this._createElement("div","widget-selecttool");e.labelName&&(this._createElement("label","widget-selecttool__lable--describe",t).innerHTML=e.labelName);var r=this._createElement("div","widget-selecttool--chart",t);r.setAttribute("tabindex","1");var i=this._createElement("div","widget-selecttool__name",r);i.title=e.optionsArr[0],i.innerHTML=e.optionsArr[0];var n=this._createElement("div","widget-selecttool__trianglebtn--chart",r),a=this._createElement("div","widget-triangle-down-img",n),o=this._createElement("div","widget-selecttool__content",r),s=this._createElement("div","widget-selecttool__content--chart",o),l=this._createElement("div","widget-selecttool__scrollarea__content",s);l.setAttribute("tabindex","1"),this.createOptions(l,e.optionsArr),this.optionClickEvent(l,i,e.optionsClickCb),this._selectClickEvent(r,o,a),this.rootContainer=t}},{key:"createOptions",value:function(e,t){for(var r in t){var i=this._createElement("div","widget-selecttool__option",e);i.title=t[r],i.innerHTML=t[r]}}},{key:"_selectClickEvent",value:function(e,t,r){e.onclick=function(e){"block"===t.style.display?(t.style.display="none",r.className="widget-triangle-down-img"):(t.style.display="block",r.className="triangle-up-img"),e.preventDefault(),e.stopPropagation()},e.onmousedown=function(e){e.target!==this&&(this.focus(),e.preventDefault(),e.stopPropagation())},e.onblur=function(){t.style.display="none",r.className="widget-triangle-down-img"}}},{key:"_createElement",value:function(e,t,r){var i=document.createElement(e||"div");return t&&(i.className=t),r&&r.appendChild(i),i}},{key:"optionClickEvent",value:function(e,t,r){for(var i=function(i){var n=e.children[i];n.onclick=function(){t.innerHTML=n.innerHTML,t.title=n.title,n.getAttribute("data-value")&&t.setAttribute("data-value",n.getAttribute("data-value")),r&&r(n)}},n=0;n<e.children.length;n++)i(n)}}]),t}();n.SuperMap.Widgets.Select=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CommonContainer=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(35);
  1259. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1260. * This program are made available under the terms of the Apache License, Version 2.0
  1261. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1262. var o=t.CommonContainer=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),i=e.title?e.title:"";return r._initView(i),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.TemplateBase),i(t,[{key:"_initView",value:function(e){var t=document.createElement("div");t.setAttribute("class","widget-container");var r=document.createElement("div");r.setAttribute("class","widget-title");var i=document.createElement("div");i.innerHTML=e,r.appendChild(i),t.appendChild(r);var n=document.createElement("div");return n.setAttribute("class","widget-content"),t.appendChild(n),this.content=n,this.rootContainer=t,t}},{key:"getContentElement",value:function(){return this.content}},{key:"appendContent",value:function(e){this.content.appendChild(e)}}]),t}();n.SuperMap.Widgets.CommonContainer=o},function(e,t){e.exports=function(){try{return XLSX}catch(e){return{}}}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChartModel=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(17),o=r(126),s=r(16),l=r(274),u=r(118),c=r(240),p=r(4),h=r(110),f=r(189),d=r(48);
  1263. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1264. * This program are made available under the terms of the Apache License, Version 2.0
  1265. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.ChartModel=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.datasets=t,this.EVENT_TYPES=["getdatafailed"],this.events=new d.Events(this,null,this.EVENT_TYPES)}return i(e,[{key:"getDatasetInfo",value:function(e){var t=this.datasets.url,r=this;a.FetchRequest.get(t).then(function(e){return e.json()}).then(function(t){if(t.datasetInfo){var i=t.datasetInfo;r.datasetsInfo={dataSourceName:i.dataSourceName,datasetName:i.name,mapName:t.name},e({result:r.datasetsInfo})}}).catch(function(e){console.log(e),r._fireFailedEvent(e)})}},{key:"getDataFeatures",value:function(e,t){var r,i,a=e.result,o={name:a.datasetName+"@"+a.dataSourceName};Object.assign(o,this.datasets.queryInfo),r=new n.SuperMap.FilterParameter(o),i=new n.SuperMap.GetFeaturesBySQLParameters({queryParameter:r,datasetNames:[a.dataSourceName+":"+a.datasetName],fromIndex:0,toIndex:1e5}),new n.SuperMap.GetFeaturesBySQLService(a.dataUrl,{eventListeners:{processCompleted:t,processFailed:function(){}}}).processAsync(i)}},{key:"getLayerFeatures",value:function(e,t){var r,i,a=e.result,o={name:a.mapName};Object.assign(o,this.datasets.queryInfo),r=new n.SuperMap.FilterParameter(o),i=new n.SuperMap.QueryBySQLParameters({queryParams:[r],expectCount:1e5}),new n.SuperMap.QueryBySQLService(a.dataUrl,{eventListeners:{processCompleted:t,processFailed:function(){}}}).processAsync(i)}},{key:"getDataInfoByIptl",value:function(e){this.getServiceInfo(this.datasets.url,e)}},{key:"getServiceInfo",value:function(e,t){var r=this;a.FetchRequest.get(e,null,{withCredentials:this.datasets.withCredentials}).then(function(e){return e.json()}).then(function(i){if(!1!==i.succeed)if(i.dataItemServices&&i.dataItemServices.length>0){var n=void 0;i.dataItemServices.forEach(function(i){if("RESTDATA"===i.serviceType&&"PUBLISHED"===i.serviceStatus)n=i;else{if("RESTMAP"!==i.serviceType||"PUBLISHED"!==i.serviceStatus)return void r.getDatafromContent(e,t);n=i}}),n&&r.getDatafromRest(n.serviceType,n.address,t)}else r.getDatafromContent(e,t);else r._fireFailedEvent(i)}).catch(function(e){console.log(e),r._fireFailedEvent(e)})}},{key:"getDatafromContent",value:function(e,t){var r=this,i={result:{}},n=this;e+="/content.json?pageSize=9999999&currentPage=1",a.FetchRequest.get(e,null,{withCredentials:this.datasets.withCredentials}).then(function(e){return e.json()}).then(function(e){if(!1!==e.succeed){if(e.type){if("JSON"===e.type||"GEOJSON"===e.type){if(e.content=JSON.parse(e.content.trim()),!e.content.features)return void console.log(h.Lang.i18n("msg_jsonResolveFiled"));var a=r._formatGeoJSON(e.content);i.result.features={type:e.content.type,features:a}}else if("EXCEL"===e.type||"CSV"===e.type){var o=r._excelData2Feature(e.content);i.result.features={type:"FeatureCollection",features:o}}t(i,"content")}}else n._fireFailedEvent(e)},this).catch(function(e){console.log(e),n._fireFailedEvent(e)})}},{key:"getDatafromRest",value:function(e,t,r){var i=this,n=this.datasets.withCredentials;if("RESTDATA"===e){var o=t+"/data/datasources",s=void 0,l=void 0;a.FetchRequest.get(o,null,{withCredentials:n}).then(function(e){return e.json()}).then(function(e){s=e.datasourceNames[0],o=t+"/data/datasources/"+s+"/datasets",a.FetchRequest.get(o,null,{withCredentials:n}).then(function(e){return e.json()}).then(function(e){return l=e.datasetNames[0],i.getDatafromRestData(t+"/data",[s+":"+l],r),[s+":"+l]}).catch(function(e){i._fireFailedEvent(e)})}).catch(function(e){i._fireFailedEvent(e)})}else{var u=t+"/maps",c=void 0,p=void 0,h=void 0;a.FetchRequest.get(u,null,{withCredentials:n}).then(function(e){return e.json()}).then(function(e){c=e[0].name,h=e[0].path,u=u=t+"/maps/"+c+"/layers",a.FetchRequest.get(u,null,{withCredentials:n}).then(function(e){return e.json()}).then(function(e){return p=e[0].subLayers.layers[0].caption,i.getDatafromRestMap(p,h,r),p}).catch(function(e){i._fireFailedEvent(e)})}).catch(function(e){i._fireFailedEvent(e)})}}},{key:"getDatafromRestData",value:function(e,t,r){var i=this;this.datasets.queryInfo.attributeFilter=this.datasets.queryInfo.attributeFilter||"SmID>0",this._getFeatureBySQL(e,t,this.datasets.queryInfo,function(e){r(e,"RESTDATA")},function(e){console.log(e),i._fireFailedEvent(e)})}},{key:"getDatafromRestMap",value:function(e,t,r){var i=this;this.datasets.queryInfo.attributeFilter=this.datasets.queryInfo.attributeFilter||"smid=1",this._queryFeatureBySQL(t,e,this.datasets.queryInfo,null,null,function(e){r(e,"RESTMAP")},function(e){console.log(e),i._fireFailedEvent(e)})}},{key:"_getFeatureBySQL",value:function(e,t,r,i,n){var a,u,c={name:t.join().replace(":","@")};Object.assign(c,r),a=new s.FilterParameter(c),u=new o.GetFeaturesBySQLParameters({queryParameter:a,datasetNames:t,fromIndex:0,toIndex:1e5,returnContent:!0});var p={eventListeners:{processCompleted:function(e){i&&i(e)},processFailed:function(e){n&&n(e)}}};new l.GetFeaturesBySQLService(e,p).processAsync(u)}},{key:"_queryFeatureBySQL",value:function(e,t,r,i,n,a,o,l,c,h){var f,d,y={name:t};Object.assign(y,r),f=new s.FilterParameter(y),i&&(f.fields=i);var v={queryParams:[f]};h&&(v.queryOption=p.QueryOption.ATTRIBUTE),l&&(v.startRecord=l),c&&(v.expectCount=c),n&&(v.prjCoordSys={epsgCode:n}),d=new u.QueryBySQLParameters(v),this._queryBySQL(e,d,function(e){"processCompleted"===e.type?a(e):o(e)})}},{key:"_queryBySQL",value:function(e,t,r,i){new c.QueryBySQLService(e,{eventListeners:{scope:this,processCompleted:r,processFailed:r},format:this._processFormat(i)}).processAsync(t)}},{key:"_processFormat",value:function(e){return e||p.DataFormat.GEOJSON}},{key:"_formatGeoJSON",value:function(e){var t=e.features;return t.forEach(function(e,t){e.properties.index=t}),t}},{key:"_excelData2Feature",value:function(e){for(var t=e.colTitles,r=-1,i=-1,n=0,a=t.length;n<a;n++)f.FileReaderUtil.isXField(t[n])&&(r=n),f.FileReaderUtil.isYField(t[n])&&(i=n);for(var o=[],s=0,l=e.rows.length;s<l;s++){var u=e.rows[s],c=Number(u[r]),p=Number(u[i]),h={};for(var d in e.colTitles){h[e.colTitles[d]]=e.rows[s][d]}h.index=s+"";var y={type:"Feature",geometry:{type:"Point",coordinates:[c,p]},properties:h};o.push(y)}return o}},{key:"_fireFailedEvent",value:function(e){var t=e?{error:e,message:h.Lang.i18n("msg_getdatafailed")}:{message:h.Lang.i18n("msg_getdatafailed")};this.events.triggerEvent("getdatafailed",t)}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChartView=void 0;var i,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=r(0),o=r(191),s=(i=o)&&i.__esModule?i:{default:i},l=r(190),u=r(192);
  1266. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1267. * This program are made available under the terms of the Apache License, Version 2.0
  1268. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var c=t.ChartView=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.domID=t,this.chartType=r.type||"bar",r.datasets.type=r.datasets.type||"iServer",r.datasets.withCredentials=r.datasets.withCredentials||!1,this.viewModel=new l.ChartViewModel(r),this._fillDataToView()}return n(e,[{key:"onAdd",value:function(e){this.addChart=e}},{key:"_fillDataToView",value:function(){var e=new u.MessageBox;this.viewModel.getDatasetInfo(this._createChart.bind(this)),this.viewModel.events.on({getdatafailed:function(t){e.showView(t.message)}})}},{key:"getStyle",value:function(){return this.viewModel.getStyle()}},{key:"getFeatures",value:function(){return this.viewModel.getFeatures()}},{key:"setStyle",value:function(e){var t=this.viewModel.setStyle(e);this._updateChart(t)}},{key:"changeType",value:function(e){if(this.chartType!==e){this.chartType=e;var t=this.viewModel.changeType(e);this._updateChart(t)}}},{key:"updateData",value:function(e,t){var r=this;this.viewModel.updateData(e,t,function(e){r._updateChart(e),r.addChart&&r.addChart()})}},{key:"_createChart",value:function(e){this.echart=s.default.init(document.getElementById(this.domID),null,{renderer:"canvas"});var t=this.viewModel._createChartOptions(e);this.echart.setOption(t),this.addChart&&this.addChart()}},{key:"_updateChart",value:function(e){this.echart&&(this.echart.clear(),this.echart.setOption(e))}}]),e}();a.SuperMap.Widgets.Chart=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileModel=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(71);
  1269. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1270. * This program are made available under the terms of the Apache License, Version 2.0
  1271. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/t.FileModel=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.FileTypes=n.FileTypes,this.FileConfig=n.FileConfig,this.loadFileObject=t&&t.loadFileObject?t.loadFileObject:[]}return i(e,[{key:"set",value:function(e,t){this[e]=t}},{key:"get",value:function(e){return this[e]}}]),e}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FileReaderUtil=t.widgetsUtil=t.PaginationContainer=t.NavTabsPage=t.CityTabsPage=t.IndexTabsPageContainer=t.PopContainer=t.AttributesPopContainer=t.DropDownBox=t.Select=t.CommonContainer=t.ChartViewModel=t.ChartView=t.MessageBox=t.FileModel=t.FileConfig=t.FileTypes=void 0;var i=r(71),n=r(451),a=r(192),o=r(450),s=r(190),l=r(447),u=r(446),c=r(445),p=r(444),h=r(188),f=r(187),d=r(443),y=r(442),v=r(441),m=r(440);t.FileTypes=i.FileTypes,t.FileConfig=i.FileConfig,
  1272. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1273. * This program are made available under the terms of the Apache License, Version 2.0
  1274. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1275. t.FileModel=n.FileModel,t.MessageBox=a.MessageBox,t.ChartView=o.ChartView,t.ChartViewModel=s.ChartViewModel,t.CommonContainer=l.CommonContainer,t.Select=u.Select,t.DropDownBox=c.DropDownBox,t.AttributesPopContainer=p.AttributesPopContainer,t.PopContainer=h.PopContainer,t.IndexTabsPageContainer=f.IndexTabsPageContainer,t.CityTabsPage=d.CityTabsPage,t.NavTabsPage=y.NavTabsPage,t.PaginationContainer=v.PaginationContainer,t.widgetsUtil=m.widgetsUtil,t.FileReaderUtil=m.FileReaderUtil},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmicStar=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(13),a=r(12);
  1276. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1277. * This program are made available under the terms of the Apache License, Version 2.0
  1278. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1279. t.SmicStar=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="smicstar",r.refOriginalPosition&&2===r.refOriginalPosition.length||(r.refOriginalPosition=[0,0]),r.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicStar",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Shape),i(t,[{key:"destroy",value:function(){this.type=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"buildPath",value:function(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition,i=t.n;if(i&&!(i<2)){var n=a.SUtil.Util_math.sin,o=a.SUtil.Util_math.cos,s=Math.PI,l=t.x+r[0],u=t.y+r[1],c=t.r,p=t.r0;null==p&&(p=i>4?c*o(2*s/i)/o(s/i):c/3);var h=s/i,f=-s/2,d=l+c*o(f),y=u+c*n(f);f+=h;var v=t.pointList=[];v.push([d,y]);for(var m,g=0,b=2*i-1;g<b;g++)m=g%2==0?p:c,v.push([l+m*o(f),u+m*n(f)]),f+=h;v.push([d,y]),e.moveTo(v[0][0],v[0][1]);for(var S=0;S<v.length;S++)e.lineTo(v[S][0],v[S][1]);e.closePath()}}},{key:"getRect",value:function(e){if(e.__rect)return e.__rect;this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t,r=this.refOriginalPosition;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x+r[0]-e.r-t/2),y:Math.round(e.y+r[1]-e.r-t/2),width:2*e.r+t,height:2*e.r+t},e.__rect}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmicRing=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(13);
  1280. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1281. * This program are made available under the terms of the Apache License, Version 2.0
  1282. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1283. t.SmicRing=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="smicring",r.refOriginalPosition&&2===r.refOriginalPosition.length||(r.refOriginalPosition=[0,0]),r.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicRing",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Shape),i(t,[{key:"destroy",value:function(){this.type=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"buildPath",value:function(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition;e.arc(t.x+r[0],t.y+r[1],t.r,0,2*Math.PI,!1),e.moveTo(t.x+r[0]+t.r0,t.y+r[1]),e.arc(t.x+r[0],t.y+r[1],t.r0,0,2*Math.PI,!0)}},{key:"getRect",value:function(e){if(e.__rect)return e.__rect;this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t,r=this.refOriginalPosition;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x+r[0]-e.r-t/2),y:Math.round(e.y+r[1]-e.r-t/2),width:2*e.r+t,height:2*e.r+t},e.__rect}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmicIsogon=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(13),a=r(12);
  1284. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1285. * This program are made available under the terms of the Apache License, Version 2.0
  1286. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1287. t.SmicIsogon=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="smicisogon",r.refOriginalPosition&&2===r.refOriginalPosition.length||(r.refOriginalPosition=[0,0]),r.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicIsogon",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Shape),i(t,[{key:"destroy",value:function(){this.type=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"buildPath",value:function(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition,i=a.SUtil.Util_math.sin,n=a.SUtil.Util_math.cos,o=Math.PI,s=t.n;if(s&&!(s<2)){var l=t.x+r[0],u=t.y+r[1],c=t.r,p=2*o/s,h=-o/2,f=l+c*n(h),d=u+c*i(h);h+=p;var y=t.pointList=[];y.push([f,d]);for(var v=0,m=s-1;v<m;v++)y.push([l+c*n(h),u+c*i(h)]),h+=p;y.push([f,d]),e.moveTo(y[0][0],y[0][1]);for(var g=0;g<y.length;g++)e.lineTo(y[g][0],y[g][1]);e.closePath()}}},{key:"getRect",value:function(e){if(e.__rect)return e.__rect;this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t,r=this.refOriginalPosition;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x+r[0]-e.r-t/2),y:Math.round(e.y+r[1]-e.r-t/2),width:2*e.r+t,height:2*e.r+t},e.__rect}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SmicEllipse=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(13);
  1288. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1289. * This program are made available under the terms of the Apache License, Version 2.0
  1290. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1291. t.SmicEllipse=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.type="smicellipse",r.refOriginalPosition&&2===r.refOriginalPosition.length||(r.refOriginalPosition=[0,0]),r.CLASS_NAME="SuperMap.LevelRenderer.Shape.SmicEllipse",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,n.Shape),i(t,[{key:"destroy",value:function(){this.type=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"buildPath",value:function(e,t){this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var r=this.refOriginalPosition,i=.5522848,n=t.x+r[0],a=t.y+r[1],o=t.a,s=t.b,l=o*i,u=s*i;e.moveTo(n-o,a),e.bezierCurveTo(n-o,a-u,n-l,a-s,n,a-s),e.bezierCurveTo(n+l,a-s,n+o,a-u,n+o,a),e.bezierCurveTo(n+o,a+u,n+l,a+s,n,a+s),e.bezierCurveTo(n-l,a+s,n-o,a+u,n-o,a),e.closePath()}},{key:"getRect",value:function(e){if(e.__rect)return e.__rect;this.refOriginalPosition&&2===this.refOriginalPosition.length||(this.refOriginalPosition=[0,0]);var t,r=this.refOriginalPosition;return t="stroke"==e.brushType||"fill"==e.brushType?e.lineWidth||1:0,e.__rect={x:Math.round(e.x+r[0]-e.a-t/2),y:Math.round(e.x+r[1]-e.b-t/2),width:2*e.a+t,height:2*e.b+t},e.__rect}}]),t}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LevelRenderer=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(200);
  1292. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1293. * This program are made available under the terms of the Apache License, Version 2.0
  1294. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.LevelRenderer=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),e._instances={},e.Tool={},this.version="2.0.4",this.CLASS_NAME="SuperMap.LevelRenderer"}return i(e,[{key:"destroy",value:function(){this.dispose(),this.version=null}},{key:"init",value:function(t){var r=new o.Render(a.Util.createUniqueID("LRenderer_"),t);return e._instances[r.id]=r,r}},{key:"dispose",value:function(t){if(t)t.dispose(),this.delInstance(t.id);else{for(var r in e._instances)e._instances[r].dispose();e._instances={}}return this}},{key:"getInstance",value:function(t){return e._instances[t]}},{key:"delInstance",value:function(t){return delete e._instances[t],this}}]),e}();n.SuperMap.LevelRenderer=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUtil=t.LevelRendererVector=t.Util=t.Transformable=t.Storage=t.SmicText=t.SmicStar=t.SmicSector=t.SmicRing=t.SmicRectangle=t.SmicPolygon=t.SmicPoint=t.SmicIsogon=t.SmicImage=t.SmicEllipse=t.SmicCircle=t.SmicBrokenLine=t.Shape=t.PaintLayer=t.Painter=t.Matrix=t.Math=t.Log=t.Http=t.Handler=t.Group=t.Eventful=t.LevelRendererEvent=t.Env=t.Easing=t.LevelRendererCurve=t.Config=t.ComputeBoundingBox=t.Color=t.Clip=t.Area=t.Animator=t.Animation=t.Render=t.LevelRenderer=void 0;var i=r(457),n=r(200),a=r(195),o=r(211),s=r(194),l=r(82),u=r(210),c=r(74),p=r(76),h=r(193),f=r(209),d=r(208),y=r(60),v=r(198),m=r(196),g=r(207),b=r(206),S=r(205),_=r(204),P=r(197),w=r(13),O=r(113),T=r(203),M=r(456),C=r(112),x=r(455),E=r(115),L=r(73),A=r(111),k=r(454),F=r(202),j=r(453),I=r(114),N=r(199),D=r(77),R=r(33),G=r(75),B=r(12);
  1295. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1296. * This program are made available under the terms of the Apache License, Version 2.0
  1297. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1298. t.LevelRenderer=i.LevelRenderer,t.Render=n.Render,t.Animation=a.Animation,t.Animator=a.Animator,t.Area=o.Area,t.Clip=s.Clip,t.Color=l.Color,t.ComputeBoundingBox=u.ComputeBoundingBox,t.Config=c.Config,t.LevelRendererCurve=p.Curve,t.Easing=h.Easing,t.Env=f.Env,t.LevelRendererEvent=d.Event,t.Eventful=y.Eventful,t.Group=v.Group,t.Handler=m.Handler,t.Http=g.Http,t.Log=b.Log,t.Math=S.Math,t.Matrix=_.Matrix,t.Painter=P.Painter,t.PaintLayer=P.PaintLayer,t.Shape=w.Shape,t.SmicBrokenLine=O.SmicBrokenLine,t.SmicCircle=T.SmicCircle,t.SmicEllipse=M.SmicEllipse,t.SmicImage=C.SmicImage,t.SmicIsogon=x.SmicIsogon,t.SmicPoint=E.SmicPoint,t.SmicPolygon=L.SmicPolygon,t.SmicRectangle=A.SmicRectangle,t.SmicRing=k.SmicRing,t.SmicSector=F.SmicSector,t.SmicStar=j.SmicStar,t.SmicText=I.SmicText,t.Storage=N.Storage,t.Transformable=D.Transformable,t.Util=R.Util,t.LevelRendererVector=G.Vector,t.SUtil=B.SUtil},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FeatureTheme=t.Sector=t.FeatureRectangle=t.FeaturePolygon=t.Point=t.FeatureLine=t.Label=t.Image=t.FeatureCircle=t.ShapeParameters=t.ShapeFactory=void 0;var i=r(27),n=r(26),a=r(116),o=r(212),s=r(117),l=r(80),u=r(81),c=r(79),p=r(213),h=r(78),f=r(72);t.ShapeFactory=i.ShapeFactory,
  1299. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1300. * This program are made available under the terms of the Apache License, Version 2.0
  1301. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1302. t.ShapeParameters=n.ShapeParameters,t.FeatureCircle=a.Circle,t.Image=o.Image,t.Label=s.Label,t.FeatureLine=l.Line,t.Point=u.Point,t.FeaturePolygon=c.Polygon,t.FeatureRectangle=p.Rectangle,t.Sector=h.Sector,t.FeatureTheme=f.Theme},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeVector=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(29),o=r(1),s=r(72),l=r(329),u=r(24),c=r(34),p=r(49),h=r(23),f=r(66),d=r(41),y=r(64),v=r(65),m=r(140),g=r(139),b=r(115),S=r(113),_=r(114),P=r(111),w=r(73),O=r(50);function T(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}
  1303. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1304. * This program are made available under the terms of the Apache License, Version 2.0
  1305. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1306. var M=t.ThemeVector=function(e){function t(e,r,i,n,s){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var b=T(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));if(!e.geometry)return T(b);if(!(e.geometry instanceof a.Geometry))return T(b);b.dataBounds=e.geometry.getBounds(),b.nodesClipPixel=2,b.isHoverAble=!0,b.isMultiHover=!0,b.isClickAble=!0,b.highlightStyle=null,b.shapeOptions={},b.style=i||{},b.CLASS_NAME="SuperMap.Feature.Theme.Vector",b.style=i||{},n&&o.Util.copyAttributesWithClip(b,n,["shapeOptions","dataBounds"]),s&&o.Util.copyAttributesWithClip(b.shapeOptions,s);var S=e.geometry;return b.lonlat=b.dataBounds.getCenterLonLat(),b.location=b.getLocalXY(b.lonlat),S instanceof d.LinearRing?b.lineToTF(S):S instanceof h.LineString?b.lineToTF(S):S instanceof m.Curve||(S instanceof p.MultiPoint?b.multiPointToTF(S):S instanceof f.MultiLineString?b.multiLineStringToTF(S):S instanceof v.MultiPolygon?b.multiPolygonToTF(S):S instanceof y.Polygon?b.polygonToTF(S):S instanceof c.Collection||(S instanceof u.Point?b.pointToTF(S):S instanceof l.Rectangle?b.rectangleToTF(S):S instanceof g.GeoText&&b.geoTextToTF(S))),b}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.Theme),i(t,[{key:"destroy",value:function(){this.style=null,this.dataBounds=null,this.nodesClipPixel=null,this.isHoverAble=null,this.isMultiHover=null,this.isClickAble=null,this.highlightStyle=null,this.shapeOptions=null,function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0}(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"lineToTF",value:function(e){for(var t=e.components,r=[],i=[],n=this.location,a=[],s=this.nodesClipPixel,l=0;l<t.length;l++){var u=t[l];if(i=[],r=this.getLocalXY(u),i[0]=r[0]-n[0],i[1]=r[1]-n[1],a.length>0){var c=a[a.length-1];if(Math.abs(c[0]-i[0])<=s&&Math.abs(c[1]-i[1])<=s)continue}a.push(i)}if(a.length<2)return null;var p=new Object;(p=o.Util.copyAttributesWithClip(p,this.style,["pointList"])).pointList=a;var h=new S.SmicBrokenLine({style:p,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(h.highlightStyle=this.highlightStyle),h.refOriginalPosition=this.location,h.refDataID=this.data.id,h.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&o.Util.copyAttributesWithClip(h,this.shapeOptions),this.shapes.push(h)}},{key:"multiPointToTF",value:function(e){for(var t=e.components,r=[],i=[],n=this.location,a=[],s=this.nodesClipPixel,l=0;l<t.length;l++){var u=t[l];if(i=[],r=this.getLocalXY(u),i[0]=r[0]-n[0],i[1]=r[1]-n[1],a.length>0){var c=a[a.length-1];if(Math.abs(c[0]-i[0])<=s&&Math.abs(c[1]-i[1])<=s)continue}a.push(i);var p=new Object;p.r=6,(p=o.Util.copyAttributesWithClip(p,this.style)).x=i[0],p.y=i[1];var h=new b.SmicPoint({style:p,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(h.highlightStyle=this.highlightStyle),h.refOriginalPosition=n,h.refDataID=this.data.id,h.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&o.Util.copyAttributesWithClip(h,this.shapeOptions),this.shapes.push(h)}}},{key:"multiLineStringToTF",value:function(e){for(var t=e.components,r=0;r<t.length;r++){var i=t[r];this.lineToTF(i)}}},{key:"multiPolygonToTF",value:function(e){for(var t=e.components,r=0;r<t.length;r++){var i=t[r];this.polygonToTF(i)}}},{key:"pointToTF",value:function(e){var t=this.location,r=this.getLocalXY(e),i=new Object;i.r=6,(i=o.Util.copyAttributesWithClip(i,this.style)).x=r[0]-t[0],i.y=r[1]-t[1];var n=new b.SmicPoint({style:i,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(n.highlightStyle=this.highlightStyle),n.refOriginalPosition=t,n.refDataID=this.data.id,n.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&o.Util.copyAttributesWithClip(n,this.shapeOptions),this.shapes.push(n)}},{key:"polygonToTF",value:function(e){for(var t=e.components,r=[],i=[],n=this.location,a=[],s=[],l=[],u=this.nodesClipPixel,c=0;c<t.length;c++){var p=t[c].components;if(0===c){a=[];for(var h=0;h<p.length;h++){if(i=[],r=this.getLocalXY(p[h]),i[0]=r[0]-n[0],i[1]=r[1]-n[1],a.length>0){var f=a[a.length-1];if(Math.abs(f[0]-i[0])<=u&&Math.abs(f[1]-i[1])<=u)continue}a.push(i)}}else{s=[];for(var d=0;d<p.length;d++){if(i=[],r=this.getLocalXY(p[d]),i[0]=r[0]-n[0],i[1]=r[1]-n[1],s.length>0){var y=s[s.length-1];if(Math.abs(y[0]-i[0])<=u&&Math.abs(y[1]-i[1])<=u)continue}s.push(i)}}s.length<2||l.push(s)}if(!(a.length<2)){var v={};(v=o.Util.copyAttributesWithClip(v,this.style,["pointList"])).pointList=a;var m=new w.SmicPolygon({style:v,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(m.highlightStyle=this.highlightStyle),m.refOriginalPosition=this.location,m.refDataID=this.data.id,m.isHoverByRefDataID=this.isMultiHover,l.length>0&&(m.holePolygonPointLists=l),this.shapeOptions&&o.Util.copyAttributesWithClip(m,this.shapeOptions),this.shapes.push(m)}}},{key:"rectangleToTF",value:function(e){var t=this.location,r=new O.LonLat(e.x,e.y),i=this.layer.map.getResolution(),n=this.getLocalXY(r),a=new Object;a.r=6,(a=o.Util.copyAttributesWithClip(a,this.style)).x=n[0]-t[0],a.y=n[1]-t[1]-2*e.width/i,a.width=e.width/i,a.height=e.height/i;var s=new P.SmicRectangle({style:a,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(s.highlightStyle=this.highlightStyle),s.refOriginalPosition=t,s.refDataID=this.data.id,s.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&o.Util.copyAttributesWithClip(s,this.shapeOptions),this.shapes.push(s)}},{key:"geoTextToTF",value:function(e){var t=this.location,r=this.getLocalXY(e),i=new Object;i.r=6,(i=o.Util.copyAttributesWithClip(i,this.style,["x","y","text"])).x=r[0]-t[0],i.y=r[1]-t[1],i.text=e.text;var n=new _.SmicText({style:i,clickable:this.isClickAble,hoverable:this.isHoverAble});this.highlightStyle&&(n.highlightStyle=this.highlightStyle),n.refOriginalPosition=t,n.refDataID=this.data.id,n.isHoverByRefDataID=this.isMultiHover,this.shapeOptions&&o.Util.copyAttributesWithClip(n,this.shapeOptions),this.shapes.push(n)}},{key:"updateAndAddShapes",value:function(){var e=this.getLocalXY(this.lonlat);this.location=e;for(var t=this.layer.renderer,r=0,i=this.shapes.length;r<i;r++){var n=this.shapes[r];n.refOriginalPosition=e,t.addShape(n)}}},{key:"getShapesCount",value:function(){return this.shapes.length}},{key:"getLocalXY",value:function(e){return this.layer.getLocalXY(e)}}]),t}();n.SuperMap.Feature.Theme.ThemeVector=M},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Ring=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(27),o=r(78),s=r(32);
  1307. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1308. * This program are made available under the terms of the Apache License, Version 2.0
  1309. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1310. var l=t.Ring=function(e){function t(e,r,i,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i,n,a));return o.CLASS_NAME="SuperMap.Feature.Theme.Ring",o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.Graph),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"assembleShapes",value:function(){if(this.initBaseParameter()){var e=[{fillColor:"#ff9277"},{fillColor:"#dddd00"},{fillColor:"#ffc877"},{fillColor:"#bbe3ff"},{fillColor:"#d5ffbb"},{fillColor:"#bbbbff"},{fillColor:"#ddb000"},{fillColor:"#b0dd00"},{fillColor:"#e2bbff"},{fillColor:"#ffbbe3"},{fillColor:"#ff7777"},{fillColor:"#ff9900"},{fillColor:"#83dd00"},{fillColor:"#77e3ff"},{fillColor:"#778fff"},{fillColor:"#c877ff"},{fillColor:"#ff77ab"},{fillColor:"#ff6600"},{fillColor:"#aa8800"},{fillColor:"#77c7ff"},{fillColor:"#ad77ff"},{fillColor:"#ff77ff"},{fillColor:"#dd0083"},{fillColor:"#777700"},{fillColor:"#00aa00"},{fillColor:"#0088aa"},{fillColor:"#8400dd"},{fillColor:"#aa0088"},{fillColor:"#dd0000"},{fillColor:"#772e00"}],t=this.setting;t.useBackground&&this.shapes.push(a.ShapeFactory.Background(this.shapeFactory,this.chartBox,t));var r=this.dataValues;if(!(r.length<1)){for(var i=this.DVBCodomain,n=0;n<r.length;n++)if(r[n]<i[0]||r[n]>i[1])return;for(var s=0,l=0;l<r.length;l++)s+=Math.abs(r[l]);this.DVBUnitValue=360/s;for(var u=this.DVBUnitValue,c=this.DVBCenterPoint,p=0,h=0,f=p,d=this.DVBHeight<this.DVBWidth?this.DVBHeight/2:this.DVBWidth/2,y=t.innerRingRadius>=0&&t.innerRingRadius<d,v=void 0!==t.innerRingRadius&&!isNaN(t.innerRingRadius)&&y?t.innerRingRadius:0,m=0;m<r.length;m++){var g=Math.abs(r[m]);h=0===m?p+g*u:m===g.length-1?f:p+g*u;var b=new o.Sector(c[0],c[1],d,p,h,v);if(void 0===t.sectorStyleByFields){var S=m%e.length;b.style=a.ShapeFactory.ShapeStyleTool(null,t.sectorStyle,e,null,S)}else b.style=a.ShapeFactory.ShapeStyleTool(null,t.sectorStyle,t.sectorStyleByFields,t.sectorStyleByCodomain,m,r[m]);b.highlightStyle=a.ShapeFactory.ShapeStyleTool(null,t.sectorHoverStyle),void 0!==t.sectorHoverAble&&(b.hoverable=t.sectorHoverAble),void 0!==t.sectorClickAble&&(b.clickable=t.sectorClickAble),b.refDataID=this.data.id,b.dataInfo={field:this.fields[m],value:r[m]},this.shapes.push(this.shapeFactory.createShape(b)),p=h}this.shapesConvertToRelativeCoordinate()}}}}]),t}();n.SuperMap.Feature.Theme.Ring=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Point=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(27),o=r(81),s=r(32);
  1311. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1312. * This program are made available under the terms of the Apache License, Version 2.0
  1313. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1314. var l=t.Point=function(e){function t(e,r,i,n,a,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i,n,a,o));return s.CLASS_NAME="SuperMap.Feature.Theme.Point",s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.Graph),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"assembleShapes",value:function(){var e=this.setting;if(e.dataViewBoxParameter||(void 0===e.useAxis||e.useAxis?e.dataViewBoxParameter=[45,15,15,15]:e.dataViewBoxParameter=[5,5,5,5]),this.initBaseParameter()){var t=this.dataViewBox,r=this.DVBCodomain;this.DVBUnitValue=(r[1]-r[0])/this.DVBHeight;var i=this.DVBUnitValue,n=this.dataValues,s=this.calculateXShapeInfo();if(s){var l,u,c=s.xPositions;(void 0===e.useBackground||e.useBackground)&&this.shapes.push(a.ShapeFactory.Background(this.shapeFactory,this.chartBox,e)),this.shapes=this.shapes.concat(a.ShapeFactory.GraphAxis(this.shapeFactory,t,e,s));for(var p=0,h=n.length;p<h;p++){if(n[p]<r[0]||n[p]>r[1])return null;l=c[p],u=t[1]-(n[p]-r[0])/i;var f=new o.Point(l,u);f.style=a.ShapeFactory.ShapeStyleTool({fillColor:"#ee9900"},e.pointStyle,e.pointStyleByFields,e.pointStyleByCodomain,p,n[p]),f.highlightStyle=a.ShapeFactory.ShapeStyleTool(null,e.pointHoverStyle),void 0!==e.pointHoverAble&&(f.hoverable=e.pointHoverAble),void 0!==e.pointClickAble&&(f.clickable=e.pointClickAble),f.refDataID=this.data.id,f.dataInfo={field:this.fields[p],value:n[p]},this.shapes.push(this.shapeFactory.createShape(f))}this.shapesConvertToRelativeCoordinate()}}}},{key:"calculateXShapeInfo",value:function(){var e,t=this.dataViewBox,r=this.setting,i=this.dataValues.length;if(i<1)return null;var n=[],a=this.DVBWidth,o=0;if(r.xShapeBlank&&r.xShapeBlank.length&&2==r.xShapeBlank.length){var s=a-((e=r.xShapeBlank)[0]+e[1]);if(s<=i)return null;o=s/(i-1)}else e=[o=a/(i+1),o,o];for(var l=0,u=0;u<i;u++)0==u?l=e[0]:l+=o,n.push(t[0]+l);return{xPositions:n,width:0}}}]),t}();n.SuperMap.Feature.Theme.Point=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Pie=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(27),o=r(78),s=r(32);
  1315. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1316. * This program are made available under the terms of the Apache License, Version 2.0
  1317. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1318. var l=t.Pie=function(e){function t(e,r,i,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i,n,a));return o.CLASS_NAME="SuperMap.Feature.Theme.Pie",o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.Graph),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"assembleShapes",value:function(){var e=this.setting,t=[{fillColor:"#ff9277"},{fillColor:"#dddd00"},{fillColor:"#ffc877"},{fillColor:"#bbe3ff"},{fillColor:"#d5ffbb"},{fillColor:"#bbbbff"},{fillColor:"#ddb000"},{fillColor:"#b0dd00"},{fillColor:"#e2bbff"},{fillColor:"#ffbbe3"},{fillColor:"#ff7777"},{fillColor:"#ff9900"},{fillColor:"#83dd00"},{fillColor:"#77e3ff"},{fillColor:"#778fff"},{fillColor:"#c877ff"},{fillColor:"#ff77ab"},{fillColor:"#ff6600"},{fillColor:"#aa8800"},{fillColor:"#77c7ff"},{fillColor:"#ad77ff"},{fillColor:"#ff77ff"},{fillColor:"#dd0083"},{fillColor:"#777700"},{fillColor:"#00aa00"},{fillColor:"#0088aa"},{fillColor:"#8400dd"},{fillColor:"#aa0088"},{fillColor:"#dd0000"},{fillColor:"#772e00"}];if(this.initBaseParameter()){e.useBackground&&this.shapes.push(a.ShapeFactory.Background(this.shapeFactory,this.chartBox,e));var r=this.dataValues;if(!(r.length<1)){for(var i=this.DVBCodomain,n=0;n<r.length;n++)if(r[n]<i[0]||r[n]>i[1])return;for(var s=0,l=0;l<r.length;l++)s+=Math.abs(r[l]);this.DVBUnitValue=360/s;for(var u=this.DVBUnitValue,c=this.DVBCenterPoint,p=0,h=0,f=p,d=this.DVBHeight<this.DVBWidth?this.DVBHeight/2:this.DVBWidth/2,y=0;y<r.length;y++){var v=Math.abs(r[y]);(h=0===y?p+v*u:y===v.length-1?f:p+v*u)-p>=360&&(h=359.9999999);var m=new o.Sector(c[0],c[1],d,p,h);if(void 0===e.sectorStyleByFields){var g=y%t.length;m.style=a.ShapeFactory.ShapeStyleTool(null,e.sectorStyle,t,null,g)}else m.style=a.ShapeFactory.ShapeStyleTool(null,e.sectorStyle,e.sectorStyleByFields,e.sectorStyleByCodomain,y,r[y]);m.highlightStyle=a.ShapeFactory.ShapeStyleTool(null,e.sectorHoverStyle),void 0!==e.sectorHoverAble&&(m.hoverable=e.sectorHoverAble),void 0!==e.sectorClickAble&&(m.clickable=e.sectorClickAble),m.refDataID=this.data.id,m.dataInfo={field:this.fields[y],value:r[y]},this.shapes.push(this.shapeFactory.createShape(m)),p=h}this.shapesConvertToRelativeCoordinate()}}}}]),t}();n.SuperMap.Feature.Theme.Pie=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Line=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(27),o=r(81),s=r(80),l=r(32);
  1319. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1320. * This program are made available under the terms of the Apache License, Version 2.0
  1321. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1322. var u=t.Line=function(e){function t(e,r,i,n,a,o){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var s=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i,n,a,o));return s.CLASS_NAME="SuperMap.Feature.Theme.Line",s}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.Graph),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"assembleShapes",value:function(){var e=this.setting;if(e.dataViewBoxParameter||(void 0===e.useAxis||e.useAxis?e.dataViewBoxParameter=[45,15,15,15]:e.dataViewBoxParameter=[5,5,5,5]),this.initBaseParameter()){var t=this.dataViewBox,r=this.DVBCodomain;this.DVBUnitValue=(r[1]-r[0])/this.DVBHeight;var i=this.DVBUnitValue,n=this.dataValues;if(!(n.length<1)){var l=this.calculateXShapeInfo();if(l){var u,c,p=l.xPositions;(void 0===e.useBackground||e.useBackground)&&this.shapes.push(a.ShapeFactory.Background(this.shapeFactory,this.chartBox,e)),this.shapes=this.shapes.concat(a.ShapeFactory.GraphAxis(this.shapeFactory,t,e,l));for(var h=[],f=[],d=0,y=n.length;d<y;d++){if(n[d]<r[0]||n[d]>r[1])return null;u=p[d],c=t[1]-(n[d]-r[0])/i;var v=new o.Point(u,c);v.style=a.ShapeFactory.ShapeStyleTool({fillColor:"#ee9900"},e.pointStyle,e.pointStyleByFields,e.pointStyleByCodomain,d,n[d]),v.highlightStyle=a.ShapeFactory.ShapeStyleTool(null,e.pointHoverStyle),void 0!==e.pointHoverAble&&(v.hoverable=e.pointHoverAble),void 0!==e.pointClickAble&&(v.clickable=e.pointClickAble),v.refDataID=this.data.id,v.dataInfo={field:this.fields[d],value:n[d]},f.push(this.shapeFactory.createShape(v));var m=[u,c];h.push(m)}var g=new s.Line(h);g.style=a.ShapeFactory.ShapeStyleTool({strokeColor:"#ee9900"},e.lineStyle),g.clickable=!1,g.hoverable=!1;var b=this.shapeFactory.createShape(g);this.shapes.push(b),this.shapes=this.shapes.concat(f),this.shapesConvertToRelativeCoordinate()}}}}},{key:"calculateXShapeInfo",value:function(){var e,t=this.dataViewBox,r=this.setting,i=this.dataValues.length;if(i<1)return null;var n=[],a=this.DVBWidth,o=0;if(r.xShapeBlank&&r.xShapeBlank.length&&2==r.xShapeBlank.length){var s=a-((e=r.xShapeBlank)[0]+e[1]);if(s<=i)return null;o=s/(i-1)}else e=[o=a/(i+1),o,o];for(var l=0,u=0;u<i;u++)0==u?l=e[0]:l+=o,n.push(t[0]+l);return{xPositions:n,width:0}}}]),t}();n.SuperMap.Feature.Theme.Line=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Circle=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(72),o=r(116),s=r(27),l=r(201);
  1323. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1324. * This program are made available under the terms of the Apache License, Version 2.0
  1325. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1326. var u=t.Circle=function(e){function t(e,r,i,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i,n,a));return o.CLASS_NAME="SuperMap.Feature.Theme.Circle",o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.RankSymbol),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"assembleShapes",value:function(){if(!this.setting)return!1;var e=this.setting;if(!e.codomain)return!1;var t=void 0===e.decimalNumber||isNaN(e.decimalNumber)?-1:e.decimalNumber,r=a.Theme.getDataValues(this.data,this.fields,t);this.dataValues=r||[];var i=this.dataValues;e.maxR||(e.maxR=100),e.minR||(e.minR=0);var n=this.DVBCodomain;n&&n[1]-n[0]>0?this.DVBUnitValue=e.maxR/(n[1]-n[0]):this.DVBUnitValue=e.maxR;var l=this.DVBUnitValue,u=i[0]*l+e.minR;if(this.width=2*u,this.height=2*u,this.initBaseParameter()&&(!n||!(i[0]<n[0]||i[0]>n[1]))){var c=this.DVBCenterPoint,p=new o.Circle(c[0],c[1],u);p.style=s.ShapeFactory.ShapeStyleTool(null,e.circleStyle,null,null,0),void 0!==e.fillColor?p.style.fillColor=e.fillColor:p.style.fillColor="#ff9277",p.highlightStyle=s.ShapeFactory.ShapeStyleTool(null,e.circleHoverStyle),void 0!==e.circleHoverAble&&(p.hoverable=e.circleHoverAble),void 0!==e.circleClickAble&&(p.clickable=e.circleClickAble),p.refDataID=this.data.id,p.dataInfo={field:this.fields[0],r:u,value:i[0]},this.shapes.push(this.shapeFactory.createShape(p)),this.shapesConvertToRelativeCoordinate()}}}]),t}();n.SuperMap.Feature.Theme.Circle=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bar3D=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(27),s=r(79),l=r(32);
  1327. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1328. * This program are made available under the terms of the Apache License, Version 2.0
  1329. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1330. var u=t.Bar3D=function(e){function t(e,r,i,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i,n,a));return o.CLASS_NAME="SuperMap.Feature.Theme.Bar3D",o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,l.Graph),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"assembleShapes",value:function(){var e=this.setting;if(e.dataViewBoxParameter||(void 0===e.useAxis||e.useAxis?e.dataViewBoxParameter=[45,25,20,20]:e.dataViewBoxParameter=[5,5,5,5]),e.axisUseArrow=void 0===e.axisUseArrow||e.axisUseArrow,e.axisXLabelsOffset=void 0!==e.axisXLabelsOffset?e.axisXLabelsOffset:[-10,10],this.initBaseParameter()){var t=this.DVBCodomain;this.DVBUnitValue=(t[1]-t[0])/this.DVBHeight;var r=this.dataViewBox,i=this.dataValues;if(!(i.length<1)){for(var n=0,l=i.length;n<l;n++)if(i[n]<t[0]||i[n]>t[1])return;var u=this.calculateXShapeInfo();if(u){var c=u.xPositions,p=u.width;(void 0===e.useBackground||e.useBackground)&&this.shapes.push(o.ShapeFactory.Background(this.shapeFactory,this.chartBox,e)),(!e.axis3DParameter||isNaN(e.axis3DParameter)||e.axis3DParameter<15)&&(e.axis3DParameter=20),(void 0===e.useAxis||e.useAxis)&&(this.shapes=this.shapes.concat(o.ShapeFactory.GraphAxis(this.shapeFactory,r,e,u)));for(var h=e.bar3DParameter&&!isNaN(e.bar3DParameter)?e.bar3DParameter:10,f=0;f<i.length;f++){var d=r[1]-(i[f]-t[0])/this.DVBUnitValue,y=c[f]-p/2,v=c[f]+p/2,m=[[y,d],[v,d],[v-h,d+h],[y-h,d+h]],g=[[v,d],[v-h,d+h],[v-h,r[1]+h],[v,r[1]]],b=[[y-h,r[1]+h],[v-h,r[1]+h],[v-h,d+h],[y-h,d+h]];h<=0&&(b=[[y,r[1]],[v,r[1]],[v,d],[y,d]]);var S=new s.Polygon(m),_=new s.Polygon(g),P=new s.Polygon(b);e.barSideStyle=e.barSideStyle?e.barSideStyle:e.barFaceStyle,e.barSideStyleByFields=e.barSideStyleByFields?e.barSideStyleByFields:e.barFaceStyleByFields,e.barSideStyleByCodomain=e.barSideStyleByCodomain?e.barSideStyleByCodomain:e.barFaceStyleByCodomain,e.barTopStyle=e.barTopStyle?e.barTopStyle:e.barFaceStyle,e.barTopStyleByFields=e.barTopStyleByFields?e.barTopStyleByFields:e.barFaceStyleByFields,e.barTopStyleByCodomain=e.barTopStyleByCodomain?e.barTopStyleByCodomain:e.barFaceStyleByCodomain,P.style=o.ShapeFactory.ShapeStyleTool({stroke:!0,strokeColor:"#ffffff",fillColor:"#ee9900"},e.barFaceStyle,e.barFaceStyleByFields,e.barFaceStyleByCodomain,f,i[f]),_.style=o.ShapeFactory.ShapeStyleTool({stroke:!0,strokeColor:"#ffffff",fillColor:"#ee9900"},e.barSideStyle,e.barSideStyleByFields,e.barSideStyleByCodomain,f,i[f]),S.style=o.ShapeFactory.ShapeStyleTool({stroke:!0,strokeColor:"#ffffff",fillColor:"#ee9900"},e.barTopStyle,e.barTopStyleByFields,e.barTopStyleByCodomain,f,i[f]),e.barSideHoverStyle=e.barSideHoverStyle?e.barSideHoverStyle:e.barFaceHoverStyle,e.barTopHoverStyle=e.barTopHoverStyle?e.barTopHoverStyle:e.barFaceHoverStyle,P.highlightStyle=o.ShapeFactory.ShapeStyleTool({stroke:!0},e.barFaceHoverStyle),_.highlightStyle=o.ShapeFactory.ShapeStyleTool({stroke:!0},e.barSideHoverStyle),S.highlightStyle=o.ShapeFactory.ShapeStyleTool({stroke:!0},e.barTopHoverStyle),S.refDataID=_.refDataID=P.refDataID=this.data.id,S.isHoverByRefDataID=_.isHoverByRefDataID=P.isHoverByRefDataID=!0,S.refDataHoverGroup=_.refDataHoverGroup=P.refDataHoverGroup=a.Util.createUniqueID("lr_shg"),S.dataInfo=_.dataInfo=P.dataInfo={field:this.fields[f],value:i[f]},void 0!==e.barHoverAble&&(S.hoverable=_.hoverable=P.hoverable=e.barHoverAble),void 0!==e.barClickAble&&(S.clickable=_.clickable=P.clickable=e.barClickAble),this.shapes.push(this.shapeFactory.createShape(_)),this.shapes.push(this.shapeFactory.createShape(S)),this.shapes.push(this.shapeFactory.createShape(P))}this.shapesConvertToRelativeCoordinate()}}}}},{key:"calculateXShapeInfo",value:function(){var e,t=this.dataViewBox,r=this.setting,i=this.dataValues.length;if(i<1)return null;var n=[],a=0,o=this.DVBWidth;if(r.xShapeBlank&&r.xShapeBlank.length&&3==r.xShapeBlank.length){var s=o-((e=r.xShapeBlank)[0]+e[2]+(i-1)*e[1]);if(s<=i)return null;a=s/i}else e=[a=o/(2*i+1),a,a];for(var l=0,u=0;u<i;u++)0==u?l=e[0]+a/2:l+=a+e[1],n.push(t[0]+l);return{xPositions:n,width:a}}}]),t}();n.SuperMap.Feature.Theme.Bar3D=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bar=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(27),o=r(79),s=r(82),l=r(1),u=r(32);r(117),r(80);
  1331. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1332. * This program are made available under the terms of the Apache License, Version 2.0
  1333. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1334. var c=t.Bar=function(e){function t(e,r,i,n,a){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,i,n,a));return o.CLASS_NAME="SuperMap.Feature.Theme.Bar",o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,u.Graph),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"assembleShapes",value:function(){var e={showShadow:!0,shadowBlur:8,shadowColor:"rgba(100,100,100,0.8)",shadowOffsetX:2,shadowOffsetY:2},t=this.setting;if(t.barLinearGradient||(t.barLinearGradient=[["#00FF00","#00CD00"],["#00CCFF","#5E87A2"],["#00FF66","#669985"],["#CCFF00","#94A25E"],["#FF9900","#A2945E"]]),t.dataViewBoxParameter||(void 0===t.useAxis||t.useAxis?t.dataViewBoxParameter=[45,15,15,15]:t.dataViewBoxParameter=[5,5,5,5]),this.initBaseParameter()){var r=this.DVBCodomain;this.DVBUnitValue=(r[1]-r[0])/this.DVBHeight;var i=this.dataViewBox,n=this.dataValues;if(!(n.length<1)){for(var s=0,u=n.length;s<u;s++)if(n[s]<r[0]||n[s]>r[1])return;var c=this.calculateXShapeInfo();if(c){var p=c.xPositions,h=c.width;(void 0===t.useBackground||t.useBackground)&&this.shapes.push(a.ShapeFactory.Background(this.shapeFactory,this.chartBox,t)),(void 0===t.useAxis||t.useAxis)&&(this.shapes=this.shapes.concat(a.ShapeFactory.GraphAxis(this.shapeFactory,i,t,c)));for(var f=0;f<n.length;f++){var d=i[1]-(n[f]-r[0])/this.DVBUnitValue,y=[[p[f]-h/2,i[1]-1],[p[f]+h/2,i[1]-1],[p[f]+h/2,d],[p[f]-h/2,d]],v=new o.Polygon(y);if(void 0===t.showShadow||t.showShadow){if(t.barShadowStyle){var m=t.barShadowStyle;m.shadowBlur&&(e.shadowBlur=m.shadowBlur),m.shadowColor&&(e.shadowColor=m.shadowColor),m.shadowOffsetX&&(e.shadowOffsetX=m.shadowOffsetX),m.shadowOffsetY&&(e.shadowOffsetY=m.shadowOffsetY)}v.style={},l.Util.copyAttributesWithClip(v.style,e)}v.refDataID=this.data.id,v.dataInfo={field:this.fields[f],value:n[f]},void 0!==t.barHoverAble&&(v.hoverable=t.barHoverAble),void 0!==t.barClickAble&&(v.clickable=t.barClickAble),this.shapes.push(this.shapeFactory.createShape(v))}this.shapesConvertToRelativeCoordinate()}}}}},{key:"calculateXShapeInfo",value:function(){var e,t=this.dataViewBox,r=this.setting,i=this.dataValues.length;if(i<1)return null;var n=[],a=0,o=this.DVBWidth;if(r.xShapeBlank&&r.xShapeBlank.length&&3==r.xShapeBlank.length){var s=o-((e=r.xShapeBlank)[0]+e[2]+(i-1)*e[1]);if(s<=i)return null;a=s/i}else e=[a=o/(2*i+1),a,a];for(var l=0,u=0;u<i;u++)0==u?l=e[0]+a/2:l+=a+e[1],n.push(t[0]+l);return{xPositions:n,width:a}}},{key:"resetLinearGradient",value:function(){if(this.RelativeCoordinate)for(var e=this.shapes.length,t=this.setting.barLinearGradient,r=-1,i=0;i<e;i++){var n=this.shapes[i];if("SuperMap.LevelRenderer.Shape.SmicPolygon"===n.CLASS_NAME){var a=n.style,o=this.location[0]+a.pointList[0][0],l=this.location[0]+a.pointList[1][0];++r>=t.length&&(r%=t.length);var u=t[r][0],c=t[r][1],p=(new s.Color).getLinearGradient(o,0,l,0,[[0,u],[1,c]]);n.style.color=p}}}}]),t}();n.SuperMap.Feature.Theme.Bar=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SUtil=t.LevelRendererVector=t.Util=t.Transformable=t.Storage=t.SmicText=t.SmicStar=t.SmicSector=t.SmicRing=t.SmicRectangle=t.SmicPolygon=t.SmicPoint=t.SmicIsogon=t.SmicImage=t.SmicEllipse=t.SmicCircle=t.SmicBrokenLine=t.Shape=t.PaintLayer=t.Painter=t.Matrix=t.Math=t.Log=t.Http=t.Handler=t.Group=t.Eventful=t.LevelRendererEvent=t.Env=t.Easing=t.LevelRendererCurve=t.Config=t.ComputeBoundingBox=t.Color=t.Clip=t.Area=t.Animator=t.Animation=t.Render=t.LevelRenderer=t.FeatureTheme=t.Sector=t.FeatureRectangle=t.FeaturePolygon=t.Point=t.FeatureLine=t.Label=t.Image=t.FeatureCircle=t.ShapeParameters=t.ShapeFactory=t.ThemeVector=t.Ring=t.RankSymbol=t.OverlayPoint=t.Pie=t.Line=t.Graph=t.Circle=t.Bar3D=t.Bar=void 0;var i=r(467),n=r(466),a=r(465),o=r(32),s=r(464),l=r(463),u=r(462),c=r(201),p=r(461),h=r(460),f=r(459),d=r(458);
  1335. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1336. * This program are made available under the terms of the Apache License, Version 2.0
  1337. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1338. t.Bar=i.Bar,t.Bar3D=n.Bar3D,t.Circle=a.Circle,t.Graph=o.Graph,t.Line=s.Line,t.Pie=l.Pie,t.OverlayPoint=u.Point,t.RankSymbol=c.RankSymbol,t.Ring=p.Ring,t.ThemeVector=h.ThemeVector,t.ShapeFactory=f.ShapeFactory,t.ShapeParameters=f.ShapeParameters,t.FeatureCircle=f.FeatureCircle,t.Image=f.Image,t.Label=f.Label,t.FeatureLine=f.FeatureLine,t.Point=f.Point,t.FeaturePolygon=f.FeaturePolygon,t.FeatureRectangle=f.FeatureRectangle,t.Sector=f.Sector,t.FeatureTheme=f.FeatureTheme,t.LevelRenderer=d.LevelRenderer,t.Render=d.Render,t.Animation=d.Animation,t.Animator=d.Animator,t.Area=d.Area,t.Clip=d.Clip,t.Color=d.Color,t.ComputeBoundingBox=d.ComputeBoundingBox,t.Config=d.Config,t.LevelRendererCurve=d.LevelRendererCurve,t.Easing=d.Easing,t.Env=d.Env,t.LevelRendererEvent=d.LevelRendererEvent,t.Eventful=d.Eventful,t.Group=d.Group,t.Handler=d.Handler,t.Http=d.Http,t.Log=d.Log,t.Math=d.Math,t.Matrix=d.Matrix,t.Painter=d.Painter,t.PaintLayer=d.PaintLayer,t.Shape=d.Shape,t.SmicBrokenLine=d.SmicBrokenLine,t.SmicCircle=d.SmicCircle,t.SmicEllipse=d.SmicEllipse,t.SmicImage=d.SmicImage,t.SmicIsogon=d.SmicIsogon,t.SmicPoint=d.SmicPoint,t.SmicPolygon=d.SmicPolygon,t.SmicRectangle=d.SmicRectangle,t.SmicRing=d.SmicRing,t.SmicSector=d.SmicSector,t.SmicStar=d.SmicStar,t.SmicText=d.SmicText,t.Storage=d.Storage,t.Transformable=d.Transformable,t.Util=d.Util,t.LevelRendererVector=d.LevelRendererVector,t.SUtil=d.SUtil},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeStyle=void 0;var i=r(0),n=r(1);
  1339. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1340. * This program are made available under the terms of the Apache License, Version 2.0
  1341. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1342. var a=t.ThemeStyle=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.fill=!0,this.fillColor="#000000",this.fillOpacity=1,this.stroke=!1,this.strokeColor="#000000",this.strokeOpacity=1,this.strokeWidth=1,this.strokeLinecap="butt",this.strokeLineJoin="miter",this.strokeDashstyle="solid",this.pointRadius=6,this.shadowBlur=0,this.shadowColor="#000000",this.shadowOffsetX=0,this.shadowOffsetY=0,this.label="",this.labelRect=!1,this.fontColor="",this.fontSize=12,this.fontStyle="normal",this.fontVariant="normal",this.fontWeight="normal",this.fontFamily="arial,sans-serif",this.labelPosition="top",this.labelAlign="center",this.labelBaseline="middle",this.labelXOffset=0,this.labelYOffset=0,n.Util.extend(this,t)};i.SuperMap.ThemeStyle=a},function(e,t,r){"use strict";(function(t){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=9007199254740991,n="[object Arguments]",a="[object Function]",o="[object GeneratorFunction]",s="[object Map]",l="[object Set]",u=/^\[object .+?Constructor\]$/,c=/^(?:0|[1-9]\d*)$/,p="object"==(void 0===t?"undefined":r(t))&&t&&t.Object===Object&&t,h="object"==("undefined"==typeof self?"undefined":r(self))&&self&&self.Object===Object&&self,f=p||h||Function("return this")();function d(e,t){return function(e,t){for(var r=-1,i=e?e.length:0,n=Array(i);++r<i;)n[r]=t(e[r],r,e);return n}(t,function(t){return[t,e[t]]})}var y,v,m,g=Function.prototype,b=Object.prototype,S=f["__core-js_shared__"],_=(y=/[^.]+$/.exec(S&&S.keys&&S.keys.IE_PROTO||""))?"Symbol(src)_1."+y:"",P=g.toString,w=b.hasOwnProperty,O=b.toString,T=RegExp("^"+P.call(w).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),M=b.propertyIsEnumerable,C=(v=Object.keys,m=Object,function(e){return v(m(e))}),x=U(f,"DataView"),E=U(f,"Map"),L=U(f,"Promise"),A=U(f,"Set"),k=U(f,"WeakMap"),F=z(x),j=z(E),I=z(L),N=z(A),D=z(k);function R(e,t){var i=q(e)||function(e){return function(e){return function(e){return!!e&&"object"==(void 0===e?"undefined":r(e))}(e)&&H(e)}(e)&&w.call(e,"callee")&&(!M.call(e,"callee")||O.call(e)==n)}(e)?function(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}(e.length,String):[],a=i.length,o=!!a;for(var s in e)!t&&!w.call(e,s)||o&&("length"==s||J(s,a))||i.push(s);return i}function G(e){return!(!Q(e)||_&&_ in e)&&(W(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?T:u).test(z(e))}function B(e){if(r=(t=e)&&t.constructor,i="function"==typeof r&&r.prototype||b,t!==i)return C(e);var t,r,i,n=[];for(var a in Object(e))w.call(e,a)&&"constructor"!=a&&n.push(a);return n}function U(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return G(r)?r:void 0}var V=function(e){return O.call(e)};function J(e,t){return!!(t=null==t?i:t)&&("number"==typeof e||c.test(e))&&e>-1&&e%1==0&&e<t}function z(e){if(null!=e){try{return P.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(x&&"[object DataView]"!=V(new x(new ArrayBuffer(1)))||E&&V(new E)!=s||L&&"[object Promise]"!=V(L.resolve())||A&&V(new A)!=l||k&&"[object WeakMap]"!=V(new k))&&(V=function(e){var t=O.call(e),r="[object Object]"==t?e.constructor:void 0,i=r?z(r):void 0;if(i)switch(i){case F:return"[object DataView]";case j:return s;case I:return"[object Promise]";case N:return l;case D:return"[object WeakMap]"}return t});var q=Array.isArray;function H(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=i}(e.length)&&!W(e)}function W(e){var t=Q(e)?O.call(e):"";return t==a||t==o}function Q(e){var t=void 0===e?"undefined":r(e);return!!e&&("object"==t||"function"==t)}var Y,X=(Y=function(e){return H(e)?R(e):B(e)},function(e){var t,r,i,n=V(e);return n==s?(t=e,r=-1,i=Array(t.size),t.forEach(function(e,t){i[++r]=[t,e]}),i):n==l?function(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=[e,e]}),r}(e):d(e,Y(e))});e.exports=X}).call(this,r(135))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CartoCSS=void 0;var i,n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),o=r(0),s=r(470),l=(i=s)&&i.__esModule?i:{default:i};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var c=t.CartoCSS=function(){function e(t){u(this,e),this.env=null,this.parser=null,this.ruleSet=null,this.cartoStr="",this.shaders=null,"string"==typeof t&&(this.cartoStr=t,this.env={frames:[],errors:[],error:function(e){this.errors.push(e)}},this.parser=this.getParser(this.env),this.parse(t),this.shaders=this.toShaders())}return a(e,[{key:"getParser",value:function(e){var t,r,i,n,a,s,l,u,c,p=this;function h(){n=l[i],a=r,u=r}function f(){l[i]=n,u=r=a}function d(){r>u&&(l[i]=l[i].slice(r-u),u=r)}function y(e){var n,a,o,s;if(e instanceof Function)return e.call(c.parsers);if("string"==typeof e)n=t.charAt(r)===e?e:null,a=1,d();else{if(d(),!(n=e.exec(l[i])))return null;a=n[0].length}if(n){var p=r+=a;for(s=r+l[i].length-a;r<s&&(32===(o=t.charCodeAt(r))||10===o||9===o);)r++;return l[i]=l[i].slice(a+(r-p)),u=r,0===l[i].length&&i<l.length-1&&i++,"string"==typeof n?n:1===n.length?n[0]:n}}function v(r){var i,n={index:s,filename:e.filename,message:"Parse error.",line:0,column:-1};for(var a in n)0===r[a]&&(r[a]=n[a]);i=r.filename&&p.env.inputs&&p.env.inputs[r.filename]?p.env.inputs[r.filename]:t,r.line=(i.slice(0,r.index).match(/\n/g)||"").length+1;for(var o=r.index;o>=0&&"\n"!==i.charAt(o);o--)r.column++;return new Error([r.filename,r.line,r.column,r.message].join(";"))}return this.env=e=e||{},this.env.filename=this.env.filename||null,this.env.inputs=this.env.inputs||{},c={parse:function(n){var a,c=null;if(r=i=u=s=0,l=[],t=n.replace(/\r\n/g,"\n"),e.filename&&(p.env.inputs[e.filename]=t),l=function(e){for(var r,i,n,a,o=0,s=/(?:@\{[\w-]+\}|[^"'`\{\}\/\(\)\\])+/g,l=/\/\*(?:[^*]|\*+[^\/*])*\*+\/|\/\/.*/g,u=/"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'|`((?:[^`]|\\.)*)`/g,p=0,h=e[0],f=0;f<t.length;)if(s.lastIndex=f,(r=s.exec(t))&&r.index===f&&(f+=r[0].length,h.push(r[0])),n=t.charAt(f),l.lastIndex=u.lastIndex=f,(r=u.exec(t))&&r.index===f)f+=r[0].length,h.push(r[0]);else if(i||"/"!==n||"/"!==(a=t.charAt(f+1))&&"*"!==a||!(r=l.exec(t))||r.index!==f){switch(n){case"{":if(!i){p++,h.push(n);break}case"}":if(!i){p--,h.push(n),e[++o]=h=[];break}case"(":if(!i){i=!0,h.push(n);break}case")":if(i){i=!1,h.push(n);break}default:h.push(n)}f++}else f+=r[0].length,h.push(r[0]);return 0!==p&&(c={index:f-1,type:"Parse",message:p>0?"missing closing `}`":"missing opening `{`"}),e.map(function(e){return e.join("")})}([[]]),c)throw v(c);var h=function(e,t){var r=e.specificity,i=t.specificity;return r[0]!=i[0]?i[0]-r[0]:r[1]!=i[1]?i[1]-r[1]:r[2]!=i[2]?i[2]-r[2]:i[3]-r[3]};return(a=new o.SuperMap.CartoCSS.Tree.Ruleset([],y(this.parsers.primary))).root=!0,a.toList=function(e){e.error=function(t){e.errors||(e.errors=new Error("")),e.errors.message?e.errors.message+="\n"+v(t).message:e.errors.message=v(t).message},e.frames=e.frames||[];var t=this.flatten([],[],e);return t.sort(h),t},a},parsers:{primary:function(){for(var e,t=[];(e=y(this.rule)||y(this.ruleset)||y(this.comment))||y(/^[\s\n]+/)||(e=y(this.invalid));)e&&t.push(e);return t},invalid:function(){var e=y(/^[^;\n]*[;\n]/);if(e)return new o.SuperMap.CartoCSS.Tree.Invalid(e,a)},comment:function(){var e;if("/"===t.charAt(r))return"/"===t.charAt(r+1)?new o.SuperMap.CartoCSS.Tree.Comment(y(/^\/\/.*/),!0):(e=y(/^\/\*(?:[^*]|\*+[^\/*])*\*+\/\n?/))?new o.SuperMap.CartoCSS.Tree.Comment(e):void 0},entities:{quoted:function(){if('"'===t.charAt(r)||"'"===t.charAt(r)){var e=y(/^"((?:[^"\\\r\n]|\\.)*)"|'((?:[^'\\\r\n]|\\.)*)'/);return e?new o.SuperMap.CartoCSS.Tree.Quoted(e[1]||e[2]):void 0}},field:function(){if(y("[")){var e=y(/(^[^\]]+)/);if(y("]"))return e?new o.SuperMap.CartoCSS.Tree.Field(e[1]):void 0}},comparison:function(){var e=y(/^=~|=|!=|<=|>=|<|>/);if(e)return e},keyword:function(){var e=y(/^[A-Za-z\u4e00-\u9fa5-]+[A-Za-z-0-9\u4e00-\u9fa5_]*/);if(e)return new o.SuperMap.CartoCSS.Tree.Keyword(e)},call:function(){var e,t;if(e=/^([\w\-]+|%)\(/.exec(l[i])){if("url"===(e=e[1]))return null;r+=e.length;if(y("("),t=y(this.entities.arguments),y(")"))return e?new o.SuperMap.CartoCSS.Tree.Call(e,t,r):void 0}},arguments:function(){for(var e,t=[];e=y(this.expression);){t.push(e);if(!y(","))break}return t},literal:function(){return y(this.entities.dimension)||y(this.entities.keywordcolor)||y(this.entities.hexcolor)||y(this.entities.quoted)},url:function(){var e;if("u"===t.charAt(r)&&y(/^url\(/)){e=y(this.entities.quoted)||y(this.entities.variable)||y(/^[\-\w%@$\/.&=:;#+?~]+/)||"";return y(")")?new o.SuperMap.CartoCSS.Tree.URL(void 0!==e.value||e instanceof o.SuperMap.CartoCSS.Tree.Variable?e:new o.SuperMap.CartoCSS.Tree.Quoted(e)):new o.SuperMap.CartoCSS.Tree.Invalid(e,a,"Missing closing ) in URL.")}},variable:function(){var i,n=r;if("@"===t.charAt(r)&&(i=y(/^@[\w-]+/)))return new o.SuperMap.CartoCSS.Tree.Variable(i,n,e.filename)},hexcolor:function(){var e;if("#"===t.charAt(r)&&(e=y(/^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})/)))return new o.SuperMap.CartoCSS.Tree.Color(e[1])},keywordcolor:function(){var e=l[i].match(/^[a-z]+/);if(e&&e[0]in o.SuperMap.CartoCSS.Tree.Reference.data.colors)return new o.SuperMap.CartoCSS.Tree.Color(o.SuperMap.CartoCSS.Tree.Reference.data.colors[y(/^[a-z]+/)])},dimension:function(){var e=t.charCodeAt(r);if(!(e>57||e<45||47===e)){var i=y(/^(-?\d*\.?\d+(?:[eE][-+]?\d+)?)(\%|\w+)?/);return i?new o.SuperMap.CartoCSS.Tree.Dimension(i[1],i[2],a):void 0}}},variable:function(){var e;if("@"===t.charAt(r)&&(e=y(/^(@[\w-]+)\s*:/)))return e[1]},entity:function(){var e=y(this.entities.call)||y(this.entities.literal),t=y(this.entities.field)||y(this.entities.variable),r=y(this.entities.url)||y(this.entities.keyword);return e||t||r},end:function(){var e;return y(";")||("string"==typeof(e="}")?t.charAt(r)===e:!!e.test(l[i]))},element:function(){var e=y(/^(?:[.#][\w\u4e00-\u9fa5\-]+|\*|Map)/);if(e)return new o.SuperMap.CartoCSS.Tree.Element(e)},attachment:function(){var e=y(/^::([\w\-]+(?:\/[\w\-]+)*)/);if(e)return e[1]},selector:function(){for(var e,i,n,s,l,u=[],c=new o.SuperMap.CartoCSS.Tree.Filterset,p=[],h=0,f=0;(n=y(this.element))||(l=y(this.zoom))||(s=y(this.filter))||(e=y(this.attachment));){if(h++,n)u.push(n);else if(l)p.push(l),f++;else if(s){var d=c.add(s);if(d)throw v({message:d,index:r-1});f++}else{if(i)throw v({message:"Encountered second attachment name.",index:r-1});i=e}var m=t.charAt(r);if("{"===m||"}"===m||";"===m||","===m)break}if(h)return new o.SuperMap.CartoCSS.Tree.Selector(c,p,u,i,f,a)},filter:function(){h();var t,r,i;if(y("[")&&(t=y(/^[a-zA-Z0-9\-_]+/)||y(this.entities.quoted)||y(this.entities.variable)||y(this.entities.keyword)||y(this.entities.field))&&(t instanceof o.SuperMap.CartoCSS.Tree.Quoted&&(t=new o.SuperMap.CartoCSS.Tree.Field(t.toString())),(r=y(this.entities.comparison))&&(i=y(this.entities.quoted)||y(this.entities.variable)||y(this.entities.dimension)||y(this.entities.keyword)||y(this.entities.field)))){if(!y("]"))throw v({message:"Missing closing ] of filter.",index:a-1});return t.is||(t=new o.SuperMap.CartoCSS.Tree.Field(t)),new o.SuperMap.CartoCSS.Tree.Filter(t,r,i,a,e.filename)}},zoom:function(){h();var e,t;if(y(/^\[\s*zoom/g)&&(e=y(this.entities.comparison))&&(t=y(this.entities.variable)||y(this.entities.dimension))&&y("]"))return new o.SuperMap.CartoCSS.Tree.Zoom(e,t,a);f()},block:function(){var e;if(y("{")&&(e=y(this.primary))&&y("}"))return e},ruleset:function(){var e,t,r=[];for(h();e=y(this.selector);){for(r.push(e);y(this.comment););if(!y(","))break;for(;y(this.comment););}if(e)for(;y(this.comment););if(r.length>0&&(t=y(this.block))){if(1===r.length&&r[0].elements.length&&"Map"===r[0].elements[0].value){var i=new o.SuperMap.CartoCSS.Tree.Ruleset(r,t);return i.isMap=!0,i}return new o.SuperMap.CartoCSS.Tree.Ruleset(r,t)}f()},rule:function(){var i,n,l=t.charAt(r);if(h(),"."!==l&&"#"!==l&&(i=y(this.variable)||y(this.property))){if((n=y(this.value))&&y(this.end))return new o.SuperMap.CartoCSS.Tree.Rule(i,n,a,e.filename);s=r,f()}},font:function(){for(var e,t=[],r=[];e=y(this.entity);)r.push(e);if(t.push(new o.SuperMap.CartoCSS.Tree.Expression(r)),y(","))for(;(e=y(this.expression))&&(t.push(e),y(",")););return new o.SuperMap.CartoCSS.Tree.Value(t)},value:function(){for(var e,t=[];(e=y(this.expression))&&(t.push(e),y(",")););return t.length>1?new o.SuperMap.CartoCSS.Tree.Value(t.map(function(e){return e.value[0]})):1===t.length?new o.SuperMap.CartoCSS.Tree.Value(t):void 0},sub:function(){var e;if(y("(")&&(e=y(this.expression))&&y(")"))return e},multiplication:function(){var e,t,r,i;if(e=y(this.operand)){for(;(r=y("/")||y("*")||y("%"))&&(t=y(this.operand));)i=new o.SuperMap.CartoCSS.Tree.Operation(r,[i||e,t],a);return i||e}},addition:function(){var e,i,n,s;if(e=y(this.multiplication)){for(;(n=y(/^[-+]\s+/)||" "!=t.charAt(r-1)&&(y("+")||y("-")))&&(i=y(this.multiplication));)s=new o.SuperMap.CartoCSS.Tree.Operation(n,[s||e,i],a);return s||e}},operand:function(){return y(this.sub)||y(this.entity)},expression:function(){for(var e,t=[];e=y(this.addition)||y(this.entity);)t.push(e);if(t.length>0)return new o.SuperMap.CartoCSS.Tree.Expression(t)},property:function(){var e=y(/^(([a-z][-a-z_0-9]*\/)?\*?-?[-a-z_0-9]+)\s*:/);if(e)return e[1]}}}}},{key:"parse",value:function(e){var t=this.parser;return this.ruleSet=t.parse(e)}},{key:"toShaders",value:function(){if(this.ruleSet){var e=this.ruleSet;if(e){var t=e.toList(this.env);t.reverse();var r={},i=[];this._toShaders(r,i,t);for(var n=[],a={},o=0,s=t.length;o<s;++o){var l=t[o],u=l.attachment,c=r[i[o]],p=[];if(!a[u]){var h=0;for(var f in c)if("zoom"!==f&&"frames"!==f&&"attachment"!==f&&"elements"!=f)if("layer-index"===f){var d=(c[f].join("\n"),null);Object.defineProperty(p,"layerIndex",{configurable:!0,enumerable:!1,value:d})}else p[h++]=function(e,t){if(!Array.isArray(e))return e;var r=e.join("\n"),i='attributes["FEATUREID"]&&attributes["FEATUREID"]',n=r.indexOf(i);if(n>=0){if(!t.featureFilter){var a=n+i.length,o=r.indexOf(")",a+1),s="featureId&&(featureId"+r.substring(a,o)+")";Object.defineProperty(t,"featureFilter",{configurable:!0,enumerable:!1,value:function(e){return!!s}})}return{property:f,getValue:Function("attributes","zoom","seftFilter","var _value = null; var isExcute=typeof seftFilter=='function'?sefgFilter():seftFilter;if(isExcute){"+r+";} return _value; ")}}return{property:f,getValue:Function("attributes","zoom","var _value = null;"+r+"; return _value; ")}}(c[f],p);Object.defineProperty(p,"attachment",{configurable:!0,enumerable:!1,value:u}),Object.defineProperty(p,"elements",{configurable:!0,enumerable:!1,value:l.elements}),n.push(p),a[i[o]]=!0}Object.defineProperty(p,"zoom",{configurable:!0,enumerable:!1,value:l.zoom})}return n}}return null}},{key:"_toShaders",value:function(e,t,r){for(var i=0,n=r.length;i<n;++i){for(var a=r[i],s=[],l=0,u=a.elements.length;l<u;l++)s.push(a.elements[l]);var c=a.filters.filters,p=[];for(var h in c)p.push(c[h].id);var f=s.join("/")+"::"+a.attachment+"_"+p.join("_");t.push(f);var d=e[f]=e[f]||{};d.zoom=o.SuperMap.CartoCSS.Tree.Zoom.all;var y=a.toJS(this.env);for(var v in y)(d[v]=d[v]||[]).push(y[v].join("\n"))}}},{key:"getShaders",value:function(){return this.shaders}},{key:"destroy",value:function(){this.cartoStr=null,this.env=null,this.ruleSet=null,this.parser=null,this.shaders=null}}]),e}();o.SuperMap._mapnik_reference_latest={version:"2.1.1",style:{"filter-mode":{type:["all","first"],doc:"Control the processing behavior of Rule filters within a Style. If 'all' is used then all Rules are processed sequentially independent of whether any previous filters matched. If 'first' is used then it means processing ends after the first match (a positive filter evaluation) and no further Rules in the Style are processed ('first' is usually the default for CSS implementations on top of Mapnik to simplify translation from CSS to Mapnik XML)","default-value":"all","default-meaning":"All Rules in a Style are processed whether they have filters or not and whether or not the filter conditions evaluate to true."},"image-filters":{css:"image-filters","default-value":"none","default-meaning":"no filters",type:"functions",functions:[["agg-stack-blur",2],["emboss",0],["blur",0],["gray",0],["sobel",0],["edge-detect",0],["x-gradient",0],["y-gradient",0],["invert",0],["sharpen",0]],doc:"A list of image filters."},"comp-op":{css:"comp-op","default-value":"src-over","default-meaning":"add the current layer on top of other layers",doc:"Composite operation. This defines how this layer should behave relative to layers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]},opacity:{css:"opacity",type:"float",doc:"An alpha value for the style (which means an alpha applied to all features in separate buffer and then composited back to main buffer)","default-value":1,"default-meaning":"no separate buffer will be used and no alpha will be applied to the style after rendering"}},layer:{name:{"default-value":"",type:"string",required:!0,"default-meaning":"No layer name has been provided",doc:"The name of a layer. Can be anything you wish and is not strictly validated, but ideally unique in the map"},srs:{"default-value":"",type:"string","default-meaning":"No srs value is provided and the value will be inherited from the Map's srs",doc:"The spatial reference system definition for the layer, aka the projection. Can either be a proj4 literal string like '+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs' or, if the proper proj4 epsg/nad/etc identifier files are installed, a string that uses an id like: '+init=epsg:4326'"},status:{"default-value":!0,type:"boolean","default-meaning":"This layer will be marked as active and available for processing",doc:"A property that can be set to false to disable this layer from being processed"},minzoom:{"default-value":"0",type:"float","default-meaning":"The layer will be visible at the minimum possible scale",doc:"The minimum scale denominator that this layer will be visible at. A layer's visibility is determined by whether its status is true and if the Map scale >= minzoom - 1e-6 and scale < maxzoom + 1e-6"},maxzoom:{"default-value":"1.79769e+308",type:"float","default-meaning":"The layer will be visible at the maximum possible scale",doc:"The maximum scale denominator that this layer will be visible at. The default is the numeric limit of the C++ double type, which may vary slightly by system, but is likely a massive number like 1.79769e+308 and ensures that this layer will always be visible unless the value is reduced. A layer's visibility is determined by whether its status is true and if the Map scale >= minzoom - 1e-6 and scale < maxzoom + 1e-6"},queryable:{"default-value":!1,type:"boolean","default-meaning":"The layer will not be available for the direct querying of data values",doc:"This property was added for GetFeatureInfo/WMS compatibility and is rarely used. It is off by default meaning that in a WMS context the layer will not be able to be queried unless the property is explicitly set to true"},"clear-label-cache":{"default-value":!1,type:"boolean","default-meaning":"The renderer's collision detector cache (used for avoiding duplicate labels and overlapping markers) will not be cleared immediately before processing this layer",doc:"This property, by default off, can be enabled to allow a user to clear the collision detector cache before a given layer is processed. This may be desirable to ensure that a given layers data shows up on the map even if it normally would not because of collisions with previously rendered labels or markers"},"group-by":{"default-value":"",type:"string","default-meaning":"No special layer grouping will be used during rendering",doc:"https://github.com/mapnik/mapnik/wiki/Grouped-rendering"},"buffer-size":{"default-value":"0",type:"float","default-meaning":"No buffer will be used",doc:"Extra tolerance around the Layer extent (in pixels) used to when querying and (potentially) clipping the layer data during rendering"},"maximum-extent":{"default-value":"none",type:"bbox","default-meaning":"No clipping extent will be used",doc:"An extent to be used to limit the bounds used to query this specific layer data during rendering. Should be minx, miny, maxx, maxy in the coordinates of the Layer."}},symbolizers:{"*":{"image-filters":{css:"image-filters","default-value":"none","default-meaning":"no filters",type:"functions",functions:[["agg-stack-blur",2],["emboss",0],["blur",0],["gray",0],["sobel",0],["edge-detect",0],["x-gradient",0],["y-gradient",0],["invert",0],["sharpen",0]],doc:"A list of image filters."},"comp-op":{css:"comp-op","default-value":"src-over","default-meaning":"add the current layer on top of other layers",doc:"Composite operation. This defines how this layer should behave relative to layers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]},opacity:{css:"opacity",type:"float",doc:"An alpha value for the style (which means an alpha applied to all features in separate buffer and then composited back to main buffer)","default-value":1,"default-meaning":"no separate buffer will be used and no alpha will be applied to the style after rendering"}},map:{"background-color":{css:"background-color","default-value":"none","default-meaning":"transparent",type:"color",doc:"Map Background color"},"background-image":{css:"background-image",type:"uri","default-value":"","default-meaning":"transparent",doc:"An image that is repeated below all features on a map as a background.",description:"Map Background image"},srs:{css:"srs",type:"string","default-value":"+proj=longlat +ellps=WGS84 +datum=WGS84 +no_defs","default-meaning":"The proj4 literal of EPSG:4326 is assumed to be the Map's spatial reference and all data from layers within this map will be plotted using this coordinate system. If any layers do not declare an srs value then they will be assumed to be in the same srs as the Map and not transformations will be needed to plot them in the Map's coordinate space",doc:"Map spatial reference (proj4 string)"},"buffer-size":{css:"buffer-size","default-value":"0",type:"float","default-meaning":"No buffer will be used",doc:'Extra tolerance around the map (in pixels) used to ensure labels crossing tile boundaries are equally rendered in each tile (e.g. cut in each tile). Not intended to be used in combination with "avoid-edges".'},"maximum-extent":{css:"","default-value":"none",type:"bbox","default-meaning":"No clipping extent will be used",doc:"An extent to be used to limit the bounds used to query all layers during rendering. Should be minx, miny, maxx, maxy in the coordinates of the Map."},base:{css:"base","default-value":"","default-meaning":"This base path defaults to an empty string meaning that any relative paths to files referenced in styles or layers will be interpreted relative to the application process.",type:"string",doc:"Any relative paths used to reference files will be understood as relative to this directory path if the map is loaded from an in memory object rather than from the filesystem. If the map is loaded from the filesystem and this option is not provided it will be set to the directory of the stylesheet."},"paths-from-xml":{css:"","default-value":!0,"default-meaning":"Paths read from XML will be interpreted from the location of the XML",type:"boolean",doc:"value to control whether paths in the XML will be interpreted from the location of the XML or from the working directory of the program that calls load_map()"},"minimum-version":{css:"","default-value":"none","default-meaning":"Mapnik version will not be detected and no error will be thrown about compatibility",type:"string",doc:"The minumum Mapnik version (e.g. 0.7.2) needed to use certain functionality in the stylesheet"},"font-directory":{css:"font-directory",type:"uri","default-value":"none","default-meaning":"No map-specific fonts will be registered",doc:"Path to a directory which holds fonts which should be registered when the Map is loaded (in addition to any fonts that may be automatically registered)."}},polygon:{fill:{css:"polygon-fill",type:"color","default-value":"rgba(128,128,128,1)","default-meaning":"gray and fully opaque (alpha = 1), same as rgb(128,128,128)",doc:"Fill color to assign to a polygon"},"fill-opacity":{css:"polygon-opacity",type:"float",doc:"The opacity of the polygon","default-value":1,"default-meaning":"opaque"},gamma:{css:"polygon-gamma",type:"float","default-value":1,"default-meaning":"fully antialiased",range:"0-1",doc:"Level of antialiasing of polygon edges"},"gamma-method":{css:"polygon-gamma-method",type:["power","linear","none","threshold","multiply"],"default-value":"power","default-meaning":"pow(x,gamma) is used to calculate pixel gamma, which produces slightly smoother line and polygon antialiasing than the 'linear' method, while other methods are usually only used to disable AA",doc:"An Antigrain Geometry specific rendering hint to control the quality of antialiasing. Under the hood in Mapnik this method is used in combination with the 'gamma' value (which defaults to 1). The methods are in the AGG source at https://github.com/mapnik/mapnik/blob/master/deps/agg/include/agg_gamma_functions.h"},clip:{css:"polygon-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"polygon-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},"geometry-transform":{css:"polygon-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"polygon-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},line:{stroke:{css:"line-color","default-value":"rgba(0,0,0,1)",type:"color","default-meaning":"black and fully opaque (alpha = 1), same as rgb(0,0,0)",doc:"The color of a drawn line"},"stroke-width":{css:"line-width","default-value":1,type:"float",doc:"The width of a line in pixels"},"stroke-opacity":{css:"line-opacity","default-value":1,type:"float","default-meaning":"opaque",doc:"The opacity of a line"},"stroke-linejoin":{css:"line-join","default-value":"miter",type:["miter","round","bevel"],doc:"The behavior of lines when joining"},"stroke-linecap":{css:"line-cap","default-value":"butt",type:["butt","round","square"],doc:"The display of line endings"},"stroke-gamma":{css:"line-gamma",type:"float","default-value":1,"default-meaning":"fully antialiased",range:"0-1",doc:"Level of antialiasing of stroke line"},"stroke-gamma-method":{css:"line-gamma-method",type:["power","linear","none","threshold","multiply"],"default-value":"power","default-meaning":"pow(x,gamma) is used to calculate pixel gamma, which produces slightly smoother line and polygon antialiasing than the 'linear' method, while other methods are usually only used to disable AA",doc:"An Antigrain Geometry specific rendering hint to control the quality of antialiasing. Under the hood in Mapnik this method is used in combination with the 'gamma' value (which defaults to 1). The methods are in the AGG source at https://github.com/mapnik/mapnik/blob/master/deps/agg/include/agg_gamma_functions.h"},"stroke-dasharray":{css:"line-dasharray",type:"numbers",doc:"A pair of length values [a,b], where (a) is the dash length and (b) is the gap length respectively. More than two values are supported for more complex patterns.","default-value":"none","default-meaning":"solid line"},"stroke-dashoffset":{css:"line-dash-offset",type:"numbers",doc:"valid parameter but not currently used in renderers (only exists for experimental svg support in Mapnik which is not yet enabled)","default-value":"none","default-meaning":"solid line"},"stroke-miterlimit":{css:"line-miterlimit",type:"float",doc:"The limit on the ratio of the miter length to the stroke-width. Used to automatically convert miter joins to bevel joins for sharp angles to avoid the miter extending beyond the thickness of the stroking path. Normally will not need to be set, but a larger value can sometimes help avoid jaggy artifacts.","default-value":4,"default-meaning":"Will auto-convert miters to bevel line joins when theta is less than 29 degrees as per the SVG spec: 'miterLength / stroke-width = 1 / sin ( theta / 2 )'"},clip:{css:"line-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"line-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},offset:{css:"line-offset",type:"float","default-value":0,"default-meaning":"no offset",doc:"Offsets a line a number of pixels parallel to its actual path. Postive values move the line left, negative values move it right (relative to the directionality of the line)."},rasterizer:{css:"line-rasterizer",type:["full","fast"],"default-value":"full",doc:"Exposes an alternate AGG rendering method that sacrifices some accuracy for speed."},"geometry-transform":{css:"line-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"line-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},markers:{file:{css:"marker-file",doc:"An SVG file that this marker shows at each placement. If no file is given, the marker will show an ellipse.","default-value":"","default-meaning":"An ellipse or circle, if width equals height",type:"uri"},opacity:{css:"marker-opacity",doc:"The overall opacity of the marker, if set, overrides both the opacity of both the fill and stroke","default-value":1,"default-meaning":"The stroke-opacity and fill-opacity will be used",type:"float"},"fill-opacity":{css:"marker-fill-opacity",doc:"The fill opacity of the marker","default-value":1,"default-meaning":"opaque",type:"float"},stroke:{css:"marker-line-color",doc:"The color of the stroke around a marker shape.","default-value":"black",type:"color"},"stroke-width":{css:"marker-line-width",doc:"The width of the stroke around a marker shape, in pixels. This is positioned on the boundary, so high values can cover the area itself.",type:"float"},"stroke-opacity":{css:"marker-line-opacity","default-value":1,"default-meaning":"opaque",doc:"The opacity of a line",type:"float"},placement:{css:"marker-placement",type:["point","line","interior"],"default-value":"point","default-meaning":"Place markers at the center point (centroid) of the geometry",doc:"Attempt to place markers on a point, in the center of a polygon, or if markers-placement:line, then multiple times along a line. 'interior' placement can be used to ensure that points placed on polygons are forced to be inside the polygon interior"},"multi-policy":{css:"marker-multi-policy",type:["each","whole","largest"],"default-value":"each","default-meaning":"If a feature contains multiple geometries and the placement type is either point or interior then a marker will be rendered for each",doc:"A special setting to allow the user to control rendering behavior for 'multi-geometries' (when a feature contains multiple geometries). This setting does not apply to markers placed along lines. The 'each' policy is default and means all geometries will get a marker. The 'whole' policy means that the aggregate centroid between all geometries will be used. The 'largest' policy means that only the largest (by bounding box areas) feature will get a rendered marker (this is how text labeling behaves by default)."},"marker-type":{css:"marker-type",type:["arrow","ellipse"],"default-value":"ellipse",doc:"The default marker-type. If a SVG file is not given as the marker-file parameter, the renderer provides either an arrow or an ellipse (a circle if height is equal to width)"},width:{css:"marker-width","default-value":10,doc:"The width of the marker, if using one of the default types.",type:"expression"},height:{css:"marker-height","default-value":10,doc:"The height of the marker, if using one of the default types.",type:"expression"},fill:{css:"marker-fill","default-value":"blue",doc:"The color of the area of the marker.",type:"color"},"allow-overlap":{css:"marker-allow-overlap",type:"boolean","default-value":!1,doc:"Control whether overlapping markers are shown or hidden.","default-meaning":"Do not allow makers to overlap with each other - overlapping markers will not be shown."},"ignore-placement":{css:"marker-ignore-placement",type:"boolean","default-value":!1,"default-meaning":"do not store the bbox of this geometry in the collision detector cache",doc:"value to control whether the placement of the feature will prevent the placement of other features"},spacing:{css:"marker-spacing",doc:"Space between repeated labels","default-value":100,type:"float"},"max-error":{css:"marker-max-error",type:"float","default-value":.2,doc:"The maximum difference between actual marker placement and the marker-spacing parameter. Setting a high value can allow the renderer to try to resolve placement conflicts with other symbolizers."},transform:{css:"marker-transform",type:"functions",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]],"default-value":"","default-meaning":"No transformation",doc:"SVG transformation definition"},clip:{css:"marker-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"marker-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},"geometry-transform":{css:"marker-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"marker-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},shield:{name:{css:"shield-name",type:"expression",serialization:"content",doc:'Value to use for a shield"s text label. Data columns are specified using brackets like [column_name]'},file:{css:"shield-file",required:!0,type:"uri","default-value":"none",doc:"Image file to render behind the shield text"},"face-name":{css:"shield-face-name",type:"string",validate:"font",doc:"Font name and style to use for the shield text","default-value":"",required:!0},"unlock-image":{css:"shield-unlock-image",type:"boolean",doc:"This parameter should be set to true if you are trying to position text beside rather than on top of the shield image","default-value":!1,"default-meaning":"text alignment relative to the shield image uses the center of the image as the anchor for text positioning."},size:{css:"shield-size",type:"float",doc:"The size of the shield text in pixels"},fill:{css:"shield-fill",type:"color",doc:"The color of the shield text"},placement:{css:"shield-placement",type:["point","line","vertex","interior"],"default-value":"point",doc:"How this shield should be placed. Point placement attempts to place it on top of points, line places along lines multiple times per feature, vertex places on the vertexes of polygons, and interior attempts to place inside of polygons."},"avoid-edges":{css:"shield-avoid-edges",doc:"Tell positioning algorithm to avoid labeling near intersection edges.",type:"boolean","default-value":!1},"allow-overlap":{css:"shield-allow-overlap",type:"boolean","default-value":!1,doc:"Control whether overlapping shields are shown or hidden.","default-meaning":"Do not allow shields to overlap with other map elements already placed."},"minimum-distance":{css:"shield-min-distance",type:"float","default-value":0,doc:"Minimum distance to the next shield symbol, not necessarily the same shield."},spacing:{css:"shield-spacing",type:"float","default-value":0,doc:"The spacing between repeated occurrences of the same shield on a line"},"minimum-padding":{css:"shield-min-padding","default-value":0,doc:"Determines the minimum amount of padding that a shield gets relative to other shields",type:"float"},"wrap-width":{css:"shield-wrap-width",type:"unsigned","default-value":0,doc:"Length of a chunk of text in characters before wrapping text"},"wrap-before":{css:"shield-wrap-before",type:"boolean","default-value":!1,doc:"Wrap text before wrap-width is reached. If false, wrapped lines will be a bit longer than wrap-width."},"wrap-character":{css:"shield-wrap-character",type:"string","default-value":" ",doc:"Use this character instead of a space to wrap long names."},"halo-fill":{css:"shield-halo-fill",type:"color","default-value":"#FFFFFF","default-meaning":"white",doc:"Specifies the color of the halo around the text."},"halo-radius":{css:"shield-halo-radius",doc:"Specify the radius of the halo in pixels","default-value":0,"default-meaning":"no halo",type:"float"},"character-spacing":{css:"shield-character-spacing",type:"unsigned","default-value":0,doc:"Horizontal spacing between characters (in pixels). Currently works for point placement only, not line placement."},"line-spacing":{css:"shield-line-spacing",doc:"Vertical spacing between lines of multiline labels (in pixels)",type:"unsigned"},dx:{css:"shield-text-dx",type:"float",doc:"Displace text within shield by fixed amount, in pixels, +/- along the X axis. A positive value will shift the text right","default-value":0},dy:{css:"shield-text-dy",type:"float",doc:"Displace text within shield by fixed amount, in pixels, +/- along the Y axis. A positive value will shift the text down","default-value":0},"shield-dx":{css:"shield-dx",type:"float",doc:"Displace shield by fixed amount, in pixels, +/- along the X axis. A positive value will shift the text right","default-value":0},"shield-dy":{css:"shield-dy",type:"float",doc:"Displace shield by fixed amount, in pixels, +/- along the Y axis. A positive value will shift the text down","default-value":0},opacity:{css:"shield-opacity",type:"float",doc:"(Default 1.0) - opacity of the image used for the shield","default-value":1},"text-opacity":{css:"shield-text-opacity",type:"float",doc:"(Default 1.0) - opacity of the text placed on top of the shield","default-value":1},"horizontal-alignment":{css:"shield-horizontal-alignment",type:["left","middle","right","auto"],doc:"The shield's horizontal alignment from its centerpoint","default-value":"auto"},"vertical-alignment":{css:"shield-vertical-alignment",type:["top","middle","bottom","auto"],doc:"The shield's vertical alignment from its centerpoint","default-value":"middle"},"text-transform":{css:"shield-text-transform",type:["none","uppercase","lowercase","capitalize"],doc:"Transform the case of the characters","default-value":"none"},"justify-alignment":{css:"shield-justify-alignment",type:["left","center","right","auto"],doc:"Define how text in a shield's label is justified","default-value":"auto"},clip:{css:"shield-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},"comp-op":{css:"shield-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},"line-pattern":{file:{css:"line-pattern-file",type:"uri","default-value":"none",required:!0,doc:"An image file to be repeated and warped along a line"},clip:{css:"line-pattern-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"line-pattern-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},"geometry-transform":{css:"line-pattern-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"line-pattern-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},"polygon-pattern":{file:{css:"polygon-pattern-file",type:"uri","default-value":"none",required:!0,doc:"Image to use as a repeated pattern fill within a polygon"},alignment:{css:"polygon-pattern-alignment",type:["local","global"],"default-value":"local",doc:"Specify whether to align pattern fills to the layer or to the map."},gamma:{css:"polygon-pattern-gamma",type:"float","default-value":1,"default-meaning":"fully antialiased",range:"0-1",doc:"Level of antialiasing of polygon pattern edges"},opacity:{css:"polygon-pattern-opacity",type:"float",doc:"(Default 1.0) - Apply an opacity level to the image used for the pattern","default-value":1,"default-meaning":"The image is rendered without modifications"},clip:{css:"polygon-pattern-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},smooth:{css:"polygon-pattern-smooth",type:"float","default-value":0,"default-meaning":"no smoothing",range:"0-1",doc:"Smooths out geometry angles. 0 is no smoothing, 1 is fully smoothed. Values greater than 1 will produce wild, looping geometries."},"geometry-transform":{css:"polygon-pattern-geometry-transform",type:"functions","default-value":"none","default-meaning":"geometry will not be transformed",doc:"Allows transformation functions to be applied to the geometry.",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]]},"comp-op":{css:"polygon-pattern-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},raster:{opacity:{css:"raster-opacity","default-value":1,"default-meaning":"opaque",type:"float",doc:"The opacity of the raster symbolizer on top of other symbolizers."},"filter-factor":{css:"raster-filter-factor","default-value":-1,"default-meaning":"Allow the datasource to choose appropriate downscaling.",type:"float",doc:"This is used by the Raster or Gdal datasources to pre-downscale images using overviews. Higher numbers can sometimes cause much better scaled image output, at the cost of speed."},scaling:{css:"raster-scaling",type:["near","fast","bilinear","bilinear8","bicubic","spline16","spline36","hanning","hamming","hermite","kaiser","quadric","catrom","gaussian","bessel","mitchell","sinc","lanczos","blackman"],"default-value":"near",doc:"The scaling algorithm used to making different resolution versions of this raster layer. Bilinear is a good compromise between speed and accuracy, while lanczos gives the highest quality."},"mesh-size":{css:"raster-mesh-size","default-value":16,"default-meaning":"Reprojection mesh will be 1/16 of the resolution of the source image",type:"unsigned",doc:"A reduced resolution mesh is used for raster reprojection, and the total image size is divided by the mesh-size to determine the quality of that mesh. Values for mesh-size larger than the default will result in faster reprojection but might lead to distortion."},"comp-op":{css:"raster-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},point:{file:{css:"point-file",type:"uri",required:!1,"default-value":"none",doc:"Image file to represent a point"},"allow-overlap":{css:"point-allow-overlap",type:"boolean","default-value":!1,doc:"Control whether overlapping points are shown or hidden.","default-meaning":"Do not allow points to overlap with each other - overlapping markers will not be shown."},"ignore-placement":{css:"point-ignore-placement",type:"boolean","default-value":!1,"default-meaning":"do not store the bbox of this geometry in the collision detector cache",doc:"value to control whether the placement of the feature will prevent the placement of other features"},opacity:{css:"point-opacity",type:"float","default-value":1,"default-meaning":"Fully opaque",doc:"A value from 0 to 1 to control the opacity of the point"},placement:{css:"point-placement",type:["centroid","interior"],doc:"How this point should be placed. Centroid calculates the geometric center of a polygon, which can be outside of it, while interior always places inside of a polygon.","default-value":"centroid"},transform:{css:"point-transform",type:"functions",functions:[["matrix",6],["translate",2],["scale",2],["rotate",3],["skewX",1],["skewY",1]],"default-value":"","default-meaning":"No transformation",doc:"SVG transformation definition"},"comp-op":{css:"point-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},text:{name:{css:"text-name",type:"expression",required:!0,"default-value":"",serialization:"content",doc:"Value to use for a text label. Data columns are specified using brackets like [column_name]"},"face-name":{css:"text-face-name",type:"string",validate:"font",doc:"Font name and style to render a label in",required:!0},size:{css:"text-size",type:"float","default-value":10,doc:"Text size in pixels"},"text-ratio":{css:"text-ratio",doc:"Define the amount of text (of the total) present on successive lines when wrapping occurs","default-value":0,type:"unsigned"},"wrap-width":{css:"text-wrap-width",doc:"Length of a chunk of text in characters before wrapping text","default-value":0,type:"unsigned"},"wrap-before":{css:"text-wrap-before",type:"boolean","default-value":!1,doc:"Wrap text before wrap-width is reached. If false, wrapped lines will be a bit longer than wrap-width."},"wrap-character":{css:"text-wrap-character",type:"string","default-value":" ",doc:"Use this character instead of a space to wrap long text."},spacing:{css:"text-spacing",type:"unsigned",doc:"Distance between repeated text labels on a line (aka. label-spacing)"},"character-spacing":{css:"text-character-spacing",type:"float","default-value":0,doc:"Horizontal spacing adjustment between characters in pixels"},"line-spacing":{css:"text-line-spacing","default-value":0,type:"unsigned",doc:"Vertical spacing adjustment between lines in pixels"},"label-position-tolerance":{css:"text-label-position-tolerance","default-value":0,type:"unsigned",doc:"Allows the label to be displaced from its ideal position by a number of pixels (only works with placement:line)"},"max-char-angle-delta":{css:"text-max-char-angle-delta",type:"float","default-value":"22.5",doc:"The maximum angle change, in degrees, allowed between adjacent characters in a label. This value internally is converted to radians to the default is 22.5*math.pi/180.0. The higher the value the fewer labels will be placed around around sharp corners."},fill:{css:"text-fill",doc:"Specifies the color for the text","default-value":"#000000",type:"color"},opacity:{css:"text-opacity",doc:"A number from 0 to 1 specifying the opacity for the text","default-value":1,"default-meaning":"Fully opaque",type:"float"},"halo-fill":{css:"text-halo-fill",type:"color","default-value":"#FFFFFF","default-meaning":"white",doc:"Specifies the color of the halo around the text."},"halo-radius":{css:"text-halo-radius",doc:"Specify the radius of the halo in pixels","default-value":0,"default-meaning":"no halo",type:"float"},dx:{css:"text-dx",type:"float",doc:"Displace text by fixed amount, in pixels, +/- along the X axis. A positive value will shift the text right","default-value":0},dy:{css:"text-dy",type:"float",doc:"Displace text by fixed amount, in pixels, +/- along the Y axis. A positive value will shift the text down","default-value":0},"vertical-alignment":{css:"text-vertical-alignment",type:["top","middle","bottom","auto"],doc:"Position of label relative to point position.","default-value":"auto","default-meaning":'Default affected by value of dy; "bottom" for dy>0, "top" for dy<0.'},"avoid-edges":{css:"text-avoid-edges",doc:"Tell positioning algorithm to avoid labeling near intersection edges.","default-value":!1,type:"boolean"},"minimum-distance":{css:"text-min-distance",doc:"Minimum permitted distance to the next text symbolizer.",type:"float"},"minimum-padding":{css:"text-min-padding",doc:"Determines the minimum amount of padding that a text symbolizer gets relative to other text",type:"float"},"minimum-path-length":{css:"text-min-path-length",type:"float","default-value":0,"default-meaning":"place labels on all paths",doc:"Place labels only on paths longer than this value."},"allow-overlap":{css:"text-allow-overlap",type:"boolean","default-value":!1,doc:"Control whether overlapping text is shown or hidden.","default-meaning":"Do not allow text to overlap with other text - overlapping markers will not be shown."},orientation:{css:"text-orientation",type:"expression",doc:"Rotate the text."},placement:{css:"text-placement",type:["point","line","vertex","interior"],"default-value":"point",doc:"Control the style of placement of a point versus the geometry it is attached to."},"placement-type":{css:"text-placement-type",doc:'Re-position and/or re-size text to avoid overlaps. "simple" for basic algorithm (using text-placements string,) "dummy" to turn this feature off.',type:["dummy","simple"],"default-value":"dummy"},placements:{css:"text-placements",type:"string","default-value":"",doc:'If "placement-type" is set to "simple", use this "POSITIONS,[SIZES]" string. An example is `text-placements: "E,NE,SE,W,NW,SW";` '},"text-transform":{css:"text-transform",type:["none","uppercase","lowercase","capitalize"],doc:"Transform the case of the characters","default-value":"none"},"horizontal-alignment":{css:"text-horizontal-alignment",type:["left","middle","right","auto"],doc:"The text's horizontal alignment from its centerpoint","default-value":"auto"},"justify-alignment":{css:"text-align",type:["left","right","center","auto"],doc:"Define how text is justified","default-value":"auto","default-meaning":"Auto alignment means that text will be centered by default except when using the `placement-type` parameter - in that case either right or left justification will be used automatically depending on where the text could be fit given the `text-placements` directives"},clip:{css:"text-clip",type:"boolean","default-value":!0,"default-meaning":"geometry will be clipped to map bounds before rendering",doc:"geometries are clipped to map bounds by default for best rendering performance. In some cases users may wish to disable this to avoid rendering artifacts."},"comp-op":{css:"text-comp-op","default-value":"src-over","default-meaning":"add the current symbolizer on top of other symbolizer",doc:"Composite operation. This defines how this symbolizer should behave relative to symbolizers atop or below it.",type:["clear","src","dst","src-over","dst-over","src-in","dst-in","src-out","dst-out","src-atop","dst-atop","xor","plus","minus","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","contrast","invert","invert-rgb","grain-merge","grain-extract","hue","saturation","color","value"]}},building:{fill:{css:"building-fill","default-value":"#FFFFFF",doc:"The color of the buildings walls.",type:"color"},"fill-opacity":{css:"building-fill-opacity",type:"float",doc:"The opacity of the building as a whole, including all walls.","default-value":1},height:{css:"building-height",doc:"The height of the building in pixels.",type:"expression","default-value":"0"}}},colors:{aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],grey:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50],transparent:[0,0,0,0]},filter:{value:["true","false","null","point","linestring","polygon","collection"]}},c.mapnik_reference={version:{latest:o.SuperMap._mapnik_reference_latest,"2.1.1":o.SuperMap._mapnik_reference_latest}},o.SuperMap.CartoCSS=c,o.SuperMap.CartoCSS.Tree={},o.SuperMap.CartoCSS.Tree.operate=function(e,t,r){switch(e){case"+":return t+r;case"-":return t-r;case"*":return t*r;case"%":return t%r;case"/":return t/r}},o.SuperMap.CartoCSS.Tree.functions={rgb:function(e,t,r){return this.rgba(e,t,r,1)},rgba:function(e,t,r,i){var n=this,a=[e,t,r].map(function(e){return n.number(e)});return i=n.number(i),a.some(isNaN)||isNaN(i)?null:new o.SuperMap.CartoCSS.Tree.Color(a,i)},stop:function(e){var t,r;return arguments.length>1&&(t=arguments[1]),arguments.length>2&&(r=arguments[2]),{is:"tag",val:e,color:t,mode:r,toString:function(i){return'\n\t<stop value="'+e.ev(i)+'"'+(t?' color="'+t.ev(i)+'" ':"")+(r?' mode="'+r.ev(i)+'" ':"")+"/>"}}},hsl:function(e,t,r){return this.hsla(e,t,r,1)},hsla:function(e,t,r,i){if([e=this.number(e)%360/360,t=this.number(t),r=this.number(r),i=this.number(i)].some(isNaN))return null;var n=r<=.5?r*(t+1):r+t-r*t,a=2*r-n;return this.rgba(255*o(e+1/3),255*o(e),255*o(e-1/3),i);function o(e){return 6*(e=e<0?e+1:e>1?e-1:e)<1?a+(n-a)*e*6:2*e<1?n:3*e<2?a+(n-a)*(2/3-e)*6:a}},hue:function(e){return"toHSL"in e?new o.SuperMap.CartoCSS.Tree.Dimension(Math.round(e.toHSL().h)):null},saturation:function(e){return"toHSL"in e?new o.SuperMap.CartoCSS.Tree.Dimension(Math.round(100*e.toHSL().s),"%"):null},lightness:function(e){return"toHSL"in e?new o.SuperMap.CartoCSS.Tree.Dimension(Math.round(100*e.toHSL().l),"%"):null},alpha:function(e){return"toHSL"in e?new o.SuperMap.CartoCSS.Tree.Dimension(e.toHSL().a):null},saturate:function(e,t){if(!("toHSL"in e))return null;var r=e.toHSL();return r.s+=t.value/100,r.s=this.clamp(r.s),this.hsla_simple(r)},desaturate:function(e,t){if(!("toHSL"in e))return null;var r=e.toHSL();return r.s-=t.value/100,r.s=this.clamp(r.s),this.hsla_simple(r)},lighten:function(e,t){if(!("toHSL"in e))return null;var r=e.toHSL();return r.l+=t.value/100,r.l=this.clamp(r.l),this.hsla_simple(r)},darken:function(e,t){if(!("toHSL"in e))return null;var r=e.toHSL();return r.l-=t.value/100,r.l=this.clamp(r.l),this.hsla_simple(r)},fadein:function(e,t){if(!("toHSL"in e))return null;var r=e.toHSL();return r.a+=t.value/100,r.a=this.clamp(r.a),this.hsla_simple(r)},fadeout:function(e,t){if(!("toHSL"in e))return null;var r=e.toHSL();return r.a-=t.value/100,r.a=this.clamp(r.a),this.hsla_simple(r)},spin:function(e,t){if(!("toHSL"in e))return null;var r=e.toHSL(),i=(r.h+t.value)%360;return r.h=i<0?360+i:i,this.hsla_simple(r)},replace:function(e,t,r){return"field"===e.is?e.toString+".replace("+t.toString()+", "+r.toString()+")":e.replace(t,r)},mix:function(e,t,r){var i=r.value/100,n=2*i-1,a=e.toHSL().a-t.toHSL().a,s=((n*a==-1?n:(n+a)/(1+n*a))+1)/2,l=1-s,u=[e.rgb[0]*s+t.rgb[0]*l,e.rgb[1]*s+t.rgb[1]*l,e.rgb[2]*s+t.rgb[2]*l],c=e.alpha*i+t.alpha*(1-i);return new o.SuperMap.CartoCSS.Tree.Color(u,c)},greyscale:function(e){return this.desaturate(e,new o.SuperMap.CartoCSS.Tree.Dimension(100))},"%":function(e){for(var t=Array.prototype.slice.call(arguments,1),r=e.value,i=0;i<t.length;i++)r=r.replace(/%s/,t[i].value).replace(/%[da]/,t[i].toString());return r=r.replace(/%%/g,"%"),new o.SuperMap.CartoCSS.Tree.Quoted(r)},hsla_simple:function(e){return this.hsla(e.h,e.s,e.l,e.a)},number:function(e){return e instanceof o.SuperMap.CartoCSS.Tree.Dimension?parseFloat("%"===e.unit?e.value/100:e.value):"number"==typeof e?e:NaN},clamp:function(e){return Math.min(1,Math.max(0,e))}},o.SuperMap.CartoCSS.Tree.Call=function(){function e(t,r,i){u(this,e),this.is="call",this.name=t,this.args=r,this.index=i}return a(e,[{key:"ev",value:function(e){for(var t=this.args.map(function(t){return t.ev(e)}),r=0;r<t.length;r++)if("undefined"===t[r].is)return{is:"undefined",value:"undefined"};if(this.name in o.SuperMap.CartoCSS.Tree.functions){if(o.SuperMap.CartoCSS.Tree.functions[this.name].length<=t.length){var i=o.SuperMap.CartoCSS.Tree.functions[this.name].apply(o.SuperMap.CartoCSS.Tree.functions,t);return null===i?(e.error({message:"incorrect arguments given to "+this.name+"()",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}):i}return e.error({message:"incorrect number of arguments for "+this.name+"(). "+o.SuperMap.CartoCSS.Tree.functions[this.name].length+" expected.",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}}var n=o.SuperMap.CartoCSS.Tree.Reference.mapnikFunctions[this.name];if(void 0===n){var a=(0,l.default)(o.SuperMap.CartoCSS.Tree.Reference.mapnikFunctions),s=this.name,u=a.map(function(e){return[e[0],o.SuperMap.CartoCSS.Tree.Reference.editDistance(s,e[0]),e[1]]}).sort(function(e,t){return e[1]-t[1]});return e.error({message:"unknown function "+this.name+"(), did you mean "+u[0][0]+"("+u[0][2]+")",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}}return n!==t.length&&-1!==n?(e.error({message:"function "+this.name+"() takes "+n+" arguments and was given "+t.length,index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}):(this.args=t,this)}},{key:"toString",value:function(e,t){return this.args.length?this.name+"("+this.args.join(",")+")":this.name}}]),e}(),o.SuperMap.CartoCSS.Tree.Color=function(){function e(t,r){u(this,e),this.is="color",Array.isArray(t)?this.rgb=t.slice(0,3):6==t.length?this.rgb=t.match(/.{2}/g).map(function(e){return parseInt(e,16)}):this.rgb=t.split("").map(function(e){return parseInt(e+e,16)}),"number"==typeof r?this.alpha=r:4===t.length?this.alpha=t[3]:this.alpha=1}return a(e,[{key:"ev",value:function(){return this}},{key:"toString",value:function(){return"rgba("+this.rgb.map(function(e){return Math.round(e)}).concat(this.alpha).join(", ")+")"}},{key:"operate",value:function(e,t,r){var i=[];r instanceof o.SuperMap.CartoCSS.Tree.Color||(r=r.toColor());for(var n=0;n<3;n++)i[n]=o.SuperMap.CartoCSS.Tree.operate(t,this.rgb[n],r.rgb[n]);return new o.SuperMap.CartoCSS.Tree.Color(i)}},{key:"toHSL",value:function(){var e,t,r=this.rgb[0]/255,i=this.rgb[1]/255,n=this.rgb[2]/255,a=this.alpha,o=Math.max(r,i,n),s=Math.min(r,i,n),l=(o+s)/2,u=o-s;if(o===s)e=t=0;else{switch(t=l>.5?u/(2-o-s):u/(o+s),o){case r:e=(i-n)/u+(i<n?6:0);break;case i:e=(n-r)/u+2;break;case n:e=(r-i)/u+4}e/=6}return{h:360*e,s:t,l:l,a:a}}}]),e}(),o.SuperMap.CartoCSS.Tree.Comment=function(){function e(t,r){u(this,e),this.value=t,this.silent=!!r}return a(e,[{key:"toString",value:function(e){return"\x3c!--"+this.value+"--\x3e"}},{key:"ev",value:function(){return this}}]),e}(),o.SuperMap.CartoCSS.Tree.Definition=function(){function e(t,r){u(this,e),this.elements=t.elements,this.rules=r,this.ruleIndex={};for(var i=0;i<this.rules.length;i++)"zoom"in this.rules[i]&&(this.rules[i]=this.rules[i].clone()),this.rules[i].zoom=t.zoom,this.ruleIndex[this.rules[i].updateID()]=!0;this.filters=t.filters,this.zoom=t.zoom,this.attachment=t.attachment||"__default__",this.specificity=t.specificity()}return a(e,[{key:"toString",value:function(){for(var e=this.filters.toString(),t=0;t<this.rules.length;t++)e+="\n "+this.rules[t];return e}},{key:"toJS",value:function(e){var t={},r=this.zoom,i=this.filters.toJS(e),n=[r];function a(r){if(r instanceof o.SuperMap.CartoCSS.Tree.Rule)t[r.name]=t[r.name]||[],i?t[r.name].push("if("+i+"){"+r.value.toJS(e)+"}"):t[r.name].push(r.value.toJS(e));else if(r instanceof o.SuperMap.CartoCSS.Tree.Ruleset){var n=r.toJS(e);for(var a in n)for(var s in t[a]=t[a]||[],n[a])t[a].push(n[a][s])}}for(var s in i&&n.push(i),i=n.join(" && "),this.rules)a(this.rules[s]);return t}}]),e}(),o.SuperMap.CartoCSS.Tree.Dimension=function(){function e(t,r,i){u(this,e),this.is="float",this.physical_units=["m","cm","in","mm","pt","pc"],this.screen_units=["px","%"],this.all_units=["m","cm","in","mm","pt","pc","px","%"],this.densities={m:.0254,mm:25.4,cm:2.54,pt:72,pc:6},this.value=parseFloat(t),this.unit=r||null,this.index=i}return a(e,[{key:"ev",value:function(e){if(this.unit&&this.all_units.indexOf(this.unit)<0)return e.error({message:"Invalid unit: '"+this.unit+"'",index:this.index}),{is:"undefined",value:"undefined"};if(this.unit&&this.physical_units.indexOf(this.unit)>=0){if(!e.ppi)return e.error({message:"ppi is not set, so metric units can't be used",index:this.index}),{is:"undefined",value:"undefined"};this.value=this.value/this.densities[this.unit]*e.ppi,this.unit="px"}return this}},{key:"toColor",value:function(){return new o.SuperMap.CartoCSS.Tree.Color([this.value,this.value,this.value])}},{key:"round",value:function(){return this.value=Math.round(this.value),this}},{key:"toString",value:function(){return this.value.toString()}},{key:"operate",value:function(e,t,r){return"%"===this.unit&&"%"!==r.unit?(e.error({message:"If two operands differ, the first must not be %",index:this.index}),{is:"undefined",value:"undefined"}):"%"!==this.unit&&"%"===r.unit?"*"===t||"/"===t||"%"===t?(e.error({message:"Percent values can only be added or subtracted from other values",index:this.index}),{is:"undefined",value:"undefined"}):new o.SuperMap.CartoCSS.Tree.Dimension(o.SuperMap.CartoCSS.Tree.operate(t,this.value,this.value*r.value*.01),this.unit):new o.SuperMap.CartoCSS.Tree.Dimension(o.SuperMap.CartoCSS.Tree.operate(t,this.value,r.value),this.unit||r.unit)}}]),e}(),o.SuperMap.CartoCSS.Tree.Element=function(){function e(t){u(this,e),this.value=t.trim(),"#"===this.value[0]&&(this.type="id",this.clean=this.value.replace(/^#/,"")),"."===this.value[0]&&(this.type="class",this.clean=this.value.replace(/^\./,"")),-1!==this.value.indexOf("*")&&(this.type="wildcard")}return a(e,[{key:"specificity",value:function(){return["id"===this.type?1:0,"class"===this.type?1:0]}},{key:"toString",value:function(){return this.value}}]),e}(),o.SuperMap.CartoCSS.Tree.Expression=function(){function e(t){u(this,e),this.is="expression",this.value=t}return a(e,[{key:"ev",value:function(e){return this.value.length>1?new o.SuperMap.CartoCSS.Tree.Expression(this.value.map(function(t){return t.ev(e)})):this.value[0].ev(e)}},{key:"toString",value:function(e){return this.value.map(function(t){return t.toString(e)}).join(" ")}}]),e}(),o.SuperMap.CartoCSS.Tree.Field=function(){function e(t){u(this,e),this.is="field",this.value=t||""}return a(e,[{key:"toString",value:function(){return'["'+this.value.toUpperCase()+'"]'}},{key:"ev",value:function(){return this}}]),e}(),o.SuperMap.CartoCSS.Tree.Filter=function(){function e(t,r,i,n,a){u(this,e),this.ops={"<":[" &lt; ","numeric"],">":[" &gt; ","numeric"],"=":[" = ","both"],"!=":[" != ","both"],"<=":[" &lt;= ","numeric"],">=":[" &gt;= ","numeric"],"=~":[".match(","string",")"]},this.key=t,this.op=r,this.val=i,this.index=n,this.filename=a,this.id=this.key+this.op+this.val}return a(e,[{key:"ev",value:function(e){return this.key=this.key.ev(e),this.val=this.val.ev(e),this}},{key:"toString",value:function(){return"["+this.id+"]"}}]),e}(),o.SuperMap.CartoCSS.Tree.Filterset=function(){function e(){u(this,e),this.filters={}}return a(e,[{key:"toJS",value:function(e){function t(e){var t=e.op;"="===t&&(t="==");var r=e.val;void 0!==e._val&&(r=e._val.toString(!0)),e.key&&"scale"===e.key.value?r=+r:"string"!=typeof r&&"object"!==(void 0===r?"undefined":n(r))||(r="'"+r+"'");var i="attributes";return i+"&&"+i+e.key+"&&"+i+e.key+" "+t+r}var r=[];for(var i in this.filters)r.push(t(this.filters[i]));return r.join(" && ")}},{key:"toString",value:function(){var e=[];for(var t in this.filters)e.push(this.filters[t].id);return e.sort().join("\t")}},{key:"ev",value:function(e){for(var t in this.filters)this.filters[t].ev(e);return this}},{key:"clone",value:function(){var e=new o.SuperMap.CartoCSS.Tree.Filterset;for(var t in this.filters)e.filters[t]=this.filters[t];return e}},{key:"cloneWith",value:function(e){var t=[];for(var r in e.filters){var i=this.addable(e.filters[r]);if(!1===i)return!1;!0===i&&t.push(e.filters[r])}if(!t.length)return null;var n=new o.SuperMap.CartoCSS.Tree.Filterset;for(r in this.filters)n.filters[r]=this.filters[r];for(;r=t.shift();)n.add(r);return n}},{key:"addable",value:function(e){var t=e.key.toString(),r=e.val.toString();switch(r.match(/^[0-9]+(\.[0-9]*)?$/)&&(r=parseFloat(r)),e.op){case"=":return void 0!==this.filters[t+"="]?this.filters[t+"="].val.toString()==r&&null:void 0===this.filters[t+"!="+r]&&(!(void 0!==this.filters[t+">"]&&this.filters[t+">"].val>=r)&&(!(void 0!==this.filters[t+"<"]&&this.filters[t+"<"].val<=r)&&(!(void 0!==this.filters[t+">="]&&this.filters[t+">="].val>r)&&!(void 0!==this.filters[t+"<="]&&this.filters[t+"<="].val<r))));case"=~":return!0;case"!=":return void 0!==this.filters[t+"="]?this.filters[t+"="].val!==r&&null:void 0!==this.filters[t+"!="+r]?null:void 0!==this.filters[t+">"]&&this.filters[t+">"].val>=r?null:void 0!==this.filters[t+"<"]&&this.filters[t+"<"].val<=r?null:void 0!==this.filters[t+">="]&&this.filters[t+">="].val>r?null:!(void 0!==this.filters[t+"<="]&&this.filters[t+"<="].val<r)||null;case">":return t+"="in this.filters?!(this.filters[t+"="].val<=r)&&null:!(void 0!==this.filters[t+"<"]&&this.filters[t+"<"].val<=r)&&(!(void 0!==this.filters[t+"<="]&&this.filters[t+"<="].val<=r)&&(void 0!==this.filters[t+">"]&&this.filters[t+">"].val>=r?null:!(void 0!==this.filters[t+">="]&&this.filters[t+">="].val>r)||null));case">=":return void 0!==this.filters[t+"="]?!(this.filters[t+"="].val<r)&&null:!(void 0!==this.filters[t+"<"]&&this.filters[t+"<"].val<=r)&&(!(void 0!==this.filters[t+"<="]&&this.filters[t+"<="].val<r)&&(void 0!==this.filters[t+">"]&&this.filters[t+">"].val>=r?null:!(void 0!==this.filters[t+">="]&&this.filters[t+">="].val>=r)||null));case"<":return void 0!==this.filters[t+"="]?!(this.filters[t+"="].val>=r)&&null:!(void 0!==this.filters[t+">"]&&this.filters[t+">"].val>=r)&&(!(void 0!==this.filters[t+">="]&&this.filters[t+">="].val>=r)&&(void 0!==this.filters[t+"<"]&&this.filters[t+"<"].val<=r?null:!(void 0!==this.filters[t+"<="]&&this.filters[t+"<="].val<r)||null));case"<=":return void 0!==this.filters[t+"="]?!(this.filters[t+"="].val>r)&&null:!(void 0!==this.filters[t+">"]&&this.filters[t+">"].val>=r)&&(!(void 0!==this.filters[t+">="]&&this.filters[t+">="].val>r)&&(void 0!==this.filters[t+"<"]&&this.filters[t+"<"].val<=r?null:!(void 0!==this.filters[t+"<="]&&this.filters[t+"<="].val<=r)||null))}}},{key:"conflict",value:function(e){var t=e.key.toString(),r=e.val.toString();return isNaN(parseFloat(r))||(r=parseFloat(r)),("="===e.op&&void 0!==this.filters[t+"="]&&r!=this.filters[t+"="].val.toString()||"!="===e.op&&void 0!==this.filters[t+"="]&&r==this.filters[t+"="].val.toString()||"="===e.op&&void 0!==this.filters[t+"!="]&&r===this.filters[t+"!="].val.toString())&&e.toString()+" added to "+this.toString()+" produces an invalid filter"}},{key:"add",value:function(e,t){var r,i=e.key.toString(),n=e.op,a=this.conflict(e);if(a)return a;if("="===n){for(var o in this.filters)this.filters[o].key===i&&delete this.filters[o];this.filters[i+"="]=e}else if("!="===n)this.filters[i+"!="+e.val]=e;else if("=~"===n)this.filters[i+"=~"+e.val]=e;else if(">"===n){for(var s in this.filters)this.filters[s].key===i&&this.filters[s].val<=e.val&&delete this.filters[s];this.filters[i+">"]=e}else if(">="===n){for(var l in this.filters)r=+this.filters[l].val.toString(),this.filters[l].key===i&&r<e.val&&delete this.filters[l];void 0!==this.filters[i+"!="+e.val]?(delete this.filters[i+"!="+e.val],e.op=">",this.filters[i+">"]=e):this.filters[i+">="]=e}else if("<"===n){for(var u in this.filters)r=+this.filters[u].val.toString(),this.filters[u].key===i&&r>=e.val&&delete this.filters[u];this.filters[i+"<"]=e}else if("<="===n){for(var c in this.filters)r=+this.filters[c].val.toString(),this.filters[c].key===i&&r>e.val&&delete this.filters[c];void 0!==this.filters[i+"!="+e.val]?(delete this.filters[i+"!="+e.val],e.op="<",this.filters[i+"<"]=e):this.filters[i+"<="]=e}}}]),e}(),o.SuperMap.CartoCSS.Tree.Fontset=function e(t,r){u(this,e),this.fonts=r,this.name="fontset-"+t.effects.length},o.SuperMap.CartoCSS.Tree.Invalid=function(){function e(t,r,i){u(this,e),this.is="invalid",this.chunk=t,this.index=r,this.type="syntax",this.message=i||"Invalid code: "+this.chunk}return a(e,[{key:"ev",value:function(e){return e.error({chunk:this.chunk,index:this.index,type:"syntax",message:this.message||"Invalid code: "+this.chunk}),{is:"undefined"}}}]),e}(),o.SuperMap.CartoCSS.Tree.Keyword=function(){function e(t){u(this,e),this.value=t;var r={transparent:"color",true:"boolean",false:"boolean"};this.is=r[t]?r[t]:"keyword"}return a(e,[{key:"ev",value:function(){return this}}]),a(e,[{key:"toString",value:function(){return this.value}}]),e}(),o.SuperMap.CartoCSS.Tree.Literal=function(){function e(t){u(this,e),this.value=t||"",this.is="field"}return a(e,[{key:"toString",value:function(){return this.value}},{key:"ev",value:function(){return this}}]),e}(),o.SuperMap.CartoCSS.Tree.Operation=function(){function e(t,r,i){u(this,e),this.is="operation",this.op=t.trim(),this.operands=r,this.index=i}return a(e,[{key:"ev",value:function(e){var t,r=this.operands[0].ev(e),i=this.operands[1].ev(e);return"undefined"===r.is||"undefined"===i.is?{is:"undefined",value:"undefined"}:(r instanceof o.SuperMap.CartoCSS.Tree.Dimension&&i instanceof o.SuperMap.CartoCSS.Tree.Color&&("*"===this.op||"+"===this.op?(t=i,i=r,r=t):e.error({name:"OperationError",message:"Can't substract or divide a color from a number",index:this.index})),r instanceof o.SuperMap.CartoCSS.Tree.Quoted&&i instanceof o.SuperMap.CartoCSS.Tree.Quoted&&"+"!==this.op?(e.error({message:"Can't subtract, divide, or multiply strings.",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}):r instanceof o.SuperMap.CartoCSS.Tree.Field||i instanceof o.SuperMap.CartoCSS.Tree.Field||r instanceof o.SuperMap.CartoCSS.Tree.Literal||i instanceof o.SuperMap.CartoCSS.Tree.Literal?"color"===r.is||"color"===i.is?(e.error({message:"Can't subtract, divide, or multiply colors in expressions.",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}):new o.SuperMap.CartoCSS.Tree.Literal(r.ev(e).toString(!0)+this.op+i.ev(e).toString(!0)):void 0===r.operate?(e.error({message:"Cannot do math with type "+r.is+".",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"}):r.operate(e,this.op,i))}}]),e}(),o.SuperMap.CartoCSS.Tree.Quoted=function(){function e(t){u(this,e),this.is="string",this.value=t||""}return a(e,[{key:"toString",value:function(e){var t=this.value.replace(/&/g,"&amp;"),r=t.replace(/\'/g,"\\'").replace(/\"/g,"&quot;").replace(/</g,"&lt;").replace(/\>/g,"&gt;");return!0===e?"'"+r+"'":t}},{key:"ev",value:function(){return this}},{key:"operate",value:function(e,t,r){return new o.SuperMap.CartoCSS.Tree.Quoted(o.SuperMap.CartoCSS.Tree.operate(t,this.toString(),r.toString(this.contains_field)))}}]),e}(),o.SuperMap.CartoCSS.Tree.Reference={_validateValue:{font:function(e,t){return!e.validation_data||!e.validation_data.fonts||-1!=e.validation_data.fonts.indexOf(t)}},setData:function(e){this.data=e,this.selector_cache=function(e){var t={};for(var r in e.symbolizers)for(var i in e.symbolizers[r])e.symbolizers[r][i].hasOwnProperty("css")&&(t[e.symbolizers[r][i].css]=[e.symbolizers[r][i],r,i]);return t}(e),this.mapnikFunctions=function(e){var t={};for(var r in e.symbolizers)for(var i in e.symbolizers[r])if("functions"===e.symbolizers[r][i].type)for(var n=0;n<e.symbolizers[r][i].functions.length;n++){var a=e.symbolizers[r][i].functions[n];t[a[0]]=a[1]}return t}(e),this.required_cache=function(e){var t={};for(var r in e.symbolizers)for(var i in t[r]=[],e.symbolizers[r])e.symbolizers[r][i].required&&t[r].push(e.symbolizers[r][i].css);return t}(e)},setVersion:function(e){return!!o.SuperMap.CartoCSS.mapnik_reference.version.hasOwnProperty(e)&&(this.setData(o.SuperMap.CartoCSS.mapnik_reference.version[e]),!0)},selectorData:function(e,t){if(this.selector_cache&&this.selector_cache[e])return this.selector_cache[e][t]},validSelector:function(e){return!!this.selector_cache[e]},selectorName:function(e){return this.selectorData(e,2)},selector:function(e){return this.selectorData(e,0)},symbolizer:function(e){return this.selectorData(e,1)},requiredProperties:function(e,t){var r=this.required_cache[e];for(var i in r)if(!(r[i]in t))return"Property "+r[i]+" required for defining "+e+" styles."},isFont:function(e){return"font"===this.selector(e).validate},editDistance:function(e,t){if(0===e.length)return t.length;if(0===t.length)return e.length;for(var r=[],i=0;i<=t.length;i++)r[i]=[i];for(var n=0;n<=e.length;n++)r[0][n]=n;for(i=1;i<=t.length;i++)for(n=1;n<=e.length;n++)t.charAt(i-1)===e.charAt(n-1)?r[i][n]=r[i-1][n-1]:r[i][n]=Math.min(r[i-1][n-1]+1,Math.min(r[i][n-1]+1,r[i-1][n]+1));return r[t.length][e.length]},validValue:function(e,t,r){var i;if(this.selector(t)){if("keyword"===r.value[0].is)return function(e,t){return"object"===n(this.selector(t).type)?-1!==this.selector(t).type.indexOf(e.value[0].value):"string"===this.selector(t).type}(r,t);if("undefined"===r.value[0].is)return!0;if("numbers"===this.selector(t).type){for(i in r.value)if("float"!==r.value[i].is)return!1;return!0}if("tags"===this.selector(t).type){if(!r.value)return!1;if(!r.value[0].value)return"tag"===r.value[0].is;for(i=0;i<r.value[0].value.length;i++)if("tag"!==r.value[0].value[i].is)return!1;return!0}if("functions"==this.selector(t).type)return function(e,t){if("string"===e.value[0].is)return!0;for(var r in e.value)for(var i in e.value[r].value){if("call"!==e.value[r].value[i].is)return!1;var n=find(this.selector(t).functions,function(t){return t[0]===e.value[r].value[i].name});if(!(n&&-1===n[1]||n&&n[1]===e.value[r].value[i].args.length))return!1}return!0}(r,t);if("expression"===this.selector(t).type)return!0;if("unsigned"===this.selector(t).type)return"float"===r.value[0].is&&(r.value[0].round(),!0);if(this.selector(t).validate){for(i=0;i<r.value.length;i++)if(this.selector(t).type===r.value[i].is&&this._validateValue[this.selector(t).validate](e,r.value[i].value))return!0;return!1}return this.selector(t).type===r.value[0].is}return!1}},o.SuperMap.CartoCSS.Tree.Reference.setVersion("latest"),o.SuperMap.CartoCSS.Tree.Rule=function(){function e(t,r,i,n){u(this,e),this.is="rule";var a=t.split("/");this.name=a.pop(),this.instance=a.length?a[0]:"__default__",this.value=r instanceof o.SuperMap.CartoCSS.Tree.Value?r:new o.SuperMap.CartoCSS.Tree.Value([r]),this.index=i,this.symbolizer=o.SuperMap.CartoCSS.Tree.Reference.symbolizer(this.name),this.filename=n,this.variable="@"===t.charAt(0)}return a(e,[{key:"clone",value:function(){var e=Object.create(o.SuperMap.CartoCSS.Tree.Rule.prototype);return e.name=this.name,e.value=this.value,e.index=this.index,e.instance=this.instance,e.symbolizer=this.symbolizer,e.filename=this.filename,e.variable=this.variable,e}},{key:"updateID",value:function(){return this.id=this.zoom+"#"+this.instance+"#"+this.name}},{key:"toString",value:function(){return"["+o.SuperMap.CartoCSS.Tree.Zoom.toString(this.zoom)+"] "+this.name+": "+this.value}},{key:"ev",value:function(e){return new o.SuperMap.CartoCSS.Tree.Rule(this.name,this.value.ev(e),this.index,this.filename)}}]),e}(),o.SuperMap.CartoCSS.Tree.Ruleset=function(){function e(t,r){u(this,e),this.is="ruleset",this.selectors=t,this.rules=r,this._lookups={}}return a(e,[{key:"ev",value:function(e){var t,r,i=new o.SuperMap.CartoCSS.Tree.Ruleset(this.selectors,this.rules.slice(0));for(i.root=this.root,e.frames.unshift(i),t=0;t<i.rules.length;t++)r=i.rules[t],i.rules[t]=r.ev?r.ev(e):r;return e.frames.shift(),i}},{key:"match",value:function(e){return!e||0===e.length}},{key:"variables",value:function(){return this._variables?this._variables:this._variables=this.rules.reduce(function(e,t){return t instanceof o.SuperMap.CartoCSS.Tree.Rule&&!0===t.variable&&(e[t.name]=t),e},{})}},{key:"variable",value:function(e){return this.variables()[e]}},{key:"rulesets",value:function(){return this._rulesets?this._rulesets:this._rulesets=this.rules.filter(function(e){return e instanceof o.SuperMap.CartoCSS.Tree.Ruleset})}},{key:"find",value:function(e,t){t=t||this;var r=[],i=e.toString();return i in this._lookups?this._lookups[i]:(this.rulesets().forEach(function(i){if(i!==t)for(var n=0;n<i.selectors.length;n++)if(e.match(i.selectors[n])){e.elements.length>1?Array.prototype.push.apply(r,i.find(new o.SuperMap.CartoCSS.Tree.Selector(null,null,e.elements.slice(1)),t)):r.push(i);break}}),this._lookups[i]=r)}},{key:"evZooms",value:function(e){for(var t=0;t<this.selectors.length;t++){for(var r=o.SuperMap.CartoCSS.Tree.Zoom.all,i=0;i<this.selectors[t].zoom.length;i++)r=this.selectors[t].zoom[i].ev(e).zoom;this.selectors[t].zoom=r}}},{key:"flatten",value:function(e,t,r){var i,n,a=[];for(0===this.selectors.length&&(r.frames=r.frames.concat(this.rules)),this.evZooms(r),i=0;i<this.selectors.length;i++){var s=this.selectors[i];if(s.filters)if(t.length)for(n=0;n<t.length;n++){var l=t[n],u=l.filters.cloneWith(s.filters);if(null===u){if(l.zoom===s.zoom&&l.attachment===s.attachment&&l.elements.join()===s.elements.join()){a.push(l);continue}u=l.filters}else if(!u)continue;var c=Object.create(o.SuperMap.CartoCSS.Tree.Selector.prototype);c.filters=u,c.zoom=s.zoom,c.elements=l.elements.concat(s.elements),l.attachment&&s.attachment?c.attachment=l.attachment+"/"+s.attachment:c.attachment=s.attachment||l.attachment,c.conditions=l.conditions+s.conditions,c.index=s.index,a.push(c)}else a.push(s)}var p=[];for(i=0;i<this.rules.length;i++){var h=this.rules[i];h instanceof o.SuperMap.CartoCSS.Tree.Ruleset?h.flatten(e,a,r):h instanceof o.SuperMap.CartoCSS.Tree.Rule?p.push(h):h instanceof o.SuperMap.CartoCSS.Tree.Invalid&&r.error(h)}var f=!!p.length&&p[0].index;for(i=0;i<a.length;i++)!1!==f&&(a[i].index=f),e.push(new o.SuperMap.CartoCSS.Tree.Definition(a[i],p.slice()));return e}}]),e}(),o.SuperMap.CartoCSS.Tree.Selector=function(){function e(t,r,i,n,a,s){u(this,e),this.elements=i||[],this.attachment=n,this.filters=t||{},this.zoom=void 0!==r?r:o.SuperMap.CartoCSS.Tree.Zoom.all,this.conditions=a,this.index=s}return a(e,[{key:"specificity",value:function(){return this.elements.reduce(function(e,t){var r=t.specificity();return e[0]+=r[0],e[1]+=r[1],e},[0,0,this.conditions,this.index])}}]),e}(),o.SuperMap.CartoCSS.Tree.URL=function(){function e(t,r){u(this,e),this.is="uri",this.value=t,this.paths=r}return a(e,[{key:"toString",value:function(){return this.value.toString()}},{key:"ev",value:function(e){return new o.SuperMap.CartoCSS.Tree.URL(this.value.ev(e),this.paths)}}]),e}(),o.SuperMap.CartoCSS.Tree.Value=function(){function e(t){u(this,e),this.is="value",this.value=t}return a(e,[{key:"ev",value:function(e){return 1===this.value.length?this.value[0].ev(e):new o.SuperMap.CartoCSS.Tree.Value(this.value.map(function(t){return t.ev(e)}))}},{key:"toJS",value:function(e){var t=this.ev(e),r=t.toString();return"color"===t.is||"uri"===t.is||"string"===t.is||"keyword"===t.is?r="'"+r+"'":"field"===t.is?r=r.replace(/\[(.*)\]/g,"attributes['$1']"):t.value&&"object"===n(t.value)&&(r="["+r+"]"),"_value = "+r+";"}},{key:"toString",value:function(e,t,r,i){return this.value.map(function(t){return t.toString(e,i)}).join(r||", ")}},{key:"clone",value:function(){var e=Object.create(o.SuperMap.CartoCSS.Tree.Value.prototype);return Array.isArray(e)?e.value=this.value.slice():e.value=this.value,e.is=this.is,e}}]),e}(),o.SuperMap.CartoCSS.Tree.Variable=function(){function e(t,r,i){u(this,e),this.is="variable",this.name=t,this.index=r,this.filename=i}return a(e,[{key:"toString",value:function(){return this.name}},{key:"ev",value:function(e){if(this._css)return this._css;var t=e.frames.filter(function(e){return e.name===this.name}.bind(this));return t.length?t[0].value.ev(e):(e.error({message:"variable "+this.name+" is undefined",index:this.index,type:"runtime",filename:this.filename}),{is:"undefined",value:"undefined"})}}]),e}(),o.SuperMap.CartoCSS.Tree.Zoom=function(){function e(t,r,i){u(this,e),this.op=t,this.value=r,this.index=i}return a(e,[{key:"setZoom",value:function(e){return this.zoom=e,this}},{key:"ev",value:function(e){var t=parseInt(this.value.ev(e).toString(),10);switch((t>o.SuperMap.CartoCSS.Tree.Zoom.maxZoom||t<0)&&e.error({message:"Only zoom levels between 0 and "+o.SuperMap.CartoCSS.Tree.Zoom.maxZoom+" supported.",index:this.index}),this.op){case"=":return this.zoom="zoom && zoom === "+t,this;case">":this.zoom="zoom && zoom > "+t;break;case">=":this.zoom="zoom && zoom >= "+t;break;case"<":this.zoom="zoom && zoom < "+t;break;case"<=":this.zoom="zoom && zoom <= "+t;break;default:return this}return this}},{key:"toString",value:function(){for(var e="",t=0;t<=o.SuperMap.CartoCSS.Tree.Zoom.maxZoom;t++)e+=this.zoom&1<<t?"X":".";return e}}]),e}(),o.SuperMap.CartoCSS.Tree.Zoom.all=23,o.SuperMap.CartoCSS.Tree.Zoom.maxZoom=22,o.SuperMap.CartoCSS.Tree.Zoom.ranges={0:1e9,1:5e8,2:2e8,3:1e8,4:5e7,5:25e6,6:125e5,7:65e5,8:3e6,9:15e5,10:75e4,11:4e5,12:2e5,13:1e5,14:5e4,15:25e3,16:12500,17:5e3,18:2500,19:1500,20:750,21:500,22:250,23:100}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeStyle=t.CartoCSS=void 0;var i=r(471),n=r(469);
  1343. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1344. * This program are made available under the terms of the Apache License, Version 2.0
  1345. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1346. t.CartoCSS=i.CartoCSS,t.ThemeStyle=n.ThemeStyle},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayStatistic=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0);var a=t.ArrayStatistic=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return i(e,null,[{key:"newInstance",value:function(){return this.geostatsInstance||(this.geostatsInstance=new window.geostats),this.geostatsInstance}},{key:"getInstance",value:function(e){var t=this.newInstance();return t.setSerie(e),t}},{key:"getArrayStatistic",value:function(e,t){return e.length?"Sum"===t||"求和"===t?this.getSum(e):"Maximum"===t||"最大值"===t?this.getMax(e):"Minimum"===t||"最小值"===t?this.getMin(e):"Average"===t||"平均值"===t?this.getMean(e):"Median"===t||"中位数"===t?this.getMedian(e):"times"===t||"计数"===t?this.getTimes(e):void 0:0}},{key:"getArraySegments",value:function(e,t,r){return"offset"===t?this.getEqInterval(e,r):"jenks"===t?this.getJenks(e,r):"square"===t?this.getMin(e)>=0&&this.getSqrtInterval(e,r):"logarithm"===t?this.getMin(e)>0&&this.getGeometricProgression(e,r):void 0}},{key:"getSum",value:function(e){return this.getInstance(e).sum()}},{key:"getMax",value:function(e){return this.getInstance(e).max()}},{key:"getMin",value:function(e){return this.getInstance(e).min()}},{key:"getMean",value:function(e){return this.getInstance(e).mean()}},{key:"getMedian",value:function(e){return this.getInstance(e).median()}},{key:"getTimes",value:function(e){return e.length}},{key:"getEqInterval",value:function(e,t){return this.getInstance(e).getClassEqInterval(t)}},{key:"getJenks",value:function(e,t){return this.getInstance(e).getClassJenks(t)}},{key:"getSqrtInterval",value:function(e,t){return e=e.map(function(e){return Math.sqrt(e)}),this.getInstance(e).getClassEqInterval(t).map(function(e){return e*e})}},{key:"getGeometricProgression",value:function(e,t){return this.getInstance(e).getClassGeometricProgression(t)}}]),e}();n.SuperMap.ArrayStatistic=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorsPickerUtil=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(82),a=r(0);var o=new n.Color,s=t.ColorsPickerUtil=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}return i(e,null,[{key:"createCanvas",value:function(e,t){var r=document.createElement("canvas");return r.height=e,r.width=t,r.getContext("2d")}},{key:"getLinearGradient",value:function(e,t,r,i,n){this._ctx||(this._ctx=this.getContext());for(var a=this._ctx.createLinearGradient(e,t,r,i),o=n.length,s=1/(o-1),l=0,u=0;u<o;u++)a.addColorStop(l,n[u]),l+=s;return a.__nonRecursion=!0,a}},{key:"getContext",value:function(){return this._ctx||(this._ctx=document.createElement("canvas").getContext("2d")),this._ctx}},{key:"getStepColors",value:function(e,t,r){e=o.toRGBA(e),t=o.toRGBA(t),e=o.getData(e);for(var i=[],n=((t=o.getData(t))[0]-e[0])/r,a=(t[1]-e[1])/r,s=(t[2]-e[2])/r,l=(t[3]-e[3])/r,u=0,c=e[0],p=e[1],h=e[2],f=e[3];u<r;u++)i[u]=o.toColor([o.adjust(Math.floor(c),[0,255]),o.adjust(Math.floor(p),[0,255]),o.adjust(Math.floor(h),[0,255]),f.toFixed(4)-0],"hex"),c+=n,p+=a,h+=s,f+=l;return c=t[0],p=t[1],h=t[2],f=t[3],i[u]=o.toColor([c,p,h,f],"hex"),i}},{key:"getGradientColors",value:function(e,t,r){var i,n,a,o=[],s=e.length;if(void 0!==t){if(s>=t)if("RANGE"===r)for(n=0;n<t;n++)o.push(e[n]);else for(n=0;n<t;n++){var l=Math.floor(n/2);if(n%2==0)o.push(e[l]);else{var u=e.length-1-l;o.push(e[u])}}else{for(i=Math.ceil(t/(s-1)),n=0,a=s-1;n<a;n++){var c=this.getStepColors(e[n],e[n+1],i);n<a-1&&c.pop(),o=o.concat(c)}for(var p=o.length-t,h=0;h<p;h++)o.splice(2,1)}return o}}}]),e}();a.SuperMap.ColorsPickerUtil=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ArrayStatistic=t.ColorsPickerUtil=t.FetchRequest=t.getRequestTimeout=t.setRequestTimeout=t.isCORS=t.setCORS=void 0;var i=r(17),n=r(474),a=r(473);t.setCORS=i.setCORS,t.isCORS=i.isCORS,t.setRequestTimeout=i.setRequestTimeout,t.getRequestTimeout=i.getRequestTimeout,t.FetchRequest=i.FetchRequest,t.ColorsPickerUtil=n.ColorsPickerUtil,t.ArrayStatistic=a.ArrayStatistic},function(e,t){e.exports=function(){try{return elasticsearch}catch(e){return{}}}()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ElasticSearch=void 0;var i,n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=r(0),o=r(48),s=r(476),l=(i=s)&&i.__esModule?i:{default:i},u=r(1);
  1347. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1348. * This program are made available under the terms of the Apache License, Version 2.0
  1349. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var c=t.ElasticSearch=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r=r||{},this.url=t,this.client=new l.default.Client({host:this.url}),this.change=null,this.openGeoFence=!1,this.outOfGeoFence=null,this.geoFence=null,this.EVENT_TYPES=["change","error","outOfGeoFence"],this.events=new o.Events(this,null,this.EVENT_TYPES),this.eventListeners=null,u.Util.extend(this,r),this.eventListeners instanceof Object&&this.events.on(this.eventListeners)}return n(e,[{key:"setGeoFence",value:function(e){this.geoFence=e}},{key:"bulk",value:function(e,t){return this.client.bulk(e,t)}},{key:"clearScroll",value:function(e,t){return this.client.clearScroll(e,t)}},{key:"count",value:function(e,t){return this.client.count(e,t)}},{key:"create",value:function(e,t){return this.client.create(e,t)}},{key:"delete",value:function(e,t){return this.client.delete(e,t)}},{key:"deleteByQuery",value:function(e,t){return this.client.deleteByQuery(e,t)}},{key:"deleteScript",value:function(e,t){return this.client.deleteScript(e,t)}},{key:"deleteTemplate",value:function(e,t){return this.client.deleteTemplate(e,t)}},{key:"exists",value:function(e,t){return this.client.exists(e,t)}},{key:"existsSource",value:function(e,t){return this.client.existsSource(e,t)}},{key:"explain",value:function(e,t){return this.client.explain(e,t)}},{key:"fieldCaps",value:function(e,t){return this.client.fieldCaps(e,t)}},{key:"get",value:function(e,t){return this.client.get(e,t)}},{key:"getScript",value:function(e,t){return this.client.getScript(e,t)}},{key:"getSource",value:function(e,t){return this.client.getSource(e,t)}},{key:"getTemplate",value:function(e,t){return this.client.getTemplate(e,t)}},{key:"index",value:function(e,t){return this.client.index(e,t)}},{key:"info",value:function(e,t){return this.client.info(e,t)}},{key:"mget",value:function(e,t){return this.client.mget(e,t)}},{key:"msearch",value:function(e,t){var r=this;return r.client.msearch(e).then(function(e){return r._update(e.responses,t),e},function(e){return t(e),r.events.triggerEvent("error",{error:e}),e})}},{key:"msearchTemplate",value:function(e,t){return this.client.msearchTemplate(e,t)}},{key:"mtermvectors",value:function(e,t){return this.client.mtermvectors(e,t)}},{key:"ping",value:function(e,t){return this.client.ping(e,t)}},{key:"putScript",value:function(e,t){return this.client.putScript(e,t)}},{key:"putTemplate",value:function(e,t){return this.client.putTemplate(e,t)}},{key:"reindex",value:function(e,t){return this.client.reindex(e,t)}},{key:"reindexRessrottle",value:function(e,t){return this.client.reindexRessrottle(e,t)}},{key:"renderSearchTemplate",value:function(e,t){return this.client.renderSearchTemplate(e,t)}},{key:"scroll",value:function(e,t){return this.client.scroll(e,t)}},{key:"search",value:function(e,t){var r=this;return r.client.search(e).then(function(e){return r._update(e.responses,t),e},function(e){return t(e),r.events.triggerEvent("error",{error:e}),e})}},{key:"searchShards",value:function(e,t){return this.client.searchShards(e,t)}},{key:"searchTemplate",value:function(e,t){return this.client.searchTemplate(e,t)}},{key:"suggest",value:function(e,t){return this.client.suggest(e,t)}},{key:"termvectors",value:function(e,t){return this.client.termvectors(e,t)}},{key:"update",value:function(e,t){return this.client.update(e,t)}},{key:"updateByQuery",value:function(e,t){return this.client.updateByQuery(e,t)}},{key:"_update",value:function(e,t){var r=this;e&&(r.data=e,r.openGeoFence&&r.geoFence&&r._validateDatas(e),r.events.triggerEvent("change",{data:r.data}),r.change?r.change&&r.change(e):t&&t(void 0,{responses:e}))}},{key:"_validateDatas",value:function(e){if(e){e instanceof Array||(e=[e]);var t,r=e.length;for(t=0;t<r;t++)this._validateData(e[t])}}},{key:"_validateData",value:function(e){var t=this;e.hits.hits.map(function(r){var i=r._source,n=t._getMeterPerMapUnit(t.geoFence.unit),a=t.geoFence.center[0]*n,o=t.geoFence.center[1]*n,s=i.x*n,l=i.y*n;return t._distance(s,l,a,o)>t.geoFence.radius&&(t.outOfGeoFence&&t.outOfGeoFence(e),t.events.triggerEvent("outOfGeoFence",{data:e})),r})}},{key:"_distance",value:function(e,t,r,i){return Math.sqrt((e-r)*(e-r)+(t-i)*(t-i))}},{key:"_getMeterPerMapUnit",value:function(e){var t=void 0;return"meter"===e?t=1:"degree"===e&&(t=2*Math.PI*6378137/360),t}}]),e}();a.SuperMap.ElasticSearch=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ElasticSearch=void 0;var i=r(477);t.ElasticSearch=i.ElasticSearch},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ElasticSearch=void 0;var i=r(478);t.ElasticSearch=i.ElasticSearch},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenServiceParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4);
  1350. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1351. * This program are made available under the terms of the Apache License, Version 2.0
  1352. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.TokenServiceParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.userName=null,this.password=null,this.clientType=o.ClientType.NONE,this.ip=null,this.referer=null,this.expiration=60,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.TokenServiceParameter"}return i(e,[{key:"toJSON",value:function(){return{userName:this.userName,password:this.password,clientType:this.clientType,ip:this.ip,referer:this.referer,expiration:this.expiration}}}]),e}();n.SuperMap.TokenServiceParameter=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerInfo=void 0;var i=r(0),n=r(1),a=r(4);
  1353. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1354. * This program are made available under the terms of the Apache License, Version 2.0
  1355. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1356. var o=t.ServerInfo=function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.type=t,this.server=null,this.tokenServiceUrl=null,this.keyServiceUrl=null,n.Util.extend(this,r),this.CLASS_NAME="SuperMap.ServerInfo",this.type=this.type||a.ServerType.ISERVER,this.server||console.error("server url require is not undefined");var i="/services/security/tokens.json";this.type===a.ServerType.ISERVER&&this.server.indexOf("iserver")<0&&(i="/iserver"+i),this.tokenServiceUrl||(this.tokenServiceUrl=this.server+i),this.keyServiceUrl||(this.type===a.ServerType.IPORTAL?this.keyServiceUrl=this.server+"/web/mycontent/keys/register.json":this.type===a.ServerType.ONLINE&&(this.keyServiceUrl=this.server+"/web/mycontent/keys.json"))};i.SuperMap.ServerInfo=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KeyServiceParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4);
  1357. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1358. * This program are made available under the terms of the Apache License, Version 2.0
  1359. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.KeyServiceParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.name=null,this.serviceIds=null,this.clientType=o.ClientType.SERVER,this.limitation=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.KeyServiceParameter"}return i(e,[{key:"toJSON",value:function(){return{name:this.name,serviceIds:this.serviceIds,clientType:this.clientType,limitation:this.limitation}}}]),e}();n.SuperMap.KeyServiceParameter=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TokenServiceParameter=t.ServerInfo=t.SecurityManager=t.KeyServiceParameter=void 0;var i=r(482),n=r(40),a=r(481),o=r(480);
  1360. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1361. * This program are made available under the terms of the Apache License, Version 2.0
  1362. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1363. t.KeyServiceParameter=i.KeyServiceParameter,t.SecurityManager=n.SecurityManager,t.ServerInfo=a.ServerInfo,t.TokenServiceParameter=o.TokenServiceParameter},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnlineQueryDatasParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  1364. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1365. * This program are made available under the terms of the Apache License, Version 2.0
  1366. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/r(216);var o=t.OnlineQueryDatasParameter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),t=t||{},this.userNames=null,this.types=null,this.fileName=null,this.serviceStatuses=null,this.serviceId=null,this.ids=null,this.keywords=null,this.orderBy=null,this.tags=null,this.filterFields=null,a.Util.extend(this,t),this.CLASS_NAME="SuperMap.OnlineQueryDatasParameter"}return i(e,[{key:"toJSON",value:function(){var e=this,t={types:e.types,fileName:e.fileName,serviceStatuses:e.serviceStatuses,serviceId:e.serviceId,ids:e.ids,keywords:e.keywords,orderBy:e.orderBy,tags:e.tags,filterFields:e.filterFields};for(var r in t)null==t[r]&&delete t[r];return t}}]),e}();n.SuperMap.OnlineQueryDatasParameter=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Online=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(40),o=r(215),s=r(17);
  1367. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1368. * This program are made available under the terms of the Apache License, Version 2.0
  1369. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.Online=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.rootUrl="http://www.supermapol.com",this.webUrl=this.rootUrl+"/web";var t=this.webUrl+"/mycontent";this.mDatasUrl=t+"/datas",this.CLASS_NAME="SuperMap.Online"}return i(e,[{key:"load",value:function(){return s.FetchRequest.get(this.rootUrl).then(function(e){return e})}},{key:"login",value:function(){a.SecurityManager.loginOnline(this.rootUrl,!0)}},{key:"queryDatas",value:function(e){var t=this,r=t.mDatasUrl;return e&&(e=e.toJSON()),s.FetchRequest.get(r,e).then(function(e){if(e&&e.content&&!(e.content.length<1)){for(var r=[],i=e.content,n=i.length,a=0;a<n;a++){var s=i[a],l=new o.OnlineData(t.mDatasUrl,s);r.push(l)}return r}})}}]),e}();n.SuperMap.Online=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OnlineServiceBase=t.FilterField=t.DataItemOrderBy=t.DataItemType=t.ServiceStatus=t.OnlineQueryDatasParameter=t.OnlineData=t.Online=void 0;var i=r(216),n=r(485),a=r(215),o=r(484),s=r(214);t.Online=n.Online,
  1370. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1371. * This program are made available under the terms of the Apache License, Version 2.0
  1372. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1373. t.OnlineData=a.OnlineData,t.OnlineQueryDatasParameter=o.OnlineQueryDatasParameter,t.ServiceStatus=i.ServiceStatus,t.DataItemType=i.DataItemType,t.DataItemOrderBy=i.DataItemOrderBy,t.FilterField=i.FilterField,t.OnlineServiceBase=s.OnlineServiceBase},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VectorClipJobsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(19),s=r(217);
  1374. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1375. * This program are made available under the terms of the Apache License, Version 2.0
  1376. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1377. var l=t.VectorClipJobsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.url+="/spatialanalyst/vectorclip",i.CLASS_NAME="SuperMap.VectorClipJobsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.ProcessingServiceBase),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getVectorClipJobs",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url)}},{key:"getVectorClipJob",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url+"/"+e)}},{key:"addVectorClipJob",value:function(e,r){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addJob",this).call(this,this.url,e,s.VectorClipJobsParameter,r)}}]),t}();a.SuperMap.VectorClipJobsService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateTurnNodeWeightService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(15),o=r(218);
  1378. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1379. * This program are made available under the terms of the Apache License, Version 2.0
  1380. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1381. var s=t.UpdateTurnNodeWeightService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.UpdateTurnNodeWeightService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.NetworkAnalystServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof o.UpdateTurnNodeWeightParameters){var t=this,r=t.url.substr(t.url.length-1,1),i=t.parse(e);"/"===r&&t.url.splice(t.url.length-1,1),t.url=t.url+i+".json?";var n=e.turnNodeWeight?e.turnNodeWeight:null;t.request({method:"PUT",scope:t,data:n,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}},{key:"parse",value:function(e){if(e){var t="";for(var r in e)if(""!==e[r]&&"turnNodeWeight"!==e[r])switch(r){case"nodeId":t+="/turnnodeweight/"+e[r];break;case"fromEdgeId":t+="/fromedge/"+e[r];break;case"toEdgeId":t+="/toedge/"+e[r];break;case"weightField":t+="/weightfield/"+e[r]}return t}}}]),t}();n.SuperMap.UpdateTurnNodeWeightService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UpdateEdgeWeightService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(15),o=r(219);
  1382. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1383. * This program are made available under the terms of the Apache License, Version 2.0
  1384. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1385. var s=t.UpdateEdgeWeightService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.UpdateEdgeWeightService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.NetworkAnalystServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof o.UpdateEdgeWeightParameters){var t=this,r=t.url.substr(t.url.length-1,1),i=t.parse(e);"/"===r&&t.url.splice(t.url.length-1,1),t.url=t.url+i+".json?";var n=e.edgeWeight?e.edgeWeight:null;t.request({method:"PUT",scope:t,data:n,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}},{key:"parse",value:function(e){if(e){var t="";for(var r in e)if(""!==e[r]&&"edgeWeight"!==e[r])switch(r){case"edgeId":t+="/edgeweight/"+e[r];break;case"fromNodeId":t+="/fromnode/"+e[r];break;case"toNodeId":t+="/tonode/"+e[r];break;case"weightField":t+="/weightfield/"+e[r]}return t}}}]),t}();n.SuperMap.UpdateEdgeWeightService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransferSolutionService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(6),s=r(220);
  1386. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1387. * This program are made available under the terms of the Apache License, Version 2.0
  1388. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1389. var l=t.TransferSolutionService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.TransferSolutionService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof s.TransferSolutionParameters){var t,r,i=this;r=i.url.substr(i.url.length-1,1),i.url+="/"===r?"":"/",i.url+="solutions.json?",t={points:a.Util.toJSON(e.points),walkingRatio:e.walkingRatio,transferTactic:e.transferTactic,solutionCount:e.solutionCount,transferPreference:e.transferPreference},e.evadeLines&&(t.evadeLines=a.Util.toJSON(e.evadeLines)),e.evadeStops&&(t.evadeStops=a.Util.toJSON(e.evadeStops)),e.priorLines&&(t.priorLines=a.Util.toJSON(e.priorLines)),e.priorStops&&(t.priorStops=a.Util.toJSON(e.priorStops)),e.travelTime&&(t.travelTime=e.travelTime),i.request({method:"GET",params:t,scope:i,success:i.serviceProcessCompleted,failure:i.serviceProcessFailed})}}}]),t}();n.SuperMap.TransferSolutionService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TransferPathService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(6),s=r(221);
  1390. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1391. * This program are made available under the terms of the Apache License, Version 2.0
  1392. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1393. var l=t.TransferPathService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.TransferPathService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof s.TransferPathParameters){var t,r,i=this;r=i.url.substr(i.url.length-1,1),i.url+="/"===r?"":"/",i.url+="path.json?",t={points:a.Util.toJSON(e.points),transferLines:a.Util.toJSON(e.transferLines)},i.request({method:"GET",params:t,scope:i,success:i.serviceProcessCompleted,failure:i.serviceProcessFailed})}}}]),t}();n.SuperMap.TransferPathService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TopologyValidatorJobsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(19),s=r(223);
  1394. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1395. * This program are made available under the terms of the Apache License, Version 2.0
  1396. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1397. var l=t.TopologyValidatorJobsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.url+="/spatialanalyst/topologyvalidator",i.CLASS_NAME="SuperMap.TopologyValidatorJobsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.ProcessingServiceBase),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getTopologyValidatorJobs",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url)}},{key:"getTopologyValidatorJob",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url+"/"+e)}},{key:"addTopologyValidatorJob",value:function(e,r){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addJob",this).call(this,this.url,e,s.TopologyValidatorJobsParameter,r)}}]),t}();a.SuperMap.TopologyValidatorJobsService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TilesetsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(6);
  1398. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1399. * This program are made available under the terms of the Apache License, Version 2.0
  1400. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1401. var o=t.TilesetsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.TilesetsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(){if(this.url){var e=this,t=e.url.substr(e.url.length-1,1);e.url=e.url+("/"===t?"tilesets":"/tilesets")+".json?",e.request({method:"GET",scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}}]),t}();n.SuperMap.TilesetsService=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeometryBatchAnalystService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(10),s=r(130),l=r(128),u=r(127),c=r(36);
  1402. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1403. * This program are made available under the terms of the Apache License, Version 2.0
  1404. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1405. var p=t.GeometryBatchAnalystService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return r&&a.Util.extend(i,r),i.CLASS_NAME="SuperMap.GeometryBatchAnalystService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.SpatialAnalystBase),i(t,[{key:"processAsync",value:function(e){var t=this;"/"!==t.url.substr(t.url.length-1,1)&&(t.url+="/"),t.url+="geometry/batchanalyst.json?returnContent=true&ignoreAnalystParam=true";var r=t._processParams(e),i=a.Util.toJSON(r);t.request({method:"POST",data:i,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}},{key:"_processParams",value:function(e){var t=this;if(a.Util.isArray(e)){var r=[];return e.map(function(e){return r.push(t._toJSON(e)),e}),r}}},{key:"_toJSON",value:function(e){var t={};if("buffer"===e.analystName)t.analystName="buffer",t.param={},s.GeometryBufferAnalystParameters.toObject(e.param,t.param);else if("overlay"===e.analystName)t.analystName="overlay",t.param={},l.GeometryOverlayAnalystParameters.toObject(e.param,t.param);else if("interpolationDensity"===e.analystName)t.analystName="interpolationDensity",t.param={},c.InterpolationAnalystParameters.toObject(e.param,t.param);else if("interpolationidw"===e.analystName)t.analystName="interpolationidw",t.param={},c.InterpolationAnalystParameters.toObject(e.param,t.param);else if("interpolationRBF"===e.analystName)t.analystName="interpolationRBF",t.param={},c.InterpolationAnalystParameters.toObject(e.param,t.param);else if("interpolationKriging"===e.analystName)t.analystName="interpolationKriging",t.param={},c.InterpolationAnalystParameters.toObject(e.param,t.param);else{if("thiessenpolygon"!==e.analystName)return e;t.analystName="thiessenpolygon",t.param={},u.GeometryThiessenAnalystParameters.toObject(e.param,t.param)}return t}},{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();n.SuperMap.GeometryBatchAnalystService=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThiessenAnalystService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(10),s=r(298),l=r(127);
  1406. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1407. * This program are made available under the terms of the Apache License, Version 2.0
  1408. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1409. var u=t.ThiessenAnalystService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.mode=null,r&&a.Util.extend(i,r),i.CLASS_NAME="SuperMap.ThiessenAnalystService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.SpatialAnalystBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.mode=null}},{key:"processAsync",value:function(e){var t={},r=this;"/"!==r.url.substr(r.url.length-1,1)&&(r.url+="/"),e instanceof s.DatasetThiessenAnalystParameters?(r.mode="datasets",r.url+="datasets/"+e.dataset+"/thiessenpolygon",s.DatasetThiessenAnalystParameters.toObject(e,t)):e instanceof l.GeometryThiessenAnalystParameters&&(r.mode="geometry",r.url+="geometry/thiessenpolygon",l.GeometryThiessenAnalystParameters.toObject(e,t));var i=a.Util.toJSON(t);r.url+=".json?returnContent=true",r.request({method:"POST",data:i,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}]),t}();n.SuperMap.ThiessenAnalystService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(6),s=r(224);
  1410. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1411. * This program are made available under the terms of the Apache License, Version 2.0
  1412. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1413. var l=t.ThemeService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));r&&n.SuperMap.Util.extend(i,r);var a,o=i;return a=o.url.substr(o.url.length-1,1),o.url+="/"===a?"tempLayersSet.json?":"/tempLayersSet.json?",i.CLASS_NAME="SuperMap.ThemeService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof s.ThemeParameters){var t,r=this;t=r.getJsonParameters(e),r.request({method:"POST",data:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"getJsonParameters",value:function(e){var t,r="",i=null,n=null,o=null;r+="[{'type': 'UGC','subLayers': {'layers': [";for(var s=0;s<e.themes.length;s++){i=e.themes[s];var l=a.Util.toJSON(i);if(r+="{'theme': "+(l=l.slice(0,-1))+"},'type': 'UGC','ugcLayerType': 'THEME',",(n=e.displayFilters)&&n.length>0&&(1===n.length?r+="'displayFilter':\""+n[0]+'",':r+="'displayFilter':\""+n[s]+'",'),(o=e.displayOrderBy)&&o.length>0&&(1===o.length?r+="'displayOrderBy':'"+o[0]+"',":r+="'displayOrderBy':'"+o[s]+"',"),(t=e.fieldValuesDisplayFilter)&&(r+="'fieldValuesDisplayFilter':"+a.Util.toJSON(t)+","),e.joinItems&&e.joinItems.length>0&&e.joinItems[s]&&(r+="'joinItems':["+a.Util.toJSON(e.joinItems[s])+"],"),e.datasetNames&&e.dataSourceNames){var u=e.datasetNames[s]?s:e.datasetNames.length-1,c=e.dataSourceNames[s]?s:e.dataSourceNames.length-1;r+="'datasetInfo': {'name': '"+e.datasetNames[u]+"','dataSourceName': '"+e.dataSourceNames[c]+"'}},"}else r+="},"}e.themes&&e.themes.length>0&&(r=r.substring(0,r.length-1)),r+="]},";var p=this.url.split("/");return r+="'name': '"+p[p.length-2]+"'}]"}}]),t}();n.SuperMap.ThemeService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ThemeLabelUniqueItem=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(37);
  1414. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1415. * This program are made available under the terms of the Apache License, Version 2.0
  1416. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var s=t.ThemeLabelUniqueItem=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.caption=null,this.unique=null,this.offsetX=0,this.offsetY=0,this.visible=!0,this.style=new o.ServerTextStyle,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.ThemeLabelUniqueItem"}return i(e,[{key:"destroy",value:function(){var e=this;e.unique=null,e.caption=null,e.offsetX=null,e.offsetY=null,e.style&&(e.style.destroy(),e.style=null),e.visible=null}}],[{key:"fromObj",value:function(t){if(t){var r=new e;return a.Util.copy(r,t),r}}}]),e}();n.SuperMap.ThemeLabelUniqueItem=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TerrainCurvatureCalculationService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(10),o=r(229);
  1417. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1418. * This program are made available under the terms of the Apache License, Version 2.0
  1419. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1420. var s=t.TerrainCurvatureCalculationService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.TerrainCurvatureCalculationService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.SpatialAnalystBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){var t=this;"/"!==t.url.substr(t.url.length-1,1)&&(t.url+="/");var r={};e instanceof o.TerrainCurvatureCalculationParameters&&(t.url+="datasets/"+e.dataset+"/terraincalculation/curvature"),o.TerrainCurvatureCalculationParameters.toObject(e,r);var i=n.SuperMap.Util.toJSON(r);t.url+=".json?returnContent=true",t.request({method:"POST",data:i,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}]),t}();n.SuperMap.TerrainCurvatureCalculationService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SurfaceAnalystService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(10),o=r(1),s=r(300),l=r(280),u=r(88);
  1421. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1422. * This program are made available under the terms of the Apache License, Version 2.0
  1423. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1424. var c=t.SurfaceAnalystService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.SurfaceAnalystService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.SpatialAnalystBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof u.SurfaceAnalystParameters){var t,r=this;t=r.getJsonParameters(e),r.request({method:"POST",data:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"getJsonParameters",value:function(e){var t,r="",i={},n=this;if(e instanceof s.DatasetSurfaceAnalystParameters)t=n.url.substr(n.url.length-1,1),n.url+="/"===t?"datasets/"+e.dataset+"/"+e.surfaceAnalystMethod.toLowerCase()+".json?returnContent=true":"/datasets/"+e.dataset+"/"+e.surfaceAnalystMethod.toLowerCase()+".json?returnContent=true",s.DatasetSurfaceAnalystParameters.toObject(e,i),r=o.Util.toJSON(i);else{if(!(e instanceof l.GeometrySurfaceAnalystParameters))return;t=n.url.substr(n.url.length-1,1),n.url+="/"===t?"geometry/"+e.surfaceAnalystMethod.toLowerCase()+".json?returnContent=true":"/geometry/"+e.surfaceAnalystMethod.toLowerCase()+".json?returnContent=true",r=o.Util.toJSON(e)}return r}}]),t}();n.SuperMap.SurfaceAnalystService=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SupplyCenter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1);
  1425. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1426. * This program are made available under the terms of the Apache License, Version 2.0
  1427. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var o=t.SupplyCenter=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.maxWeight=null,this.nodeID=null,this.resourceValue=null,this.type=null,t&&a.Util.extend(this,t),this.CLASS_NAME="SuperMap.SupplyCenter"}return i(e,[{key:"destroy",value:function(){this.maxWeight=null,this.nodeID=null,this.resourceValue=null,this.type=null}}],[{key:"fromJson",value:function(t){if(t)return new e({maxWeight:t.maxWeight,nodeID:t.nodeID,resourceValue:t.resourceValue,type:t.type})}}]),e}();n.SuperMap.SupplyCenter=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SummaryRegionJobsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(19),s=r(230);
  1428. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1429. * This program are made available under the terms of the Apache License, Version 2.0
  1430. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1431. var l=t.SummaryRegionJobsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.url+="/spatialanalyst/summaryregion",i.CLASS_NAME="SuperMap.SummaryRegionJobsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.ProcessingServiceBase),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getSummaryRegionJobs",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url)}},{key:"getSummaryRegionJob",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url+"/"+e)}},{key:"addSummaryRegionJob",value:function(e,r){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addJob",this).call(this,this.url,e,s.SummaryRegionJobParameter,r)}}]),t}();a.SuperMap.SummaryRegionJobsService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SummaryMeshJobsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(19),s=r(231);
  1432. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1433. * This program are made available under the terms of the Apache License, Version 2.0
  1434. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1435. var l=t.SummaryMeshJobsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.url+="/spatialanalyst/aggregatepoints",i.CLASS_NAME="SuperMap.SummaryMeshJobsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.ProcessingServiceBase),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getSummaryMeshJobs",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url)}},{key:"getSummaryMeshJob",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url+"/"+e)}},{key:"addSummaryMeshJob",value:function(e,r){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addJob",this).call(this,this.url,e,s.SummaryMeshJobParameter,r)}}]),t}();a.SuperMap.SummaryMeshJobsService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SummaryAttributesJobsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(19),s=r(232);
  1436. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1437. * This program are made available under the terms of the Apache License, Version 2.0
  1438. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1439. var l=t.SummaryAttributesJobsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.url+="/spatialanalyst/summaryattributes",i.CLASS_NAME="SuperMap.SummaryAttributesJobsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.ProcessingServiceBase),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getSummaryAttributesJobs",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url)}},{key:"getSummaryAttributesJob",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url+"/"+e)}},{key:"addSummaryAttributesJob",value:function(e,r){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addJob",this).call(this,this.url,e,s.SummaryAttributesJobsParameter,r)}}]),t}();a.SuperMap.SummaryAttributesJobsService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StopQueryService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(6),s=r(233);
  1440. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1441. * This program are made available under the terms of the Apache License, Version 2.0
  1442. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1443. var l=t.StopQueryService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return r=r||{},a.Util.extend(i,r),i.CLASS_NAME="SuperMap.StopQueryService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),a.Util.reset(this)}},{key:"processAsync",value:function(e){if(e instanceof s.StopQueryParameters){var t,r=this;t=r.url.substr(r.url.length-1,1),r.url+="/"===t?"":"/",r.url+="stops/keyword/"+e.keyWord,r.url+=".json?",r.request({method:"GET",params:{returnPosition:e.returnPosition},scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}}]),t}();n.SuperMap.StopQueryService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SingleObjectQueryJobsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(19),s=r(234);
  1444. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1445. * This program are made available under the terms of the Apache License, Version 2.0
  1446. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1447. var l=t.SingleObjectQueryJobsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.url+="/spatialanalyst/query",i.CLASS_NAME="SuperMap.SingleObjectQueryJobsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.ProcessingServiceBase),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getQueryJobs",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url)}},{key:"getQueryJob",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url+"/"+e)}},{key:"addQueryJob",value:function(e,r){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addJob",this).call(this,this.url,e,s.SingleObjectQueryJobsParameter,r)}}]),t}();a.SuperMap.SingleObjectQueryJobsService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetLayerStatusService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(6),s=r(235);
  1448. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1449. * This program are made available under the terms of the Apache License, Version 2.0
  1450. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1451. var l=t.SetLayerStatusService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.lastparams=null,i.mapUrl=e,r&&a.Util.extend(i,r),i.CLASS_NAME="SuperMap.SetLayerStatusService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),a.Util.reset(this)}},{key:"processAsync",value:function(e){if(e instanceof s.SetLayerStatusParameters){var t=this;t.url=t.mapUrl;var r=t.url.substr(t.url.length-1,1);if(t.url+="/"===r?"":"/",null==e.resourceID)t.url+="tempLayersSet",t.url+=".json?",t.lastparams=e,t.request({method:"POST",scope:t,success:t.createTempLayerComplete,failure:t.serviceProcessFailed});else{t.url+="tempLayersSet/"+e.resourceID,t.url+=".json?",t.url+="elementRemain=true&reference="+e.resourceID+"&holdTime="+e.holdTime.toString();var i="[{";i+='"type":"UGC",',null!=e.layerStatusList&&e.layerStatusList.length>0&&(i+='"subLayers":'+e.toJSON()),i+=',"visible":true,',i+='"name":"'+this.getMapName(this.mapUrl)+'"',i+="}]",t.request({method:"PUT",data:i,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}}},{key:"createTempLayerComplete",value:function(e){(e=a.Util.transformResult(e)).succeed&&(this.lastparams.resourceID=e.newResourceID),this.processAsync(this.lastparams)}},{key:"getMapName",value:function(e){var t=e;"/"===t.charAt(t.length-1)&&(t=t.substr(0,t.length-1));var r=t.lastIndexOf("/");return t.substring(r+1,t.length)}},{key:"serviceProcessCompleted",value:function(e){null!=(e=a.Util.transformResult(e))&&null!=this.lastparams&&(e.newResourceID=this.lastparams.resourceID),this.events.triggerEvent("processCompleted",{result:e})}}]),t}();n.SuperMap.SetLayerStatusService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetLayersInfoService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(6);r(236);
  1452. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1453. * This program are made available under the terms of the Apache License, Version 2.0
  1454. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1455. var s=t.SetLayersInfoService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.resourceID=null,i.isTempLayers=!1,r&&n.SuperMap.Util.extend(i,r),i.CLASS_NAME="SuperMap.SetLayersInfoService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),a.Util.reset(this)}},{key:"processAsync",value:function(e){if(e){var t,r,i=[],n=this,o="";r=n.url.substr(n.url.length-1,1),n.url+="/"===r?"":"/",n.isTempLayers?(n.url+="tempLayersSet/"+n.resourceID,o="PUT"):(n.url+="tempLayersSet",o="POST"),n.url+=".json?",e.subLayers||(e.subLayers={layers:[]}),e.subLayers.layers||(e.subLayers.layers=[]);var s=e.subLayers.layers,l=s.length;for(var u in s){if("GRID"===s[u].ugcLayerType){var c={},p=s[u].colorDictionarys;for(var h in p){c[p[h].elevation]=p[h].color}}s[u].colorDictionary=c,delete s[u].colorDictionarys}for(var f=0;f<l;f++)s[f].toJsonObject?i.push(s[f].toJsonObject()):i.push(s[f]);(t=a.Util.extend(t,e)).subLayers={layers:i},t.object=null;var d=a.Util.toJSON([t]);n.request({method:o,data:d,scope:n,success:n.serviceProcessCompleted,failure:n.serviceProcessFailed})}}}]),t}();n.SuperMap.SetLayersInfoService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SetLayerInfoService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(6);r(237);
  1456. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1457. * This program are made available under the terms of the Apache License, Version 2.0
  1458. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1459. var s=t.SetLayerInfoService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return r&&a.Util.extend(i,r),i.CLASS_NAME="SuperMap.SetLayerInfoService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),a.Util.reset(this)}},{key:"processAsync",value:function(e){if(e){var t=this;t.url+=".json";var r=a.Util.toJSON(e);t.request({method:"PUT",data:r,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}}]),t}();n.SuperMap.SetLayerInfoService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerFeature=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(92),o=r(9),s=r(1);
  1460. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1461. * This program are made available under the terms of the Apache License, Version 2.0
  1462. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/var l=t.ServerFeature=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.fieldNames=null,this.fieldValues=null,this.geometry=null,t&&s.Util.extend(this,t),this.CLASS_NAME="SuperMap.ServerFeature"}return i(e,[{key:"destroy",value:function(){var e=this;e.fieldNames=null,e.fieldValues=null,e.geometry&&(e.geometry.destroy(),e.geometry=null)}},{key:"toFeature",value:function(){var e,t,r,i,n={},o=this;for(var s in e=o.fieldNames,t=o.fieldValues,e)n[e[s]]=t[s];return o.geometry&&(r=o.geometry.toGeometry()),i=new a.Vector(r,n),o.geometry&&o.geometry.id&&(i.fid=o.geometry.id),i}}],[{key:"fromJson",value:function(t){var r=null;if(t)return(r=t.geometry)&&(r=o.ServerGeometry.fromJson(r)),new e({fieldNames:t.fieldNames,fieldValues:t.fieldValues,geometry:r})}}]),e}();n.SuperMap.ServerFeature=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RouteLocatorService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(10),s=r(238);
  1463. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1464. * This program are made available under the terms of the Apache License, Version 2.0
  1465. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1466. var l=t.RouteLocatorService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.RouteLocatorService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.SpatialAnalystBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof s.RouteLocatorParameters){var t,r=this;t=r.getJsonParameters(e),r.request({method:"POST",data:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"getJsonParameters",value:function(e){var t,r="geometry/routelocator";return t=this.url.substr(this.url.length-1,1),e.dataset&&(r="datasets/"+e.dataset+"/linearreferencing/routelocator",e.sourceRoute=null),this.url+="/"===t?r+".json":"/"+r+".json",this.url+="?returnContent=true",a.Util.toJSON(e)}}]),t}();n.SuperMap.RouteLocatorService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RouteCalculateMeasureService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(10),s=r(239);
  1467. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1468. * This program are made available under the terms of the Apache License, Version 2.0
  1469. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1470. var l=t.RouteCalculateMeasureService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.RouteCalculateMeasureService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.SpatialAnalystBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof s.RouteCalculateMeasureParameters){var t,r=this;t=r.getJsonParameters(e),r.request({method:"POST",data:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"getJsonParameters",value:function(e){var t,r="geometry/calculatemeasure";return t=this.url.substr(this.url.length-1,1),this.url+="/"===t?r+".json":"/"+r+".json",this.url+="?returnContent=true",a.Util.toJSON(e)}}]),t}();n.SuperMap.RouteCalculateMeasureService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryByGeometryService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(61),s=r(241),l=r(9);
  1471. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1472. * This program are made available under the terms of the Apache License, Version 2.0
  1473. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1474. var u=t.QueryByGeometryService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.QueryByGeometryService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.QueryService),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getJsonParameters",value:function(e){if(e instanceof s.QueryByGeometryParameters){var t,r="",i=e.geometry,n=l.ServerGeometry.fromGeometry(i);return t=this.getQueryParameters(e),r+="'queryMode':'SpatialQuery','queryParameters':",r="{"+(r+=a.Util.toJSON(t)+",'geometry':"+a.Util.toJSON(n)+",'spatialQueryMode':"+a.Util.toJSON(e.spatialQueryMode))+"}"}}}]),t}();n.SuperMap.QueryByGeometryService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryByDistanceService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(61),s=r(242),l=r(9);
  1475. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1476. * This program are made available under the terms of the Apache License, Version 2.0
  1477. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1478. var u=t.QueryByDistanceService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.QueryByDistanceService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.QueryService),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getJsonParameters",value:function(e){if(e instanceof s.QueryByDistanceParameters){var t="",r=this.getQueryParameters(e),i=l.ServerGeometry.fromGeometry(e.geometry);return t+=e.isNearest?"'queryMode':'FindNearest','queryParameters':":"'queryMode':'DistanceQuery','queryParameters':",t+=a.Util.toJSON(r),t="{"+(t+=",'geometry':"+a.Util.toJSON(i)+",'distance':"+e.distance)+"}"}}}]),t}();n.SuperMap.QueryByDistanceService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QueryByBoundsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(61),s=r(243);
  1479. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1480. * This program are made available under the terms of the Apache License, Version 2.0
  1481. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1482. var l=t.QueryByBoundsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.QueryByBoundsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.QueryService),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getJsonParameters",value:function(e){if(!(e instanceof s.QueryByBoundsParameters))return null;var t,r="",i=e.bounds;return t=this.getQueryParameters(e),r+="'queryMode':'BoundsQuery','queryParameters':",r+=a.Util.toJSON(t),r="{"+(r+=",'bounds': {'rightTop':{'y':"+i.top+",'x':"+i.right+"},'leftBottom':{'y':"+i.bottom+",'x':"+i.left+"}}")+"}"}}]),t}();n.SuperMap.QueryByBoundsService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlayGeoJobsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(19),s=r(244);
  1483. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1484. * This program are made available under the terms of the Apache License, Version 2.0
  1485. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1486. var l=t.OverlayGeoJobsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.url+="/spatialanalyst/overlay",i.CLASS_NAME="SuperMap.OverlayGeoJobsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.ProcessingServiceBase),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getOverlayGeoJobs",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url)}},{key:"getOverlayGeoJob",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url+"/"+e)}},{key:"addOverlayGeoJob",value:function(e,r){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addJob",this).call(this,this.url,e,s.OverlayGeoJobParameter,r)}}]),t}();a.SuperMap.OverlayGeoJobsService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OverlayAnalystService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(10),s=r(301),l=r(128);
  1487. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1488. * This program are made available under the terms of the Apache License, Version 2.0
  1489. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1490. var u=t.OverlayAnalystService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.mode=null,r&&a.Util.extend(i,r),i.CLASS_NAME="SuperMap.OverlayAnalystService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.SpatialAnalystBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.mode=null}},{key:"processAsync",value:function(e){var t={},r=this;"/"!==r.url.substr(r.url.length-1,1)&&(r.url+="/"),e instanceof s.DatasetOverlayAnalystParameters?(r.mode="datasets",r.url+="datasets/"+e.sourceDataset+"/overlay.json?returnContent=true",s.DatasetOverlayAnalystParameters.toObject(e,t)):e instanceof l.GeometryOverlayAnalystParameters&&(r.mode="geometry",e.operateGeometries&&e.sourceGeometries?r.url+="geometry/overlay/batch.json?returnContent=true&ignoreAnalystParam=true":r.url+="geometry/overlay.json?returnContent=true",l.GeometryOverlayAnalystParameters.toObject(e,t));var i=a.Util.toJSON(t);r.request({method:"POST",data:i,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}]),t}();n.SuperMap.OverlayAnalystService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MeasureService=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),a=r(0),o=r(1),s=r(6),l=r(245),u=r(9),c=r(4);
  1491. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1492. * This program are made available under the terms of the Apache License, Version 2.0
  1493. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1494. var p=t.MeasureService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.measureMode=c.MeasureMode.DISTANCE,r&&o.Util.extend(i,r),i.CLASS_NAME="SuperMap.MeasureService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.CommonServiceBase),n(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.measureMode=null}},{key:"processAsync",value:function(e){if(e instanceof l.MeasureParameters){var t,r,n,a=this,s=e.geometry;if(s){n=a.url.substr(a.url.length-1,1),a.measureMode===c.MeasureMode.AREA?a.url+="/"===n?"area.json?":"/area.json?":a.url+="/"===n?"distance.json?":"/distance.json?";var p,h,f,d=u.ServerGeometry.fromGeometry(s);if(d)t=d.parts[0],r=d.points.splice(0,t),e.prjCoordSys?("object"===i(e.prjCoordSys)?p='{"epsgCode"'+(h=e.prjCoordSys.projCode).substring(h.indexOf(":"),h.length)+"}":"string"==typeof e.prjCoordSys&&(p='{"epsgCode"'+e.prjCoordSys.substring(e.prjCoordSys.indexOf(":"),e.prjCoordSys.length)+"}"),f={point2Ds:o.Util.toJSON(r),unit:e.unit,prjCoordSys:p}):f={point2Ds:o.Util.toJSON(r),unit:e.unit},a.request({method:"GET",params:f,scope:a,success:a.serviceProcessCompleted,failure:a.serviceProcessFailed})}}}}]),t}();a.SuperMap.MeasureService=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MathExpressionAnalysisService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(10),s=r(246);
  1495. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1496. * This program are made available under the terms of the Apache License, Version 2.0
  1497. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1498. var l=t.MathExpressionAnalysisService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.MathExpressionAnalysisService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.SpatialAnalystBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){var t=this;"/"!==t.url.substr(t.url.length-1,1)&&(t.url+="/");var r={};e instanceof s.MathExpressionAnalysisParameters&&(t.url+="datasets/"+e.dataset+"/mathanalyst"),s.MathExpressionAnalysisParameters.toObject(e,r);var i=a.Util.toJSON(r);t.url+=".json?returnContent=true",t.request({method:"POST",data:i,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}]),t}();n.SuperMap.MathExpressionAnalysisService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MapService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(6);
  1499. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1500. * This program are made available under the terms of the Apache License, Version 2.0
  1501. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1502. var s=t.MapService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));i.projection=null,i.CLASS_NAME="SuperMap.MapService",r&&a.Util.extend(i,r);var n=i;if(n.projection){var o=n.projection.split(":");o instanceof Array&&(2===o.length&&(n.url+='?prjCoordSys={"epsgCode":'+o[1]+"}"),1===o.length&&(n.url+='?prjCoordSys={"epsgCode":'+o[0]+"}"))}return i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;e.events&&(e.events.un(e.eventListeners),e.events.listeners=null,e.events.destroy(),e.events=null,e.eventListeners=null)}},{key:"processAsync",value:function(){this.request({method:"GET",scope:this,success:this.serviceProcessCompleted,failure:this.serviceProcessFailed})}},{key:"serviceProcessCompleted",value:function(e){var t=(e=a.Util.transformResult(e)).code>=200&&e.code<300||0==e.code||304===e.code,r=e.code&&t;!e.code||r?this.events&&this.events.triggerEvent("processCompleted",{result:e}):this.events.triggerEvent("processFailed",{error:e})}}]),t}();n.SuperMap.MapService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.KernelDensityJobsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(19),s=r(251);
  1503. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1504. * This program are made available under the terms of the Apache License, Version 2.0
  1505. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1506. var l=t.KernelDensityJobsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.url+="/spatialanalyst/density",i.CLASS_NAME="SuperMap.KernelDensityJobsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.ProcessingServiceBase),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getKernelDensityJobs",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url)}},{key:"getKernelDensityJob",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url+"/"+e)}},{key:"addKernelDensityJob",value:function(e,r){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addJob",this).call(this,this.url,e,s.KernelDensityJobParameter,r)}}]),t}();a.SuperMap.KernelDensityJobsService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InterpolationDensityAnalystParameters=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(36);
  1507. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1508. * This program are made available under the terms of the Apache License, Version 2.0
  1509. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1510. var s=t.InterpolationDensityAnalystParameters=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return e&&a.Util.extend(r,e),r.CLASS_NAME="SuperMap.InterpolationDensityAnalystParameters",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.InterpolationAnalystParameters),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}}]),t}();n.SuperMap.InterpolationDensityAnalystParameters=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.InterpolationAnalystService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(10),s=r(254),l=r(521),u=r(253),c=r(252),p=r(36);
  1511. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1512. * This program are made available under the terms of the Apache License, Version 2.0
  1513. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1514. var h=t.InterpolationAnalystService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.mode=null,r&&a.Util.extend(i,r),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.SpatialAnalystBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.mode=null,this.CLASS_NAME="SuperMap.InterpolationAnalystService"}},{key:"processAsync",value:function(e){var t={},r=this;"/"!==r.url.substr(r.url.length-1,1)&&(r.url+="/"),e instanceof l.InterpolationDensityAnalystParameters?(r.mode="Density","geometry"===e.InterpolationAnalystType?r.url+="geometry/interpolation/density":r.url+="datasets/"+e.dataset+"/interpolation/density"):e instanceof u.InterpolationIDWAnalystParameters?(r.mode="IDW","geometry"===e.InterpolationAnalystType?r.url+="geometry/interpolation/idw":r.url+="datasets/"+e.dataset+"/interpolation/idw"):e instanceof s.InterpolationRBFAnalystParameters?(r.mode="RBF","geometry"===e.InterpolationAnalystType?r.url+="geometry/interpolation/rbf":r.url+="datasets/"+e.dataset+"/interpolation/rbf"):e instanceof c.InterpolationKrigingAnalystParameters&&(r.mode="Kriging","geometry"===e.InterpolationAnalystType?r.url+="geometry/interpolation/kriging":r.url+="datasets/"+e.dataset+"/interpolation/kriging"),p.InterpolationAnalystParameters.toObject(e,t);var i=a.Util.toJSON(t);r.url+=".json?returnContent=true",r.request({method:"POST",data:i,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}]),t}();n.SuperMap.InterpolationAnalystService=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetLayersInfoService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(6),s=r(272),l=r(257),u=r(256),c=r(255);
  1515. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1516. * This program are made available under the terms of the Apache License, Version 2.0
  1517. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1518. var p=t.GetLayersInfoService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.isTempLayers=!1,r&&a.Util.extend(i,r),i.CLASS_NAME="SuperMap.GetLayersInfoService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),a.Util.reset(this)}},{key:"processAsync",value:function(){var e=this,t=e.url.substr(e.url.length-1,1);e.isTempLayers?e.url+=".json?":(e.url+="/"===t?"":"/",e.url+="layers.json?"),e.request({method:"GET",params:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}},{key:"serviceProcessCompleted",value:function(e){var t,r;r=(t=!!(e=a.Util.transformResult(e))&&e.length>0?e[0].subLayers.layers:null)?t.length:0,this.handleLayers(r,t),this.events.triggerEvent("processCompleted",{result:e[0]})}},{key:"handleLayers",value:function(e,t){var r;if(e)for(var i=0;i<e;i++){if(t[i].subLayers&&t[i].subLayers.layers&&t[i].subLayers.layers.length>0)this.handleLayers(t[i].subLayers.layers.length,t[i].subLayers.layers);else switch(t[i].ugcLayerType){case"THEME":(r=new s.ServerTheme).fromJson(t[i]),t[i]=r;break;case"GRID":(r=new l.Grid).fromJson(t[i]),t[i]=r;break;case"IMAGE":(r=new u.UGCImage).fromJson(t[i]),t[i]=r;break;case"VECTOR":(r=new c.Vector).fromJson(t[i]),t[i]=r}}}}]),t}();n.SuperMap.GetLayersInfoService=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetGridCellInfosService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(6),s=r(273);
  1519. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1520. * This program are made available under the terms of the Apache License, Version 2.0
  1521. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1522. var l=t.GetGridCellInfosService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.datasetName=null,i.dataSourceName=null,i.datasetType=null,i.X=null,i.Y=null,r&&a.Util.extend(i,r),i.CLASS_NAME="SuperMap.GetGridCellInfosService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);var e=this;e.X=null,e.Y=null,e.datasetName=null,e.dataSourceName=null,e.datasetType=null}},{key:"processAsync",value:function(e){if(e instanceof s.GetGridCellInfosParameters){a.Util.extend(this,e);var t=this,r=t.url.substr(t.url.length-1,1);t.url+="/"==r?"datasources/"+t.dataSourceName+"/datasets/"+t.datasetName+".json":"/datasources/"+t.dataSourceName+"/datasets/"+t.datasetName+".json",t.queryRequest(t.getDatasetInfoCompleted,t.getDatasetInfoFailed)}}},{key:"queryRequest",value:function(e,t){this.request({method:"GET",data:null,scope:this,success:e,failure:t})}},{key:"getDatasetInfoCompleted",value:function(e){e=a.Util.transformResult(e),this.datasetType=e.datasetInfo.type,this.queryGridInfos()}},{key:"queryGridInfos",value:function(){var e=this,t=/\.json/.exec(e.url).index,r=e.url.substring(t),i=e.url.substring(0,e.url.length-r.length);"GRID"==e.datasetType?e.url=i+"/gridValue"+r:e.url=i+"/imageValue"+r,null!=e.X&&null!=e.Y&&(e.url+="?x="+e.X+"&y="+e.Y),e.queryRequest(e.serviceProcessCompleted,e.serviceProcessFailed)}},{key:"getDatasetInfoFailed",value:function(e){this.serviceProcessFailed(e)}}]),t}();n.SuperMap.GetGridCellInfosService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetFieldsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(6);
  1523. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1524. * This program are made available under the terms of the Apache License, Version 2.0
  1525. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1526. var s=t.GetFieldsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.datasource=null,i.dataset=null,r&&a.Util.extend(i,r),i.CLASS_NAME="SuperMap.GetFieldsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.datasource=null,this.dataset=null}},{key:"processAsync",value:function(){var e=this,t=e.url.substr(e.url.length-1,1),r="datasources/"+e.datasource+"/datasets/"+e.dataset;e.url+="/"==t?r+"/fields.json?":"/"+r+"/fields.json?",e.request({method:"GET",data:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}]),t}();n.SuperMap.GetFieldsService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetFeaturesByIDsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(45),o=r(275);
  1527. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1528. * This program are made available under the terms of the Apache License, Version 2.0
  1529. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1530. var s=t.GetFeaturesByIDsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.GetFeaturesByIDsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.GetFeaturesServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getJsonParameters",value:function(e){return o.GetFeaturesByIDsParameters.toJsonParameters(e)}}]),t}();n.SuperMap.GetFeaturesByIDsService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetFeaturesByGeometryService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(45),o=r(276);
  1531. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1532. * This program are made available under the terms of the Apache License, Version 2.0
  1533. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1534. var s=t.GetFeaturesByGeometryService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.GetFeaturesByGeometryService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.GetFeaturesServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getJsonParameters",value:function(e){return o.GetFeaturesByGeometryParameters.toJsonParameters(e)}}]),t}();n.SuperMap.GetFeaturesByGeometryService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetFeaturesByBufferService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(45),o=r(277);
  1535. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1536. * This program are made available under the terms of the Apache License, Version 2.0
  1537. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1538. var s=t.GetFeaturesByBufferService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.GetFeaturesByBufferService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.GetFeaturesServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getJsonParameters",value:function(e){if(e instanceof o.GetFeaturesByBufferParameters)return n.SuperMap.GetFeaturesByBufferParameters.toJsonParameters(e)}}]),t}();n.SuperMap.GetFeaturesByBufferService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GetFeaturesByBoundsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(45),o=r(278);
  1539. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1540. * This program are made available under the terms of the Apache License, Version 2.0
  1541. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1542. var s=t.GetFeaturesByBoundsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.GetFeaturesByBoundsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.GetFeaturesServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getJsonParameters",value:function(e){return o.GetFeaturesByBoundsParameters.toJsonParameters(e)}}]),t}();n.SuperMap.GetFeaturesByBoundsService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeoRelationAnalystService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(10),o=r(279);
  1543. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1544. * This program are made available under the terms of the Apache License, Version 2.0
  1545. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1546. var s=t.GeoRelationAnalystService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.GeoRelationAnalystService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.SpatialAnalystBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof o.GeoRelationAnalystParameters){var t=this,r=t.url.substr(t.url.length-1,1);t.url+="/"===r?"datasets/"+e.dataset+"/georelation":"/datasets/"+e.dataset+"/georelation";var i=n.SuperMap.Util.toJSON(e);t.url+=".json?returnContent=true",t.request({method:"POST",data:i,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}}]),t}();n.SuperMap.GeoRelationAnalystService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeoHashGridAggParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(4),o=r(1),s=r(133);
  1547. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1548. * This program are made available under the terms of the Apache License, Version 2.0
  1549. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1550. var l=t.GeoHashGridAggParameter=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.precision=5,r.aggType=a.AggregationType.GEOHASH_GRID,o.Util.extend(r,e),r.CLASS_NAME="SuperMap.GeoHashGridAggParameter",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.AggregationParameter),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.aggType=null}}],[{key:"toJsonParameters",value:function(e){var t={aggName:e.aggName,aggFieldName:e.aggFieldName,aggType:e.aggType,precision:e.precision};return e.subAgg&&(t.subAgg=e.subAgg),o.Util.toJson(t)}}]),t}();n.SuperMap.GeoHashGridAggParameter=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeoBoundingBoxQueryBuilderParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(134);
  1551. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1552. * This program are made available under the terms of the Apache License, Version 2.0
  1553. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1554. var l=t.GeoBoundingBoxQueryBuilderParameter=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.bounds=null,r.queryType=o.AggregationQueryBuilderType.GEO_BOUNDING_BOX,r.CLASS_NAME="SuperMap.GeoBoundingBoxQueryBuilderParameter",a.Util.extend(r,e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.AggQueryBuilderParameter),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.bounds=null,this.queryType=null}}]),t}();n.SuperMap.GeoBoundingBoxQueryBuilderParameter=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenerateSpatialDataService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(10),s=r(281);
  1555. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1556. * This program are made available under the terms of the Apache License, Version 2.0
  1557. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1558. var l=t.GenerateSpatialDataService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.GenerateSpatialDataService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.SpatialAnalystBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof s.GenerateSpatialDataParameters){var t,r=this;t=r.getJsonParameters(e),r.request({method:"POST",data:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"getJsonParameters",value:function(e){var t,r="datasets/"+e.routeTable+"/linearreferencing/generatespatialdata";return t=this.url.substr(this.url.length-1,1),this.url+="/"===t?r+".json":"/"+r+".json",this.url+="?returnContent=true",a.Util.toJSON(e)}}]),t}();n.SuperMap.GenerateSpatialDataService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindTSPPathsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(15),o=r(282),s=r(18);
  1559. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1560. * This program are made available under the terms of the Apache License, Version 2.0
  1561. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1562. var l=t.FindTSPPathsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.FindTSPPathsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.NetworkAnalystServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof o.FindTSPPathsParameters){var t,r=this,i=r.url.substr(r.url.length-1,1);r.url=r.url+("/"===i?"tsppath":"/tsppath")+".json?",t={parameter:n.SuperMap.Util.toJSON(e.parameter),endNodeAssigned:e.endNodeAssigned,nodes:r.getNodesJson(e)},r.request({method:"GET",params:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"getNodesJson",value:function(e){var t,r,i,n,a="";if(!1===e.isAnalyzeById){for(t="[",r=0,i=(n=e.nodes).length;r<i;r++)r>0&&(t+=","),t+='{"x":'+n[r].x+',"y":'+n[r].y+"}";a+=t+="]"}else if(1==e.isAnalyzeById){for(var o="[",s=e.nodes,l=s.length,u=0;u<l;u++)u>0&&(o+=","),o+=s[u];a+=o+="]"}return a}},{key:"toGeoJSONResult",value:function(e){if(!e||!e.tspPathList)return null;var t=new s.GeoJSON;return e.tspPathList.forEach(function(e){e.route&&(e.route=t.toGeoJSON(e.route)),e.pathGuideItems&&(e.pathGuideItems=t.toGeoJSON(e.pathGuideItems)),e.edgeFeatures&&(e.edgeFeatures=t.toGeoJSON(e.edgeFeatures)),e.nodeFeatures&&(e.nodeFeatures=t.toGeoJSON(e.nodeFeatures))}),e}}]),t}();n.SuperMap.FindTSPPathsService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindServiceAreasService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(15),s=r(283),l=r(18);
  1563. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1564. * This program are made available under the terms of the Apache License, Version 2.0
  1565. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1566. var u=t.FindServiceAreasService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.FindServiceAreasService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.NetworkAnalystServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof s.FindServiceAreasParameters){var t,r=this,i=r.url.substr(r.url.length-1,1);r.url=r.url+("/"===i?"servicearea":"/servicearea")+".json?",t={isFromCenter:e.isFromCenter,isCenterMutuallyExclusive:e.isCenterMutuallyExclusive,parameter:a.Util.toJSON(e.parameter),centers:r.getJson(e.isAnalyzeById,e.centers),weights:r.getJson(!0,e.weights)},r.request({method:"GET",params:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"getJson",value:function(e,t){var r="[",i=t?t.length:0;if(!1===e)for(var n=0;n<i;n++)n>0&&(r+=","),r+='{"x":'+t[n].x+',"y":'+t[n].y+"}";else if(1==e)for(var a=0;a<i;a++)a>0&&(r+=","),r+=t[a];return r+="]"}},{key:"toGeoJSONResult",value:function(e){if(!e||!e.serviceAreaList)return e;var t=new l.GeoJSON;return e.serviceAreaList.map(function(e){return e.serviceRegion&&(e.serviceRegion=t.toGeoJSON(e.serviceRegion)),e.edgeFeatures&&(e.edgeFeatures=t.toGeoJSON(e.edgeFeatures)),e.nodeFeatures&&(e.nodeFeatures=t.toGeoJSON(e.nodeFeatures)),e.routes&&(e.routes=t.toGeoJSON(e.routes)),e}),e}}]),t}();n.SuperMap.FindServiceAreasService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindPathService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(15),s=r(284),l=r(18);
  1567. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1568. * This program are made available under the terms of the Apache License, Version 2.0
  1569. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1570. var u=t.FindPathService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.FindPathService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.NetworkAnalystServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof s.FindPathParameters){var t,r=this,i=r.url.substr(r.url.length-1,1);r.url=r.url+("/"===i?"path":"/path")+".json?",t={hasLeastEdgeCount:e.hasLeastEdgeCount,parameter:a.Util.toJSON(e.parameter),nodes:r.getJson(e.isAnalyzeById,e.nodes)},r.request({method:"GET",params:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"getJson",value:function(e,t){var r="[",i=t?t.length:0;if(!1===e)for(var n=0;n<i;n++)n>0&&(r+=","),r+='{"x":'+t[n].x+',"y":'+t[n].y+"}";else if(1==e)for(var a=0;a<i;a++)a>0&&(r+=","),r+=t[a];return r+="]"}},{key:"toGeoJSONResult",value:function(e){if(!e||!e.pathList||e.pathList.length<1)return null;var t=new l.GeoJSON;return e.pathList.forEach(function(e){e.route&&(e.route=t.toGeoJSON(e.route)),e.pathGuideItems&&(e.pathGuideItems=t.toGeoJSON(e.pathGuideItems)),e.edgeFeatures&&(e.edgeFeatures=t.toGeoJSON(e.edgeFeatures)),e.nodeFeatures&&(e.nodeFeatures=t.toGeoJSON(e.nodeFeatures))}),e}}]),t}();n.SuperMap.FindPathService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindMTSPPathsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(15),s=r(285),l=r(18);
  1571. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1572. * This program are made available under the terms of the Apache License, Version 2.0
  1573. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1574. var u=t.FindMTSPPathsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.FindMTSPPathsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.NetworkAnalystServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof s.FindMTSPPathsParameters){var t,r=this,i=r.getJson(e.isAnalyzeById,e.centers),n=r.getJson(e.isAnalyzeById,e.nodes);r.url=r.url+"/mtsppath.json?",t={centers:i,nodes:n,parameter:a.Util.toJSON(e.parameter),hasLeastTotalCost:e.hasLeastTotalCost},r.request({method:"GET",params:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"getJson",value:function(e,t){var r="[",i=t?t.length:0;if(!1===e)for(var n=0;n<i;n++)n>0&&(r+=","),r+='{"x":'+t[n].x+',"y":'+t[n].y+"}";else if(1==e)for(var a=0;a<i;a++)a>0&&(r+=","),r+=t[a];return r+="]"}},{key:"toGeoJSONResult",value:function(e){if(!e||!e.pathList)return null;var t=new l.GeoJSON;return e.pathList.map(function(e){return e.route&&(e.route=t.toGeoJSON(e.route)),e.pathGuideItems&&(e.pathGuideItems=t.toGeoJSON(e.pathGuideItems)),e.edgeFeatures&&(e.edgeFeatures=t.toGeoJSON(e.edgeFeatures)),e.nodeFeatures&&(e.nodeFeatures=t.toGeoJSON(e.nodeFeatures)),e}),e}}]),t}();n.SuperMap.FindMTSPPathsService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindLocationService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(15),s=r(286),l=r(18);
  1575. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1576. * This program are made available under the terms of the Apache License, Version 2.0
  1577. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1578. var u=t.FindLocationService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.FindLocationService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.NetworkAnalystServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof s.FindLocationParameters){var t,r=this,i=r.url.substr(r.url.length-1,1);r.url=r.url+("/"===i?"location":"/location")+".json?",t={isFromCenter:e.isFromCenter,expectedSupplyCenterCount:e.expectedSupplyCenterCount,weightName:e.weightName,turnWeightField:e.turnWeightField,returnEdgeFeature:!0,returnEdgeGeometry:!0,returnNodeFeature:!0,mapParameter:a.Util.toJSON(e.mapParameter),supplyCenters:r.getCentersJson(e.supplyCenters)},r.request({method:"GET",params:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"getCentersJson",value:function(e){for(var t="[",r=e?e.length:0,i=0;i<r;i++)i>0&&(t+=","),t+=a.Util.toJSON(e[i]);return t+="]"}},{key:"toGeoJSONResult",value:function(e){if(!e)return null;var t=new l.GeoJSON;return e.demandResults&&(e.demandResults=t.toGeoJSON(e.demandResults)),e.supplyResults&&(e.supplyResults=t.toGeoJSON(e.supplyResults)),e}}]),t}();n.SuperMap.FindLocationService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FindClosestFacilitiesService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(18),s=r(15),l=r(287);
  1579. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1580. * This program are made available under the terms of the Apache License, Version 2.0
  1581. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1582. var u=t.FindClosestFacilitiesService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.FindClosestFacilitiesService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.NetworkAnalystServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof l.FindClosestFacilitiesParameters){var t,r=this,i=r.url.substr(r.url.length-1,1);r.url=r.url+("/"===i?"closestfacility":"/closestfacility")+".json?",t={expectFacilityCount:e.expectFacilityCount,fromEvent:e.fromEvent,maxWeight:e.maxWeight,parameter:a.Util.toJSON(e.parameter),event:a.Util.toJSON(e.event),facilities:r.getJson(e.isAnalyzeById,e.facilities)},r.request({method:"GET",params:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"getJson",value:function(e,t){var r="[",i=t?t.length:0;if(!1===e)for(var n=0;n<i;n++)n>0&&(r+=","),r+='{"x":'+t[n].x+',"y":'+t[n].y+"}";else if(1==e)for(var a=0;a<i;a++)a>0&&(r+=","),r+=t[a];return r+="]"}},{key:"toGeoJSONResult",value:function(e){if(!e||!e.facilityPathList)return e;var t=new o.GeoJSON;return e.facilityPathList.map(function(e){return e.route&&(e.route=t.toGeoJSON(e.route)),e.pathGuideItems&&(e.pathGuideItems=t.toGeoJSON(e.pathGuideItems)),e.edgeFeatures&&(e.edgeFeatures=t.toGeoJSON(e.edgeFeatures)),e.nodeFeatures&&(e.nodeFeatures=t.toGeoJSON(e.nodeFeatures)),e}),e}}]),t}();n.SuperMap.FindClosestFacilitiesService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FieldStatisticService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(6),o=r(1);r(288);
  1583. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1584. * This program are made available under the terms of the Apache License, Version 2.0
  1585. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1586. var s=t.FieldStatisticService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.datasource=null,i.dataset=null,i.field=null,i.statisticMode=null,r&&o.Util.extend(i,r),i.CLASS_NAME="SuperMap.FieldStatisticService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.datasource=null,this.dataset=null,this.field=null,this.statisticMode=null}},{key:"processAsync",value:function(){var e=this,t=e.url.substr(e.url.length-1,1),r="datasources/"+e.datasource+"/datasets/"+e.dataset+"/fields/"+e.field+"/"+e.statisticMode;e.url+="/"==t?r+".json?":"/"+r+".json?",e.request({method:"GET",data:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}]),t}();n.SuperMap.FieldStatisticService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FilterAggParameter=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(4),o=r(1),s=r(133);r(134);
  1587. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1588. * This program are made available under the terms of the Apache License, Version 2.0
  1589. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1590. var l=t.FilterAggParameter=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.filterParam=null,r.aggType=a.AggregationType.FILTER,r.CLASS_NAME="SuperMap.FilterAggParameter",o.Util.extend(r,e),r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.AggregationParameter),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.filterParam&&(this.filterParam=null)}}]),t}();n.SuperMap.FilterAggParameter=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FacilityAnalystUpstream3DService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(6),o=r(290);
  1591. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1592. * This program are made available under the terms of the Apache License, Version 2.0
  1593. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1594. var s=t.FacilityAnalystUpstream3DService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.FacilityAnalystUpstream3DService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof o.FacilityAnalystUpstream3DParameters){var t,r=this,i=r.url.substr(r.url.length-1,1);r.url=r.url+("/"===i?"upstreamcirticalfaclilities":"/upstreamcirticalfaclilities")+".json?",t={sourceNodeIDs:e.sourceNodeIDs,edgeID:e.edgeID,nodeID:e.nodeID,isUncertainDirectionValid:e.isUncertainDirectionValid},r.request({method:"GET",params:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}}]),t}();n.SuperMap.FacilityAnalystUpstream3DService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FacilityAnalystTraceup3DService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(6),o=r(291);
  1595. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1596. * This program are made available under the terms of the Apache License, Version 2.0
  1597. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1598. var s=t.FacilityAnalystTraceup3DService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.FacilityAnalystTraceup3DService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof o.FacilityAnalystTraceup3DParameters){var t,r=this,i=r.url.substr(r.url.length-1,1);r.url=r.url+("/"===i?"traceupresult":"/traceupresult")+".json?",t={edgeID:e.edgeID,nodeID:e.nodeID,weightName:e.weightName,isUncertainDirectionValid:e.isUncertainDirectionValid},r.request({method:"GET",params:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}}]),t}();n.SuperMap.FacilityAnalystTraceup3DService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FacilityAnalystTracedown3DService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(6),o=r(292);
  1599. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1600. * This program are made available under the terms of the Apache License, Version 2.0
  1601. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1602. var s=t.FacilityAnalystTracedown3DService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.FacilityAnalystTracedown3DService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof o.FacilityAnalystTracedown3DParameters){var t,r=this,i=r.url.substr(r.url.length-1,1);r.url=r.url+("/"===i?"tracedownresult":"/tracedownresult")+".json?",t={edgeID:e.edgeID,nodeID:e.nodeID,weightName:e.weightName,isUncertainDirectionValid:e.isUncertainDirectionValid},r.request({method:"GET",params:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}}]),t}();n.SuperMap.FacilityAnalystTracedown3DService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FacilityAnalystStreamService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(15),o=r(293);
  1603. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1604. * This program are made available under the terms of the Apache License, Version 2.0
  1605. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1606. var s=t.FacilityAnalystStreamService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.FacilityAnalystStreamService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.NetworkAnalystServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof o.FacilityAnalystStreamParameters){var t,r=this,i=r.url.substr(r.url.length-1,1);if(0===e.queryType)r.url=r.url+("/"===i?"upstreamcirticalfaclilities":"/upstreamcirticalfaclilities")+".json?";else{if(1!==e.queryType)return;r.url=r.url+("/"===i?"downstreamcirticalfaclilities":"/downstreamcirticalfaclilities")+".json?"}t={sourceNodeIDs:e.sourceNodeIDs,isUncertainDirectionValid:e.isUncertainDirectionValid},null!==e.edgeID&&null!==e.nodeID||null===e.edgeID&&null===e.nodeID||(null!==e.edgeID?t.edgeID=e.edgeID:t.nodeID=e.nodeID,r.request({method:"GET",params:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed}))}}}]),t}();n.SuperMap.FacilityAnalystStreamService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FacilityAnalystSources3DService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(6),o=r(294);
  1607. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1608. * This program are made available under the terms of the Apache License, Version 2.0
  1609. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1610. var s=t.FacilityAnalystSources3DService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.FacilityAnalystSources3DService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof o.FacilityAnalystSources3DParameters){var t,r=this,i=r.url.substr(r.url.length-1,1);r.url=r.url+("/"===i?"sources":"/sources")+".json?",t={edgeID:e.edgeID,nodeID:e.nodeID,weightName:e.weightName,isUncertainDirectionValid:e.isUncertainDirectionValid},r.request({method:"GET",params:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}}]),t}();n.SuperMap.FacilityAnalystSources3DService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FacilityAnalystSinks3DService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(6),o=r(295);
  1611. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1612. * This program are made available under the terms of the Apache License, Version 2.0
  1613. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1614. var s=t.FacilityAnalystSinks3DService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.FacilityAnalystSinks3DService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.CommonServiceBase),i(t,[{key:"destroy",value:function(){a.CommonServiceBase.prototype.destroy.apply(this,arguments)}},{key:"processAsync",value:function(e){if(e instanceof o.FacilityAnalystSinks3DParameters){var t,r=this,i=r.url.substr(r.url.length-1,1);r.url=r.url+("/"===i?"sinks":"/sinks")+".json?",t={edgeID:e.edgeID,nodeID:e.nodeID,weightName:e.weightName,isUncertainDirectionValid:e.isUncertainDirectionValid},r.request({method:"GET",params:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}}]),t}();n.SuperMap.FacilityAnalystSinks3DService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EditFeaturesService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(6),l=r(296);
  1615. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1616. * This program are made available under the terms of the Apache License, Version 2.0
  1617. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1618. var u=t.EditFeaturesService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));i.returnContent=!1,i.isUseBatch=!1,r&&a.Util.extend(i,r);var n,o=i;return n=o.url.substr(o.url.length-1,1),o.url+="/"==n?"features.json?":"/features.json?",i.CLASS_NAME="SuperMap.EditFeaturesService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.returnContent=null,this.isUseBatch=null,this.fromIndex=null,this.toIndex=null}},{key:"processAsync",value:function(e){if(e instanceof l.EditFeaturesParameters){var t=this,r="POST",i="",n=e.editType,s=null;t.returnContent=e.returnContent,t.isUseBatch=e.isUseBatch,s=l.EditFeaturesParameters.toJsonParameters(e),n===o.EditType.DELETE?(i=a.Util.toJSON(e.IDs),t.url+="ids="+i,r="DELETE",s=i):n===o.EditType.UPDATE?r="PUT":(t.isUseBatch&&(t.url+="isUseBatch="+t.isUseBatch,t.returnContent=!1),t.returnContent&&(t.url+="returnContent="+t.returnContent,r="POST")),t.request({method:r,data:s,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}}]),t}();n.SuperMap.EditFeaturesService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DensityAnalystService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(10),s=r(297);
  1619. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1620. * This program are made available under the terms of the Apache License, Version 2.0
  1621. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1622. var l=t.DensityAnalystService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.mode=null,r&&a.Util.extend(i,r),i.CLASS_NAME="SuperMap.DensityAnalystService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.SpatialAnalystBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.mode=null}},{key:"processAsync",value:function(e){var t=this;"/"!==t.url.substr(t.url.length-1,1)&&(t.url+="/");var r=new Object;e instanceof s.DensityKernelAnalystParameters&&(t.url+="datasets/"+e.dataset+"/densityanalyst/kernel",t.mode="kernel"),s.DensityKernelAnalystParameters.toObject(e,r);var i=a.Util.toJSON(r);t.url+=".json?returnContent=true",t.request({method:"POST",data:i,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}]),t}();n.SuperMap.DensityAnalystService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DataFlowService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(6),o=r(1),s=r(40);
  1623. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1624. * This program are made available under the terms of the Apache License, Version 2.0
  1625. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1626. var l=t.DataFlowService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(r=r||{}).EVENT_TYPES=["broadcastSocketConnected","broadcastSocketError","broadcastFailed","broadcastSucceeded","subscribeSocketConnected","subscribeSocketError","messageSucceeded","setFilterParamSucceeded"];var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));i.geometry=null,i.prjCoordSys=null,i.excludeField=null;var n=i;return"/"!==n.url.substr(n.url.length-1,1)&&(n.url+="/"),o.Util.extend(n,r),i.CLASS_NAME="SuperMap.DataFlowService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.CommonServiceBase),i(t,[{key:"initBroadcast",value:function(){var e=this;return this.broadcastWebSocket=this._connect(e.url+"broadcast"),this.broadcastWebSocket.onopen=function(t){e.broadcastWebSocket.isOpen=!0,t.eventType="broadcastSocketConnected",e.events.triggerEvent("broadcastSocketConnected",t)},this.broadcastWebSocket.onclose=function(t){e.broadcastWebSocket.isOpen=!1,t.eventType="broadcastSocketConnected",e.events.triggerEvent("broadcastSocketConnected",t)},this.broadcastWebSocket.onerror=function(t){t.eventType="broadcastSocketError",e.events.triggerEvent("broadcastSocketError",t)},this}},{key:"broadcast",value:function(e){this.broadcastWebSocket&&this.broadcastWebSocket.isOpen?(this.broadcastWebSocket.send(JSON.stringify(e)),this.events.triggerEvent("broadcastSucceeded")):this.events.triggerEvent("broadcastFailed")}},{key:"initSubscribe",value:function(){var e=this;return this.subscribeWebSocket=this._connect(this.url+"subscribe"),this.subscribeWebSocket.onopen=function(t){e.subscribeWebSocket.send(e._getFilterParams()),t.eventType="subscribeSocketConnected",e.events.triggerEvent("subscribeSocketConnected",t)},this.subscribeWebSocket.onerror=function(t){t.eventType="subscribeSocketError",e.events.triggerEvent("subscribeSocketError",t)},this.subscribeWebSocket.onmessage=function(t){e._onMessage(t)},this}},{key:"setExcludeField",value:function(e){return this.excludeField=e,this.subscribeWebSocket.send(this._getFilterParams()),this}},{key:"setGeometry",value:function(e){return this.geometry=e,this.subscribeWebSocket.send(this._getFilterParams()),this}},{key:"unSubscribe",value:function(){this.subscribeWebSocket&&(this.subscribeWebSocket.close(),this.subscribeWebSocket=null)}},{key:"unBroadcast",value:function(){this.broadcastWebSocket&&(this.broadcastWebSocket.close(),this.broadcastWebSocket=null)}},{key:"destroy",value:function(){a.CommonServiceBase.prototype.destroy.apply(this,arguments);this.geometry=null,this.prjCoordSys=null,this.excludeField=null,this.unBroadcast(),this.unSubscribe()}},{key:"_getFilterParams",value:function(){var e={filterParam:{prjCoordSys:this.prjCoordSys,excludeField:this.excludeField,geometry:this.geometry}};return o.Util.toJSON(e)}},{key:"_onMessage",value:function(e){if(e.data&&e.data.indexOf("filterParam")>=0){var t=JSON.parse(e.data);return e.filterParam=t,e.eventType="setFilterParamSucceeded",void this.events.triggerEvent("setFilterParamSucceeded",e)}var r=JSON.parse(e.data);e.featureResult=r,e.eventType="messageSucceeded",this.events.triggerEvent("messageSucceeded",e)}},{key:"_connect",value:function(e){return e=this._appendCredentials(e),"WebSocket"in window?new WebSocket(e):"MozWebSocket"in window?new(0,window.MozWebSocket)(e):(console.log("no WebSocket"),null)}},{key:"_appendCredentials",value:function(e){var t=s.SecurityManager.getToken(e);return t&&(e+="?token="+t),e}}]),t}();n.SuperMap.DataFlowService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ComputeWeightMatrixService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(304),s=r(15);
  1627. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1628. * This program are made available under the terms of the Apache License, Version 2.0
  1629. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1630. var l=t.ComputeWeightMatrixService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.ComputeWeightMatrixService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.NetworkAnalystServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof o.ComputeWeightMatrixParameters){var t,r=this,i=r.url.substr(r.url.length-1,1);r.url=r.url+("/"===i?"weightmatrix":"/weightmatrix")+".json?",t={parameter:a.Util.toJSON(e.parameter),nodes:r.getJson(e.isAnalyzeById,e.nodes)},r.request({method:"GET",params:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"getJson",value:function(e,t){var r="[",i=t?t.length:0;if(!1===e)for(var n=0;n<i;n++)n>0&&(r+=","),r+='{"x":'+t[n].x+',"y":'+t[n].y+"}";else if(1==e)for(var a=0;a<i;a++)a>0&&(r+=","),r+=t[a];return r+="]"}}]),t}();n.SuperMap.ComputeWeightMatrixService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChartQueryService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(4),s=r(6),l=r(39),u=r(307),c=r(18);function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}
  1631. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1632. * This program are made available under the terms of the Apache License, Version 2.0
  1633. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1634. var h=t.ChartQueryService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));r=r||{},i.returnContent=null,i.format=o.DataFormat.GEOJSON,a.Util.extend(i,r);var n,s=i;return r.format&&(s.format=r.format.toUpperCase()),s.url?(n=s.url.substr(s.url.length-1,1),s.url+="/"===n?"queryResults.json?":"/queryResults.json?",i.CLASS_NAME="SuperMap.ChartQueryService",i):p(i)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,s.CommonServiceBase),i(t,[{key:"destroy",value:function(){s.CommonServiceBase.prototype.destroy.apply(this,arguments),this.returnContent=null,this.format=null}},{key:"processAsync",value:function(e){if(e instanceof u.ChartQueryParameters){var t,r=this;r.returnContent=e.returnContent,t=e.getVariablesJson(),r.returnContent&&(r.url+="returnContent="+r.returnContent),r.request({method:"POST",data:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}},{key:"serviceProcessCompleted",value:function(e){if((e=a.Util.transformResult(e))&&e.recordsets&&this.format===o.DataFormat.GEOJSON)for(var t=0,r=e.recordsets,i=r.length;t<i;t++)if(r[t].features){var n=new c.GeoJSON;r[t].features=n.toGeoJSON(r[t].features)}this.events.triggerEvent("processCompleted",{result:e})}},{key:"getQueryParameters",value:function(e){return new l.QueryParameters({queryMode:e.queryMode,bounds:e.bounds,chartLayerNames:e.chartLayerNames,chartQueryFilterParameters:e.chartQueryFilterParameters,returnContent:e.returnContent})}}]),t}();n.SuperMap.ChartQueryService=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChartFeatureInfoSpecsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(6);
  1635. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1636. * This program are made available under the terms of the Apache License, Version 2.0
  1637. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1638. var s=t.ChartFeatureInfoSpecsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.ChartFeatureInfoSpecsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),a.Util.reset(this)}},{key:"processAsync",value:function(){var e=this,t=e.url.substr(e.url.length-1,1);e.isTempLayers?e.url+=".json?":(e.url+="/"===t?"":"/",e.url+="chartFeatureInfoSpecs.json?"),e.request({method:"GET",params:null,scope:e,success:e.serviceProcessCompleted,failure:e.serviceProcessFailed})}}]),t}();n.SuperMap.ChartFeatureInfoSpecsService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BurstPipelineAnalystService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(15),o=r(309);
  1639. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1640. * This program are made available under the terms of the Apache License, Version 2.0
  1641. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1642. var s=t.BurstPipelineAnalystService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.BurstPipelineAnalystService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.NetworkAnalystServiceBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(!(e instanceof o.BurstPipelineAnalystParameters))return null;var t,r=this,i=r.url.substr(r.url.length-1,1);if(r.url=r.url+("/"===i?"burstAnalyse":"/burstAnalyse")+".json?",t={sourceNodeIDs:e.sourceNodeIDs,isUncertainDirectionValid:e.isUncertainDirectionValid},null!==e.edgeID&&null!==e.nodeID)throw new Error("edgeID and nodeID cannot be null at the same time.");if(null===e.edgeID&&null===e.nodeID)throw new Error("edgeID and nodeID cannot be null at the same time.");null!==e.edgeID?t.edgeID=e.edgeID:t.nodeID=e.nodeID,r.request({method:"GET",params:t,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}]),t}();n.SuperMap.BurstPipelineAnalystService=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BuffersAnalystJobsService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(19),s=r(310);
  1643. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1644. * This program are made available under the terms of the Apache License, Version 2.0
  1645. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1646. var l=t.BuffersAnalystJobsService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.url+="/spatialanalyst/buffers",i.CLASS_NAME="SuperMap.BuffersAnalystJobsService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.ProcessingServiceBase),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"getBuffersJobs",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url)}},{key:"getBuffersJob",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getJobs",this).call(this,this.url+"/"+e)}},{key:"addBuffersJob",value:function(e,r){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addJob",this).call(this,this.url,e,s.BuffersAnalystJobsParameter,r)}}]),t}();a.SuperMap.BuffersAnalystJobsService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BufferAnalystService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(1),o=r(10),s=r(312),l=r(130);
  1647. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1648. * This program are made available under the terms of the Apache License, Version 2.0
  1649. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1650. var u=t.BufferAnalystService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.mode=null,r&&a.Util.extend(i,r),i.CLASS_NAME="SuperMap.BufferAnalystService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.SpatialAnalystBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this),this.mode=null}},{key:"processAsync",value:function(e){var t={},r=this;"/"!==r.url.substr(r.url.length-1,1)&&(r.url+="/"),e instanceof s.DatasetBufferAnalystParameters?(r.mode="datasets",r.url+="datasets/"+e.dataset+"/buffer",s.DatasetBufferAnalystParameters.toObject(e,t)):e instanceof l.GeometryBufferAnalystParameters&&(r.mode="geometry",r.url+="geometry/buffer",l.GeometryBufferAnalystParameters.toObject(e,t));var i=a.Util.toJSON(t);r.url+=".json?returnContent=true",r.request({method:"POST",data:i,scope:r,success:r.serviceProcessCompleted,failure:r.serviceProcessFailed})}}]),t}();n.SuperMap.BufferAnalystService=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AreaSolarRadiationService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(10),o=r(315),s=r(1);
  1651. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1652. * This program are made available under the terms of the Apache License, Version 2.0
  1653. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1654. var l=t.AreaSolarRadiationService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.CLASS_NAME="SuperMap.AreaSolarRadiationService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.SpatialAnalystBase),i(t,[{key:"destroy",value:function(){(function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0})(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"processAsync",value:function(e){if(e instanceof o.AreaSolarRadiationParameters){var t=this;"/"!==t.url.substr(t.url.length-1,1)&&(t.url+="/");var r={};e instanceof o.AreaSolarRadiationParameters&&(t.url+="datasets/"+e.dataset+"/solarradiation"),o.AreaSolarRadiationParameters.toObject(e,r);var i=s.Util.toJSON(r);t.url+=".json?returnContent=true",t.request({method:"POST",data:i,scope:t,success:t.serviceProcessCompleted,failure:t.serviceProcessFailed})}}}]),t}();n.SuperMap.AreaSolarRadiationService=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AddressMatchService=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(6),s=r(17),l=r(317),u=r(316);
  1655. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1656. * This program are made available under the terms of the Apache License, Version 2.0
  1657. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1658. var c=t.AddressMatchService=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.options=r||{},i.CLASS_NAME="SuperMap.AddressMatchService",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.CommonServiceBase),i(t,[{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this)}},{key:"code",value:function(e,t){t instanceof l.GeoCodingParameter&&this.processAsync(e,t)}},{key:"decode",value:function(e,t){t instanceof u.GeoDecodingParameter&&this.processAsync(e,t)}},{key:"processAsync",value:function(e,t){var r=this;s.FetchRequest.get(e,t,{crossOrigin:r.crossOrigin,proxy:r.proxy}).then(function(e){return e.json()}).then(function(e){e?r.serviceProcessCompleted(e):r.serviceProcessFailed(e)}).catch(function(e){r.eventListeners.processFailed({error:e})})}},{key:"serviceProcessCompleted",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"serviceProcessCompleted",this).call(this,e)}},{key:"serviceProcessFailed",value:function(e){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"serviceProcessFailed",this).call(this,e)}}]),t}();a.SuperMap.AddressMatchService=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VectorClipJobsService=t.VectorClipJobsParameter=t.Vector=t.UpdateTurnNodeWeightService=t.UpdateTurnNodeWeightParameters=t.UpdateEdgeWeightService=t.UpdateEdgeWeightParameters=t.UGCSubLayer=t.UGCMapLayer=t.UGCLayer=t.TransferSolutionParameters=t.TransportationAnalystResultSetting=t.TransportationAnalystParameter=t.TransferSolutionService=t.TransferPathService=t.TransferPathParameters=t.TransferLine=t.TopologyValidatorJobsService=t.TopologyValidatorJobsParameter=void 0,t.TilesetsService=t.GeometryBatchAnalystService=t.ThiessenAnalystService=t.ThiessenAnalystParameters=t.ThemeUniqueItem=t.ThemeUnique=t.ThemeService=t.ThemeRangeItem=t.ThemeRange=t.ThemeParameters=t.ThemeOffset=t.ThemeMemoryData=t.ThemeLabelUniqueItem=t.ThemeLabelText=t.ThemeLabelItem=t.ThemeLabelBackground=t.ThemeLabelAlongLine=t.ThemeLabel=t.ThemeGridUniqueItem=t.ThemeGridUnique=t.ThemeGridRangeItem=t.ThemeGridRange=t.ThemeGraphText=t.ThemeGraphSize=t.ThemeGraphItem=t.ThemeGraphAxes=t.ThemeGraph=t.ThemeGraduatedSymbolStyle=t.ThemeGraduatedSymbol=t.ThemeFlow=t.ThemeDotDensity=t.Theme=t.TerrainCurvatureCalculationService=t.TerrainCurvatureCalculationParameters=t.SurfaceAnalystService=t.SurfaceAnalystParametersSetting=t.SurfaceAnalystParameters=t.SupplyCenter=t.SummaryRegionJobsService=t.SummaryRegionJobParameter=t.SummaryMeshJobsService=t.SummaryMeshJobParameter=t.SummaryAttributesJobsService=t.SummaryAttributesJobsParameter=t.StopQueryService=t.StopQueryParameters=t.SpatialAnalystBase=t.SingleObjectQueryJobsService=t.SingleObjectQueryJobsParameter=t.SetLayerStatusService=t.SetLayerStatusParameters=t.SetLayersInfoService=t.SetLayersInfoParameters=t.SetLayerInfoService=t.SetLayerInfoParameters=t.ServerTheme=t.ServerTextStyle=t.ServerStyle=t.ServerGeometry=t.ServerFeature=t.ServerColor=t.RouteLocatorService=t.RouteLocatorParameters=t.RouteCalculateMeasureService=t.RouteCalculateMeasureParameters=t.Route=t.QueryService=t.QueryParameters=t.QueryBySQLService=t.QueryBySQLParameters=t.QueryByGeometryService=t.QueryByGeometryParameters=t.QueryByDistanceService=t.QueryByDistanceParameters=t.QueryByBoundsService=t.QueryByBoundsParameters=t.ProcessingServiceBase=t.PointWithMeasure=t.OverlayGeoJobsService=t.OverlayGeoJobParameter=t.OverlayAnalystService=t.OverlayAnalystParameters=t.MappingParameters=t.OutputSetting=t.OverlapDisplayedOptions=t.NetworkAnalystServiceBase=t.MeasureService=t.MeasureParameters=t.MathExpressionAnalysisService=t.MathExpressionAnalysisParameters=t.MapService=t.LinkItem=t.LayerStatus=t.LabelThemeCell=t.LabelSymbolCell=t.LabelMixedTextStyle=t.LabelMatrixCell=t.LabelImageCell=t.KernelDensityJobsService=t.KernelDensityJobParameter=void 0,t.JoinItem=t.InterpolationRBFAnalystParameters=t.InterpolationKrigingAnalystParameters=t.InterpolationIDWAnalystParameters=t.InterpolationAnalystService=t.InterpolationAnalystParameters=t.UGCImage=t.Grid=t.GetLayersInfoService=t.GetGridCellInfosService=t.GetGridCellInfosParameters=t.GetFieldsService=t.GetFeaturesServiceBase=t.GetFeaturesParametersBase=t.GetFeaturesBySQLService=t.GetFeaturesBySQLParameters=t.GetFeaturesByIDsService=t.GetFeaturesByIDsParameters=t.GetFeaturesByGeometryService=t.GetFeaturesByGeometryParameters=t.GetFeaturesByBufferService=t.GetFeaturesByBufferParameters=t.GetFeaturesByBoundsService=t.GetFeaturesByBoundsParameters=t.GeoRelationAnalystService=t.GeoRelationAnalystParameters=t.GeometryThiessenAnalystParameters=t.GeometrySurfaceAnalystParameters=t.GeometryOverlayAnalystParameters=t.GeometryBufferAnalystParameters=t.GeoHashGridAggParameter=t.GeoDecodingParameter=t.GeoCodingParameter=t.GeoBoundingBoxQueryBuilderParameter=t.GenerateSpatialDataService=t.GenerateSpatialDataParameters=t.FindTSPPathsService=t.FindTSPPathsParameters=t.FindServiceAreasService=t.FindServiceAreasParameters=t.FindPathService=t.FindPathParameters=t.FindMTSPPathsService=t.FindMTSPPathsParameters=t.FindLocationService=t.FindLocationParameters=t.FindClosestFacilitiesService=t.FindClosestFacilitiesParameters=t.FilterParameter=t.FieldStatisticsParameters=t.FieldStatisticService=t.FieldParameters=t.FilterAggParameter=t.FacilityAnalystUpstream3DService=t.FacilityAnalystUpstream3DParameters=t.FacilityAnalystTraceup3DService=t.FacilityAnalystTraceup3DParameters=t.FacilityAnalystTracedown3DService=t.FacilityAnalystTracedown3DParameters=t.FacilityAnalystStreamService=t.FacilityAnalystStreamParameters=t.FacilityAnalystSources3DService=t.FacilityAnalystSources3DParameters=t.FacilityAnalystSinks3DService=t.FacilityAnalystSinks3DParameters=t.FacilityAnalyst3DParameters=t.EditFeaturesService=t.EditFeaturesParameters=t.DensityKernelAnalystParameters=t.DensityAnalystService=t.DatasourceConnectionInfo=t.DatasetThiessenAnalystParameters=t.DatasetSurfaceAnalystParameters=t.DatasetOverlayAnalystParameters=t.DatasetInfo=t.DatasetBufferAnalystParameters=t.DataReturnOption=t.DataFlowService=t.ComputeWeightMatrixService=t.ComputeWeightMatrixParameters=t.CommonServiceBase=t.ColorDictionary=t.ClipParameter=t.ChartQueryService=t.ChartQueryParameters=t.ChartQueryFilterParameter=t.ChartFeatureInfoSpecsService=t.BurstPipelineAnalystService=t.BurstPipelineAnalystParameters=t.BufferSetting=t.BuffersAnalystJobsService=t.BuffersAnalystJobsParameter=t.BufferDistance=t.BufferAnalystService=t.BufferAnalystParameters=t.AreaSolarRadiationService=t.AreaSolarRadiationParameters=t.AggregationParameter=t.AggQueryBuilderParameter=t.AddressMatchService=void 0;var i=r(558),n=r(134),a=r(133),o=r(315),s=r(557),l=r(132),u=r(556),c=r(313),p=r(310),h=r(555),f=r(314),d=r(309),y=r(554),v=r(553),m=r(308),g=r(307),b=r(552),S=r(306),_=r(305),P=r(6),w=r(304),O=r(551),T=r(550),M=r(63),C=r(312),x=r(302),E=r(301),L=r(300),A=r(298),k=r(131),F=r(549),j=r(297),I=r(296),N=r(548),D=r(47),R=r(295),G=r(547),B=r(294),U=r(546),V=r(293),J=r(545),z=r(292),q=r(544),H=r(291),W=r(543),Q=r(290),Y=r(542),X=r(541),K=r(289),Z=r(540),$=r(288),ee=r(16),te=r(287),re=r(539),ie=r(286),ne=r(538),ae=r(285),oe=r(537),se=r(284),le=r(536),ue=r(283),ce=r(535),pe=r(282),he=r(534),fe=r(281),de=r(533),ye=r(532),ve=r(317),me=r(316),ge=r(531),be=r(130),Se=r(128),_e=r(280),Pe=r(127),we=r(279),Oe=r(530),Te=r(278),Me=r(529),Ce=r(277),xe=r(528),Ee=r(276),Le=r(527),Ae=r(275),ke=r(526),Fe=r(126),je=r(274),Ie=r(46),Ne=r(45),De=r(525),Re=r(273),Ge=r(524),Be=r(523),Ue=r(257),Ve=r(256),Je=r(36),ze=r(522),qe=r(253),He=r(252),We=r(254),Qe=r(89),Ye=r(251),Xe=r(520),Ke=r(250),Ze=r(83),$e=r(268),et=r(249),tt=r(248),rt=r(247),it=r(311),nt=r(519),at=r(246),ot=r(518),st=r(245),lt=r(517),ut=r(15),ct=r(21),pt=r(20),ht=r(258),ft=r(129),dt=r(516),yt=r(244),vt=r(515),mt=r(326),gt=r(19),bt=r(243),St=r(514),_t=r(242),Pt=r(513),wt=r(241),Ot=r(512),Tt=r(118),Mt=r(240),Ct=r(39),xt=r(61),Et=r(91),Lt=r(239),At=r(511),kt=r(238),Ft=r(510),jt=r(22),It=r(509),Nt=r(9),Dt=r(14),Rt=r(37),Gt=r(272),Bt=r(237),Ut=r(508),Vt=r(236),Jt=r(507),zt=r(235),qt=r(506),Ht=r(234),Wt=r(505),Qt=r(10),Yt=r(233),Xt=r(504),Kt=r(232),Zt=r(503),$t=r(231),er=r(502),tr=r(230),rr=r(501),ir=r(500),nr=r(88),ar=r(299),or=r(499),sr=r(229),lr=r(498),ur=r(28),cr=r(122),pr=r(85),hr=r(121),fr=r(261),dr=r(123),yr=r(265),vr=r(262),mr=r(264),gr=r(263),br=r(228),Sr=r(227),_r=r(226),Pr=r(225),wr=r(86),Or=r(267),Tr=r(266),Mr=r(270),Cr=r(269),xr=r(497),Er=r(271),Lr=r(84),Ar=r(224),kr=r(120),Fr=r(260),jr=r(496),Ir=r(124),Nr=r(125),Dr=r(87),Rr=r(495),Gr=r(494),Br=r(493),Ur=r(223),Vr=r(492),Jr=r(222),zr=r(221),qr=r(491),Hr=r(490),Wr=r(38),Qr=r(303),Yr=r(220),Xr=r(119),Kr=r(259),Zr=r(62),$r=r(219),ei=r(489),ti=r(218),ri=r(488),ii=r(255),ni=r(217),ai=r(487);t.AddressMatchService=i.AddressMatchService,
  1659. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1660. * This program are made available under the terms of the Apache License, Version 2.0
  1661. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1662. t.AggQueryBuilderParameter=n.AggQueryBuilderParameter,t.AggregationParameter=a.AggregationParameter,t.AreaSolarRadiationParameters=o.AreaSolarRadiationParameters,t.AreaSolarRadiationService=s.AreaSolarRadiationService,t.BufferAnalystParameters=l.BufferAnalystParameters,t.BufferAnalystService=u.BufferAnalystService,t.BufferDistance=c.BufferDistance,t.BuffersAnalystJobsParameter=p.BuffersAnalystJobsParameter,t.BuffersAnalystJobsService=h.BuffersAnalystJobsService,t.BufferSetting=f.BufferSetting,t.BurstPipelineAnalystParameters=d.BurstPipelineAnalystParameters,t.BurstPipelineAnalystService=y.BurstPipelineAnalystService,t.ChartFeatureInfoSpecsService=v.ChartFeatureInfoSpecsService,t.ChartQueryFilterParameter=m.ChartQueryFilterParameter,t.ChartQueryParameters=g.ChartQueryParameters,t.ChartQueryService=b.ChartQueryService,t.ClipParameter=S.ClipParameter,t.ColorDictionary=_.ColorDictionary,t.CommonServiceBase=P.CommonServiceBase,t.ComputeWeightMatrixParameters=w.ComputeWeightMatrixParameters,t.ComputeWeightMatrixService=O.ComputeWeightMatrixService,t.DataFlowService=T.DataFlowService,t.DataReturnOption=M.DataReturnOption,t.DatasetBufferAnalystParameters=C.DatasetBufferAnalystParameters,t.DatasetInfo=x.DatasetInfo,t.DatasetOverlayAnalystParameters=E.DatasetOverlayAnalystParameters,t.DatasetSurfaceAnalystParameters=L.DatasetSurfaceAnalystParameters,t.DatasetThiessenAnalystParameters=A.DatasetThiessenAnalystParameters,t.DatasourceConnectionInfo=k.DatasourceConnectionInfo,t.DensityAnalystService=F.DensityAnalystService,t.DensityKernelAnalystParameters=j.DensityKernelAnalystParameters,t.EditFeaturesParameters=I.EditFeaturesParameters,t.EditFeaturesService=N.EditFeaturesService,t.FacilityAnalyst3DParameters=D.FacilityAnalyst3DParameters,t.FacilityAnalystSinks3DParameters=R.FacilityAnalystSinks3DParameters,t.FacilityAnalystSinks3DService=G.FacilityAnalystSinks3DService,t.FacilityAnalystSources3DParameters=B.FacilityAnalystSources3DParameters,t.FacilityAnalystSources3DService=U.FacilityAnalystSources3DService,t.FacilityAnalystStreamParameters=V.FacilityAnalystStreamParameters,t.FacilityAnalystStreamService=J.FacilityAnalystStreamService,t.FacilityAnalystTracedown3DParameters=z.FacilityAnalystTracedown3DParameters,t.FacilityAnalystTracedown3DService=q.FacilityAnalystTracedown3DService,t.FacilityAnalystTraceup3DParameters=H.FacilityAnalystTraceup3DParameters,t.FacilityAnalystTraceup3DService=W.FacilityAnalystTraceup3DService,t.FacilityAnalystUpstream3DParameters=Q.FacilityAnalystUpstream3DParameters,t.FacilityAnalystUpstream3DService=Y.FacilityAnalystUpstream3DService,t.FilterAggParameter=X.FilterAggParameter,t.FieldParameters=K.FieldParameters,t.FieldStatisticService=Z.FieldStatisticService,t.FieldStatisticsParameters=$.FieldStatisticsParameters,t.FilterParameter=ee.FilterParameter,t.FindClosestFacilitiesParameters=te.FindClosestFacilitiesParameters,t.FindClosestFacilitiesService=re.FindClosestFacilitiesService,t.FindLocationParameters=ie.FindLocationParameters,t.FindLocationService=ne.FindLocationService,t.FindMTSPPathsParameters=ae.FindMTSPPathsParameters,t.FindMTSPPathsService=oe.FindMTSPPathsService,t.FindPathParameters=se.FindPathParameters,t.FindPathService=le.FindPathService,t.FindServiceAreasParameters=ue.FindServiceAreasParameters,t.FindServiceAreasService=ce.FindServiceAreasService,t.FindTSPPathsParameters=pe.FindTSPPathsParameters,t.FindTSPPathsService=he.FindTSPPathsService,t.GenerateSpatialDataParameters=fe.GenerateSpatialDataParameters,t.GenerateSpatialDataService=de.GenerateSpatialDataService,t.GeoBoundingBoxQueryBuilderParameter=ye.GeoBoundingBoxQueryBuilderParameter,t.GeoCodingParameter=ve.GeoCodingParameter,t.GeoDecodingParameter=me.GeoDecodingParameter,t.GeoHashGridAggParameter=ge.GeoHashGridAggParameter,t.GeometryBufferAnalystParameters=be.GeometryBufferAnalystParameters,t.GeometryOverlayAnalystParameters=Se.GeometryOverlayAnalystParameters,t.GeometrySurfaceAnalystParameters=_e.GeometrySurfaceAnalystParameters,t.GeometryThiessenAnalystParameters=Pe.GeometryThiessenAnalystParameters,t.GeoRelationAnalystParameters=we.GeoRelationAnalystParameters,t.GeoRelationAnalystService=Oe.GeoRelationAnalystService,t.GetFeaturesByBoundsParameters=Te.GetFeaturesByBoundsParameters,t.GetFeaturesByBoundsService=Me.GetFeaturesByBoundsService,t.GetFeaturesByBufferParameters=Ce.GetFeaturesByBufferParameters,t.GetFeaturesByBufferService=xe.GetFeaturesByBufferService,t.GetFeaturesByGeometryParameters=Ee.GetFeaturesByGeometryParameters,t.GetFeaturesByGeometryService=Le.GetFeaturesByGeometryService,t.GetFeaturesByIDsParameters=Ae.GetFeaturesByIDsParameters,t.GetFeaturesByIDsService=ke.GetFeaturesByIDsService,t.GetFeaturesBySQLParameters=Fe.GetFeaturesBySQLParameters,t.GetFeaturesBySQLService=je.GetFeaturesBySQLService,t.GetFeaturesParametersBase=Ie.GetFeaturesParametersBase,t.GetFeaturesServiceBase=Ne.GetFeaturesServiceBase,t.GetFieldsService=De.GetFieldsService,t.GetGridCellInfosParameters=Re.GetGridCellInfosParameters,t.GetGridCellInfosService=Ge.GetGridCellInfosService,t.GetLayersInfoService=Be.GetLayersInfoService,t.Grid=Ue.Grid,t.UGCImage=Ve.UGCImage,t.InterpolationAnalystParameters=Je.InterpolationAnalystParameters,t.InterpolationAnalystService=ze.InterpolationAnalystService,t.InterpolationIDWAnalystParameters=qe.InterpolationIDWAnalystParameters,t.InterpolationKrigingAnalystParameters=He.InterpolationKrigingAnalystParameters,t.InterpolationRBFAnalystParameters=We.InterpolationRBFAnalystParameters,t.JoinItem=Qe.JoinItem,t.KernelDensityJobParameter=Ye.KernelDensityJobParameter,t.KernelDensityJobsService=Xe.KernelDensityJobsService,t.LabelImageCell=Ke.LabelImageCell,t.LabelMatrixCell=Ze.LabelMatrixCell,t.LabelMixedTextStyle=$e.LabelMixedTextStyle,t.LabelSymbolCell=et.LabelSymbolCell,t.LabelThemeCell=tt.LabelThemeCell,t.LayerStatus=rt.LayerStatus,t.LinkItem=it.LinkItem,t.MapService=nt.MapService,t.MathExpressionAnalysisParameters=at.MathExpressionAnalysisParameters,t.MathExpressionAnalysisService=ot.MathExpressionAnalysisService,t.MeasureParameters=st.MeasureParameters,t.MeasureService=lt.MeasureService,t.NetworkAnalystServiceBase=ut.NetworkAnalystServiceBase,t.OverlapDisplayedOptions=ht.OverlapDisplayedOptions,t.OutputSetting=ct.OutputSetting,t.MappingParameters=pt.MappingParameters,t.OverlayAnalystParameters=ft.OverlayAnalystParameters,t.OverlayAnalystService=dt.OverlayAnalystService,t.OverlayGeoJobParameter=yt.OverlayGeoJobParameter,t.OverlayGeoJobsService=vt.OverlayGeoJobsService,t.PointWithMeasure=mt.PointWithMeasure,t.ProcessingServiceBase=gt.ProcessingServiceBase,t.QueryByBoundsParameters=bt.QueryByBoundsParameters,t.QueryByBoundsService=St.QueryByBoundsService,t.QueryByDistanceParameters=_t.QueryByDistanceParameters,t.QueryByDistanceService=Pt.QueryByDistanceService,t.QueryByGeometryParameters=wt.QueryByGeometryParameters,t.QueryByGeometryService=Ot.QueryByGeometryService,t.QueryBySQLParameters=Tt.QueryBySQLParameters,t.QueryBySQLService=Mt.QueryBySQLService,t.QueryParameters=Ct.QueryParameters,t.QueryService=xt.QueryService,t.Route=Et.Route,t.RouteCalculateMeasureParameters=Lt.RouteCalculateMeasureParameters,t.RouteCalculateMeasureService=At.RouteCalculateMeasureService,t.RouteLocatorParameters=kt.RouteLocatorParameters,t.RouteLocatorService=Ft.RouteLocatorService,t.ServerColor=jt.ServerColor,t.ServerFeature=It.ServerFeature,t.ServerGeometry=Nt.ServerGeometry,t.ServerStyle=Dt.ServerStyle,t.ServerTextStyle=Rt.ServerTextStyle,t.ServerTheme=Gt.ServerTheme,t.SetLayerInfoParameters=Bt.SetLayerInfoParameters,t.SetLayerInfoService=Ut.SetLayerInfoService,t.SetLayersInfoParameters=Vt.SetLayersInfoParameters,t.SetLayersInfoService=Jt.SetLayersInfoService,t.SetLayerStatusParameters=zt.SetLayerStatusParameters,t.SetLayerStatusService=qt.SetLayerStatusService,t.SingleObjectQueryJobsParameter=Ht.SingleObjectQueryJobsParameter,t.SingleObjectQueryJobsService=Wt.SingleObjectQueryJobsService,t.SpatialAnalystBase=Qt.SpatialAnalystBase,t.StopQueryParameters=Yt.StopQueryParameters,t.StopQueryService=Xt.StopQueryService,t.SummaryAttributesJobsParameter=Kt.SummaryAttributesJobsParameter,t.SummaryAttributesJobsService=Zt.SummaryAttributesJobsService,t.SummaryMeshJobParameter=$t.SummaryMeshJobParameter,t.SummaryMeshJobsService=er.SummaryMeshJobsService,t.SummaryRegionJobParameter=tr.SummaryRegionJobParameter,t.SummaryRegionJobsService=rr.SummaryRegionJobsService,t.SupplyCenter=ir.SupplyCenter,t.SurfaceAnalystParameters=nr.SurfaceAnalystParameters,t.SurfaceAnalystParametersSetting=ar.SurfaceAnalystParametersSetting,t.SurfaceAnalystService=or.SurfaceAnalystService,t.TerrainCurvatureCalculationParameters=sr.TerrainCurvatureCalculationParameters,t.TerrainCurvatureCalculationService=lr.TerrainCurvatureCalculationService,t.Theme=ur.Theme,t.ThemeDotDensity=cr.ThemeDotDensity,t.ThemeFlow=pr.ThemeFlow,t.ThemeGraduatedSymbol=hr.ThemeGraduatedSymbol,t.ThemeGraduatedSymbolStyle=fr.ThemeGraduatedSymbolStyle,t.ThemeGraph=dr.ThemeGraph,t.ThemeGraphAxes=yr.ThemeGraphAxes,t.ThemeGraphItem=vr.ThemeGraphItem,t.ThemeGraphSize=mr.ThemeGraphSize,t.ThemeGraphText=gr.ThemeGraphText,t.ThemeGridRange=br.ThemeGridRange,t.ThemeGridRangeItem=Sr.ThemeGridRangeItem,t.ThemeGridUnique=_r.ThemeGridUnique,t.ThemeGridUniqueItem=Pr.ThemeGridUniqueItem,t.ThemeLabel=wr.ThemeLabel,t.ThemeLabelAlongLine=Or.ThemeLabelAlongLine,t.ThemeLabelBackground=Tr.ThemeLabelBackground,t.ThemeLabelItem=Mr.ThemeLabelItem,t.ThemeLabelText=Cr.ThemeLabelText,t.ThemeLabelUniqueItem=xr.ThemeLabelUniqueItem,t.ThemeMemoryData=Er.ThemeMemoryData,t.ThemeOffset=Lr.ThemeOffset,t.ThemeParameters=Ar.ThemeParameters,t.ThemeRange=kr.ThemeRange,t.ThemeRangeItem=Fr.ThemeRangeItem,t.ThemeService=jr.ThemeService,t.ThemeUnique=Ir.ThemeUnique,t.ThemeUniqueItem=Nr.ThemeUniqueItem,t.ThiessenAnalystParameters=Dr.ThiessenAnalystParameters,t.ThiessenAnalystService=Rr.ThiessenAnalystService,t.GeometryBatchAnalystService=Gr.GeometryBatchAnalystService,t.TilesetsService=Br.TilesetsService,t.TopologyValidatorJobsParameter=Ur.TopologyValidatorJobsParameter,t.TopologyValidatorJobsService=Vr.TopologyValidatorJobsService,t.TransferLine=Jr.TransferLine,t.TransferPathParameters=zr.TransferPathParameters,t.TransferPathService=qr.TransferPathService,t.TransferSolutionService=Hr.TransferSolutionService,t.TransportationAnalystParameter=Wr.TransportationAnalystParameter,t.TransportationAnalystResultSetting=Qr.TransportationAnalystResultSetting,t.TransferSolutionParameters=Yr.TransferSolutionParameters,t.UGCLayer=Xr.UGCLayer,t.UGCMapLayer=Kr.UGCMapLayer,t.UGCSubLayer=Zr.UGCSubLayer,t.UpdateEdgeWeightParameters=$r.UpdateEdgeWeightParameters,t.UpdateEdgeWeightService=ei.UpdateEdgeWeightService,t.UpdateTurnNodeWeightParameters=ti.UpdateTurnNodeWeightParameters,t.UpdateTurnNodeWeightService=ri.UpdateTurnNodeWeightService,t.Vector=ii.Vector,t.VectorClipJobsParameter=ni.VectorClipJobsParameter,t.VectorClipJobsService=ai.VectorClipJobsService},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IPortal=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(321),o=r(320),s=r(17),l=r(319),u=r(318),c=r(90);
  1663. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1664. * This program are made available under the terms of the Apache License, Version 2.0
  1665. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1666. var p=t.IPortal=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return i.iportalUrl=e,r=r||{},i.withCredentials=r.withCredentials||!1,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,c.IPortalServiceBase),i(t,[{key:"load",value:function(){return s.FetchRequest.get(this.iportalUrl+"/web")}},{key:"queryServices",value:function(e){if(!(e instanceof a.IPortalServicesQueryParam))return null;var t=this.iportalUrl+"/web/services";return this.request("GET",t,e).then(function(e){var r=[];return e.content.map(function(e){return r.push(new l.IPortalService(t,e)),e}),r})}},{key:"deleteServices",value:function(e){var t=this.iportalUrl+"/web/services";return this.request("DELETE",t,{ids:e})}},{key:"queryMaps",value:function(e){if(!(e instanceof o.IPortalMapsQueryParam))return null;var t=void 0;return t=this.withCredentials?this.iportalUrl+"/web/mycontent/maps":this.iportalUrl+"/web/maps",this.request("GET",t,e).then(function(e){var r={content:[]},i=[];return e.content&&e.content.length>0&&(e.content.map(function(e){return i.push(new u.IPortalMap(t+"/"+e.id,e)),e}),r.content=i,r.currentPage=e.currentPage,r.pageSize=e.pageSize,r.total=e.total,r.totalPage=e.totalPage),r})}}]),t}();n.SuperMap.iPortal=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IPortalServicesQueryParam=t.IPortalServiceBase=t.IPortalService=t.IPortalMapsQueryParam=t.IPortalMap=t.IPortal=void 0;var i=r(560),n=r(318),a=r(320),o=r(319),s=r(90),l=r(321);
  1667. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1668. * This program are made available under the terms of the Apache License, Version 2.0
  1669. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1670. t.IPortal=i.IPortal,t.IPortalMap=n.IPortalMap,t.IPortalMapsQueryParam=a.IPortalMapsQueryParam,t.IPortalService=o.IPortalService,t.IPortalServiceBase=s.IPortalServiceBase,t.IPortalServicesQueryParam=l.IPortalServicesQueryParam},function(e,t,r){"use strict";var i,n,a;n=[t,e],void 0===(a="function"==typeof(i=function(e,t){var r={timeout:5e3,jsonpCallback:"callback",jsonpCallbackFunction:null};function i(e){try{delete window[e]}catch(t){window[e]=void 0}}function n(e){var t=document.getElementById(e);document.getElementsByTagName("head")[0].removeChild(t)}t.exports=function(e){var t=arguments.length<=1||void 0===arguments[1]?{}:arguments[1],a=e,o=t.timeout||r.timeout,s=t.jsonpCallback||r.jsonpCallback,l=void 0;return new Promise(function(r,u){var c=t.jsonpCallbackFunction||"jsonp_"+Date.now()+"_"+Math.ceil(1e5*Math.random()),p=s+"_"+c;window[c]=function(e){r({ok:!0,json:function(){return Promise.resolve(e)}}),l&&clearTimeout(l),n(p),i(c)},a+=-1===a.indexOf("?")?"?":"&";var h=document.createElement("script");h.setAttribute("src",""+a+s+"="+c),h.id=p,document.getElementsByTagName("head")[0].appendChild(h),l=setTimeout(function(){u(new Error("JSONP request to "+e+" timed out")),i(c),n(p)},o)})}})?i.apply(t,n):i)||(e.exports=a)},function(e,t,r){"use strict";!function(t){if(t.__disableNativeFetch||!t.fetch){s.prototype.append=function(e,t){e=a(e),t=o(t);var r=this.map[e];r||(r=[],this.map[e]=r),r.push(t)},s.prototype.delete=function(e){delete this.map[a(e)]},s.prototype.get=function(e){var t=this.map[a(e)];return t?t[0]:null},s.prototype.getAll=function(e){return this.map[a(e)]||[]},s.prototype.has=function(e){return this.map.hasOwnProperty(a(e))},s.prototype.set=function(e,t){this.map[a(e)]=[o(t)]},s.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(r){this.map[r].forEach(function(i){e.call(t,i,r,this)},this)},this)};var r={blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t},i=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];h.prototype.clone=function(){return new h(this)},p.call(h.prototype),p.call(d.prototype),d.prototype.clone=function(){return new d(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new s(this.headers),url:this.url})},d.error=function(){var e=new d(null,{status:0,statusText:""});return e.type="error",e};var n=[301,302,303,307,308];d.redirect=function(e,t){if(-1===n.indexOf(t))throw new RangeError("Invalid status code");return new d(null,{status:t,headers:{location:e}})},t.Headers=s,t.Request=h,t.Response=d,t.fetch=function(e,t){return new Promise(function(i,n){var a;a=h.prototype.isPrototypeOf(e)&&!t?e:new h(e,t);var o=new XMLHttpRequest;var l=!1;function u(){if(4===o.readyState){var e=1223===o.status?204:o.status;if(e<100||e>599){if(l)return;return l=!0,void n(new TypeError("Network request failed"))}var t={status:e,statusText:o.statusText,headers:function(e){var t=new s;return e.getAllResponseHeaders().trim().split("\n").forEach(function(e){var r=e.trim().split(":"),i=r.shift().trim(),n=r.join(":").trim();t.append(i,n)}),t}(o),url:"responseURL"in o?o.responseURL:/^X-Request-URL:/m.test(o.getAllResponseHeaders())?o.getResponseHeader("X-Request-URL"):void 0},r="response"in o?o.response:o.responseText;l||(l=!0,i(new d(r,t)))}}o.onreadystatechange=u,o.onload=u,o.onerror=function(){l||(l=!0,n(new TypeError("Network request failed")))},o.open(a.method,a.url,!0);try{"include"===a.credentials&&("withCredentials"in o?o.withCredentials=!0:console&&console.warn&&console.warn("withCredentials is not supported, you can ignore this warning"))}catch(e){console&&console.warn&&console.warn("set withCredentials error:"+e)}"responseType"in o&&r.blob&&(o.responseType="blob"),a.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send(void 0===a._bodyInit?null:a._bodyInit)})},t.fetch.polyfill=!0,void 0!==e&&e.exports&&(e.exports=t.fetch)}function a(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(e))throw new TypeError("Invalid character in header field name");return e.toLowerCase()}function o(e){return"string"!=typeof e&&(e=String(e)),e}function s(e){this.map={},e instanceof s?e.forEach(function(e,t){this.append(t,e)},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function l(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function c(e){var t=new FileReader;return t.readAsArrayBuffer(e),u(t)}function p(){return this.bodyUsed=!1,this._initBody=function(e,t){if(this._bodyInit=e,"string"==typeof e)this._bodyText=e;else if(r.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e,this._options=t;else if(r.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(e){if(!r.arrayBuffer||!ArrayBuffer.prototype.isPrototypeOf(e))throw new Error("unsupported BodyInit type")}else this._bodyText=""},r.blob?(this.blob=function(){var e=l(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this.blob().then(c)},this.text=function(){var e,t,r,i,n,a,o,s=l(this);if(s)return s;if(this._bodyBlob)return e=this._bodyBlob,t=this._options,r=new FileReader,i=t.headers.map["content-type"]?t.headers.map["content-type"].toString():"",n=/charset\=[0-9a-zA-Z\-\_]*;?/,a=e.type.match(n)||i.match(n),o=[e],a&&o.push(a[0].replace(/^charset\=/,"").replace(/;$/,"")),r.readAsText.apply(r,o),u(r);if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)}):this.text=function(){var e=l(this);return e||Promise.resolve(this._bodyText)},r.formData&&(this.formData=function(){return this.text().then(f)}),this.json=function(){return this.text().then(JSON.parse)},this}function h(e,t){var r,n,a=(t=t||{}).body;if(h.prototype.isPrototypeOf(e)){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new s(e.headers)),this.method=e.method,this.mode=e.mode,a||(a=e._bodyInit,e.bodyUsed=!0)}else this.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=new s(t.headers)),this.method=(r=t.method||this.method||"GET",n=r.toUpperCase(),i.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&a)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(a,t)}function f(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),i=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(n))}}),t}function d(e,t){t||(t={}),this._initBody(e,t),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headers instanceof s?t.headers:new s(t.headers),this.url=t.url||""}}("undefined"!=typeof self?self:void 0)},function(e,t,r){"use strict";var i,n,a=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{n="function"==typeof clearTimeout?clearTimeout:s}catch(e){n=s}}();var u,c=[],p=!1,h=-1;function f(){p&&u&&(p=!1,u.length?c=u.concat(c):h=-1,c.length&&d())}function d(){if(!p){var e=l(f);p=!0;for(var t=c.length;t;){for(u=c,c=[];++h<t;)u&&u[h].run();h=-1,t=c.length}u=null,p=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===s||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function y(e,t){this.fun=e,this.array=t}function v(){}a.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new y(e,t)),1!==c.length||p||l(d)},y.prototype.run=function(){this.fun.apply(null,this.array)},a.title="browser",a.browser=!0,a.env={},a.argv=[],a.version="",a.versions={},a.on=v,a.addListener=v,a.once=v,a.off=v,a.removeListener=v,a.removeAllListeners=v,a.emit=v,a.prependListener=v,a.prependOnceListener=v,a.listeners=function(e){return[]},a.binding=function(e){throw new Error("process.binding is not supported")},a.cwd=function(){return"/"},a.chdir=function(e){throw new Error("process.chdir is not supported")},a.umask=function(){return 0}},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var i,n,a,o,s,l=1,u={},c=!1,p=e.document,h=Object.getPrototypeOf&&Object.getPrototypeOf(e);h=h&&h.setTimeout?h:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick(function(){d(e)})}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){d(e.data)},i=function(e){a.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(n=p.documentElement,i=function(e){var t=p.createElement("script");t.onreadystatechange=function(){d(e),t.onreadystatechange=null,n.removeChild(t),t=null},n.appendChild(t)}):i=function(e){setTimeout(d,0,e)}:(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&d(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(o+t,"*")}),h.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var n={callback:e,args:t};return u[l]=n,i(l),l++},h.clearImmediate=f}function f(e){delete u[e]}function d(e){if(c)setTimeout(d,0,e);else{var t=u[e];if(t){c=!0;try{!function(e){var t=e.callback,i=e.args;switch(i.length){case 0:t();break;case 1:t(i[0]);break;case 2:t(i[0],i[1]);break;case 3:t(i[0],i[1],i[2]);break;default:t.apply(r,i)}}(t)}finally{f(e),c=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,r(135),r(564))},function(e,t,r){"use strict";(function(e){var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,n=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(n.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new a(n.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},r(565),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||void 0,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||void 0}).call(this,r(135))},function(e,t,r){"use strict";(function(t){var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(i){var n=setTimeout;function a(){}function o(e){if("object"!==r(this))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(e,this)}function s(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,o._immediateFn(function(){var r=1===e._state?t.onFulfilled:t.onRejected;if(null!==r){var i;try{i=r(e._value)}catch(e){return void u(t.promise,e)}l(t.promise,i)}else(1===e._state?l:u)(t.promise,e._value)})):e._deferreds.push(t)}function l(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":r(t))||"function"==typeof t)){var i=t.then;if(t instanceof o)return e._state=3,e._value=t,void c(e);if("function"==typeof i)return void p((n=i,a=t,function(){n.apply(a,arguments)}),e)}e._state=1,e._value=t,c(e)}catch(t){u(e,t)}var n,a}function u(e,t){e._state=2,e._value=t,c(e)}function c(e){2===e._state&&0===e._deferreds.length&&o._immediateFn(function(){e._handled||o._unhandledRejectionFn(e._value)});for(var t=0,r=e._deferreds.length;t<r;t++)s(e,e._deferreds[t]);e._deferreds=null}function p(e,t){var r=!1;try{e(function(e){r||(r=!0,l(t,e))},function(e){r||(r=!0,u(t,e))})}catch(e){if(r)return;r=!0,u(t,e)}}o.prototype.catch=function(e){return this.then(null,e)},o.prototype.then=function(e,t){var r=new this.constructor(a);return s(this,new function(e,t,r){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=r}(e,t,r)),r},o.all=function(e){var t=Array.prototype.slice.call(e);return new o(function(e,i){if(0===t.length)return e([]);var n=t.length;function a(o,s){try{if(s&&("object"===(void 0===s?"undefined":r(s))||"function"==typeof s)){var l=s.then;if("function"==typeof l)return void l.call(s,function(e){a(o,e)},i)}t[o]=s,0==--n&&e(t)}catch(e){i(e)}}for(var o=0;o<t.length;o++)a(o,t[o])})},o.resolve=function(e){return e&&"object"===(void 0===e?"undefined":r(e))&&e.constructor===o?e:new o(function(t){t(e)})},o.reject=function(e){return new o(function(t,r){r(e)})},o.race=function(e){return new o(function(t,r){for(var i=0,n=e.length;i<n;i++)e[i].then(t,r)})},o._immediateFn="function"==typeof t&&function(e){t(e)}||function(e){n(e,0)},o._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},o._setImmediateFn=function(e){o._immediateFn=e},o._setUnhandledRejectionFn=function(e){o._unhandledRejectionFn=e},void 0!==e&&e.exports?e.exports=o:i.Promise||(i.Promise=o)}(void 0)}).call(this,r(566).setImmediate)},function(e,t,r){"use strict";var i,n=r(567),a=(i=n)&&i.__esModule?i:{default:i};window.Promise=a.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IManager=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(323),o=r(322);
  1671. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1672. * This program are made available under the terms of the Apache License, Version 2.0
  1673. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1674. var s=t.IManager=function(e){function t(e){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.IManagerServiceBase),i(t,[{key:"load",value:function(){return this.request("GET",this.serviceUrl+"/web/api/service.json")}},{key:"createIServer",value:function(e){return this.request("POST",this.serviceUrl+"/icloud/web/nodes/server.json",new o.IManagerCreateNodeParam(e))}},{key:"createIPortal",value:function(e){return this.request("POST",this.serviceUrl+"/icloud/web/nodes/portal.json",new o.IManagerCreateNodeParam(e))}},{key:"iServerList",value:function(){return this.request("GET",this.serviceUrl+"/icloud/web/nodes/server.json")}},{key:"iPortalList",value:function(){return this.request("GET",this.serviceUrl+"/icloud/web/nodes/portal.json")}},{key:"startNodes",value:function(e){return this.request("POST",this.serviceUrl+"/icloud/web/nodes/started.json",e)}},{key:"stopNodes",value:function(e){return this.request("POST",this.serviceUrl+"/icloud/web/nodes/stopped.json",e)}}]),t}();n.SuperMap.iManager=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IManagerServiceBase=t.IManagerCreateNodeParam=t.IManager=void 0;var i=r(569),n=r(322),a=r(323);t.IManager=i.IManager,
  1675. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1676. * This program are made available under the terms of the Apache License, Version 2.0
  1677. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1678. t.IManagerCreateNodeParam=n.IManagerCreateNodeParam,t.IManagerServiceBase=a.IManagerServiceBase},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeFlowControl=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=function e(t,r,i){null===t&&(t=Function.prototype);var n=Object.getOwnPropertyDescriptor(t,r);if(void 0===n){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,r,i)}if("value"in n)return n.value;var o=n.get;return void 0!==o?o.call(i):void 0},a=r(0),o=r(324);
  1679. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1680. * This program are made available under the terms of the Apache License, Version 2.0
  1681. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1682. var s=t.TimeFlowControl=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,r)),n=i;return n.callback=e,Function.prototype.bind||(Function.prototype.bind=function(e){if("function"!=typeof this)throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable");var t=Array.prototype.slice.call(arguments,1),r=this,i=function(){},n=function(){return r.apply(this instanceof i&&e?this:e,t.concat(Array.prototype.slice.call(arguments)))};return i.prototype=this.prototype,n.prototype=new i,n}),n.update=n.update.bind(n),n.oldTime=n.currentTime,n.CLASS_NAME="SuperMap.TimeFlowControl",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,o.TimeControlBase),i(t,[{key:"updateOptions",value:function(e){e=e||{},n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"updateOptions",this).call(this,e)}},{key:"start",value:function(){var e=this;e.running||(e.running=!0,e.reverse?e.currentTime===e.startTime&&(e.oldTime=e.endTime,e.currentTime=e.oldTime):e.oldTime===e.endTime&&(e.currentTime=e.startTime,e.oldTime=e.currentTime),e.tick())}},{key:"stop",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"stop",this).call(this);var e=this;e.oldTime=e.currentTime,e.running&&(e.running=!1),e.intervalId&&window.clearTimeout(e.intervalId)}},{key:"destroy",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"destroy",this).call(this);this.oldTime=null,this.callback=null}},{key:"tick",value:function(){var e=this;e.intervalId&&window.clearInterval(e.intervalId),e.intervalId=null,e.update(),e.intervalId=window.setInterval(e.update,e.frequency)}},{key:"update",value:function(){var e=this;if(e.running)if(e.callback&&e.callback(e.currentTime),e.reverse){if(e.currentTime===e.startTime){if(!e.repeat)return e.running=!1,null;e.oldTime=e.endTime,e.currentTime=e.oldTime}else e.currentTime=e.oldTime,e.oldTime-=e.speed;e.oldTime<=e.startTime&&(e.oldTime=e.startTime)}else{if(e.currentTime===e.endTime){if(!e.repeat)return e.running=!1,e.stop(),null;e.stop(),e.currentTime=e.startTime,e.oldTime=e.currentTime,e.start()}else e.oldTime=e.currentTime,e.currentTime+=e.speed;e.currentTime>=e.endTime&&(e.currentTime=e.endTime)}}}]),t}();a.SuperMap.TimeFlowControl=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TimeFlowControl=t.TimeControlBase=t.LogoBase64=void 0;var i=r(325),n=r(324),a=r(571);t.LogoBase64=i.LogoBase64,
  1683. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1684. * This program are made available under the terms of the Apache License, Version 2.0
  1685. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1686. t.TimeControlBase=n.TimeControlBase,t.TimeFlowControl=a.TimeFlowControl},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WKT=void 0;var i=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),n=r(0),a=r(137),o=r(67),s=r(92),l=r(24),u=r(49),c=r(23),p=r(66),h=r(41),f=r(64),d=r(65);
  1687. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1688. * This program are made available under the terms of the Apache License, Version 2.0
  1689. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1690. var y=t.WKT=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.regExes={typeStr:/^\s*(\w+)\s*\(\s*(.*)\s*\)\s*$/,spaces:/\s+/,parenComma:/\)\s*,\s*\(/,doubleParenComma:/\)\s*\)\s*,\s*\(\s*\(/,trimParens:/^\s*\(?(.*?)\)?\s*$/},r.CLASS_NAME="SuperMap.Format.WKT",r.extract={point:function(e){return e.x+" "+e.y},multipoint:function(e){for(var t=[],r=0,i=e.components.length;r<i;++r)t.push("("+this.extract.point.apply(this,[e.components[r]])+")");return t.join(",")},linestring:function(e){for(var t=[],r=0,i=e.components.length;r<i;++r)t.push(this.extract.point.apply(this,[e.components[r]]));return t.join(",")},multilinestring:function(e){for(var t=[],r=0,i=e.components.length;r<i;++r)t.push("("+this.extract.linestring.apply(this,[e.components[r]])+")");return t.join(",")},polygon:function(e){for(var t=[],r=0,i=e.components.length;r<i;++r)t.push("("+this.extract.linestring.apply(this,[e.components[r]])+")");return t.join(",")},multipolygon:function(e){for(var t=[],r=0,i=e.components.length;r<i;++r)t.push("("+this.extract.polygon.apply(this,[e.components[r]])+")");return t.join(",")},collection:function(e){for(var t=[],r=0,i=e.components.length;r<i;++r)t.push(this.extractGeometry.apply(this,[e.components[r]]));return t.join(",")}},r.parse={point:function(e){var t=o.StringExt.trim(e).split(this.regExes.spaces);return new s.Vector(new l.Point(t[0],t[1]))},multipoint:function(e){for(var t,r=o.StringExt.trim(e).split(","),i=[],n=0,a=r.length;n<a;++n)t=r[n].replace(this.regExes.trimParens,"$1"),i.push(this.parse.point.apply(this,[t]).geometry);return new s.Vector(new u.MultiPoint(i))},linestring:function(e){for(var t=o.StringExt.trim(e).split(","),r=[],i=0,n=t.length;i<n;++i)r.push(this.parse.point.apply(this,[t[i]]).geometry);return new s.Vector(new c.LineString(r))},multilinestring:function(e){for(var t,r=o.StringExt.trim(e).split(this.regExes.parenComma),i=[],n=0,a=r.length;n<a;++n)t=r[n].replace(this.regExes.trimParens,"$1"),i.push(this.parse.linestring.apply(this,[t]).geometry);return new s.Vector(new p.MultiLineString(i))},polygon:function(e){for(var t,r,i,n=o.StringExt.trim(e).split(this.regExes.parenComma),a=[],l=0,u=n.length;l<u;++l)t=n[l].replace(this.regExes.trimParens,"$1"),r=this.parse.linestring.apply(this,[t]).geometry,i=new h.LinearRing(r.components),a.push(i);return new s.Vector(new f.Polygon(a))},multipolygon:function(e){for(var t,r=o.StringExt.trim(e).split(this.regExes.doubleParenComma),i=[],n=0,a=r.length;n<a;++n)t=r[n].replace(this.regExes.trimParens,"$1"),i.push(this.parse.polygon.apply(this,[t]).geometry);return new s.Vector(new d.MultiPolygon(i))},geometrycollection:function(e){e=e.replace(/,\s*([A-Za-z])/g,"|$1");for(var t=o.StringExt.trim(e).split("|"),r=[],i=0,n=t.length;i<n;++i)r.push(this.read(t[i]));return r}},r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a.Format),i(t,[{key:"read",value:function(e){var t,r,i;e=e.replace(/[\n\r]/g," ");var n=this.regExes.typeStr.exec(e);return n&&(r=n[1].toLowerCase(),i=n[2],this.parse[r]&&(t=this.parse[r].apply(this,[i]))),t}},{key:"write",value:function(e){var t,r,i;e.constructor===Array?(t=e,i=!0):(t=[e],i=!1);var n=[];i&&n.push("GEOMETRYCOLLECTION(");for(var a=0,o=t.length;a<o;++a)i&&a>0&&n.push(","),r=t[a].geometry,n.push(this.extractGeometry(r));return i&&n.push(")"),n.join("")}},{key:"extractGeometry",value:function(e){var t=e.CLASS_NAME.split(".")[2].toLowerCase();return this.extract[t]?("collection"===t?"GEOMETRYCOLLECTION":t.toUpperCase())+"("+this.extract[t].apply(this,[e])+")":null}}]),t}();n.SuperMap.Format.WKT=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WKT=t.GeoJSON=t.JSONFormat=t.Format=void 0;var i=r(137),n=r(18),a=r(136),o=r(573);
  1691. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1692. * This program are made available under the terms of the Apache License, Version 2.0
  1693. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1694. t.Format=i.Format,t.JSONFormat=a.JSONFormat,t.GeoJSON=n.GeoJSON,t.WKT=o.WKT},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DateExt=void 0;var i=r(0);t.DateExt=i.SuperMap.Date={toISOString:function(){if("toISOString"in Date.prototype)return function(e){return e.toISOString()};var e=function(e,t){for(var r=e+"";r.length<t;)r="0"+r;return r};return function(t){return isNaN(t.getTime())?"Invalid Date":t.getUTCFullYear()+"-"+e(t.getUTCMonth()+1,2)+"-"+e(t.getUTCDate(),2)+"T"+e(t.getUTCHours(),2)+":"+e(t.getUTCMinutes(),2)+":"+e(t.getUTCSeconds(),2)+"."+e(t.getUTCMilliseconds(),3)+"Z"}}(),parse:function(e){var t,r=e.match(/^(?:(\d{4})(?:-(\d{2})(?:-(\d{2}))?)?)?(?:(?:T(\d{1,2}):(\d{2}):(\d{2}(?:\.\d+)?)(Z|(?:[+-]\d{1,2}(?::(\d{2}))?)))|Z)?$/);if(r&&(r[1]||r[7])){var i=parseInt(r[1],10)||0,n=parseInt(r[2],10)-1||0,a=parseInt(r[3],10)||1;t=new Date(Date.UTC(i,n,a));var o=r[7];if(o){var s=parseInt(r[4],10),l=parseInt(r[5],10),u=parseFloat(r[6]),c=0|u,p=Math.round(1e3*(u-c));if(t.setUTCHours(s,l,c,p),"Z"!==o){var h=-1e3*(60*parseInt(o,10)*60+60*(parseInt(r[8],10)||0));t=new Date(t.getTime()+h)}}}else t=new Date("invalid");return t}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Rectangle=t.Polygon=t.GeometryPoint=t.MultiPolygon=t.MultiPoint=t.MultiLineString=t.LineString=t.LinearRing=t.GeoText=t.Curve=t.Collection=void 0;var i=r(34),n=r(140),a=r(139),o=r(41),s=r(23),l=r(66),u=r(49),c=r(65),p=r(24),h=r(64),f=r(329);t.Collection=i.Collection,
  1695. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1696. * This program are made available under the terms of the Apache License, Version 2.0
  1697. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1698. t.Curve=n.Curve,t.GeoText=a.GeoText,t.LinearRing=o.LinearRing,t.LineString=s.LineString,t.MultiLineString=l.MultiLineString,t.MultiPoint=u.MultiPoint,t.MultiPolygon=c.MultiPolygon,t.GeometryPoint=p.Point,t.Polygon=h.Polygon,t.Rectangle=f.Rectangle},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GeometryVector=t.CommonUtil=t.Size=t.Pixel=t.LonLat=t.Geometry=t.Feature=t.Events=t.Event=t.DateExt=t.Credential=t.Bounds=t.ArrayExt=t.FunctionExt=t.NumberExt=t.StringExt=t.Rectangle=t.Polygon=t.GeometryPoint=t.MultiPolygon=t.MultiPoint=t.MultiLineString=t.LineString=t.LinearRing=t.GeoText=t.Curve=t.Collection=void 0;var i=r(576),n=r(67),a=r(30),o=r(138),s=r(575),l=r(328),u=r(48),c=r(327),p=r(29),h=r(50),f=r(93),d=r(330),y=r(1),v=r(92);
  1699. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1700. * This program are made available under the terms of the Apache License, Version 2.0
  1701. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1702. t.Collection=i.Collection,t.Curve=i.Curve,t.GeoText=i.GeoText,t.LinearRing=i.LinearRing,t.LineString=i.LineString,t.MultiLineString=i.MultiLineString,t.MultiPoint=i.MultiPoint,t.MultiPolygon=i.MultiPolygon,t.GeometryPoint=i.GeometryPoint,t.Polygon=i.Polygon,t.Rectangle=i.Rectangle,t.StringExt=n.StringExt,t.NumberExt=n.NumberExt,t.FunctionExt=n.FunctionExt,t.ArrayExt=n.ArrayExt,t.Bounds=a.Bounds,t.Credential=o.Credential,t.DateExt=s.DateExt,t.Event=l.Event,t.Events=u.Events,t.Feature=c.Feature,t.Geometry=p.Geometry,t.LonLat=h.LonLat,t.Pixel=f.Pixel,t.Size=d.Size,t.CommonUtil=y.Util,t.GeometryVector=v.Vector},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.trafficTransferAnalystService=t.TrafficTransferAnalystService=t.themeService=t.ThemeService=t.spatialAnalystService=t.SpatialAnalystService=t.ServiceBase=t.queryService=t.QueryService=t.processingService=t.ProcessingService=t.networkAnalystService=t.NetworkAnalystService=t.networkAnalyst3DService=t.NetworkAnalyst3DService=t.measureService=t.MeasureService=t.mapService=t.MapService=t.layerInfoService=t.LayerInfoService=t.gridCellInfosService=t.GridCellInfosService=t.fieldService=t.FieldService=t.featureService=t.FeatureService=t.dataFlowService=t.DataFlowService=t.chartService=t.ChartService=t.addressMatchService=t.AddressMatchService=t.VectorTilePBF=t.VectorTileJSON=t.VectorTile=t.VectorGrid=t.VectorFeatureType=t.TextSymbolizer=t.PolyBase=t.Symbolizer=t.SVGRenderer=t.RegionSymbolizer=t.PointSymbolizer=t.LineSymbolizer=t.CanvasRenderer=t.ThemeLayer=t.themeFeature=t.ThemeFeature=t.GeoFeatureThemeLayer=t.MapVRenderer=t.cloverStyle=t.CloverStyle=t.graphic=t.Graphic=t.circleStyle=t.CircleStyle=t.imageStyle=t.ImageStyle=t.CompOpMap=t.ServerStyleMap=t.CartoStyleMap=t.DefaultStyle=t.CartoCSSToLeaflet=t.VectorTileFormat=t.uniqueThemeLayer=t.UniqueThemeLayer=t.unicodeMarker=t.UnicodeMarker=t.turfLayer=t.TurfLayer=t.tiledVectorLayer=t.TileVectorLayer=t.rankSymbolThemeLayer=t.RankSymbolThemeLayer=t.rangeThemeLayer=t.RangeThemeLayer=t.mapVLayer=t.MapVLayer=t.labelThemeLayer=t.LabelThemeLayer=t.graphThemeLayer=t.GraphThemeLayer=t.graphicLayer=t.GraphicLayer=t.LeafletMapCoordSys=t.echartsLayer=t.EchartsLayer=t.dataFlowLayer=t.DataFlowLayer=t.webMap=t.WebMap=t.wmtsLayer=t.WMTSLayer=t.tiledMapLayer=void 0,t.TiledMapLayer=t.tiandituTileLayer=t.TiandituTileLayer=t.imageMapLayer=t.ImageMapLayer=t.cloudTileLayer=t.CloudTileLayer=t.baiduTileLayer=t.BaiduTileLayer=t.NormalizeScale=t.GetResolutionFromScaleDpi=t.scaleToResolution=t.resolutionToScale=t.getMeterPerMapUnit=t.toSuperMapGeometry=t.toGeoJSON=t.crs=t.CRS=t.nonEarthCRS=t.NonEarthCRS=t.nonProjection=t.NonProjection=t.TianDiTu_MercatorCRS=t.TianDiTu_WGS84CRS=t.BaiduCRS=t.CommontypesConversion=t.changeTileVersion=t.ChangeTileVersion=t.logo=t.Logo=t.ChartViewModel=t.ChartView=t.FileReaderUtil=t.widgetsUtil=t.PaginationContainer=t.NavTabsPage=t.CityTabsPage=t.IndexTabsPageContainer=t.PopContainer=t.AttributesPopContainer=t.Select=t.DropDownBox=t.CommonContainer=t.MessageBox=t.FileModel=t.FileConfig=t.FileTypes=t.VectorClipJobsParameter=t.Vector=t.UpdateTurnNodeWeightParameters=t.UpdateEdgeWeightParameters=t.UGCSubLayer=t.UGCMapLayer=t.UGCLayer=t.TransportationAnalystResultSetting=t.TransportationAnalystParameter=t.TransferSolutionParameters=t.TransferPathParameters=t.TransferLine=t.TopologyValidatorJobsParameter=t.ThiessenAnalystParameters=t.ThemeUniqueItem=t.ThemeUnique=t.ThemeRangeItem=t.ThemeRange=t.ThemeParameters=t.ThemeOffset=t.ThemeMemoryData=t.ThemeLabelUniqueItem=t.ThemeLabelText=t.ThemeLabelItem=t.ThemeLabelBackground=t.ThemeLabelAlongLine=t.ThemeLabel=t.ThemeGridUniqueItem=t.ThemeGridUnique=t.ThemeGridRangeItem=t.ThemeGridRange=t.ThemeGraphText=t.ThemeGraphSize=t.ThemeGraphItem=t.ThemeGraphAxes=t.ThemeGraph=t.ThemeGraduatedSymbolStyle=t.ThemeGraduatedSymbol=t.ThemeFlow=t.ThemeDotDensity=t.Theme=t.TerrainCurvatureCalculationParameters=t.SurfaceAnalystParametersSetting=t.SurfaceAnalystParameters=t.SupplyCenter=t.SummaryRegionJobParameter=t.SummaryMeshJobParameter=t.SummaryAttributesJobsParameter=t.StopQueryParameters=t.SingleObjectQueryJobsParameter=t.SetLayerStatusParameters=t.SetLayersInfoParameters=t.SetLayerInfoParameters=void 0,t.ServerTheme=t.ServerTextStyle=t.ServerStyle=t.ServerGeometry=t.ServerFeature=t.ServerColor=t.RouteLocatorParameters=t.RouteCalculateMeasureParameters=t.Route=t.QueryParameters=t.QueryBySQLParameters=t.QueryByGeometryParameters=t.QueryByDistanceParameters=t.QueryByBoundsParameters=t.PointWithMeasure=t.OverlayGeoJobParameter=t.OverlayAnalystParameters=t.OverlapDisplayedOptions=t.MappingParameters=t.OutputSetting=t.MeasureParameters=t.MathExpressionAnalysisParameters=t.LinkItem=t.LayerStatus=t.LabelThemeCell=t.LabelSymbolCell=t.LabelMixedTextStyle=t.LabelMatrixCell=t.LabelImageCell=t.KernelDensityJobParameter=t.JoinItem=t.InterpolationRBFAnalystParameters=t.InterpolationKrigingAnalystParameters=t.InterpolationIDWAnalystParameters=t.InterpolationAnalystParameters=t.Image=t.Grid=t.GetGridCellInfosParameters=t.GetFeaturesBySQLParameters=t.GetFeaturesByIDsParameters=t.GetFeaturesByGeometryParameters=t.GetFeaturesByBufferParameters=t.GetFeaturesByBoundsParameters=t.GeoRelationAnalystParameters=t.GeometryThiessenAnalystParameters=t.GeometrySurfaceAnalystParameters=t.GeometryOverlayAnalystParameters=t.GeometryBufferAnalystParameters=t.GeoHashGridAggParameter=t.GeoDecodingParameter=t.GeoCodingParameter=t.GeoBoundingBoxQueryBuilderParameter=t.GenerateSpatialDataParameters=t.FindTSPPathsParameters=t.FindServiceAreasParameters=t.FindPathParameters=t.FindMTSPPathsParameters=t.FindLocationParameters=t.FindClosestFacilitiesParameters=t.FilterParameter=t.FieldStatisticsParameters=t.FilterAggParameter=t.FieldParameters=t.FacilityAnalystUpstream3DParameters=t.FacilityAnalystTraceup3DParameters=t.FacilityAnalystTracedown3DParameters=t.FacilityAnalystStreamParameters=t.FacilityAnalystSources3DParameters=t.FacilityAnalystSinks3DParameters=t.FacilityAnalyst3DParameters=t.EditFeaturesParameters=t.DensityKernelAnalystParameters=t.DatasourceConnectionInfo=t.DatasetThiessenAnalystParameters=t.DatasetSurfaceAnalystParameters=t.DatasetOverlayAnalystParameters=t.DatasetInfo=t.DatasetBufferAnalystParameters=t.DataReturnOption=t.ComputeWeightMatrixParameters=t.ColorDictionary=t.ClipParameter=t.ChartQueryParameters=t.ChartQueryFilterParameter=t.BurstPipelineAnalystParameters=t.BufferSetting=t.BuffersAnalystJobsParameter=t.BufferDistance=t.BufferAnalystParameters=t.AggQueryBuilderParameter=t.AggregationParameter=t.AreaSolarRadiationParameters=t.ArrayStatistic=t.ColorsPickerUtil=t.FetchRequest=t.ElasticSearch=t.TokenServiceParameter=t.ServerInfo=t.SecurityManager=t.KeyServiceParameter=void 0,t.OnlineServiceBase=t.FilterField=t.DataItemOrderBy=t.DataItemType=t.ServiceStatus=t.OnlineQueryDatasParameter=t.OnlineData=t.Online=t.IPortalServicesQueryParam=t.IPortalServiceBase=t.IPortalService=t.IPortalMapsQueryParam=t.IPortalMap=t.IPortal=t.IManagerCreateNodeParam=t.IManagerServiceBase=t.IManager=t.TimeFlowControl=t.GetFeatureMode=t.AggregationType=t.AggregationQueryBuilderType=t.OutputType=t.TopologyValidatorRule=t.StatisticAnalystMode=t.AnalystSizeUnit=t.AnalystAreaUnit=t.ClipAnalystMode=t.Exponent=t.VariogramMode=t.InterpolationAlgorithmType=t.SummaryType=t.SearchMode=t.PixelFormat=t.StatisticMode=t.UGCLayerType=t.LayerType=t.ClientType=t.GridType=t.TransferPreference=t.TransferTactic=t.EditType=t.ChartType=t.ColorSpaceType=t.SurfaceAnalystMethod=t.SmoothMethod=t.BufferEndType=t.TurnType=t.SupplyCenterType=t.OverlayOperationType=t.DirectionType=t.LabelOverLengthMode=t.LabelBackShape=t.AlongLineDirection=t.SideType=t.FillGradientMode=t.TextAlignment=t.ColorGradientType=t.ThemeType=t.RangeMode=t.GraduatedMode=t.GraphAxesTextDisplayMode=t.ThemeGraphType=t.ThemeGraphTextFormat=t.SpatialQueryMode=t.BufferRadiusUnit=t.Unit=t.DataReturnMode=t.SpatialRelationType=t.MeasureMode=t.EngineType=t.JoinType=t.QueryOption=t.GeometryType=t.ServerType=t.DataFormat=t.SuperMap=t.dataServiceQueryViewModel=t.DataServiceQueryViewModel=t.dataServiceQueryView=t.DataServiceQueryView=t.DistributedAnalysisViewModel=t.distributedAnalysisView=t.DistributedAnalysisView=t.GeoJsonLayerDataModel=t.GeoJsonLayersDataModel=t.geoJSONLayerWithName=t.GeoJSONLayerWithName=t.clientComputationLayer=t.ClientComputationLayer=t.ClientComputationViewModel=t.ClientComputationView=t.clientComputationView=t.dataFlowView=t.DataFlowView=t.searchView=t.SearchView=t.openFileViewModel=t.OpenFileViewModel=t.openFileView=t.OpenFileView=void 0;var i=r(5),n=r(435),a=r(389),o=r(387),s=r(382),l=r(356),u=r(343);t.OpenFileView=u.OpenFileView,t.openFileView=u.openFileView,t.OpenFileViewModel=u.OpenFileViewModel,t.openFileViewModel=u.openFileViewModel,t.SearchView=u.SearchView,t.searchView=u.searchView,t.DataFlowView=u.DataFlowView,t.dataFlowView=u.dataFlowView,t.clientComputationView=u.clientComputationView,t.ClientComputationView=u.ClientComputationView,t.ClientComputationViewModel=u.ClientComputationViewModel,t.ClientComputationLayer=u.ClientComputationLayer,t.clientComputationLayer=u.clientComputationLayer,t.GeoJSONLayerWithName=u.GeoJSONLayerWithName,t.geoJSONLayerWithName=u.geoJSONLayerWithName,t.GeoJsonLayersDataModel=u.GeoJsonLayersDataModel,t.GeoJsonLayerDataModel=u.GeoJsonLayerDataModel,t.DistributedAnalysisView=u.DistributedAnalysisView,t.distributedAnalysisView=u.distributedAnalysisView,t.DistributedAnalysisViewModel=u.DistributedAnalysisViewModel,t.DataServiceQueryView=u.DataServiceQueryView,t.dataServiceQueryView=u.dataServiceQueryView,t.DataServiceQueryViewModel=u.DataServiceQueryViewModel,t.dataServiceQueryViewModel=u.dataServiceQueryViewModel,
  1703. /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved.
  1704. * This program are made available under the terms of the Apache License, Version 2.0
  1705. * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/
  1706. t.SuperMap=i.SuperMap,t.DataFormat=i.DataFormat,t.ServerType=i.ServerType,t.GeometryType=i.GeometryType,t.QueryOption=i.QueryOption,t.JoinType=i.JoinType,t.EngineType=i.EngineType,t.MeasureMode=i.MeasureMode,t.SpatialRelationType=i.SpatialRelationType,t.DataReturnMode=i.DataReturnMode,t.Unit=i.Unit,t.BufferRadiusUnit=i.BufferRadiusUnit,t.SpatialQueryMode=i.SpatialQueryMode,t.ThemeGraphTextFormat=i.ThemeGraphTextFormat,t.ThemeGraphType=i.ThemeGraphType,t.GraphAxesTextDisplayMode=i.GraphAxesTextDisplayMode,t.GraduatedMode=i.GraduatedMode,t.RangeMode=i.RangeMode,t.ThemeType=i.ThemeType,t.ColorGradientType=i.ColorGradientType,t.TextAlignment=i.TextAlignment,t.FillGradientMode=i.FillGradientMode,t.SideType=i.SideType,t.AlongLineDirection=i.AlongLineDirection,t.LabelBackShape=i.LabelBackShape,t.LabelOverLengthMode=i.LabelOverLengthMode,t.DirectionType=i.DirectionType,t.OverlayOperationType=i.OverlayOperationType,t.SupplyCenterType=i.SupplyCenterType,t.TurnType=i.TurnType,t.BufferEndType=i.BufferEndType,t.SmoothMethod=i.SmoothMethod,t.SurfaceAnalystMethod=i.SurfaceAnalystMethod,t.ColorSpaceType=i.ColorSpaceType,t.ChartType=i.ChartType,t.EditType=i.EditType,t.TransferTactic=i.TransferTactic,t.TransferPreference=i.TransferPreference,t.GridType=i.GridType,t.ClientType=i.ClientType,t.LayerType=i.LayerType,t.UGCLayerType=i.UGCLayerType,t.StatisticMode=i.StatisticMode,t.PixelFormat=i.PixelFormat,t.SearchMode=i.SearchMode,t.SummaryType=i.SummaryType,t.InterpolationAlgorithmType=i.InterpolationAlgorithmType,t.VariogramMode=i.VariogramMode,t.Exponent=i.Exponent,t.ClipAnalystMode=i.ClipAnalystMode,t.AnalystAreaUnit=i.AnalystAreaUnit,t.AnalystSizeUnit=i.AnalystSizeUnit,t.StatisticAnalystMode=i.StatisticAnalystMode,t.TopologyValidatorRule=i.TopologyValidatorRule,t.OutputType=i.OutputType,t.AggregationQueryBuilderType=i.AggregationQueryBuilderType,t.AggregationType=i.AggregationType,t.GetFeatureMode=i.GetFeatureMode,t.TimeFlowControl=i.TimeFlowControl,t.IManager=i.IManager,t.IManagerServiceBase=i.IManagerServiceBase,t.IManagerCreateNodeParam=i.IManagerCreateNodeParam,t.IPortal=i.IPortal,t.IPortalMap=i.IPortalMap,t.IPortalMapsQueryParam=i.IPortalMapsQueryParam,t.IPortalService=i.IPortalService,t.IPortalServiceBase=i.IPortalServiceBase,t.IPortalServicesQueryParam=i.IPortalServicesQueryParam,t.Online=i.Online,t.OnlineData=i.OnlineData,t.OnlineQueryDatasParameter=i.OnlineQueryDatasParameter,t.ServiceStatus=i.ServiceStatus,t.DataItemType=i.DataItemType,t.DataItemOrderBy=i.DataItemOrderBy,t.FilterField=i.FilterField,t.OnlineServiceBase=i.OnlineServiceBase,t.KeyServiceParameter=i.KeyServiceParameter,t.SecurityManager=i.SecurityManager,t.ServerInfo=i.ServerInfo,t.TokenServiceParameter=i.TokenServiceParameter,t.ElasticSearch=i.ElasticSearch,t.FetchRequest=i.FetchRequest,t.ColorsPickerUtil=i.ColorsPickerUtil,t.ArrayStatistic=i.ArrayStatistic,t.AreaSolarRadiationParameters=i.AreaSolarRadiationParameters,t.AggregationParameter=i.AggregationParameter,t.AggQueryBuilderParameter=i.AggQueryBuilderParameter,t.BufferAnalystParameters=i.BufferAnalystParameters,t.BufferDistance=i.BufferDistance,t.BuffersAnalystJobsParameter=i.BuffersAnalystJobsParameter,t.BufferSetting=i.BufferSetting,t.BurstPipelineAnalystParameters=i.BurstPipelineAnalystParameters,t.ChartQueryFilterParameter=i.ChartQueryFilterParameter,t.ChartQueryParameters=i.ChartQueryParameters,t.ClipParameter=i.ClipParameter,t.ColorDictionary=i.ColorDictionary,t.ComputeWeightMatrixParameters=i.ComputeWeightMatrixParameters,t.DataReturnOption=i.DataReturnOption,t.DatasetBufferAnalystParameters=i.DatasetBufferAnalystParameters,t.DatasetInfo=i.DatasetInfo,t.DatasetOverlayAnalystParameters=i.DatasetOverlayAnalystParameters,t.DatasetSurfaceAnalystParameters=i.DatasetSurfaceAnalystParameters,t.DatasetThiessenAnalystParameters=i.DatasetThiessenAnalystParameters,t.DatasourceConnectionInfo=i.DatasourceConnectionInfo,t.DensityKernelAnalystParameters=i.DensityKernelAnalystParameters,t.EditFeaturesParameters=i.EditFeaturesParameters,t.FacilityAnalyst3DParameters=i.FacilityAnalyst3DParameters,t.FacilityAnalystSinks3DParameters=i.FacilityAnalystSinks3DParameters,t.FacilityAnalystSources3DParameters=i.FacilityAnalystSources3DParameters,t.FacilityAnalystStreamParameters=i.FacilityAnalystStreamParameters,t.FacilityAnalystTracedown3DParameters=i.FacilityAnalystTracedown3DParameters,t.FacilityAnalystTraceup3DParameters=i.FacilityAnalystTraceup3DParameters,t.FacilityAnalystUpstream3DParameters=i.FacilityAnalystUpstream3DParameters,t.FieldParameters=i.FieldParameters,t.FilterAggParameter=i.FilterAggParameter,t.FieldStatisticsParameters=i.FieldStatisticsParameters,t.FilterParameter=i.FilterParameter,t.FindClosestFacilitiesParameters=i.FindClosestFacilitiesParameters,t.FindLocationParameters=i.FindLocationParameters,t.FindMTSPPathsParameters=i.FindMTSPPathsParameters,t.FindPathParameters=i.FindPathParameters,t.FindServiceAreasParameters=i.FindServiceAreasParameters,t.FindTSPPathsParameters=i.FindTSPPathsParameters,t.GenerateSpatialDataParameters=i.GenerateSpatialDataParameters,t.GeoBoundingBoxQueryBuilderParameter=i.GeoBoundingBoxQueryBuilderParameter,t.GeoCodingParameter=i.GeoCodingParameter,t.GeoDecodingParameter=i.GeoDecodingParameter,t.GeoHashGridAggParameter=i.GeoHashGridAggParameter,t.GeometryBufferAnalystParameters=i.GeometryBufferAnalystParameters,t.GeometryOverlayAnalystParameters=i.GeometryOverlayAnalystParameters,t.GeometrySurfaceAnalystParameters=i.GeometrySurfaceAnalystParameters,t.GeometryThiessenAnalystParameters=i.GeometryThiessenAnalystParameters,t.GeoRelationAnalystParameters=i.GeoRelationAnalystParameters,t.GetFeaturesByBoundsParameters=i.GetFeaturesByBoundsParameters,t.GetFeaturesByBufferParameters=i.GetFeaturesByBufferParameters,t.GetFeaturesByGeometryParameters=i.GetFeaturesByGeometryParameters,t.GetFeaturesByIDsParameters=i.GetFeaturesByIDsParameters,t.GetFeaturesBySQLParameters=i.GetFeaturesBySQLParameters,t.GetGridCellInfosParameters=i.GetGridCellInfosParameters,t.Grid=i.Grid,t.Image=i.Image,t.InterpolationAnalystParameters=i.InterpolationAnalystParameters,t.InterpolationIDWAnalystParameters=i.InterpolationIDWAnalystParameters,t.InterpolationKrigingAnalystParameters=i.InterpolationKrigingAnalystParameters,t.InterpolationRBFAnalystParameters=i.InterpolationRBFAnalystParameters,t.JoinItem=i.JoinItem,t.KernelDensityJobParameter=i.KernelDensityJobParameter,t.LabelImageCell=i.LabelImageCell,t.LabelMatrixCell=i.LabelMatrixCell,t.LabelMixedTextStyle=i.LabelMixedTextStyle,t.LabelSymbolCell=i.LabelSymbolCell,t.LabelThemeCell=i.LabelThemeCell,t.LayerStatus=i.LayerStatus,t.LinkItem=i.LinkItem,t.MathExpressionAnalysisParameters=i.MathExpressionAnalysisParameters,t.MeasureParameters=i.MeasureParameters,t.OutputSetting=i.OutputSetting,t.MappingParameters=i.MappingParameters,t.OverlapDisplayedOptions=i.OverlapDisplayedOptions,t.OverlayAnalystParameters=i.OverlayAnalystParameters,t.OverlayGeoJobParameter=i.OverlayGeoJobParameter,t.PointWithMeasure=i.PointWithMeasure,t.QueryByBoundsParameters=i.QueryByBoundsParameters,t.QueryByDistanceParameters=i.QueryByDistanceParameters,t.QueryByGeometryParameters=i.QueryByGeometryParameters,t.QueryBySQLParameters=i.QueryBySQLParameters,t.QueryParameters=i.QueryParameters,t.Route=i.Route,t.RouteCalculateMeasureParameters=i.RouteCalculateMeasureParameters,t.RouteLocatorParameters=i.RouteLocatorParameters,t.ServerColor=i.ServerColor,t.ServerFeature=i.ServerFeature,t.ServerGeometry=i.ServerGeometry,t.ServerStyle=i.ServerStyle,t.ServerTextStyle=i.ServerTextStyle,t.ServerTheme=i.ServerTheme,t.SetLayerInfoParameters=i.SetLayerInfoParameters,t.SetLayersInfoParameters=i.SetLayersInfoParameters,t.SetLayerStatusParameters=i.SetLayerStatusParameters,t.SingleObjectQueryJobsParameter=i.SingleObjectQueryJobsParameter,t.StopQueryParameters=i.StopQueryParameters,t.SummaryAttributesJobsParameter=i.SummaryAttributesJobsParameter,t.SummaryMeshJobParameter=i.SummaryMeshJobParameter,t.SummaryRegionJobParameter=i.SummaryRegionJobParameter,t.SupplyCenter=i.SupplyCenter,t.SurfaceAnalystParameters=i.SurfaceAnalystParameters,t.SurfaceAnalystParametersSetting=i.SurfaceAnalystParametersSetting,t.TerrainCurvatureCalculationParameters=i.TerrainCurvatureCalculationParameters,t.Theme=i.Theme,t.ThemeDotDensity=i.ThemeDotDensity,t.ThemeFlow=i.ThemeFlow,t.ThemeGraduatedSymbol=i.ThemeGraduatedSymbol,t.ThemeGraduatedSymbolStyle=i.ThemeGraduatedSymbolStyle,t.ThemeGraph=i.ThemeGraph,t.ThemeGraphAxes=i.ThemeGraphAxes,t.ThemeGraphItem=i.ThemeGraphItem,t.ThemeGraphSize=i.ThemeGraphSize,t.ThemeGraphText=i.ThemeGraphText,t.ThemeGridRange=i.ThemeGridRange,t.ThemeGridRangeItem=i.ThemeGridRangeItem,t.ThemeGridUnique=i.ThemeGridUnique,t.ThemeGridUniqueItem=i.ThemeGridUniqueItem,t.ThemeLabel=i.ThemeLabel,t.ThemeLabelAlongLine=i.ThemeLabelAlongLine,t.ThemeLabelBackground=i.ThemeLabelBackground,t.ThemeLabelItem=i.ThemeLabelItem,t.ThemeLabelText=i.ThemeLabelText,t.ThemeLabelUniqueItem=i.ThemeLabelUniqueItem,t.ThemeMemoryData=i.ThemeMemoryData,t.ThemeOffset=i.ThemeOffset,t.ThemeParameters=i.ThemeParameters,t.ThemeRange=i.ThemeRange,t.ThemeRangeItem=i.ThemeRangeItem,t.ThemeUnique=i.ThemeUnique,t.ThemeUniqueItem=i.ThemeUniqueItem,t.ThiessenAnalystParameters=i.ThiessenAnalystParameters,t.TopologyValidatorJobsParameter=i.TopologyValidatorJobsParameter,t.TransferLine=i.TransferLine,t.TransferPathParameters=i.TransferPathParameters,t.TransferSolutionParameters=i.TransferSolutionParameters,t.TransportationAnalystParameter=i.TransportationAnalystParameter,t.TransportationAnalystResultSetting=i.TransportationAnalystResultSetting,t.UGCLayer=i.UGCLayer,t.UGCMapLayer=i.UGCMapLayer,t.UGCSubLayer=i.UGCSubLayer,t.UpdateEdgeWeightParameters=i.UpdateEdgeWeightParameters,t.UpdateTurnNodeWeightParameters=i.UpdateTurnNodeWeightParameters,t.Vector=i.Vector,t.VectorClipJobsParameter=i.VectorClipJobsParameter,t.FileTypes=i.FileTypes,t.FileConfig=i.FileConfig,t.FileModel=i.FileModel,t.MessageBox=i.MessageBox,t.CommonContainer=i.CommonContainer,t.DropDownBox=i.DropDownBox,t.Select=i.Select,t.AttributesPopContainer=i.AttributesPopContainer,t.PopContainer=i.PopContainer,t.IndexTabsPageContainer=i.IndexTabsPageContainer,t.CityTabsPage=i.CityTabsPage,t.NavTabsPage=i.NavTabsPage,t.PaginationContainer=i.PaginationContainer,t.widgetsUtil=i.widgetsUtil,t.FileReaderUtil=i.FileReaderUtil,t.ChartView=i.ChartView,t.ChartViewModel=i.ChartViewModel,t.Logo=n.Logo,t.logo=n.logo,t.ChangeTileVersion=n.ChangeTileVersion,t.changeTileVersion=n.changeTileVersion,t.CommontypesConversion=a.CommontypesConversion,t.BaiduCRS=a.BaiduCRS,t.TianDiTu_WGS84CRS=a.TianDiTu_WGS84CRS,t.TianDiTu_MercatorCRS=a.TianDiTu_MercatorCRS,t.NonProjection=a.NonProjection,t.nonProjection=a.nonProjection,t.NonEarthCRS=a.NonEarthCRS,t.nonEarthCRS=a.nonEarthCRS,t.CRS=a.CRS,t.crs=a.crs,t.toGeoJSON=a.toGeoJSON,t.toSuperMapGeometry=a.toSuperMapGeometry,t.getMeterPerMapUnit=a.getMeterPerMapUnit,t.resolutionToScale=a.resolutionToScale,t.scaleToResolution=a.scaleToResolution,t.GetResolutionFromScaleDpi=a.GetResolutionFromScaleDpi,t.NormalizeScale=a.NormalizeScale,t.BaiduTileLayer=o.BaiduTileLayer,t.baiduTileLayer=o.baiduTileLayer,t.CloudTileLayer=o.CloudTileLayer,t.cloudTileLayer=o.cloudTileLayer,t.ImageMapLayer=o.ImageMapLayer,t.imageMapLayer=o.imageMapLayer,t.TiandituTileLayer=o.TiandituTileLayer,t.tiandituTileLayer=o.tiandituTileLayer,t.TiledMapLayer=o.TiledMapLayer,t.tiledMapLayer=o.tiledMapLayer,t.WMTSLayer=o.WMTSLayer,t.wmtsLayer=o.wmtsLayer,t.WebMap=o.WebMap,t.webMap=o.webMap,t.DataFlowLayer=s.DataFlowLayer,t.dataFlowLayer=s.dataFlowLayer,t.EchartsLayer=s.EchartsLayer,t.echartsLayer=s.echartsLayer,t.LeafletMapCoordSys=s.LeafletMapCoordSys,t.GraphicLayer=s.GraphicLayer,t.graphicLayer=s.graphicLayer,t.GraphThemeLayer=s.GraphThemeLayer,t.graphThemeLayer=s.graphThemeLayer,t.LabelThemeLayer=s.LabelThemeLayer,t.labelThemeLayer=s.labelThemeLayer,t.MapVLayer=s.MapVLayer,t.mapVLayer=s.mapVLayer,t.RangeThemeLayer=s.RangeThemeLayer,t.rangeThemeLayer=s.rangeThemeLayer,t.RankSymbolThemeLayer=s.RankSymbolThemeLayer,t.rankSymbolThemeLayer=s.rankSymbolThemeLayer,t.TileVectorLayer=s.TileVectorLayer,t.tiledVectorLayer=s.tiledVectorLayer,t.TurfLayer=s.TurfLayer,t.turfLayer=s.turfLayer,t.UnicodeMarker=s.UnicodeMarker,t.unicodeMarker=s.unicodeMarker,t.UniqueThemeLayer=s.UniqueThemeLayer,t.uniqueThemeLayer=s.uniqueThemeLayer,t.VectorTileFormat=s.VectorTileFormat,t.CartoCSSToLeaflet=s.CartoCSSToLeaflet,t.DefaultStyle=s.DefaultStyle,t.CartoStyleMap=s.CartoStyleMap,t.ServerStyleMap=s.ServerStyleMap,t.CompOpMap=s.CompOpMap,t.ImageStyle=s.ImageStyle,t.imageStyle=s.imageStyle,t.CircleStyle=s.CircleStyle,t.circleStyle=s.circleStyle,t.Graphic=s.Graphic,t.graphic=s.graphic,t.CloverStyle=s.CloverStyle,t.cloverStyle=s.cloverStyle,t.MapVRenderer=s.MapVRenderer,t.GeoFeatureThemeLayer=s.GeoFeatureThemeLayer,t.ThemeFeature=s.ThemeFeature,t.themeFeature=s.themeFeature,t.ThemeLayer=s.ThemeLayer,t.CanvasRenderer=s.CanvasRenderer,t.LineSymbolizer=s.LineSymbolizer,t.PointSymbolizer=s.PointSymbolizer,t.RegionSymbolizer=s.RegionSymbolizer,t.SVGRenderer=s.SVGRenderer,t.Symbolizer=s.Symbolizer,t.PolyBase=s.PolyBase,t.TextSymbolizer=s.TextSymbolizer,t.VectorFeatureType=s.VectorFeatureType,t.VectorGrid=s.VectorGrid,t.VectorTile=s.VectorTile,t.VectorTileJSON=s.VectorTileJSON,t.VectorTilePBF=s.VectorTilePBF,t.AddressMatchService=l.AddressMatchService,t.addressMatchService=l.addressMatchService,t.ChartService=l.ChartService,t.chartService=l.chartService,t.DataFlowService=l.DataFlowService,t.dataFlowService=l.dataFlowService,t.FeatureService=l.FeatureService,t.featureService=l.featureService,t.FieldService=l.FieldService,t.fieldService=l.fieldService,t.GridCellInfosService=l.GridCellInfosService,t.gridCellInfosService=l.gridCellInfosService,t.LayerInfoService=l.LayerInfoService,t.layerInfoService=l.layerInfoService,t.MapService=l.MapService,t.mapService=l.mapService,t.MeasureService=l.MeasureService,t.measureService=l.measureService,t.NetworkAnalyst3DService=l.NetworkAnalyst3DService,t.networkAnalyst3DService=l.networkAnalyst3DService,t.NetworkAnalystService=l.NetworkAnalystService,t.networkAnalystService=l.networkAnalystService,t.ProcessingService=l.ProcessingService,t.processingService=l.processingService,t.QueryService=l.QueryService,t.queryService=l.queryService,t.ServiceBase=l.ServiceBase,t.SpatialAnalystService=l.SpatialAnalystService,t.spatialAnalystService=l.spatialAnalystService,t.ThemeService=l.ThemeService,t.themeService=l.themeService,t.TrafficTransferAnalystService=l.TrafficTransferAnalystService,t.trafficTransferAnalystService=l.trafficTransferAnalystService},function(e,t,r){r(578),e.exports=r(332)},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},function(e,t){},,,,,,,,,,,,function(e,t){},,,,,function(e,t){},,,,,,,function(e,t){}]);