qa-regulatory-gwj-vue/static/map/cesium91/CesiumUnminified/Workers/EnvelopeWorker.js

2 lines
4.5 KiB
JavaScript
Raw Normal View History

2023-11-07 10:04:37 +08:00
define(["./createTaskProcessorWorker","./Resource-8ae1a924","./Cartesian3-e0307675","./HouseDrawer","./snappyJs","./GetPrimitiveData","./when-422ea0ae","./ScanLine","./Cache","./PolygonBuffer","./defaultValue-81eec7ed","./Check-741c5f3c","./combine-3c023bda","./Math-e73894ab","./RuntimeError-26acdd3b","./Color-82ef4a75","./Transforms-5b829630","./Cartesian2-bd414876","./Matrix4-4c545f70","./ComponentDatatype-aaeec80f","./WebGLConstants-508b9636","./GeometryInstance-1b39c9e8","./PolygonGeometry-95e6b579","./ArcType-fc72c06c","./GeometryOffsetAttribute-ed56ff58","./BoundingRectangle-0e36efc3","./GeographicProjection-c931c7fb","./BoundingSphere-9a3b5656","./Rectangle-cf3e0e3e","./EllipsoidGeodesic-e7a5ca44","./EllipsoidTangentPlane-4d138901","./AxisAlignedBoundingBox-8774439c","./IntersectionTests-80510c7b","./Plane-bc8b6777","./GeometryAttribute-2b42a913","./Matrix2-dc0c61cc","./GeometryPipeline-e7083fea","./AttributeCompression-8f752c03","./EncodedCartesian3-aafcc30f","./IndexDatatype-3f3c99e8","./PolygonGeometryLibrary-231711c2","./arrayRemoveDuplicates-cea3b206","./EllipsoidRhumbLine-592e8885","./GeometryAttributes-32b29525","./PolygonPipeline-04baeb41","./VertexFormat-d50a69ba","./PolygonOutlineGeometry-29f6cf19","./PixelFormat-bd725b72","./PrimitivePipeline-d5bc2e2a","./WebMercatorProjection-44373a3d","./GetRidingLanternGeometry","./LinkedQueue","./turf.min"],(function(e,t,r,n,o,l,i,a,f,c,s,u,h,y,g,p,d,m,b,P,w,v,C,G,A,S,x,D,L,R,B,F,E,I,M,O,T,j,k,V,q,J,N,W,_,H,z,Q,U,K,X,Y,Z){"use strict";let $,ee=512,te="",re={};function ne(e,t){let r=t.rectangle;for(var n=[],o=0;o<e.length;o++){var l=oe(e[o],e[o+1],r);n.push(l[0]),n.push(l[1]),o++}return n}function oe(e,t,r){var n=le(r.west+r.width/ee*e),o=le(r.north-r.height/ee*t);return[n=Number(n.toFixed(6)),o=Number(o.toFixed(6))]}function le(e){return 180*e/Math.PI}function ie(e,t){if(Array.isArray(t[0])){let r=t.length;for(let n=0;n<r;n++){ie(e,t[n])}}else e.push(t)}function ae(e,t){if("F"!=e[0])if(Array.isArray(e[0])){let r=e.length;for(let n=0;n<r;n++){ae(e[n],t)}}else t&&function(e){let t=[e[0],e[1]];for(let r=2;r<e.length;r++){let n=t[0]+e[r],o=t[1]+e[r+1];e[r]=n,e[r+1]=o,t=[n,o],r++}}(e);else e[0]=[.05*-ee,.05*-ee,1.05*ee,.05*-ee,1.05*ee,1.05*ee,.05*-ee,1.05*ee]}return new f(1e5),e((function(e,a){if(1==e.init)return function(e){let t=i.when.defer();return $=new Function("drawer","level",e.styleStr),ee=e.tileSize,te=e.return_type,re=e,t.resolve({}),t.promise}(e);var f,s=e.url,u=new t.Resource({url:s});if(u.request.throttle=!1,u.request.throttleByServer=!0,u.request.type=1,!(f="stream_snappy"==te?u.fetchArrayBuffer():u.fetchJson()))return!0;let h=[];h.push(f);let y=i.when.defer();return i.when.all(h,(function(t){let i=t[0];if(i||(i={}),"stream_snappy"==te){i=o(i);let e=function(e){let t=[],r=0,n=0;for(;r<e.length;){let o=e[r++];if(o<128)t[n++]=o;else if(o>191&&o<224){let l=e[r++];t[n++]=(31&o)<<6|63&l}else if(o>239&&o<365){let l=((7&o)<<18|(63&e[r++])<<12|(63&e[r++])<<6|63&e[r++])-65536;t[n++]=55296+(l>>10),t[n++]=56320+(1023&l)}else{let l=e[r++],i=e[r++];t[n++]=(15&o)<<12|(63&l)<<6|63&i}}let o=[],l=0,i=0,a=0,f=5e4,c=t.length/f-1;for(l=0;l<c;l++)i=l*f,a=(l+1)*f,o.push(String.fromCharCode.apply({},t.slice(i,a)));return i=l*f,a=t.length,o.push(String.fromCharCode.apply({},t.slice(i,a))),o=o.join(""),o}(new Uint8Array(i));i=JSON.parse(e)}let f=function(e,t){if(e&&e.layer){(function(e,t){for(let r in e){let n=e[r].features;n||(n=e[r].datas);for(let e=0;e<n.length;e++)ae(n[e][2],t)}})(e=e.layer,t.needDecode);let r={},o=new n([e],t.level,r,t.controlVector,t.highLightVector,t.filterLayerId);return $.call({},o,t.level),function(e){for(let t in e){let r=e[t];for(let e=0;e<r.length;e++){let t=r[e],n=[];ie(n,t.data),delete t.data,t.geometrys=n;let o=0;if(re.hasOwnProperty("heightProperty")){let e=re.heightProperty;o=t.properties[e],re.hasOwnProperty("heightScale")&&(o*=parseFloat(re.heightScale))}t.height=o,t.totalHeight=o}}}(r),r}return{}}(i,e);!function(e,t){for(let r in e){let n=e[r];for(let e=0;e<n.length;e++){let r=n[e];r.polygons=[];for(let e=0;e<r.geometrys.length;e++){let n=ne(