2023-11-03 13:33:08 +08:00
/******/ ( function ( modules ) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = { } ;
/******/
/******/ // The require function
/******/ function _ _webpack _require _ _ ( moduleId ) {
/******/
/******/ // Check if module is in cache
/******/ if ( installedModules [ moduleId ] ) {
/******/ return installedModules [ moduleId ] . exports ;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules [ moduleId ] = {
/******/ i : moduleId ,
/******/ l : false ,
/******/ exports : { }
/******/ } ;
/******/
/******/ // Execute the module function
/******/ modules [ moduleId ] . call ( module . exports , module , module . exports , _ _webpack _require _ _ ) ;
/******/
/******/ // Flag the module as loaded
/******/ module . l = true ;
/******/
/******/ // Return the exports of the module
/******/ return module . exports ;
/******/ }
/******/
/******/
/******/ // expose the modules object (__webpack_modules__)
/******/ _ _webpack _require _ _ . m = modules ;
/******/
/******/ // expose the module cache
/******/ _ _webpack _require _ _ . c = installedModules ;
/******/
/******/ // identity function for calling harmony imports with the correct context
/******/ _ _webpack _require _ _ . i = function ( value ) { return value ; } ;
/******/
/******/ // define getter function for harmony exports
/******/ _ _webpack _require _ _ . d = function ( exports , name , getter ) {
/******/ if ( ! _ _webpack _require _ _ . o ( exports , name ) ) {
/******/ Object . defineProperty ( exports , name , {
/******/ configurable : false ,
/******/ enumerable : true ,
/******/ get : getter
/******/ } ) ;
/******/ }
/******/ } ;
/******/
/******/ // getDefaultExport function for compatibility with non-harmony modules
/******/ _ _webpack _require _ _ . n = function ( module ) {
/******/ var getter = module && module . _ _esModule ?
/******/ function getDefault ( ) { return module [ 'default' ] ; } :
/******/ function getModuleExports ( ) { return module ; } ;
/******/ _ _webpack _require _ _ . d ( getter , 'a' , getter ) ;
/******/ return getter ;
/******/ } ;
/******/
/******/ // Object.prototype.hasOwnProperty.call
/******/ _ _webpack _require _ _ . o = function ( object , property ) { return Object . prototype . hasOwnProperty . call ( object , property ) ; } ;
/******/
/******/ // __webpack_public_path__
/******/ _ _webpack _require _ _ . p = "" ;
/******/
/******/ // Load entry module and return exports
/******/ return _ _webpack _require _ _ ( _ _webpack _require _ _ . s = 5 ) ;
/******/ } )
/************************************************************************/
/******/ ( [
/* 0 */
/***/ ( function ( module , exports ) {
/ * COPYRIGHT 2012 SUPERMAP
* 本程序只能在有效的授权许可下使用 。
* 未经许可 , 不得以任何手段擅自使用或传播 。 * /
/ * *
* @ requires SuperMap / BaseTypes . js
* /
/ * *
* Namespace : SuperMap . Lang
* 国际化的命名空间 , 包含多种语言和方法库来设置和获取当前的语言 。
* /
2025-01-21 08:36:33 +08:00
var SuperMap = window . SuperMap = window . SuperMap || { } ;
2023-11-03 13:33:08 +08:00
/ * * *
* @ private
* @ type { { translate : SuperMap . PlotLang . translate } }
* /
SuperMap . PlotLang = {
/ * *
* APIMethod : translate
* 从当前语言字符串的字典查找key 。
* getCode获取的值用来判断合适的字典 。 字典存储在 < SuperMap . Lang > 方法中 。
*
* Parameters :
* key - { String } 字典中i18n字符串值的关键字 .
* context - { Object } < SuperMap . String . format > 使用此参数 。
*
* Returns :
* { String } 国际化的字符串 。
* /
translate : function ( key , context ) {
var dictionary = SuperMap . PlotLang [ "zh-CN" ] ;
var message = dictionary && dictionary [ key ] ;
if ( ! message ) {
// Message not found, fall back to message key
message = key ;
}
if ( context ) {
message = SuperMap . String . format ( message , context ) ;
}
return message ;
}
} ;
/ * *
* @ private
* APIMethod : SuperMap . plotI18n
* < SuperMap . Lang . translate > 的别名 . 当前语言字符串的字典查找key 。
* getCode获取的值用来判断合适的字典 。 字典存储在 < SuperMap . Lang > 方法中 。
*
* Parameters :
* key - { String } 字典中i18n字符串值的关键字 .
* context - { Object } < SuperMap . String . format > 使用此参数 。
*
* Returns :
* { String } 国际化的字符串 。
* /
SuperMap . plotI18n = SuperMap . PlotLang . translate ;
/ * *
* @ private
* * /
SuperMap . PlotLang [ "zh-CN" ] = {
//字体
'SongTi' : "宋体" ,
//text
'text' : "文本" ,
'textSizeLabel' : "字体大小" ,
'textSizeTitle' : "字体大小" ,
'textFaceNameLabel' : "字体" ,
'textFaceNameTitle' : "字体" ,
'textAlignLabel' : "水平对齐方式" ,
'textAlignTitle' : "文本的水平对齐方式" ,
'textVerticalAlignmentLabel' : "垂直对齐方式" ,
'textVerticalAlignmentTitle' : "文本的垂直对齐方式" ,
'textHaloRadiusLabel' : "文本边框宽度" ,
'textHaloRadiusTitle' : "文本的外围边框的宽度" ,
'textHaloColorLabel' : "文本边框颜色" ,
'textHaloColorTitle' : "文本的外围边框的颜色" ,
'textFillLabel' : "文本颜色" ,
'textFillTitle' : "文本的颜色值" ,
'textOpacityLabel' : "透明度" ,
'textOpacityTitle' : "文本的透明度" ,
'textDxLabel' : "横向偏移" ,
'textDxTitle' : "文本的横向偏移值" ,
'textDyLabel' : "纵向偏移值" ,
'textDyTitle' : "文本的纵向偏移值" ,
'textCompOpLabel' : "叠加方式" ,
'textCompOpTitle' : "文本之间相互叠加里使用的覆盖或者是异或等运算方式" ,
'expandingPointContent' : "展" ,
'volleyPointContent' : "齐" ,
'rendezvousPointContent' : "会" ,
'supplyPointContent' : "补" ,
//symbolAlgo
//JB
'symbolAlgo_17703' : "加" ,
'symbolAlgo_17704' : "急" ,
'symbolAlgo_21600' : "冲" ,
'symbolAlgo_28000_1' : "危" ,
'symbolAlgo_28000_2' : "中" ,
'symbolAlgo_28000_3' : "轻" ,
'symbolAlgo_315' : "突击" ,
'symbolAlgo_31304' : "慑阻" ,
'symbolAlgo_3010301' : "调" ,
'symbolAlgo_3010303' : "出" ,
'symbolAlgo_3010304' : "协" ,
//WJ
'symbolAlgo_2121505' : "火" ,
'symbolAlgo_2121506' : "墩" ,
'symbolAlgo_2121507' : "复" ,
'symbolAlgo_2121601' : "遥" ,
'symbolAlgo_2121602' : "障" ,
'symbolAlgo_30010' : "?" ,
'symbolAlgo_3001101' : "集" ,
'symbolAlgo_3001102' : "暴" ,
'symbolAlgo_3001103' : "骚" ,
'symbolAlgo_3001104' : "私" ,
'symbolAlgo_3001105' : "盗" ,
'symbolAlgo_30020' : "水" ,
'symbolAlgo_3002001' : "震" ,
'symbolAlgo_3002004' : "火" ,
'symbolAlgo_30025' : "滞" ,
'symbolAlgo_5010301' : "调" ,
'symbolAlgo_5010303' : "出" ,
'symbolAlgo_5010304' : "协" ,
'symbolAlgo_5010401' : "JZ" ,
'symbolAlgo_5022001' : "ZD0" ,
'symbolAlgo_5034801' : "催" ,
"symbolAlgo_60203" : "避" ,
'symbolAlgo_60301' : "爆" ,
'symbolAlgo_6030101' : "挖" ,
'symbolAlgo_6030102' : "浇" ,
'symbolAlgo_6030103' : "砌" ,
'symbolAlgo_6030104' : "装" ,
'symbolAlgo_6030105' : "石" ,
'symbolAlgo_6030106' : "沙" ,
'symbolAlgo_6030107' : "练" ,
'symbolAlgo_60304' : "隧" ,
'symbolAlgo_3002501' : "踏" ,
'symbolAlgo_30026' : "灾" ,
'symbolAlgo_40104' : "缉" ,
'symbolAlgo_4030301' : "标" ,
'symbolAlgo_4030302' : "劝" ,
'symbolAlgo_4030303' : "疏" ,
'symbolAlgo_40304' : "警" ,
'symbolAlgo_4030401' : "警" ,
//basic symbol
'polyLine' : "折线" ,
'parallelogram' : "平行四边形" ,
'circle' : "圆" ,
'ellipse' : "椭圆" ,
'annotation' : "注记" ,
'regularPolygon' : "正多边形" ,
'polygon' : "多边形" ,
'bezier' : "贝塞尔曲线" ,
'closedBesselCurve' : "闭合贝塞尔曲线" ,
'kidney' : "集结地" ,
'brace' : "大括号" ,
'trapezoid' : "梯形" ,
'rectangle' : "矩形" ,
'chord' : "弓形" ,
'sector' : "扇形" ,
'arc' : "弧线" ,
'parallel' : "平行线" ,
'annoframe' : "注记指示框" ,
'tooltipBoxM' : "多角标注框" ,
'runway' : "跑道线" ,
'curveEight' : "八字形" ,
'arrowLine' : "箭头线" ,
'pathText' : "沿线注记" ,
'concentricCircle' : "同心圆" ,
'combinedCircle' : "组合圆" ,
'freeCurve' : "自由线" ,
'nodeChain' : "节点链" ,
'lineMarking' : "线型标注" ,
'symbolTextBox' : "标注框" ,
'parallelFlatArrow' : "平行平耳箭头" ,
'multipleArrow' : "多箭头" ,
'trapezoidalFlatArrow' : "梯形平耳箭头" ,
'besselPointArrow' : "贝塞尔尖耳箭头" ,
'besselArrow' : "普通贝塞尔箭头" ,
'doubleArrow' : "钳击箭头" ,
'brokenSpaceTriangleArrow' : "折线空三角箭头" ,
'besselDovetailArrow' : "贝塞尔燕尾箭头" ,
'ordinaryLineArrow' : "普通折线箭头" ,
'besselPointedEarsTailArrow' : "贝塞尔尖耳燕尾箭头" ,
'besselTipArrow' : "贝塞尔尖耳单点箭头" ,
'besselArrowNoGraph' : "普通贝塞尔箭头(不随图)" ,
'brokenSpaceTriangleArrowNoGraph' : "折线空三角箭头(不随图)" ,
'besselPointedEarsTailArrowNoGraph' : "贝塞尔尖耳燕尾箭头(不随图)" ,
'ordinaryLineArrowNoGraph' : "普通折线箭头(不随图)" ,
'combianationArrow' : "组合箭头" ,
'symbolAlgo_311' : '进攻方向' ,
'symbolAlgo_317' : '钳击' ,
//new obj
'airDeployment' : "空军兵力部署" ,
'airRoute' : "空军航线" ,
'arcRegion' : "扇形区域" ,
'flagGroup' : "多旗" ,
'lineRelation' : "对象间连线" ,
'polygonRegion' : "多边形区域管理" ,
'navyRoute' : "海军航线" ,
'missileRoute' : "导弹航线" ,
'navyDeployment' : "海军兵力部署" ,
'satelliteTimeWindows' : "卫星时间窗" ,
'satellite' : "卫星" ,
'symbolText' : "对象标注" ,
'symbolText1' : "对象标注(带指示线)" ,
'interferenceBeam' : "干扰波束" ,
'groupObject' : "组合对象" ,
//routeNodeTypeName
'RENDEZVOUS' : "会合点" ,
'EXPANDING' : "展开点" ,
'VOLLEY' : "齐射点" ,
'STANDBY' : "待机点" ,
'SUPPLY' : "补给点" ,
'TAKEOFF' : "起飞点" ,
'INITIAL' : "初始点" ,
'VISUALINITAL' : "可视初始点" ,
'LANCH' : "发射点" ,
'TURNING' : "转弯点" ,
'AIMING' : "瞄准点" ,
'COMMONROUTE' : "普通航路点" ,
'WEAPONLAUNCH' : "武器发射点" ,
'TARGET' : "目标点" ,
'ATTACK' : "攻击点" ,
'SUPPRESS' : "压制点" ,
'EIGHTSPIRAL' : "八字盘旋点" ,
'HAPPYVALLEY' : "跑马圈点" ,
'LITERATESIGN' : "标牌文字" ,
'undoStackOverflow' : '撤销的栈溢出' ,
//Mapviewer
'noContent' : '无内容' ,
'lableTitle' : '_标签图层'
} ;
/***/ } ) ,
/* 1 */
/***/ ( function ( module , exports ) {
/ * !
*
* iclient - plot - algorithms - jb . ( http : //iclient.supermap.io)
2025-01-21 08:36:33 +08:00
* Copyright © 2000 - 2020 SuperMap Software Co . Ltd
* version : v10 . 1.0 - beta
2023-11-03 13:33:08 +08:00
*
2025-01-21 08:36:33 +08:00
* / ! f u n c t i o n ( t ) { v a r e = { } ; f u n c t i o n l ( o ) { i f ( e [ o ] ) r e t u r n e [ o ] . e x p o r t s ; v a r i = e [ o ] = { i : o , l : ! 1 , e x p o r t s : { } } ; r e t u r n t [ o ] . c a l l ( i . e x p o r t s , i , i . e x p o r t s , l ) , i . l = ! 0 , i . e x p o r t s } l . m = t , l . c = e , l . d = f u n c t i o n ( t , e , o ) { l . o ( t , e ) | | O b j e c t . d e f i n e P r o p e r t y ( t , e , { e n u m e r a b l e : ! 0 , g e t : o } ) } , l . r = f u n c t i o n ( t ) { " u n d e f i n e d " ! = t y p e o f S y m b o l & & S y m b o l . t o S t r i n g T a g & & O b j e c t . d e f i n e P r o p e r t y ( t , S y m b o l . t o S t r i n g T a g , { v a l u e : " M o d u l e " } ) , O b j e c t . d e f i n e P r o p e r t y ( t , " _ _ e s M o d u l e " , { v a l u e : ! 0 } ) } , l . t = f u n c t i o n ( t , e ) { i f ( 1 & e & & ( t = l ( t ) ) , 8 & e ) r e t u r n t ; i f ( 4 & e & & " o b j e c t " = = t y p e o f t & & t & & t . _ _ e s M o d u l e ) r e t u r n t ; v a r o = O b j e c t . c r e a t e ( n u l l ) ; i f ( l . r ( o ) , O b j e c t . d e f i n e P r o p e r t y ( o , " d e f a u l t " , { e n u m e r a b l e : ! 0 , v a l u e : t } ) , 2 & e & & " s t r i n g " ! = t y p e o f t ) f o r ( v a r i i n t ) l . d ( o , i , f u n c t i o n ( e ) { r e t u r n t [ e ] } . b i n d ( n u l l , i ) ) ; r e t u r n o } , l . n = f u n c t i o n ( t ) { v a r e = t & & t . _ _ e s M o d u l e ? f u n c t i o n ( ) { r e t u r n t . d e f a u l t } : f u n c t i o n ( ) { r e t u r n t } ; r e t u r n l . d ( e , " a " , e ) , e } , l . o = f u n c t i o n ( t , e ) { r e t u r n O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( t , e ) } , l . p = " " , l ( l . s = 2 2 5 ) } ( [ f u n c t i o n ( t , e , l ) { " u s e s t r i c t " ; O b j e c t . d e f i n e P r o p e r t y ( e , " _ _ e s M o d u l e " , { v a l u e : ! 0 } ) ; v a r o = e . A l g o S y m b o l 4 0 2 1 1 0 2 = f u n c t i o n ( t ) { f u n c t i o n e ( t ) { r e t u r n f u n c t i o n ( t , e ) { i f ( ! ( t i n s t a n c e o f e ) ) t h r o w n e w T y p e E r r o r ( " C a n n o t c a l l a c l a s s a s a f u n c t i o n " ) } ( t h i s , e ) , f u n c t i o n ( t , e ) { i f ( ! t ) t h r o w n e w R e f e r e n c e E r r o r ( " t h i s h a s n ' t b e e n i n i t i a l i s e d - s u p e r ( ) h a s n ' t b e e n c a l l e d " ) ; r e t u r n ! e | | " o b j e c t " ! = t y p e o f e & & " f u n c t i o n " ! = t y p e o f e ? t : e } ( t h i s , ( e . _ _ p r o t o _ _ | | O b j e c t . g e t P r o t o t y p e O f ( e ) ) . c a l l ( t h i s , t ) ) } r e t u r n f u n c t i o n ( t , e ) { i f ( " f u n c t i o n " ! = t y p e o f e & & n u l l ! = = e ) t h r o w n e w T y p e E r r o r ( " S u p e r e x p r e s s i o n m u s t e i t h e r b e n u l l o r a f u n c t i o n , n o t " + t y p e o f e ) ; t . p r o t o t y p e = O b j e c t . c r e a t e ( e & & e . p r o t o t y p e , { c o n s t r u c t o r : { v a l u e : t , e n u m e r a b l e : ! 1 , w r i t a b l e : ! 0 , c o n f i g u r a b l e : ! 0 } } ) , e & & ( O b j e c t . s e t P r o t o t y p e O f ? O b j e c t . s e t P r o t o t y p e O f ( t , e ) : t . _ _ p r o t o _ _ = e ) } ( e , S u p e r M a p . P l o t . A l g o S y m b o l 3 0 8 0 0 ) , e } ( ) ; S u p e r M a p . P l o t . A l g o S y m b o l 4 0 2 1 1 0 2 = o } , f u n c t i o n ( t , e , l ) { " u s e s t r i c t " ; O b j e c t . d e f i n e P r o p e r t y ( e , " _ _ e s M o d u l e " , { v a l u e : ! 0 } ) ; v a r o = e . A l g o S y m b o l 4 0 2 1 1 0 1 = f u n c t i o n ( t ) { f u n c t i o n e ( t ) { r e t u r n f u n c t i o n ( t , e ) { i f ( ! ( t i n s t a n c e o f e ) ) t h r o w n e w T y p e E r r o r ( " C a n n o t c a l l a c l a s s a s a f u n c t i o n " ) } ( t h i s , e ) , f u n c t i o n ( t , e ) { i f ( ! t ) t h r o w n e w R e f e r e n c e E r r o r ( " t h i s h a s n ' t b e e n i n i t i a l i s e d - s u p e r ( ) h a s n ' t b e e n c a l l e d " ) ; r e t u r n ! e | | " o b j e c t " ! = t y p e o f e & & " f u n c t i o n " ! = t y p e o f e ? t : e } ( t h i s , ( e . _ _ p r o t o _ _ | | O b j e c t . g e t P r o t o t y p e O f ( e ) ) . c a l l ( t h i s , t ) ) } r e t u r n f u n c t i o n ( t , e ) { i f ( " f u n c t i o n " ! = t y p e o f e & & n u l l ! = = e ) t h r o w n e w T y p e E r r o r ( " S u p e r e x p r e s s i o n m u s t e i t h e r b e n u l l o r a f u n c t i o n , n o t " + t y p e o f e ) ; t . p r o t o t y p e = O b j e c t . c r e a t e ( e & & e . p r o t o t y p e , { c o n s t r u c t o r : { v a l u e : t , e n u m e r a b l e : ! 1 , w r i t a b l e : ! 0 , c o n f i g u r a b l e : ! 0 } } ) , e & & ( O b j e c t . s e t P r o t o t y p e O f ? O b j e c t . s e t P r o t o t y p e O f ( t , e ) : t . _ _ p r o t o _ _ = e ) } ( e , S u p e r M a p . P l o t . A l g o S y m b o l 3 0 8 0 0 ) , e } ( ) ; S u p e r M a p . P l o t . A l g o S y m b o l 4 0 2 1 1 0 1 = o } , f u n c t i o n ( t , e , l ) { " u s e s t r i c t " ; O b j e c t . d e f i n e P r o p e r t y ( e , " _ _ e s M o d u l e " , { v a l u e : ! 0 } ) ; v a r o = f u n c t i o n ( ) { f u n c t i o n t ( t , e ) { f o r ( v a r l = 0 ; l < e . l e n g t h ; l + + ) { v a r o = e [ l ] ; o . e n u m e r a b l e = o . e n u m e r a b l e | | ! 1 , o . c o n f i g u r a b l e = ! 0 , " v a l u e " i n o & & ( o . w r i t a b l e = ! 0 ) , O b j e c t . d e f i n e P r o p e r t y ( t , o . k e y , o ) } } r e t u r n f u n c t i o n ( e , l , o ) { r e t u r n l & & t ( e . p r o t o t y p e , l ) , o & & t ( e , o ) , e } } ( ) ; v a r i = e . A l g o S y m b o l 6 0 2 0 4 0 4 = f u n c t i o n ( t ) { f u n c t i o n e ( t ) { ! f u n c t i o n ( t , e ) { i f ( ! ( t i n s t a n c e o f e ) ) t h r o w n e w T y p e E r r o r ( " C a n n o t c a l l a c l a s s a s a f u n c t i o n " ) } ( t h i s , e ) ; v a r l = f u n c t i o n ( t , e ) { i f ( ! t ) t h r o w n e w R e f e r e n c e E r r o r ( " t h i s h a s n ' t b e e n i n i t i a l i s e d - s u p e r ( ) h a s n ' t b e e n c a l l e d " ) ; r e t u r n ! e | | " o b j e c t " ! = t y p e o f e & & " f u n c t i o n " ! = t y p e o f e ? t : e } ( t h i s , ( e . _ _ p r o t o _ _ | | O b j e c t . g e t P r o t o t y p e O f ( e ) ) . c a l l ( t h i s , t ) ) ; r e t u r n 0 = = = l . s c a l e V a l u e s . l e n g t h & & l . s c a l e V a l u e s . p u s h ( . 1 ) , l } r e t u r n f u n c t i o n ( t , e ) { i f ( " f u n c t i o n " ! = t y p e o f e & & n u l l ! = = e ) t h r o w n e w T y p e E r r o r ( " S u p e r e x p r e s s i o n m u s t e i t h e r b e n u l l o r a f u n c t i o n , n o t " + t y p e o f e ) ; t . p r o t o t y p e = O b j e c t . c r e a t e ( e & & e . p r o t o t y p e , { c o n s t r u c t o r : { v a l u e : t , e n u m e r a b l e : ! 1 , w r i t a b l e : ! 0 , c o n f i g u r a b l e : ! 0 } } ) , e & & ( O b j e c t . s e t P r o t o t y p e O f ? O b j e c t . s e t P r o t o t y p e O f ( t , e ) : t . _ _ p r o t o _ _ = e ) } ( e , S u p e r M a p . P l o t . A l g o S y m b o l ) , o ( e , [ { k e y : " c a l c u l a t e P a r t s " , v a l u e : f u n c t i o n ( ) { t h i s . i n i t ( ) ; v a r t = S u p e r M a p . P l o t . P l o t t i n g U t i l . c l o n e P o i n t s ( t h i s . c o n t r o l P o i n t s ) ; i f ( ! ( ( t = S u p e r M a p . P l o t . P l o t t i n g U t i l . c l e a r S a m e P t s ( t ) ) . l e n g t h < t h i s . m i n E d i t P t s ) ) { i f ( ! t h i s . i s E d i t ) { v a r e = . 3 * t h i s . g e t S u b S y m b o l S c a l e V a l u e ( ) ; e > . 0 5 & & ( e = . 0 5 ) , t h i s . s c a l e V a l u e s [ 0 ] = e } f o r ( v a r l = S u p e r M a p . P l o t . P l o t t i n g U t i l . p o l y l i n e D i s t a n c e ( t ) , o = M a t h . a b
2023-11-03 13:33:08 +08:00
/***/ } ) ,
/* 2 */
/***/ ( function ( module , exports ) {
/ * !
*
* iclient - plot - algorithms - wj . ( http : //iclient.supermap.io)
2025-01-21 08:36:33 +08:00
* Copyright © 2000 - 2020 SuperMap Software Co . Ltd
* version : v10 . 1.0 - beta
2023-11-03 13:33:08 +08:00
*
2025-01-21 08:36:33 +08:00
* / ! f u n c t i o n ( t ) { v a r e = { } ; f u n c t i o n l ( o ) { i f ( e [ o ] ) r e t u r n e [ o ] . e x p o r t s ; v a r i = e [ o ] = { i : o , l : ! 1 , e x p o r t s : { } } ; r e t u r n t [ o ] . c a l l ( i . e x p o r t s , i , i . e x p o r t s , l ) , i . l = ! 0 , i . e x p o r t s } l . m = t , l . c = e , l . d = f u n c t i o n ( t , e , o ) { l . o ( t , e ) | | O b j e c t . d e f i n e P r o p e r t y ( t , e , { e n u m e r a b l e : ! 0 , g e t : o } ) } , l . r = f u n c t i o n ( t ) { " u n d e f i n e d " ! = t y p e o f S y m b o l & & S y m b o l . t o S t r i n g T a g & & O b j e c t . d e f i n e P r o p e r t y ( t , S y m b o l . t o S t r i n g T a g , { v a l u e : " M o d u l e " } ) , O b j e c t . d e f i n e P r o p e r t y ( t , " _ _ e s M o d u l e " , { v a l u e : ! 0 } ) } , l . t = f u n c t i o n ( t , e ) { i f ( 1 & e & & ( t = l ( t ) ) , 8 & e ) r e t u r n t ; i f ( 4 & e & & " o b j e c t " = = t y p e o f t & & t & & t . _ _ e s M o d u l e ) r e t u r n t ; v a r o = O b j e c t . c r e a t e ( n u l l ) ; i f ( l . r ( o ) , O b j e c t . d e f i n e P r o p e r t y ( o , " d e f a u l t " , { e n u m e r a b l e : ! 0 , v a l u e : t } ) , 2 & e & & " s t r i n g " ! = t y p e o f t ) f o r ( v a r i i n t ) l . d ( o , i , f u n c t i o n ( e ) { r e t u r n t [ e ] } . b i n d ( n u l l , i ) ) ; r e t u r n o } , l . n = f u n c t i o n ( t ) { v a r e = t & & t . _ _ e s M o d u l e ? f u n c t i o n ( ) { r e t u r n t . d e f a u l t } : f u n c t i o n ( ) { r e t u r n t } ; r e t u r n l . d ( e , " a " , e ) , e } , l . o = f u n c t i o n ( t , e ) { r e t u r n O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( t , e ) } , l . p = " " , l ( l . s = 1 9 0 ) } ( [ f u n c t i o n ( t , e , l ) { " u s e s t r i c t " ; O b j e c t . d e f i n e P r o p e r t y ( e , " _ _ e s M o d u l e " , { v a l u e : ! 0 } ) ; v a r o = f u n c t i o n ( ) { f u n c t i o n t ( t , e ) { f o r ( v a r l = 0 ; l < e . l e n g t h ; l + + ) { v a r o = e [ l ] ; o . e n u m e r a b l e = o . e n u m e r a b l e | | ! 1 , o . c o n f i g u r a b l e = ! 0 , " v a l u e " i n o & & ( o . w r i t a b l e = ! 0 ) , O b j e c t . d e f i n e P r o p e r t y ( t , o . k e y , o ) } } r e t u r n f u n c t i o n ( e , l , o ) { r e t u r n l & & t ( e . p r o t o t y p e , l ) , o & & t ( e , o ) , e } } ( ) ; v a r i = e . A l g o S y m b o l 6 0 3 0 6 0 1 = f u n c t i o n ( t ) { f u n c t i o n e ( t ) { ! f u n c t i o n ( t , e ) { i f ( ! ( t i n s t a n c e o f e ) ) t h r o w n e w T y p e E r r o r ( " C a n n o t c a l l a c l a s s a s a f u n c t i o n " ) } ( t h i s , e ) ; v a r l = f u n c t i o n ( t , e ) { i f ( ! t ) t h r o w n e w R e f e r e n c e E r r o r ( " t h i s h a s n ' t b e e n i n i t i a l i s e d - s u p e r ( ) h a s n ' t b e e n c a l l e d " ) ; r e t u r n ! e | | " o b j e c t " ! = t y p e o f e & & " f u n c t i o n " ! = t y p e o f e ? t : e } ( t h i s , ( e . _ _ p r o t o _ _ | | O b j e c t . g e t P r o t o t y p e O f ( e ) ) . c a l l ( t h i s , t ) ) ; r e t u r n 0 = = = l . s c a l e V a l u e s . l e n g t h & & l . s c a l e V a l u e s . p u s h ( . 1 ) , l } r e t u r n f u n c t i o n ( t , e ) { i f ( " f u n c t i o n " ! = t y p e o f e & & n u l l ! = = e ) t h r o w n e w T y p e E r r o r ( " S u p e r e x p r e s s i o n m u s t e i t h e r b e n u l l o r a f u n c t i o n , n o t " + t y p e o f e ) ; t . p r o t o t y p e = O b j e c t . c r e a t e ( e & & e . p r o t o t y p e , { c o n s t r u c t o r : { v a l u e : t , e n u m e r a b l e : ! 1 , w r i t a b l e : ! 0 , c o n f i g u r a b l e : ! 0 } } ) , e & & ( O b j e c t . s e t P r o t o t y p e O f ? O b j e c t . s e t P r o t o t y p e O f ( t , e ) : t . _ _ p r o t o _ _ = e ) } ( e , S u p e r M a p . P l o t . A l g o S y m b o l ) , o ( e , [ { k e y : " c a l c u l a t e P a r t s " , v a l u e : f u n c t i o n ( ) { t h i s . i n i t ( ) ; v a r t = S u p e r M a p . P l o t . P l o t t i n g U t i l . c l o n e P o i n t s ( t h i s . c o n t r o l P o i n t s ) ; i f ( ! ( ( t = S u p e r M a p . P l o t . P l o t t i n g U t i l . c l e a r S a m e P t s ( t ) ) . l e n g t h < t h i s . m i n E d i t P t s ) ) { v a r e = S u p e r M a p . P l o t . P l o t t i n g U t i l . p o l y l i n e D i s t a n c e ( t ) , l = t h i s . s c a l e V a l u e s [ 0 ] * e , o = t [ 0 ] . c l o n e ( ) , i = t [ 1 ] . c l o n e ( ) , n = S u p e r M a p . P l o t . P l o t t i n g U t i l . l i n e P n t ( i , o , e + . 2 * e ) , r = S u p e r M a p . P l o t . P l o t t i n g U t i l . l i n e P n t ( o , i , e + . 2 * e ) , a = 1 . 5 * l , s = S u p e r M a p . P l o t . P l o t t i n g U t i l . g e t S i d e P o i n t s O f L i n e ( a , i , n ) , p = S u p e r M a p . P l o t . P l o t t i n g U t i l . g e t S i d e P o i n t s O f L i n e ( a , o , r ) , u = S u p e r M a p . P l o t . P l o t t i n g U t i l . p a r a L i n e ( t , l , ! 0 ) , c = S u p e r M a p . P l o t . P l o t t i n g U t i l . p a r a L i n e ( t , l , ! 1 ) , P = S u p e r M a p . P l o t . P l o t t i n g U t i l . l i n e P n t ( u [ 0 ] , u [ u . l e n g t h - 1 ] , 3 * e / 1 1 ) , S = S u p e r M a p . P l o t . P l o t t i n g U t i l . l i n e P n t ( u [ 0 ] , u [ u . l e n g t h - 1 ] , 4 * e / 1 1 ) , h = S u p e r M a p . P l o t . P l o t t i n g U t i l . l i n e P n t ( u [ 0 ] , u [ u . l e n g t h - 1 ] , 7 * e / 1 1 ) , y = S u p e r M a p . P l o t . P l o t t i n g U t i l . l i n e P n t ( u [ 0 ] , u [ u . l e n g t h - 1 ] , 8 * e / 1 1 ) , f = [ ] ; f . p u s h ( s . p n t R i g h t ) , f . p u s h ( u [ 0 ] ) , f . p u s h ( P ) , t h i s . a d d C e l l ( S u p e r M a p . P l o t . S y m b o l T y p e . P O L Y L I N E S Y M B O L , f ) ; v a r g = [ ] ; g . p u s h ( S ) , g . p u s h ( h ) , t h i s . a d d C e l l ( S u p e r M a p . P l o t . S y m b o l T y p e . P O L Y L I N E S Y M B O L , g ) ; v a r b = [ ] ; b . p u s h ( y ) , b . p u s h ( u [ u . l e n g t h - 1 ] ) , b . p u s h ( p . p n t L e f t ) , t h i s . a d d C e l l ( S u p e r M a p . P l o t . S y m b o l T y p e . P O L Y L I N E S Y M B O L , b ) ; v a r M = S u p e r M a p . P l o t . P l o t t i n g U t i l . l i n e P n t ( c [ 0 ] , c [ c . l e n g t h - 1 ] , 3 * e / 1 1 ) , m = S u p e r M a p . P l o t . P l o t t i n g U t i l . l i n e P n t ( c [ 0 ] , c [ c . l e n g t h - 1 ] , 4 * e / 1 1 ) , d = S u p e r M a p . P l o t . P l o t t i n g U t i l . l i n e P n t ( c [ 0 ] , c [ c . l e n g t h - 1 ] , 7 * e / 1 1 ) , v = S u p e r M a p . P l o t . P l o t t i n g U t i l . l i n e P n t ( c [ 0 ] , c [ c . l e n g t h - 1 ] , 8 * e / 1 1 ) , O = [ ] ; O . p u s h ( s . p n t L e f t ) , O . p u s h ( c [ 0 ] ) , O . p u s h ( M ) , t h i s . a d d C e l l ( S u p e r M a p . P l o t . S y m b o l T y p e . P O L Y L I N E S Y M B O L , O ) ; v a r U = [ ] ; U . p u s h ( m ) , U . p u s h ( d ) , t h i s . a d d C e l l ( S u p e r M a p . P l o t . S y m b o l T y p e . P O L Y L I N E S Y M B O L , U ) ; v a r L = [ ] ; L . p u s h ( v ) , L . p u s h ( c [ c . l e n g t h - 1 ] ) , L . p u s h ( p . p n t R i g h t ) , t h i s . a d d C e l l ( S u p e r M a p . P l o t . S y m b o l T y p e . P O L Y L I N E S Y M B O L , L ) ; v a r w = n e w S u p e r M a p . G e o m e t r y . P o i n t ( ( s . p n t L e f t . x + s . p n t R i g h t . x ) / 2 , ( s . p n t L e f t . y + s . p n t R i g h t . y ) / 2 ) , _ = n e w S u p e r M a p . G e o m e t r y . P o i n t ( ( P . x + M . x ) / 2 , ( P . y + M . y ) / 2 ) , V = [ ] ; V . p u s h ( w ) , V . p u s h ( _ ) , t h i s . a d d C e l l ( S u p e r M a p . P l o t . S y m b o l T y p e . P O L Y L I N E S Y M B O L , V ) ; v a r A = S u p e r M a p . P l o t . P l o t t i n g U t i l . r a d i a n ( w , _ ) * S u p e r M a p . P l o t . P l o t t i n g U t i l . R T O D , T = S u p e r M a p . P l o t . P l o t
2023-11-03 13:33:08 +08:00
/***/ } ) ,
/* 3 */
/***/ ( function ( module , exports ) {
/ * !
*
* iclient - plot - algorithms - yj . ( http : //iclient.supermap.io)
2025-01-21 08:36:33 +08:00
* Copyright © 2000 - 2020 SuperMap Software Co . Ltd
* version : v10 . 1.0 - beta
2023-11-03 13:33:08 +08:00
*
2025-01-21 08:36:33 +08:00
* / ! f u n c t i o n ( t ) { v a r e = { } ; f u n c t i o n o ( l ) { i f ( e [ l ] ) r e t u r n e [ l ] . e x p o r t s ; v a r i = e [ l ] = { i : l , l : ! 1 , e x p o r t s : { } } ; r e t u r n t [ l ] . c a l l ( i . e x p o r t s , i , i . e x p o r t s , o ) , i . l = ! 0 , i . e x p o r t s } o . m = t , o . c = e , o . d = f u n c t i o n ( t , e , l ) { o . o ( t , e ) | | O b j e c t . d e f i n e P r o p e r t y ( t , e , { e n u m e r a b l e : ! 0 , g e t : l } ) } , o . r = f u n c t i o n ( t ) { " u n d e f i n e d " ! = t y p e o f S y m b o l & & S y m b o l . t o S t r i n g T a g & & O b j e c t . d e f i n e P r o p e r t y ( t , S y m b o l . t o S t r i n g T a g , { v a l u e : " M o d u l e " } ) , O b j e c t . d e f i n e P r o p e r t y ( t , " _ _ e s M o d u l e " , { v a l u e : ! 0 } ) } , o . t = f u n c t i o n ( t , e ) { i f ( 1 & e & & ( t = o ( t ) ) , 8 & e ) r e t u r n t ; i f ( 4 & e & & " o b j e c t " = = t y p e o f t & & t & & t . _ _ e s M o d u l e ) r e t u r n t ; v a r l = O b j e c t . c r e a t e ( n u l l ) ; i f ( o . r ( l ) , O b j e c t . d e f i n e P r o p e r t y ( l , " d e f a u l t " , { e n u m e r a b l e : ! 0 , v a l u e : t } ) , 2 & e & & " s t r i n g " ! = t y p e o f t ) f o r ( v a r i i n t ) o . d ( l , i , f u n c t i o n ( e ) { r e t u r n t [ e ] } . b i n d ( n u l l , i ) ) ; r e t u r n l } , o . n = f u n c t i o n ( t ) { v a r e = t & & t . _ _ e s M o d u l e ? f u n c t i o n ( ) { r e t u r n t . d e f a u l t } : f u n c t i o n ( ) { r e t u r n t } ; r e t u r n o . d ( e , " a " , e ) , e } , o . o = f u n c t i o n ( t , e ) { r e t u r n O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( t , e ) } , o . p = " " , o ( o . s = 1 4 ) } ( [ f u n c t i o n ( t , e , o ) { " u s e s t r i c t " ; O b j e c t . d e f i n e P r o p e r t y ( e , " _ _ e s M o d u l e " , { v a l u e : ! 0 } ) ; v a r l = f u n c t i o n ( ) { f u n c t i o n t ( t , e ) { f o r ( v a r o = 0 ; o < e . l e n g t h ; o + + ) { v a r l = e [ o ] ; l . e n u m e r a b l e = l . e n u m e r a b l e | | ! 1 , l . c o n f i g u r a b l e = ! 0 , " v a l u e " i n l & & ( l . w r i t a b l e = ! 0 ) , O b j e c t . d e f i n e P r o p e r t y ( t , l . k e y , l ) } } r e t u r n f u n c t i o n ( e , o , l ) { r e t u r n o & & t ( e . p r o t o t y p e , o ) , l & & t ( e , l ) , e } } ( ) ; v a r i = e . A l g o S y m b o l 6 1 0 1 0 0 = f u n c t i o n ( t ) { f u n c t i o n e ( t ) { ! f u n c t i o n ( t , e ) { i f ( ! ( t i n s t a n c e o f e ) ) t h r o w n e w T y p e E r r o r ( " C a n n o t c a l l a c l a s s a s a f u n c t i o n " ) } ( t h i s , e ) ; v a r o = f u n c t i o n ( t , e ) { i f ( ! t ) t h r o w n e w R e f e r e n c e E r r o r ( " t h i s h a s n ' t b e e n i n i t i a l i s e d - s u p e r ( ) h a s n ' t b e e n c a l l e d " ) ; r e t u r n ! e | | " o b j e c t " ! = t y p e o f e & & " f u n c t i o n " ! = t y p e o f e ? t : e } ( t h i s , ( e . _ _ p r o t o _ _ | | O b j e c t . g e t P r o t o t y p e O f ( e ) ) . c a l l ( t h i s , t ) ) ; r e t u r n 0 = = = o . s c a l e V a l u e s . l e n g t h & & ( o . s c a l e V a l u e s . p u s h ( . 0 5 ) , o . s c a l e V a l u e s . p u s h ( . 0 1 ) ) , o } r e t u r n f u n c t i o n ( t , e ) { i f ( " f u n c t i o n " ! = t y p e o f e & & n u l l ! = = e ) t h r o w n e w T y p e E r r o r ( " S u p e r e x p r e s s i o n m u s t e i t h e r b e n u l l o r a f u n c t i o n , n o t " + t y p e o f e ) ; t . p r o t o t y p e = O b j e c t . c r e a t e ( e & & e . p r o t o t y p e , { c o n s t r u c t o r : { v a l u e : t , e n u m e r a b l e : ! 1 , w r i t a b l e : ! 0 , c o n f i g u r a b l e : ! 0 } } ) , e & & ( O b j e c t . s e t P r o t o t y p e O f ? O b j e c t . s e t P r o t o t y p e O f ( t , e ) : t . _ _ p r o t o _ _ = e ) } ( e , S u p e r M a p . P l o t . A l g o S y m b o l ) , l ( e , [ { k e y : " c a l c u l a t e P a r t s " , v a l u e : f u n c t i o n ( ) { t h i s . i n i t ( ) ; v a r t = S u p e r M a p . P l o t . P l o t t i n g U t i l . c l o n e P o i n t s ( t h i s . c o n t r o l P o i n t s ) ; i f ( ! ( ( t = S u p e r M a p . P l o t . P l o t t i n g U t i l . c l e a r S a m e P t s ( t ) ) . l e n g t h < t h i s . m i n E d i t P t s ) ) { v a r e = [ ] ; e = 3 > = t . l e n g t h ? S u p e r M a p . P l o t . P r i m i t i v e s . g e t S p a t i a l D a t a ( S u p e r M a p . P l o t . S y m b o l T y p e . K I D N E Y , t ) : S u p e r M a p . P l o t . P l o t t i n g U t i l . g e n e r a t e B e i z e r P o i n t s N o C t r l P t ( t , ! 0 ) , e = S u p e r M a p . P l o t . P l o t t i n g U t i l . c l e a r S a m e P t s ( e ) , t h i s . i s E d i t | | ( t h i s . s c a l e V a l u e s [ 0 ] = . 5 * t h i s . g e t S u b S y m b o l S c a l e V a l u e ( ) , t h i s . s c a l e V a l u e s [ 1 ] = . 0 6 2 5 * t h i s . g e t S u b S y m b o l S c a l e V a l u e ( ) ) ; f o r ( v a r o = S u p e r M a p . P l o t . P l o t t i n g U t i l . p o l y l i n e D i s t a n c e ( t ) , l = o * t h i s . s c a l e V a l u e s [ 0 ] , i = o * t h i s . s c a l e V a l u e s [ 1 ] , n = e [ 0 ] , r = 0 , a = 1 ; a < e . l e n g t h ; a + + ) { v a r p = e [ a ] , u = S u p e r M a p . P l o t . P l o t t i n g U t i l . d i s t a n c e ( n , p ) ; s w i t c h ( r % 4 ) { c a s e 0 : i f ( u > = l ) { v a r s = S u p e r M a p . P l o t . P l o t t i n g U t i l . f i n d P o i n t I n L i n e ( n , p , l ) ; t h i s . a d d C e l l ( S u p e r M a p . P l o t . S y m b o l T y p e . P O L Y L I N E S Y M B O L , [ n , s ] ) , n = s , r + + , a - - } b r e a k ; c a s e 1 : c a s e 3 : v a r P = 3 * i ; i f ( u > P ) n = S u p e r M a p . P l o t . P l o t t i n g U t i l . f i n d P o i n t I n L i n e ( n , p , P ) , r + + , a - - ; b r e a k ; c a s e 2 : i f ( u > 2 * i ) { v a r c = S u p e r M a p . P l o t . P l o t t i n g U t i l . f i n d P o i n t I n L i n e ( n , p , 2 * i ) ; t h i s . a d d C e l l ( S u p e r M a p . P l o t . S y m b o l T y p e . C I R C L E S Y M B O L , [ n e w S u p e r M a p . G e o m e t r y . P o i n t ( . 5 * ( n . x + c . x ) , . 5 * ( n . y + c . y ) ) , c ] , { f i l l L i m i t : ! 0 , f i l l : ! 0 } ) , n = c , r + + , a - - } } } t h i s . f i n i s h ( ) } } } ] ) , e } ( ) ; S u p e r M a p . P l o t . A l g o S y m b o l 6 1 0 1 0 0 = i } , f u n c t i o n ( t , e , o ) { " u s e s t r i c t " ; O b j e c t . d e f i n e P r o p e r t y ( e , " _ _ e s M o d u l e " , { v a l u e : ! 0 } ) ; v a r l = f u n c t i o n ( ) { f u n c t i o n t ( t , e ) { f o r ( v a r o = 0 ; o < e . l e n g t h ; o + + ) { v a r l = e [ o ] ; l . e n u m e r a b l e = l . e n u m e r a b l e | | ! 1 , l . c o n f i g u r a b l e = ! 0 , " v a l u e " i n l & & ( l . w r i t a b l e = ! 0 ) , O b j e c t . d e f i n e P r o p e r t y ( t , l . k e y , l ) } } r e t u r n f u n c t i o n ( e , o , l ) { r e t u r n o & & t ( e . p r o t o t y p e , o ) , l & & t ( e , l ) , e } } ( ) ; v a r i = e . A l g o S y m b o l 5 3 0 2 0 0 = f u n c t i o n ( t ) { f u n c t i o n e ( t ) { ! f u n c t i o n ( t , e ) { i f ( ! ( t i n s t a n c e o f e ) ) t h r o w n e w T y p e E r r o r ( " C a n n o t c a l l a c l a s s a s a f u n c t i o n " ) } ( t h i s , e ) ; v a r o = f u n c t i o n ( t , e ) { i f ( ! t ) t h r o w n e w R e f e r e n c e E r r o r ( " t h i s h a s n ' t b e e n i n i t i a l i s e d - s u p e r ( ) h a s n ' t b e e n c a l l e d " ) ; r e t u r n ! e | | " o b j e c t " ! = t y p e o f e & & " f u n c t i o n " ! = t y p e o f e ? t : e } ( t h i s , ( e . _ _ p r o t o _ _ | | O b j e c t . g e t P r o t o t y p e O f ( e ) ) . c a l l ( t h i s , t ) ) ; r e t u r n 0 = = = o . s c a l e V a l u e s . l e n g t h & & ( o . s c a l e V a l u e s [ 0 ] = . 0 5 , o . s c a l e V a l u e s [ 1 ] = . 0
2023-11-03 13:33:08 +08:00
/***/ } ) ,
/* 4 */
/***/ ( function ( module , exports ) {
/ * !
*
2025-01-21 08:36:33 +08:00
* iclient - plot - webgl . ( http : //iclient.supermap.io)
* Copyright © 2000 - 2020 SuperMap Software Co . Ltd
* version : v10 . 1.0 - beta
2023-11-03 13:33:08 +08:00
*
2025-01-21 08:36:33 +08:00
* / ! f u n c t i o n ( t ) { v a r e = { } ; f u n c t i o n o ( i ) { i f ( e [ i ] ) r e t u r n e [ i ] . e x p o r t s ; v a r n = e [ i ] = { i : i , l : ! 1 , e x p o r t s : { } } ; r e t u r n t [ i ] . c a l l ( n . e x p o r t s , n , n . e x p o r t s , o ) , n . l = ! 0 , n . e x p o r t s } o . m = t , o . c = e , o . d = f u n c t i o n ( t , e , i ) { o . o ( t , e ) | | O b j e c t . d e f i n e P r o p e r t y ( t , e , { e n u m e r a b l e : ! 0 , g e t : i } ) } , o . r = f u n c t i o n ( t ) { " u n d e f i n e d " ! = t y p e o f S y m b o l & & S y m b o l . t o S t r i n g T a g & & O b j e c t . d e f i n e P r o p e r t y ( t , S y m b o l . t o S t r i n g T a g , { v a l u e : " M o d u l e " } ) , O b j e c t . d e f i n e P r o p e r t y ( t , " _ _ e s M o d u l e " , { v a l u e : ! 0 } ) } , o . t = f u n c t i o n ( t , e ) { i f ( 1 & e & & ( t = o ( t ) ) , 8 & e ) r e t u r n t ; i f ( 4 & e & & " o b j e c t " = = t y p e o f t & & t & & t . _ _ e s M o d u l e ) r e t u r n t ; v a r i = O b j e c t . c r e a t e ( n u l l ) ; i f ( o . r ( i ) , O b j e c t . d e f i n e P r o p e r t y ( i , " d e f a u l t " , { e n u m e r a b l e : ! 0 , v a l u e : t } ) , 2 & e & & " s t r i n g " ! = t y p e o f t ) f o r ( v a r n i n t ) o . d ( i , n , f u n c t i o n ( e ) { r e t u r n t [ e ] } . b i n d ( n u l l , n ) ) ; r e t u r n i } , o . n = f u n c t i o n ( t ) { v a r e = t & & t . _ _ e s M o d u l e ? f u n c t i o n ( ) { r e t u r n t . d e f a u l t } : f u n c t i o n ( ) { r e t u r n t } ; r e t u r n o . d ( e , " a " , e ) , e } , o . o = f u n c t i o n ( t , e ) { r e t u r n O b j e c t . p r o t o t y p e . h a s O w n P r o p e r t y . c a l l ( t , e ) } , o . p = " " , o ( o . s = 1 2 5 ) } ( [ f u n c t i o n ( t , e , o ) { " u s e s t r i c t " ; O b j e c t . d e f i n e P r o p e r t y ( e , " _ _ e s M o d u l e " , { v a l u e : ! 0 } ) , ( e . S u p e r M a p = w i n d o w . S u p e r M a p = w i n d o w . S u p e r M a p | | { } ) . W i d g e t s = w i n d o w . S u p e r M a p . W i d g e t s | | { } } , f u n c t i o n ( t , e , o ) { " u s e s t r i c t " ; O b j e c t . d e f i n e P r o p e r t y ( e , " _ _ e s M o d u l e " , { v a l u e : ! 0 } ) , e . U t i l = v o i d 0 ; v a r i = " f u n c t i o n " = = t y p e o f S y m b o l & & " s y m b o l " = = t y p e o f S y m b o l . i t e r a t o r ? f u n c t i o n ( t ) { r e t u r n t y p e o f t } : f u n c t i o n ( t ) { r e t u r n t & & " f u n c t i o n " = = t y p e o f S y m b o l & & t . c o n s t r u c t o r = = = S y m b o l & & t ! = = S y m b o l . p r o t o t y p e ? " s y m b o l " : t y p e o f t } , n = o ( 0 ) ;
2023-11-03 13:33:08 +08:00
/ * C o p y r i g h t © 2 0 0 0 - 2 0 1 8 S u p e r M a p S o f t w a r e C o . L t d . A l l r i g h t s r e s e r v e d .
* This program are made available under the terms of the Apache License , Version 2.0
2025-01-21 08:36:33 +08:00
* which accompanies this distribution and is available at http : //www.apache.org/licenses/LICENSE-2.0.html.*/o(2);var l,r,a;e.Util=n.SuperMap.Util=n.SuperMap.Util||{};n.SuperMap.Util.extend=function(t,e){if(t=t||{},e){for(var o in e){var i=e[o];void 0!==i&&(t[o]=i)}!("function"==typeof window.Event&&e instanceof window.Event)&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&(t.toString=e.toString)}return t},n.SuperMap.Util.copy=function(t,e){var o;if(t=t||{},e)for(var i in t)void 0!==(o=e[i])&&(t[i]=o)},n.SuperMap.Util.reset=function(t){for(var e in t=t||{})if(t.hasOwnProperty(e)){if("object"===i(t[e])&&t[e]instanceof Array){for(var o in t[e])t[e][o].destroy&&t[e][o].destroy();t[e].length=0}else"object"===i(t[e])&&t[e]instanceof Object&&t[e].destroy&&t[e].destroy();t[e]=null}},n.SuperMap.Util.getElement=function(){for(var t=[],e=0,o=arguments.length;e<o;e++){var i=arguments[e];if("string"==typeof i&&(i=document.getElementById(i)),1===arguments.length)return i;t.push(i)}return t},n.SuperMap.Util.isElement=function(t){return!(!t||1!==t.nodeType)},n.SuperMap.Util.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)},n.SuperMap.Util.removeItem=function(t,e){for(var o=t.length-1;o>=0;o--)t[o]===e&&t.splice(o,1);return t},n.SuperMap.Util.indexOf=function(t,e){if(null==t)return-1;if("function"==typeof t.indexOf)return t.indexOf(e);for(var o=0,i=t.length;o<i;o++)if(t[o]===e)return o;return-1},n.SuperMap.Util.modifyDOMElement=function(t,e,o,i,n,l,r,a){e&&(t.id=e),o&&(t.style.left=o.x+"px",t.style.top=o.y+"px"),i&&(t.style.width=i.w+"px",t.style.height=i.h+"px"),n&&(t.style.position=n),l&&(t.style.border=l),r&&(t.style.overflow=r),parseFloat(a)>=0&&parseFloat(a)<1?(t.style.filter="alpha(opacity="+100*a+")",t.style.opacity=a):1===parseFloat(a)&&(t.style.filter="",t.style.opacity="")},n.SuperMap.Util.applyDefaults=function(t,e){t=t||{};var o="function"==typeof window.Event&&e instanceof window.Event;for(var i in e)(void 0===t[i]||!o&&e.hasOwnProperty&&e.hasOwnProperty(i)&&!t.hasOwnProperty(i))&&(t[i]=e[i]);return!o&&e&&e.hasOwnProperty&&e.hasOwnProperty("toString")&&!t.hasOwnProperty("toString")&&(t.toString=e.toString),t},n.SuperMap.Util.getParameterString=function(t){var e=[];for(var o in t){var n=t[o];if(null!=n&&"function"!=typeof n){var l;if("object"===(void 0===n?"undefined":i(n))&&n.constructor===Array){for(var r,a=[],s=0,u=n.length;s<u;s++)r=n[s],a.push(encodeURIComponent(null===r||void 0===r?"":r));l=a.join(",")}else l=encodeURIComponent(n);e.push(encodeURIComponent(o)+"="+l)}}return e.join("&")},n.SuperMap.Util.urlAppend=function(t,e){var o=t;if(e){var i=(t+" ").split(/[?&]/);o+=" "===i.pop()?e:i.length?"&"+e:"?"+e}return o},n.SuperMap.Util.DEFAULT_PRECISION=14,n.SuperMap.Util.toFloat=function(t,e){return null==e&&(e=n.SuperMap.Util.DEFAULT_PRECISION),"number"!=typeof t&&(t=parseFloat(t)),0===e?t:parseFloat(t.toPrecision(e))},n.SuperMap.Util.rad=function(t){return t*Math.PI/180},n.SuperMap.Util.getParameters=function(t){t=null===t||void 0===t?window.location.href:t;var e="";if(n.SuperMap.String.contains(t,"?")){var o=t.indexOf("?")+1,i=n.SuperMap.String.contains(t,"#")?t.indexOf("#"):t.length;e=t.substring(o,i)}for(var l={},r=e.split(/[&;]/),a=0,s=r.length;a<s;++a){var u=r[a].split("=");if(u[0]){var p=u[0];try{p=decodeURIComponent(p)}catch(t){p=unescape(p)}var c=(u[1]||"").replace(/\+/g," ");try{c=decodeURIComponent(c)}catch(t){c=unescape(c)}1==(c=c.split(",")).length&&(c=c[0]),l[p]=c}}return l},n.SuperMap.Util.lastSeqID=0,n.SuperMap.Util.createUniqueID=function(t){return null==t&&(t="id_"),n.SuperMap.Util.lastSeqID+=1,t+n.SuperMap.Util.lastSeqID},n.SuperMap.INCHES_PER_UNIT={inches:1,ft:12,mi:63360,m:39.3701,km:39370.1,dd:4374754,yd:36},n.SuperMap.INCHES_PER_UNIT.in=n.SuperMap.INCHES_PER_UNIT.inches,n.SuperMap.INCHES_PER_UNIT.degre
2023-11-03 13:33:08 +08:00
/ * C o p y r i g h t © 2 0 0 0 - 2 0 1 8 S u p e r M a p S o f t w a r e C o . L t d . A l l r i g h t s r e s e r v e d .
* 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.*/
2025-01-21 08:36:33 +08:00
i . SuperMap . inherit = function ( t , e ) { var o , n , l , r = function ( ) { } ; for ( r . prototype = e . prototype , t . prototype = new r , o = 2 , n = arguments . length ; o < n ; o ++ ) "function" == typeof ( l = arguments [ o ] ) && ( l = l . prototype ) , i . SuperMap . Util . extend ( t . prototype , l ) } , i . SuperMap . mixin = function ( ) { for ( var t = arguments . length , e = Array ( t ) , o = 0 ; o < t ; o ++ ) e [ o ] = arguments [ o ] ; for ( var i = function t ( o ) { ! function ( t , e ) { if ( ! ( t instanceof e ) ) throw new TypeError ( "Cannot call a class as a function" ) } ( this , t ) ; for ( var i = 0 ; i < e . length ; i ++ ) r ( this , new e [ i ] ( o ) ) } , n = 0 ; n < e . length ; n ++ ) { var l = e [ n ] ; r ( i , l ) , r ( i . prototype , l . prototype ) , r ( i . prototype , new l ) } return i ; function r ( t , e ) { var o = Object . getOwnPropertyNames ( e ) ; Object . getOwnPropertySymbols && ( o = o . concat ( Object . getOwnPropertySymbols ( e ) ) ) ; for ( var i = 0 ; i < o . length ; i ++ ) { var n = o [ i ] ; if ( "constructor" !== n && "prototype" !== n && "name" !== n && "length" !== n ) { var l = Object . getOwnPropertyDescriptor ( e , n ) ; window . ActiveXObject ? Object . defineProperty ( t , n , l || { } ) : Object . defineProperty ( t , n , l ) } } } } ; e . StringExt = i . SuperMap . String = { startsWith : function ( t , e ) { return 0 == t . indexOf ( e ) } , contains : function ( t , e ) { return - 1 != t . indexOf ( e ) } , trim : function ( t ) { return t . replace ( /^\s\s*/ , "" ) . replace ( /\s\s*$/ , "" ) } , camelize : function ( t ) { for ( var e = t . split ( "-" ) , o = e [ 0 ] , i = 1 , n = e . length ; i < n ; i ++ ) { var l = e [ i ] ; o += l . charAt ( 0 ) . toUpperCase ( ) + l . substring ( 1 ) } return o } , format : function ( t , e , o ) { e || ( e = window ) ; return t . replace ( i . SuperMap . String . tokenRegEx , function ( t , i ) { for ( var n , l = i . split ( /\.+/ ) , r = 0 ; r < l . length ; r ++ ) 0 == r && ( n = e ) , n = n [ l [ r ] ] ; return "function" == typeof n && ( n = o ? n . apply ( null , o ) : n ( ) ) , void 0 === n ? "undefined" : n } ) } , tokenRegEx : /\$\{([\w.]+?)\}/g , numberRegEx : /^([+-]?)(?=\d|\.\d)\d*(\.\d*)?([Ee]([+-]?\d+))?$/ , isNumeric : function ( t ) { return i . SuperMap . String . numberRegEx . test ( t ) } , numericIf : function ( t ) { return i . SuperMap . String . isNumeric ( t ) ? parseFloat ( t ) : t } } ; var n = e . NumberExt = i . SuperMap . Number = { decimalSeparator : "." , thousandsSeparator : "," , limitSigDigs : function ( t , e ) { var o = 0 ; return e > 0 && ( o = parseFloat ( t . toPrecision ( e ) ) ) , o } , format : function ( t , e , o , n ) { e = void 0 !== e ? e : 0 , o = void 0 !== o ? o : i . SuperMap . Number . thousandsSeparator , n = void 0 !== n ? n : i . SuperMap . Number . decimalSeparator , null != e && ( t = parseFloat ( t . toFixed ( e ) ) ) ; var l = t . toString ( ) . split ( "." ) ; 1 === l . length && null == e && ( e = 0 ) ; var r , a = l [ 0 ] ; if ( o ) for ( var s = /(-?[0-9]+)([0-9]{3})/ ; s . test ( a ) ; ) a = a . replace ( s , "$1" + o + "$2" ) ; if ( 0 == e ) r = a ; else { var u = l . length > 1 ? l [ 1 ] : "0" ; null != e && ( u += new Array ( e - u . length + 1 ) . join ( "0" ) ) , r = a + n + u } return r } } ; Number . prototype . limitSigDigs || ( Number . prototype . limitSigDigs = function ( t ) { return n . limitSigDigs ( this , t ) } ) ; e . FunctionExt = i . SuperMap . Function = { bind : function ( t , e ) { var o = Array . prototype . slice . apply ( arguments , [ 2 ] ) ; return function ( ) { var i = o . concat ( Array . prototype . slice . apply ( arguments , [ 0 ] ) ) ; return t . apply ( e , i ) } } , bindAsEventListener : function ( t , e ) { return function ( o ) { return t . call ( e , o || window . event ) } } , False : function ( ) { return ! 1 } , True : function ( ) { return ! 0 } , Void : function ( ) { } } , e . ArrayExt = i . SuperMap . Array = { filter : function ( t , e , o ) { var i = [ ] ; if ( Array . prototype . filter ) i = t . filter ( e , o ) ; else { var n = t . length ; if ( "function" != typeof e ) throw new TypeError ; for ( var l = 0 ; l < n ; l ++ ) if ( l in t ) { var r = t [ l ] ; e . call ( o , r , l , t ) && i . push ( r ) } } return i } } } , function ( t , e , o ) { "use strict" ; Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . BasicAlgoSymbolFactory = void 0 , o ( 61 ) ; e . BasicAlgoSymbolFactory = SuperMap . Plot . BasicAlgoSymbolFactory = SuperMap . Plot . BasicAlgoSymbolFactory || { } ; SuperMap . Plot . BasicAlgoSymbolFactory . getAlgoSymbol = function ( t , e , o ) { if ( 0 === t ) switch ( e ) { case SuperMap . Plot . SymbolType . ANNOFRAMESYMBOL : return new SuperMap . Plot . GeoTooltipBox ( o ) ; case SuperMap . Plot . SymbolType . ANNOFRAMESYMBOLM : return new SuperMap . Plot . GeoTooltipBoxM ( o ) ; case SuperMap . Plot . SymbolType . PATHTEXT : return new SuperMap . Plot . PathText ( o ) ; case SuperMap . Plot . SymbolType . ARROWLINE : return new SuperMap . Plot . ArrowLine ( o ) ; case SuperMap . Plot . SymbolType . CURVEEIGHT : return new SuperMap . Plot . CurveEight ( o ) ; case SuperMap . Plot . SymbolType . RUNWAY : return new SuperMap . Plot . Runway ( o ) ; case SuperMap . Plot . SymbolType . CONCENTRICCIRCLE : return new SuperMap . Plot . ConcentricCircle ( o ) ; case SuperMap . Plot . SymbolType . COMBINATIONALCIRCLE : return new SuperMap . Plot . CombinationalCircle ( o ) ; case SuperMap . Plot . S
2023-11-03 13:33:08 +08:00
/ * C o p y r i g h t © 2 0 0 0 - 2 0 1 8 S u p e r M a p S o f t w a r e C o . L t d . A l l r i g h t s r e s e r v e d .
* This program are made available under the terms of the Apache License , Version 2.0
2025-01-21 08:36:33 +08:00
* which accompanies this distribution and is available at http : //www.apache.org/licenses/LICENSE-2.0.html.*/o(123),o(118);var n,l=o(117),r=(n=l)&&n.__esModule?n:{default:n},a=o(0),s=o(1);var u=window.fetch,p=(e.setCORS=a.SuperMap.setCORS=function(t){a.SuperMap.CORS=t},e.isCORS=a.SuperMap.isCORS=function(){return void 0!=a.SuperMap.CORS?a.SuperMap.CORS:window.XMLHttpRequest&&"withCredentials"in new window.XMLHttpRequest}),c=(e.setRequestTimeout=a.SuperMap.setRequestTimeout=function(t){return a.SuperMap.RequestTimeout=t},e.getRequestTimeout=a.SuperMap.getRequestTimeout=function(){return a.SuperMap.RequestTimeout||45e3});e.FetchRequest=a.SuperMap.FetchRequest={commit:function(t,e,o,i){switch(t=t?t.toUpperCase():t){case"GET":return this.get(e,o,i);case"POST":return this.post(e,o,i);case"PUT":return this.put(e,o,i);case"DELETE":return this.delete(e,o,i);default:return this.get(e,o,i)}},supportDirectRequest:function(t,e){return s.Util.isInTheSameDomain(t)||p()||e.proxy},get:function(t,e,o){o=o||{};if(t=this._processUrl(t,o),t=s.Util.urlAppend(t,this._getParameterString(e||{})),!this.supportDirectRequest(t,o)){var i={url:t=t.replace(".json",".jsonp"),data:e};return a.SuperMap.Util.RequestJSONPPromise.GET(i)}return this.urlIsLong(t)?this._postSimulatie("GET",t.substring(0,t.indexOf("?")-1),e,o):this._fetch(t,e,o,"GET")},delete:function(t,e,o){o=o||{};if(t=this._processUrl(t,o),t=s.Util.urlAppend(t,this._getParameterString(e||{})),!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var i={url:t+="&_method=DELETE",data:e};return a.SuperMap.Util.RequestJSONPPromise.DELETE(i)}return this.urlIsLong(t)?this._postSimulatie("DELETE",t.substring(0,t.indexOf("?")-1),e,o):this._fetch(t,e,o,"DELETE")},post:function(t,e,o){if(o=o||{},!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var i={url:t+="&_method=POST",data:e};return a.SuperMap.Util.RequestJSONPPromise.POST(i)}return this._fetch(this._processUrl(t,o),e,o,"POST")},put:function(t,e,o){if(o=o||{},t=this._processUrl(t,o),!this.supportDirectRequest(t,o)){t=t.replace(".json",".jsonp");var i={url:t+="&_method=PUT",data:e};return a.SuperMap.Util.RequestJSONPPromise.DELETE(i)}return this._fetch(t,e,o,"PUT")},urlIsLong:function(t){for(var e=0,o=null,i=0,n=t.length;i<n;i++)(o=t.charCodeAt(i))<127?e++:128<=o&&o<=2047?e+=2:2048<=o&&o<=65535&&(e+=3);return!(e<2e3)},_postSimulatie:function(t,e,o,i){return e+=(e.indexOf("?")>-1?"&":"?")+"_method="+t,"string"!=typeof o&&(o=JSON.stringify(o)),this.post(e,o,i)},_processUrl:function(t,e){if(this._isMVTRequest(t))return t;if(-1===t.indexOf(".json")&&!e.withoutFormatSuffix)if(t.indexOf("?")<0)t+=".json";else{var o=t.split("?");2===o.length&&(t=o[0]+".json?"+o[1])}return e&&e.proxy&&("function"==typeof e.proxy?t=e.proxy(t):(t=decodeURIComponent(t),t=e.proxy+encodeURIComponent(t))),t},_fetch:function(t,e,o,i){return(o=o||{}).headers=o.headers||{},o.headers["Content-Type"]||(o.headers["Content-Type"]="application/x-www-form-urlencoded;charset=UTF-8"),o.timeout?this._timeout(o.timeout,u(t,{method:i,headers:o.headers,body:"PUT"===i||"POST"===i?e:void 0,credentials:o.withCredentials?"include":"omit",mode:"cors",timeout:c()}).then(function(t){return t})):u(t,{method:i,body:"PUT"===i||"POST"===i?e:void 0,headers:o.headers,credentials:o.withCredentials?"include":"omit",mode:"cors",timeout:c()}).then(function(t){return t})},_fetchJsonp:function(t,e){return e=e||{},(0,r.default)(t,{method:"GET",timeout:e.timeout}).then(function(t){return t})},_timeout:function(t,e){return new Promise(function(o,i){setTimeout(function(){i(new Error("timeout"))},t),e.then(o,i)})},_getParameterString:function(t){var e=[];for(var o in t){var n=t[o];if(null!=n&&"function"!=typeof n){var l;if("object"===(void 0===n?"undefined":i(n))&&n.constructor===Array){for(var r,a=[],s=0,u=n.length;s<u;s++)r=
2023-11-03 13:33:08 +08:00
/ * C o p y r i g h t © 2 0 0 0 - 2 0 1 8 S u p e r M a p S o f t w a r e C o . L t d . A l l r i g h t s r e s e r v e d .
* This program are made available under the terms of the Apache License , Version 2.0
2025-01-21 08:36:33 +08:00
* which accompanies this distribution and is available at http : //www.apache.org/licenses/LICENSE-2.0.html.*/var r=e.Format=function(){function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.data=null,this.keepData=!1,l.Util.extend(this,e),this.options=e,this.CLASS_NAME="SuperMap.Format"}return i(t,[{key:"destroy",value:function(){}},{key:"read",value:function(t){}},{key:"write",value:function(t){}}]),t}();n.SuperMap.Format=r},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JSONFormat=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),l=o(0),r=o(109);
2023-11-03 13:33:08 +08:00
/ * C o p y r i g h t © 2 0 0 0 - 2 0 1 8 S u p e r M a p S o f t w a r e C o . L t d . A l l r i g h t s r e s e r v e d .
* 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.*/
2025-01-21 08:36:33 +08:00
var a = e . JSONFormat = function ( t ) { function e ( t ) { ! function ( t , e ) { if ( ! ( t instanceof e ) ) throw new TypeError ( "Cannot call a class as a function" ) } ( this , e ) ; var o = function ( t , e ) { if ( ! t ) throw new ReferenceError ( "this hasn't been initialised - super() hasn't been called" ) ; return ! e || "object" != typeof e && "function" != typeof e ? t : e } ( this , ( e . _ _proto _ _ || Object . getPrototypeOf ( e ) ) . call ( this , t ) ) ; return o . indent = " " , o . space = " " , o . newline = "\n" , o . level = 0 , o . pretty = ! 1 , o . nativeJSON = ! ( ! window . JSON || "function" != typeof JSON . parse || "function" != typeof JSON . stringify ) , o . CLASS _NAME = "SuperMap.Format.JSON" , o . serialize = { object : function ( t ) { if ( null == t ) return "null" ; if ( t . constructor === Date ) return this . serialize . date . apply ( this , [ t ] ) ; if ( t . constructor === Array ) return this . serialize . array . apply ( this , [ t ] ) ; var e , o , i , n = [ "{" ] ; this . level += 1 ; var l = ! 1 ; for ( e in t ) t . hasOwnProperty ( e ) && ( o = this . write . apply ( this , [ e , this . pretty ] ) , i = this . write . apply ( this , [ t [ e ] , this . pretty ] ) , null != o && null != i && ( l && n . push ( "," ) , n . push ( this . writeNewline ( ) , this . writeIndent ( ) , o , ":" , this . writeSpace ( ) , i ) , l = ! 0 ) ) ; return this . level -= 1 , n . push ( this . writeNewline ( ) , this . writeIndent ( ) , "}" ) , n . join ( "" ) } , array : function ( t ) { var e , o = [ "[" ] ; this . level += 1 ; for ( var i = 0 , n = t . length ; i < n ; ++ i ) null != ( e = this . write . apply ( this , [ t [ i ] , this . pretty ] ) ) && ( i > 0 && o . push ( "," ) , o . push ( this . writeNewline ( ) , this . writeIndent ( ) , e ) ) ; return this . level -= 1 , o . push ( this . writeNewline ( ) , this . writeIndent ( ) , "]" ) , o . join ( "" ) } , string : function ( t ) { var e = { "\b" : "\\b" , "\t" : "\\t" , "\n" : "\\n" , "\f" : "\\f" , "\r" : "\\r" , '"' : '\\"' , "\\" : "\\\\" } ; return /["\\\x00-\x1f]/ . test ( t ) ? '"' + t . replace ( /([\x00-\x1f\\"])/g , function ( t , o ) { var i = e [ o ] ; return i || ( i = o . charCodeAt ( ) , "\\u00" + Math . floor ( i / 16 ) . toString ( 16 ) + ( i % 16 ) . toString ( 16 ) ) } ) + '"' : '"' + t + '"' } , number : function ( t ) { return isFinite ( t ) ? String ( t ) : "null" } , boolean : function ( t ) { return String ( t ) } , date : function ( t ) { function e ( t ) { return t < 10 ? "0" + t : t } return '"' + t . getFullYear ( ) + "-" + e ( t . getMonth ( ) + 1 ) + "-" + e ( t . getDate ( ) ) + "T" + e ( t . getHours ( ) ) + ":" + e ( t . getMinutes ( ) ) + ":" + e ( t . getSeconds ( ) ) + '"' } } , o } return function ( t , e ) { if ( "function" != typeof e && null !== e ) throw new TypeError ( "Super expression must either be null or a function, not " + typeof e ) ; t . prototype = Object . create ( e && e . prototype , { constructor : { value : t , enumerable : ! 1 , writable : ! 0 , configurable : ! 0 } } ) , e && ( Object . setPrototypeOf ? Object . setPrototypeOf ( t , e ) : t . _ _proto _ _ = e ) } ( e , r . Format ) , n ( e , [ { key : "read" , value : function ( t , e ) { var o ; if ( this . nativeJSON ) try { o = JSON . parse ( t , e ) } catch ( t ) { } return this . keepData && ( this . data = o ) , o } } , { key : "write" , value : function ( t , e ) { this . pretty = ! ! e ; var o = null , n = void 0 === t ? "undefined" : i ( t ) ; if ( this . serialize [ n ] ) try { o = ! this . pretty && this . nativeJSON ? JSON . stringify ( t ) : this . serialize [ n ] . apply ( this , [ t ] ) } catch ( t ) { } return o } } , { key : "writeIndent" , value : function ( ) { var t = [ ] ; if ( this . pretty ) for ( var e = 0 ; e < this . level ; ++ e ) t . push ( this . indent ) ; return t . join ( "" ) } } , { key : "writeNewline" , value : function ( ) { return this . pretty ? this . newline : "" } } , { key : "writeSpace" , value : function ( ) { return this . pretty ? this . space : "" } } ] ) , e } ( ) ; l . SuperMap . Format . JSON = a } , function ( t , e , o ) { "use strict" ; Object . defineProperty ( e , "__esModule" , { value : ! 0 } ) , e . GetFeatureMode = e . AggregationQueryBuilderType = e . AggregationType = e . TopologyValidatorRule = e . SummaryType = e . StatisticAnalystMode = e . AnalystSizeUnit = e . AnalystAreaUnit = e . ClipAnalystMode = e . ChartType = e . ClientType = e . Exponent = e . VariogramMode = e . InterpolationAlgorithmType = e . SearchMode = e . PixelFormat = e . StatisticMode = e . UGCLayerType = e . LayerType = e . ColorSpaceType = e . GridType = e . TransferPreference = e . TransferTactic = e . EditType = e . DataReturnMode = e . SurfaceAnalystMethod = e . SmoothMethod = e . OutputType = e . OverlayOperationType = e . BufferEndType = e . TurnType = e . SupplyCenterType = e . SideType = e . DirectionType = e . LabelOverLengthMode = e . LabelBackShape = e . AlongLineDirection = e . FillGradientMode = e . TextAlignment = e . ColorGradientType = e . ThemeType = e . RangeMode = e . GraduatedMode = e . GraphAxesTextDisplayMode = e . ThemeGraphType = e . ThemeGraphTextFormat = e . EngineType = e . BufferRadiusUnit = e . Unit = e . MeasureMode = e . SpatialRelationType = e . SpatialQueryMode = e . JoinType = e . QueryOption = e . GeometryType = e . ServerType = e . DataFormat = void 0 ; var i = o ( 0 ) , n = i . SuperMap . DataFormat = { GEOJSON : "GEOJSON" , ISERVER : "ISERVER" } ;
2023-11-03 13:33:08 +08:00
/ * C o p y r i g h t © 2 0 0 0 - 2 0 1 8 S u p e r M a p S o f t w a r e C o . L t d . A l l r i g h t s r e s e r v e d .
* 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.*/
2025-01-21 08:36:33 +08:00
e . DataFormat = n ; var l = i . SuperMap . ServerType = { ISERVER : "ISERVER" , IPORTAL : "IPORTAL" , ONLINE : "ONLINE" } ; e . ServerType = l ; var r = i . SuperMap . GeometryType = { LINE : "LINE" , LINEM : "LINEM" , POINT : "POINT" , REGION : "REGION" , ELLIPSE : "ELLIPSE" , CIRCLE : "CIRCLE" , TEXT : "TEXT" , RECTANGLE : "RECTANGLE" , UNKNOWN : "UNKNOWN" } ; e . GeometryType = r ; var a = i . SuperMap . QueryOption = { ATTRIBUTE : "ATTRIBUTE" , ATTRIBUTEANDGEOMETRY : "ATTRIBUTEANDGEOMETRY" , GEOMETRY : "GEOMETRY" } ; e . QueryOption = a ; var s = i . SuperMap . JoinType = { INNERJOIN : "INNERJOIN" , LEFTJOIN : "LEFTJOIN" } ; e . JoinType = s ; var u = i . SuperMap . SpatialQueryMode = { CONTAIN : "CONTAIN" , CROSS : "CROSS" , DISJOINT : "DISJOINT" , IDENTITY : "IDENTITY" , INTERSECT : "INTERSECT" , NONE : "NONE" , OVERLAP : "OVERLAP" , TOUCH : "TOUCH" , WITHIN : "WITHIN" } ; e . SpatialQueryMode = u ; var p = i . SuperMap . SpatialRelationType = { CONTAIN : "CONTAIN" , INTERSECT : "INTERSECT" , WITHIN : "WITHIN" } ; e . SpatialRelationType = p ; var c = i . SuperMap . MeasureMode = { DISTANCE : "DISTANCE" , AREA : "AREA" } ; e . MeasureMode = c ; var y = 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" } ; e . Unit = y ; var h = i . SuperMap . BufferRadiusUnit = { CENTIMETER : "CENTIMETER" , DECIMETER : "DECIMETER" , FOOT : "FOOT" , INCH : "INCH" , KILOMETER : "KILOMETER" , METER : "METER" , MILE : "MILE" , MILLIMETER : "MILLIMETER" , YARD : "YARD" } ; e . BufferRadiusUnit = h ; var P = i . SuperMap . EngineType = { IMAGEPLUGINS : "IMAGEPLUGINS" , OGC : "OGC" , ORACLEPLUS : "ORACLEPLUS" , SDBPLUS : "SDBPLUS" , SQLPLUS : "SQLPLUS" , UDB : "UDB" } ; e . EngineType = P ; var f = i . SuperMap . ThemeGraphTextFormat = { CAPTION : "CAPTION" , CAPTION _PERCENT : "CAPTION_PERCENT" , CAPTION _VALUE : "CAPTION_VALUE" , PERCENT : "PERCENT" , VALUE : "VALUE" } ; e . ThemeGraphTextFormat = f ; var S = 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" } ; e . ThemeGraphType = S ; var g = i . SuperMap . GraphAxesTextDisplayMode = { ALL : "ALL" , NONE : "NONE" , YAXES : "YAXES" } ; e . GraphAxesTextDisplayMode = g ; var d = i . SuperMap . GraduatedMode = { CONSTANT : "CONSTANT" , LOGARITHM : "LOGARITHM" , SQUAREROOT : "SQUAREROOT" } ; e . GraduatedMode = d ; var M = i . SuperMap . RangeMode = { CUSTOMINTERVAL : "CUSTOMINTERVAL" , EQUALINTERVAL : "EQUALINTERVAL" , LOGARITHM : "LOGARITHM" , QUANTILE : "QUANTILE" , SQUAREROOT : "SQUAREROOT" , STDDEVIATION : "STDDEVIATION" } ; e . RangeMode = M ; var m = i . SuperMap . ThemeType = { DOTDENSITY : "DOTDENSITY" , GRADUATEDSYMBOL : "GRADUATEDSYMBOL" , GRAPH : "GRAPH" , LABEL : "LABEL" , RANGE : "RANGE" , UNIQUE : "UNIQUE" } ; e . ThemeType = m ; var v = 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" } ; e . ColorGradientType = v ; var b = 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" } ; e . TextAlignment = b ; var T = i . SuperMap . FillGradientMode = { NONE : "NONE" , LINEAR : "LINEAR" , RADIAL : "RADIAL" , CONICAL : "CONICAL" , SQUARE : "SQUARE" } ; e . FillGradientMode = T ; var L = 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" } ; e . AlongLineDirection = L ; var A = i . SuperMap . LabelBackShape = { DIAMOND : "DIAMOND" , ELLIPSE : "ELLIPSE" , MARKER : "MARKER" , NONE : "NONE" , RECT : "RECT" , ROUNDRECT : "ROUNDRECT" , TRIANGLE
2023-11-03 13:33:08 +08:00
/ * C o p y r i g h t © 2 0 0 0 - 2 0 1 8 S u p e r M a p S o f t w a r e C o . L t d . A l l r i g h t s r e s e r v e d .
* This program are made available under the terms of the Apache License , Version 2.0
2025-01-21 08:36:33 +08:00
* which accompanies this distribution and is available at http : //www.apache.org/licenses/LICENSE-2.0.html.*/var a=e.SecurityManager=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t)}return i(t,null,[{key:"generateToken",value:function(t,e){var o=this.servers[t];if(o)return r.FetchRequest.post(o.tokenServiceUrl,JSON.stringify(e.toJSON())).then(function(t){return t.text()})}},{key:"registerServers",value:function(t){this.servers=this.servers||{},l.Util.isArray(t)||(t=[t]);for(var e=0;e<t.length;e++){var o=t[e];this.servers[o.server]=o}}},{key:"registerToken",value:function(t,e){if(this.tokens=this.tokens||{},t&&e){var o=this._getTokenStorageKey(t);this.tokens[o]=e}}},{key:"registerKey",value:function(t,e){if(this.keys=this.keys||{},t&&!(t.length<1)&&e){t=l.Util.isArray(t)?t:[t];for(var o=0;o<t.length;o++){var i=this._getUrlRestString(t[0])||t[0];this.keys[i]=e}}}},{key:"getServerInfo",value:function(t){return this.servers=this.servers||{},this.servers[t]}},{key:"getToken",value:function(t){if(t){this.tokens=this.tokens||{};var e=this._getTokenStorageKey(t);return this.tokens[e]}}},{key:"getKey",value:function(t){this.keys=this.keys||{};var e=this._getUrlRestString(t)||t;return this.keys[e]}},{key:"loginiServer",value:function(t,e,o,i){t+="/"===t.substr(t.length-1,1)?"services/security/login.json":"/services/security/login.json";var n={username:e&&e.toString(),password:o&&o.toString(),rememberme:i};n=JSON.stringify(n);return r.FetchRequest.post(t,n,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}).then(function(t){return t.json()})}},{key:"logoutiServer",value:function(t){t+="/"===t.substr(t.length-1,1)?"services/security/logout":"/services/security/logout";return r.FetchRequest.get(t,"",{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withoutFormatSuffix:!0}).then(function(){return!0}).catch(function(){return!1})}},{key:"loginOnline",value:function(e,o){var i=t.SSO+"/login?service="+e;this._open(i,o)}},{key:"loginiPortal",value:function(t,e,o){t+="/"===t.substr(t.length-1,1)?"web/login.json":"/web/login.json";var i={username:e&&e.toString(),password:o&&o.toString()};i=JSON.stringify(i);return r.FetchRequest.post(t,i,{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0}).then(function(t){return t.json()})}},{key:"logoutiPortal",value:function(t){t+="/"===t.substr(t.length-1,1)?"services/security/logout":"/services/security/logout";return r.FetchRequest.get(t,"",{headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"},withCredentials:!0,withoutFormatSuffix:!0}).then(function(){return!0}).catch(function(){return!1})}},{key:"loginManager",value:function(t,e,o){if(l.Util.isInTheSameDomain(t)){var i="/"===t.substr(t.length-1,1)?t+"icloud/security/tokens.json":t+"/icloud/security/tokens.json",n=e||{},a={username:n.userName&&n.userName.toString(),password:n.password&&n.password.toString()};a=JSON.stringify(a);var s=this;return r.FetchRequest.post(i,a,{headers:{Accept:"*/*","Content-Type":"application/json"}}).then(function(t){t.text().then(function(t){return s.imanagerToken=t,t})})}var u=!o||o.isNewTab;this._open(t,u)}},{key:"destroyAllCredentials",value:function(){this.keys=null,this.tokens=null,this.servers=null}},{key:"destroyToken",value:function(t){if(t){var e=this._getTokenStorageKey(t);this.tokens=this.tokens||{},this.tokens[e]&&delete this.tokens[e]}}},{key:"destroyKey",valu
2023-11-03 13:33:08 +08:00
/ * C o p y r i g h t © 2 0 0 0 - 2 0 1 8 S u p e r M a p S o f t w a r e C o . L t d . A l l r i g h t s r e s e r v e d .
* This program are made available under the terms of the Apache License , Version 2.0
2025-01-21 08:36:33 +08:00
* which accompanies this distribution and is available at http : //www.apache.org/licenses/LICENSE-2.0.html.*/var l=e.Credential=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.value=e||"",this.name=o||"token",this.CLASS_NAME="SuperMap.Credential"}return i(t,[{key:"getUrlParameters",value:function(){return this.name+"="+this.value}},{key:"getValue",value:function(){return this.value}},{key:"destroy",value:function(){this.value=null,this.name=null}}]),t}();l.CREDENTIAL=null,n.SuperMap.Credential=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Event=void 0;var i=o(0),n=o(1),l=e.Event=i.SuperMap.Event={observers:!1,KEY_SPACE:32,KEY_BACKSPACE:8,KEY_TAB:9,KEY_RETURN:13,KEY_ESC:27,KEY_LEFT:37,KEY_UP:38,KEY_RIGHT:39,KEY_DOWN:40,KEY_DELETE:46,element:function(t){return t.target||t.srcElement},isSingleTouch:function(t){return t.touches&&1===t.touches.length},isMultiTouch:function(t){return t.touches&&t.touches.length>1},isLeftClick:function(t){return t.which&&1===t.which||t.button&&1===t.button},isRightClick:function(t){return t.which&&3===t.which||t.button&&2===t.button},stop:function(t,e){e||(t.preventDefault?t.preventDefault():t.returnValue=!1),t.stopPropagation?t.stopPropagation():t.cancelBubble=!0},findElement:function(t,e){for(var o=i.SuperMap.Event.element(t);o.parentNode&&(!o.tagName||o.tagName.toUpperCase()!=e.toUpperCase());)o=o.parentNode;return o},observe:function(t,e,o,i){var l=n.Util.getElement(t);if(i=i||!1,"keypress"===e&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||l.attachEvent)&&(e="keydown"),this.observers||(this.observers={}),!l._eventCacheID){var r="eventCacheID_";l.id&&(r=l.id+"_"+r),l._eventCacheID=n.Util.createUniqueID(r)}var a=l._eventCacheID;this.observers[a]||(this.observers[a]=[]),this.observers[a].push({element:l,name:e,observer:o,useCapture:i}),l.addEventListener?l.addEventListener(e,o,i):l.attachEvent&&l.attachEvent("on"+e,o)},stopObservingElement:function(t){var e=n.Util.getElement(t)._eventCacheID;this._removeElementObservers(i.SuperMap.Event.observers[e])},_removeElementObservers:function(t){if(t)for(var e=t.length-1;e>=0;e--){var o=t[e],n=new Array(o.element,o.name,o.observer,o.useCapture);i.SuperMap.Event.stopObserving.apply(this,n)}},stopObserving:function(t,e,o,l){l=l||!1;var r=n.Util.getElement(t),a=r._eventCacheID;"keypress"===e&&(navigator.appVersion.match(/Konqueror|Safari|KHTML/)||r.detachEvent)&&(e="keydown");var s=!1,u=i.SuperMap.Event.observers[a];if(u)for(var p=0;!s&&p<u.length;){var c=u[p];if(c.name===e&&c.observer===o&&c.useCapture===l){u.splice(p,1),0==u.length&&delete i.SuperMap.Event.observers[a],s=!0;break}p++}return s&&(r.removeEventListener?r.removeEventListener(e,o,l):r&&r.detachEvent&&r.detachEvent("on"+e,o)),s},unloadCache:function(){if(i.SuperMap.Event&&i.SuperMap.Event.observers){for(var t in i.SuperMap.Event.observers){var e=i.SuperMap.Event.observers[t];i.SuperMap.Event._removeElementObservers.apply(this,[e])}i.SuperMap.Event.observers=!1}},CLASS_NAME:"SuperMap.Event"};i.SuperMap.Event=l,i.SuperMap.Event.observe(window,"unload",i.SuperMap.Event.unloadCache,!1)},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Pixel=void 0;var i=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t
2023-11-03 13:33:08 +08:00
/ * C o p y r i g h t © 2 0 0 0 - 2 0 1 8 S u p e r M a p S o f t w a r e C o . L t d . A l l r i g h t s r e s e r v e d .
* This program are made available under the terms of the Apache License , Version 2.0
2025-01-21 08:36:33 +08:00
* which accompanies this distribution and is available at http : //www.apache.org/licenses/LICENSE-2.0.html.*/var l=e.Pixel=function(){function t(e,o,i){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.x=e?parseFloat(e):0,this.y=o?parseFloat(o):0,this.mode=i,this.CLASS_NAME="SuperMap.Pixel",n.SuperMap.Pixel.Mode={LeftTop:"lefttop",RightTop:"righttop",RightBottom:"rightbottom",LeftBottom:"leftbottom"}}return i(t,[{key:"toString",value:function(){return"x="+this.x+",y="+this.y}},{key:"clone",value:function(){return new t(this.x,this.y,this.mode)}},{key:"equals",value:function(t){var e=!1;return null!=t&&(e=this.x==t.x&&this.y==t.y||isNaN(this.x)&&isNaN(this.y)&&isNaN(t.x)&&isNaN(t.y)),e}},{key:"distanceTo",value:function(t){return Math.sqrt(Math.pow(this.x-t.x,2)+Math.pow(this.y-t.y,2))}},{key:"add",value:function(e,o){if(null==e||null==o)throw new TypeError("Pixel.add cannot receive null values");return new t(this.x+e,this.y+o)}},{key:"offset",value:function(t){var e=this.clone();return t&&(e=this.add(t.x,t.y)),e}},{key:"destroy",value:function(){this.x=null,this.y=null,this.mode=null}}]),t}();n.SuperMap.Pixel=l},function(t,e,o){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Events=void 0;var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n=function(){function t(t,e){for(var o=0;o<e.length;o++){var i=e[o];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,o,i){return o&&t(e.prototype,o),i&&t(e,i),e}}(),l=o(0),r=o(115),a=o(114),s=o(2),u=o(1);var p=e.Events=function(){function t(e,o,i,n,l){if(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.BROWSER_EVENTS=["mouseover","mouseout","mousedown","mouseup","mousemove","click","dblclick","rightclick","dblrightclick","resize","focus","blur","touchstart","touchmove","touchend","keydown","MSPointerDown","MSPointerUp","pointerdown","pointerup","MSGestureStart","MSGestureChange","MSGestureEnd","contextmenu"],this.listeners={},this.object=e,this.element=null,this.eventTypes=[],this.eventHandler=null,this.fallThrough=n,this.includeXY=!1,this.extensions={},this.extensionCount={},this.clearMouseListener=null,u.Util.extend(this,l),null!=i)for(var r=0,a=i.length;r<a;r++)this.addEventType(i[r]);null!=o&&this.attachToElement(o),this.CLASS_NAME="SuperMap.Events"}return n(t,[{key:"destroy",value:function(){for(var t in this.extensions)"boolean"!=typeof this.extensions[t]&&this.extensions[t].destroy();this.extensions=null,this.element&&(a.Event.stopObservingElement(this.element),this.element.hasScrollEvent&&a.Event.stopObserving(window,"scroll",this.clearMouseListener)),this.element=null,this.listeners=null,this.object=null,this.eventTypes=null,this.fallThrough=null,this.eventHandler=null}},{key:"addEventType",value:function(t){this.listeners[t]||(this.eventTypes.push(t),this.listeners[t]=[])}},{key:"attachToElement",value:function(t){this.element?a.Event.stopObservingElement(this.element):(this.eventHandler=s.FunctionExt.bindAsEventListener(this.handleBrowserEvent,this),this.clearMouseListener=s.FunctionExt.bind(this.clearMouseCache,this)),this.element=t;for(var e=0,o=this.BROWSER_EVENTS.length;e<o;e++){var i=this.BROWSER_EVENTS[e];this.addEventType(i),a.Event.observe(t,i,this.even
2023-11-03 13:33:08 +08:00
/ * C o p y r i g h t © 2 0 0 0 - 2 0 1 8 S u p e r M a p S o f t w a r e C o . L t d . A l l r i g h t s r e s e r v e d .
* This program are made available under the terms of the Apache License , Version 2.0
2025-01-21 08:36:33 +08:00
* which accompanies this distribution and is available at http : //www.apache.org/licenses/LICENSE-2.0.html.*/var h=e.CommonServiceBase=function(){function t(e,o){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t);var i=this;this.EVENT_TYPES=["processCompleted","processFailed"],this.events=null,this.eventListeners=null,this.url=null,this.urls=null,this.proxy=null,this.serverType=null,this.index=null,this.length=null,this.options=null,this.totalTimes=null,this.POLLING_TIMES=3,this._processSuccess=null,this._processFailed=null,this.isInTheSameDomain=null,this.withCredentials=!1,u.Util.isArray(e)?(i.urls=e,i.length=e.length,i.totalTimes=i.length,1===i.length?i.url=e[0]:(i.index=parseInt(Math.random()*i.length),i.url=e[i.index])):(i.totalTimes=1,i.url=e),u.Util.isArray(e)&&!i.isServiceSupportPolling()&&(i.url=e[0],i.totalTimes=1),i.serverType=i.serverType||p.ServerType.ISERVER,o=o||{},u.Util.extend(this,o),i.isInTheSameDomain=u.Util.isInTheSameDomain(i.url),i.events=new r.Events(i,null,i.EVENT_TYPES,!0),i.eventListeners instanceof Object&&i.events.on(i.eventListeners),this.CLASS_NAME="SuperMap.CommonServiceBase"}return i(t,[{key:"destroy",value:function(){var t=this;u.Util.isArray(t.urls)&&(t.urls=null,t.index=null,t.length=null,t.totalTimes=null),t.url=null,t.options=null,t._processSuccess=null,t._processFailed=null,t.isInTheSameDomain=null,t.EVENT_TYPES=null,t.events&&(t.events.destroy(),t.events=null),t.eventListeners&&(t.eventListeners=null)}},{key:"request",value:function(t){var e=this;t.url=t.url||e.url,t.proxy=t.proxy||e.proxy,t.withCredentials=void 0!=t.withCredentials?t.withCredentials:e.withCredentials,t.isInTheSameDomain=e.isInTheSameDomain;var o=this.getCredential(t.url);if(o){var i=t.url.substring(t.url.length-1,t.url.length);t.url.indexOf("?")>-1&&"?"===i?t.url+=o.getUrlParameters():t.url.indexOf("?")>-1&&"?"!==i?t.url+="&"+o.getUrlParameters():t.url+="?"+o.getUrlParameters()}e.calculatePollingTimes(),e._processSuccess=t.success,e._processFailed=t.failure,t.scope=e,t.success=e.getUrlCompleted,t.failure=e.getUrlFailed,e.options=t,e._commit(e.options)}},{key:"getCredential",value:function(t){var e=t,o=void 0,i=void 0;switch(this.serverType){case p.ServerType.IPORTAL:(o=(i=s.SecurityManager.getToken(e))?new a.Credential(i,"token"):null)||(o=(i=s.SecurityManager.getKey(e))?new a.Credential(i,"key"):null);break;case p.ServerType.ONLINE:o=(i=s.SecurityManager.getKey(e))?new a.Credential(i,"key"):null;break;default:o=(i=s.SecurityManager.getToken(e))?new a.Credential(i,"token"):null}return o}},{key:"getUrlCompleted",value:function(t){this._processSuccess(t)}},{key:"getUrlFailed",value:function(t){this.totalTimes>0?(this.totalTimes--,this.ajaxPolling()):this._processFailed(t)}},{key:"ajaxPolling",value:function(){var t=this,e=t.options.url,o=/^http:\/\/([a-z]{9}|(\d+\.){3}\d+):\d{0,4}/;t.index=parseInt(Math.random()*t.length),t.url=t.urls[t.index],e=e.replace(o,o.exec(t.url)[0]),t.options.url=e,t.options.isInTheSameDomain=u.Util.isInTheSameDomain(e),t._commit(t.options)}},{key:"calculatePollingTimes",value:function(){var t=this;t.times?t.totalTimes>t.POLLING_TIMES?t.times>t.POLLING_TIMES?t.totalTimes=t.POLLING_TIMES:t.totalTimes=t.times:t.times<t.totalTimes&&(t.totalTimes=t.times):t.totalTimes>t.POLLING_TIMES&&(t.totalTimes=t.POLLING_TIMES),t.totalTimes--}},{key:"isServiceSupportPolling",value:function(){return!("SuperMap.REST.ThemeService"===this.CLASS_NAME||"SuperMap.REST.EditFeaturesService"===this.CLASS_NAME)}}
2023-11-03 13:33:08 +08:00
/***/ } ) ,
/* 5 */
/***/ ( function ( module , exports , _ _webpack _require _ _ ) {
_ _webpack _require _ _ ( 4 ) ;
_ _webpack _require _ _ ( 1 ) ;
_ _webpack _require _ _ ( 2 ) ;
_ _webpack _require _ _ ( 3 ) ;
_ _webpack _require _ _ ( 0 ) ;
/***/ } )
/******/ ] ) ;