/*! * * iclient9-leaflet.(http://iclient.supermap.io) * Copyright© 2000 - 2019 SuperMap Software Co.Ltd * license: Apache-2.0 * version: v10.0.0-beta * */!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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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=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=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;l1?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("<","<")).replace(">",">")).replace(/%/g,"%25")).replace(/&/g,"%26");case Array:for(var r=[],a=0,o=t.length;a0?"{"+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=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||{}, /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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"}; /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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-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.timese.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)}}); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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;r0){if(1===r)return new a.Point(t[0].x,t[0].y);for(var i=[],n=0;n0){if(1===r){for(var i=[],n=0;n0){if(1===p){for(e=0,r=[];e=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;O0?o.push(d[O]):(o[_[O]].components=o[_[O]].components.concat(d[O].components),o.push(""))}else{o=new Array;for(var T=0;T0&&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=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;M0?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;C0&&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;Ee[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;rLeaflet\n with © SuperMap iClient",Common:{attribution:"Map Data © SuperMap iServer"},Online:{attribution:"Map Data © SuperMap Online"},ECharts:{attribution:"© 2018 百度 ECharts"},MapV:{attribution:"© 2018 百度 MapV "},Turf:{attribution:"© turfjs"},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 "}}},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;ro-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;h0&&(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=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-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-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=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-1?s+="&":s+="?",s+="sectionCount="+i,s+="§ionIndex="+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-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;r0)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;r2;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=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.xf*t.x+d&&i.y>f*i.x+d||t.yr.y?i.xr.x&&(l=!1):n.xf*i.x+d&&(l=!1):n.x>r.x?i.y>r.y&&(l=!1):i.y=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=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=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=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;G0){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=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;cthis.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&&ethis.bottom&&t=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=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=e.right&&n.right>e.right;)n=n.add(-a,0);var o=n.left+r;oe.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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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=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=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;ra&&(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-1)){if(null!=t&&t=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;t3;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;r1&&(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=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;re.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;r3&&(t=Array.prototype.slice.call(t,1));for(var i=this._handlers[e],n=i.length,a=0;a4&&(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;o0){e+=Math.abs(this.components[0].getArea());for(var t=1,r=this.components.length;t0&&(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;ap)){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;a0&&("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;l0&&("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;ca&&(a=l[u][0]+r[0]),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}); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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-this.EPSILON&&ethis.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=0&&P=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=0&&S-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;r1)for(var n=0,a=i-1;n1?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=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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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;r3&&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;r0){e+='"points":[';for(var r=0,i=this.components.length;r0))return null;for(var u=0,c=0,p=[];u0&&this.addLayers(t),this.currentLayerDataModel=null}return n(e,[{key:"addLayers",value:function(e,t,r,i){for(var n=0;n0?i.operatingAttributeNames:i.attributeNames).length;o1?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;r0&&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-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;h7?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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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={}; /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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;rc&&(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;ri&&(i=l[0]),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-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;r0)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;o0)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=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;r0&&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;t1&&(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&&i255?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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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;r0?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;ithis.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)}; /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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)}; /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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>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>3}if(i--,1===r||2===r)n+=e.readSVarint(),a+=e.readSVarint(),ns&&(s=n),au&&(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>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-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=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)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=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;u0&&0==this.labelFeatures.length)for(var t=this.setLabelsStyle(this.features),r=0,i=t.length;r=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=n[u].start&&o=n[u].start&&ol&&(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.xo&&(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;a0;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=n[h].start&&o<=n[h].end:o>=n[h].start&&o0;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;h1){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=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)}; /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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}} /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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)}; /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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)}; /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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 /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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)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);b0&&(_=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||vs||(g>s||vl||(g>l||vc&&(g=g-c+o-1),b>u?(b=b-u+o-1,S=!0):S=!1,(b===s||ms||(b>s||ml||(b>l||mu&&(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}} /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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.xthis.bounds.max.x?this.bounds.max.x:e.x,e.y=e.ythis.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;o0){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;e0;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;r0){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;a0&&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;c1&&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=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=0&&!(g[w]<=o);w--);w=Math.min(w,h-2)}else{for(w=E;wo);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;w0?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=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&&r0&&e>this._zlevelList[0]){for(n=0;ne);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;n0}},{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=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=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;r1?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;r1)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=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;rn&&(n=l[0]),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;un&&!o?n+=2*Math.PI:ii&&(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;r0){for(var g=this.isInsidePolygon(t.pointList,v,m),b=e.holePolygonPointLists,S=!1,_=0,P=b.length;_t+s&&o>i+s||oe+s&&a>r+s||at+p&&c>i+p&&c>a+p&&c>s+p||ce+p&&u>r+p&&u>n+p&&u>o+p||ut+u&&l>i+u&&l>a+u||le+u&&s>r+u&&s>n+u||sr||p+c=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;ar*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)t&&a>i||an?it&&u>i&&u>a&&u>s||u1&&this.swapExtrema(),d=c.cubicAt(t,i,a,s,h[0]),m>1&&(y=c.cubicAt(t,i,a,s,h[1]))),2==m?bt&&s>i&&s>a||s=0&&p<=1){for(var h=0,f=l.quadraticAt(t,i,a,p),d=0;do||(u[d]o?0:ar||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;d0&&(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;nthis.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-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;r0)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;i0)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;o0&&(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;r0;)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;r0;)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;r0;)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;r0;)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=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.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}); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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;r1},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&&c1){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='\n \n \n \n \n ',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\n \n \n \n \n ',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\n \n \n \n \n ',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";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;t0&&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;rt.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;o1)for(var l=1;l0&&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)}; /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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;o0?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;f0&&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>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<>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<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>>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>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(;n239?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.pos127;);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;t268435455||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;a55295&&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=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;i0&&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;h1){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-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;r0&&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)}; /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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}} /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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}}); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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, /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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;nl&&-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-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])0?i.map(function(e){for(var t={},r=0,i=w.pathway.length;r0;){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 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;u0?{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;o0&&o.push(i[s]);else for(var c=0,p=(i=a.parseFeatureFromJson(r.content)).length;c0&&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;w0){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;c0?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;s0){for(a=0,o=i.length;a==/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-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}} /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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||e0||o1&&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"+r+"",e}}); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * 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))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;o3?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)=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;t1;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-3)for(var n=this.pageNumberLis.length-5;n0&&(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;r0&&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;t0;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;r0;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;a0){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¤tPage=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;n4?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;g0){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;l0){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;r0){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;d0){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;ri[1])return;for(var s=0,l=0;l=0&&t.innerRingRadiusr[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;ui[1])return;for(var s=0,l=0;l=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;rr[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;u0?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[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;rt[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;fr[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=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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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-1&&e%1==0&&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;ru&&(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=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;f0?"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=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= 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"}}},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.5?u/(2-o-s):u/(o+s),o){case r:e=(i-n)/u+(i=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={"<":[" < ","numeric"],">":[" > ","numeric"],"=":[" = ","both"],"!=":[" != ","both"],"<=":[" <= ","numeric"],">=":[" >= ","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"]&&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":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"]&&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+"<="].valr)&&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",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,"&"),r=t.replace(/\'/g,"\\'").replace(/\"/g,""").replace(//g,">");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;n1?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;to.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<=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)if("RANGE"===r)for(n=0;nt.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;r0&&(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;r0&&(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=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;r0?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;i0)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;r0&&(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;u0&&(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;r0&&(r+=","),r+='{"x":'+t[n].x+',"y":'+t[n].y+"}";else if(1==e)for(var a=0;a0&&(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;r0&&(r+=","),r+='{"x":'+t[n].x+',"y":'+t[n].y+"}";else if(1==e)for(var a=0;a0&&(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;r0&&(r+=","),r+='{"x":'+t[n].x+',"y":'+t[n].y+"}";else if(1==e)for(var a=0;a0&&(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;r0&&(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;r0&&(r+=","),r+='{"x":'+t[n].x+',"y":'+t[n].y+"}";else if(1==e)for(var a=0;a0&&(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=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;r0&&(r+=","),r+='{"x":'+t[n].x+',"y":'+t[n].y+"}";else if(1==e)for(var a=0;a0&&(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;r0&&(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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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=[];++h1)for(var r=1;r=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=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, /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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;r0&&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); /* Copyright© 2000 - 2019 SuperMap Software Co.Ltd. All rights reserved. * This program are made available under the terms of the Apache License, Version 2.0 * which accompanies this distribution and is available at http://www.apache.org/licenses/LICENSE-2.0.html.*/ 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