@ -1,5 +1,4 @@
var $jscomp = $jscomp || { } ; $jscomp . scope = { } ; $jscomp . ASSUME _ES5 = ! 1 ; $jscomp . ASSUME _NO _NATIVE _MAP = ! 1 ; $jscomp . ASSUME _NO _NATIVE _SET = ! 1 ; $jscomp . SIMPLE _FROUND _POLYFILL = ! 1 ; $jscomp . defineProperty = $jscomp . ASSUME _ES5 || "function" == typeof Object . defineProperties ? Object . defineProperty : function ( a , b , c ) { a != Array . prototype && a != Object . prototype && ( a [ b ] = c . value ) } ;
var $jscomp = $jscomp || { } ; $jscomp . scope = { } ; $jscomp . ASSUME _ES5 = ! 1 ; $jscomp . ASSUME _NO _NATIVE _MAP = ! 1 ; $jscomp . ASSUME _NO _NATIVE _SET = ! 1 ; $jscomp . SIMPLE _FROUND _POLYFILL = ! 1 ; $jscomp . defineProperty = $jscomp . ASSUME _ES5 || "function" == typeof Object . defineProperties ? Object . defineProperty : function ( a , b , c ) { a != Array . prototype && a != Object . prototype && ( a [ b ] = c . value ) } ; $jscomp . getGlobal = function ( a ) { return "undefined" != typeof window && window === a ? a : "undefined" != typeof global && null != global ? global : a } ; $jscomp . global = $jscomp . getGlobal ( this ) ;
$jscomp . getGlobal = function ( a ) { a = [ "object" == typeof window && window , "object" == typeof self && self , "object" == typeof global && global , a ] ; for ( var b = 0 ; b < a . length ; ++ b ) { var c = a [ b ] ; if ( c && c . Math == Math ) return c } throw Error ( "Cannot find global object" ) ; } ; $jscomp . global = $jscomp . getGlobal ( this ) ;
$jscomp . polyfill = function ( a , b , c , d ) { if ( b ) { c = $jscomp . global ; a = a . split ( "." ) ; for ( d = 0 ; d < a . length - 1 ; d ++ ) { var e = a [ d ] ; e in c || ( c [ e ] = { } ) ; c = c [ e ] } a = a [ a . length - 1 ] ; d = c [ a ] ; b = b ( d ) ; b != d && null != b && $jscomp . defineProperty ( c , a , { configurable : ! 0 , writable : ! 0 , value : b } ) } } ; $jscomp . polyfill ( "Number.parseFloat" , function ( a ) { return a || parseFloat } , "es6" , "es3" ) ; $jscomp . polyfill ( "Number.parseInt" , function ( a ) { return a || parseInt } , "es6" , "es3" ) ;
$jscomp . polyfill = function ( a , b , c , d ) { if ( b ) { c = $jscomp . global ; a = a . split ( "." ) ; for ( d = 0 ; d < a . length - 1 ; d ++ ) { var e = a [ d ] ; e in c || ( c [ e ] = { } ) ; c = c [ e ] } a = a [ a . length - 1 ] ; d = c [ a ] ; b = b ( d ) ; b != d && null != b && $jscomp . defineProperty ( c , a , { configurable : ! 0 , writable : ! 0 , value : b } ) } } ; $jscomp . polyfill ( "Number.parseFloat" , function ( a ) { return a || parseFloat } , "es6" , "es3" ) ; $jscomp . polyfill ( "Number.parseInt" , function ( a ) { return a || parseInt } , "es6" , "es3" ) ;
$jscomp . polyfill ( "Array.prototype.fill" , function ( a ) { return a ? a : function ( a , c , d ) { var b = this . length || 0 ; 0 > c && ( c = Math . max ( 0 , b + c ) ) ; if ( null == d || d > b ) d = b ; d = Number ( d ) ; 0 > d && ( d = Math . max ( 0 , b + d ) ) ; for ( c = Number ( c || 0 ) ; c < d ; c ++ ) this [ c ] = a ; return this } } , "es6" , "es3" ) ; $jscomp . arrayIteratorImpl = function ( a ) { var b = 0 ; return function ( ) { return b < a . length ? { done : ! 1 , value : a [ b ++ ] } : { done : ! 0 } } } ; $jscomp . arrayIterator = function ( a ) { return { next : $jscomp . arrayIteratorImpl ( a ) } } ; $jscomp . SYMBOL _PREFIX = "jscomp_symbol_" ;
$jscomp . polyfill ( "Array.prototype.fill" , function ( a ) { return a ? a : function ( a , c , d ) { var b = this . length || 0 ; 0 > c && ( c = Math . max ( 0 , b + c ) ) ; if ( null == d || d > b ) d = b ; d = Number ( d ) ; 0 > d && ( d = Math . max ( 0 , b + d ) ) ; for ( c = Number ( c || 0 ) ; c < d ; c ++ ) this [ c ] = a ; return this } } , "es6" , "es3" ) ; $jscomp . arrayIteratorImpl = function ( a ) { var b = 0 ; return function ( ) { return b < a . length ? { done : ! 1 , value : a [ b ++ ] } : { done : ! 0 } } } ; $jscomp . arrayIterator = function ( a ) { return { next : $jscomp . arrayIteratorImpl ( a ) } } ; $jscomp . SYMBOL _PREFIX = "jscomp_symbol_" ;
$jscomp . initSymbol = function ( ) { $jscomp . initSymbol = function ( ) { } ; $jscomp . global . Symbol || ( $jscomp . global . Symbol = $jscomp . Symbol ) } ; $jscomp . SymbolClass = function ( a , b ) { this . $jscomp$symbol$id _ = a ; $jscomp . defineProperty ( this , "description" , { configurable : ! 0 , writable : ! 0 , value : b } ) } ; $jscomp . SymbolClass . prototype . toString = function ( ) { return this . $jscomp$symbol$id _ } ;
$jscomp . initSymbol = function ( ) { $jscomp . initSymbol = function ( ) { } ; $jscomp . global . Symbol || ( $jscomp . global . Symbol = $jscomp . Symbol ) } ; $jscomp . SymbolClass = function ( a , b ) { this . $jscomp$symbol$id _ = a ; $jscomp . defineProperty ( this , "description" , { configurable : ! 0 , writable : ! 0 , value : b } ) } ; $jscomp . SymbolClass . prototype . toString = function ( ) { return this . $jscomp$symbol$id _ } ;
@ -152,7 +151,7 @@ netgis.MapOpenLayers.prototype.onLayerShow=function(a){if(a=this.layers[a.id])th
netgis . MapOpenLayers . prototype . onContextUpdate = function ( a ) { this . clearAll ( ) ; if ( a = a . bbox ) { if ( netgis . util . isDefined ( this . client . config . map ) && netgis . util . isDefined ( this . client . config . map . projection ) ) { var b = ol . proj . fromLonLat ( [ a [ 0 ] , a [ 1 ] ] , this . client . config . map . projection ) ; var c = ol . proj . fromLonLat ( [ a [ 2 ] , a [ 3 ] ] , this . client . config . map . projection ) } else b = ol . proj . fromLonLat ( [ a [ 0 ] , a [ 1 ] ] ) , c = ol . proj . fromLonLat ( [ a [ 2 ] , a [ 3 ] ] ) ; a [ 0 ] = b [ 0 ] ; a [ 1 ] = b [ 1 ] ; a [ 2 ] = c [ 0 ] ; a [ 3 ] = c [ 1 ] ; this . view . fit ( a ) } } ;
netgis . MapOpenLayers . prototype . onContextUpdate = function ( a ) { this . clearAll ( ) ; if ( a = a . bbox ) { if ( netgis . util . isDefined ( this . client . config . map ) && netgis . util . isDefined ( this . client . config . map . projection ) ) { var b = ol . proj . fromLonLat ( [ a [ 0 ] , a [ 1 ] ] , this . client . config . map . projection ) ; var c = ol . proj . fromLonLat ( [ a [ 2 ] , a [ 3 ] ] , this . client . config . map . projection ) } else b = ol . proj . fromLonLat ( [ a [ 0 ] , a [ 1 ] ] ) , c = ol . proj . fromLonLat ( [ a [ 2 ] , a [ 3 ] ] ) ; a [ 0 ] = b [ 0 ] ; a [ 1 ] = b [ 1 ] ; a [ 2 ] = c [ 0 ] ; a [ 3 ] = c [ 1 ] ; this . view . fit ( a ) } } ;
netgis . MapOpenLayers . prototype . onAddServiceWMS = function ( a ) { var b = this . createLayerWMS ( a . url , a . name , a . format ) ; b . setZIndex ( a . id ) ; this . layers [ a . id ] = b } ; netgis . MapOpenLayers . prototype . onAddServiceWFS = function ( a ) { var b = this . createLayerWFS ( a . url , a . name , this . client . config . map . projection , a . format ) ; b . setZIndex ( a . id ) ; this . layers [ a . id ] = b } ; netgis . MapOpenLayers . prototype . onSetMode = function ( a ) { this . setMode ( a ) } ;
netgis . MapOpenLayers . prototype . onAddServiceWMS = function ( a ) { var b = this . createLayerWMS ( a . url , a . name , a . format ) ; b . setZIndex ( a . id ) ; this . layers [ a . id ] = b } ; netgis . MapOpenLayers . prototype . onAddServiceWFS = function ( a ) { var b = this . createLayerWFS ( a . url , a . name , this . client . config . map . projection , a . format ) ; b . setZIndex ( a . id ) ; this . layers [ a . id ] = b } ; netgis . MapOpenLayers . prototype . onSetMode = function ( a ) { this . setMode ( a ) } ;
netgis . MapOpenLayers . prototype . onSetExtent = function ( a ) { var b = ol . proj . fromLonLat ( [ a . minx , a . miny ] , this . client . config . map . projection ) ; a = ol . proj . fromLonLat ( [ a . maxx , a . maxy ] , this . client . config . map . projection ) ; this . view . fit ( [ b [ 0 ] , b [ 1 ] , a [ 0 ] , a [ 1 ] ] ) } ; netgis . MapOpenLayers . prototype . onChangeZoom = function ( a ) { this . view . animate ( { zoom : this . view . getZoom ( ) + a , duration : 200 } ) } ; netgis . MapOpenLayers . prototype . onZoomWKT = function ( a ) { a = ( new ol . format . WKT ) . readGeometry ( a ) ; this . view . fit ( a , { duration : 300 , padding : [ 40 , 40 , 40 , 40 ] } ) } ;
netgis . MapOpenLayers . prototype . onSetExtent = function ( a ) { var b = ol . proj . fromLonLat ( [ a . minx , a . miny ] , this . client . config . map . projection ) ; a = ol . proj . fromLonLat ( [ a . maxx , a . maxy ] , this . client . config . map . projection ) ; this . view . fit ( [ b [ 0 ] , b [ 1 ] , a [ 0 ] , a [ 1 ] ] ) } ; netgis . MapOpenLayers . prototype . onChangeZoom = function ( a ) { this . view . animate ( { zoom : this . view . getZoom ( ) + a , duration : 200 } ) } ; netgis . MapOpenLayers . prototype . onZoomWKT = function ( a ) { a = ( new ol . format . WKT ) . readGeometry ( a ) ; this . view . fit ( a , { duration : 300 , padding : [ 40 , 40 , 40 , 40 ] } ) } ;
netgis . MapOpenLayers . prototype . onPointerMove = function ( a ) { var b = a . pixel ; a = a . coordinate ; var c = null , d = null ; this . map . forEachFeatureAtPixel ( b , function ( a , b ) { if ( b ) { if ( - 1 !== b . get ( "id" ) . search ( "import-" ) ) return ! 1 ; c = a ; d = b ; return ! 0 } } ) ; switch ( this . mode ) { default : return ! 0 ; case netgis . Modes . PARCEL _SELECT : case netgis . Modes . DELETE _FEATURES : case netgis . Modes . CUT _FEATURE _BEGIN : case netgis . Modes . BUFFER _FEATURE _BEGIN : break ; case netgis . Modes . DRAW _POINTS : case netgis . Modes . DRAW _LINES : return this . updateDrawBufferPreview ( ) ,
netgis . MapOpenLayers . prototype . onPointerMove = function ( a ) { var b = a . pixel ; a = a . coordinate ; var c = null , d = null ; this . map . forEachFeatureAtPixel ( b , function ( a , b ) { if ( b ) { if ( b . get ( "id" ) && netgis . util . isString ( b . get ( "id" ) ) && - 1 !== b . get ( "id" ) . search ( "import-" ) ) return ! 1 ; c = a ; d = b ; return ! 0 } } ) ; switch ( this . mode ) { default : return ! 0 ; case netgis . Modes . PARCEL _SELECT : case netgis . Modes . DELETE _FEATURES : case netgis . Modes . CUT _FEATURE _BEGIN : case netgis . Modes . BUFFER _FEATURE _BEGIN : break ; case netgis . Modes . DRAW _POINTS : case netgis . Modes . DRAW _LINES : return this . updateDrawBufferPreview ( ) ,
! 0 } c !== this . hoverFeature && ( this . hoverFeature && this . featureLeave ( this . hoverFeature , this . hoverLayer , b , a ) , c && this . featureEnter ( c , d , b , a ) , this . redrawVectorLayers ( ) , this . hoverFeature = c , this . hoverLayer = d ) ; c && this . featureHover ( c , d , b , a ) } ; netgis . MapOpenLayers . prototype . onPointerLeave = function ( a ) { this . hoverFeature && ( this . featureLeave ( this . hoverFeature , this . hoverLayer , [ a . offsetX , a . offsetY ] , null ) , this . hoverLayer = this . hoverFeature = null ) } ;
! 0 } c !== this . hoverFeature && ( this . hoverFeature && this . featureLeave ( this . hoverFeature , this . hoverLayer , b , a ) , c && this . featureEnter ( c , d , b , a ) , this . redrawVectorLayers ( ) , this . hoverFeature = c , this . hoverLayer = d ) ; c && this . featureHover ( c , d , b , a ) } ; netgis . MapOpenLayers . prototype . onPointerLeave = function ( a ) { this . hoverFeature && ( this . featureLeave ( this . hoverFeature , this . hoverLayer , [ a . offsetX , a . offsetY ] , null ) , this . hoverLayer = this . hoverFeature = null ) } ;
netgis . MapOpenLayers . prototype . featureEnter = function ( a , b , c , d ) { b && ( this . container . classList . add ( "netgis-clickable" ) , b . get ( "id" ) !== netgis . Client . Layers . EDIT _LAYER && - 1 === b . get ( "id" ) . search ( "import-" ) && a . setStyle ( this . hoverStyle ) , netgis . util . invoke ( this . container , netgis . Events . MAP _FEATURE _ENTER , { pixel : c , coords : d , layer : b . get ( "id" ) , properties : a . getProperties ( ) } ) ) } ; netgis . MapOpenLayers . prototype . featureHover = function ( a , b , c , d ) { } ;
netgis . MapOpenLayers . prototype . featureEnter = function ( a , b , c , d ) { b && ( this . container . classList . add ( "netgis-clickable" ) , b . get ( "id" ) !== netgis . Client . Layers . EDIT _LAYER && - 1 === b . get ( "id" ) . search ( "import-" ) && a . setStyle ( this . hoverStyle ) , netgis . util . invoke ( this . container , netgis . Events . MAP _FEATURE _ENTER , { pixel : c , coords : d , layer : b . get ( "id" ) , properties : a . getProperties ( ) } ) ) } ; netgis . MapOpenLayers . prototype . featureHover = function ( a , b , c , d ) { } ;
netgis . MapOpenLayers . prototype . featureLeave = function ( a , b , c , d ) { b && ( this . container . classList . remove ( "netgis-clickable" ) , b . get ( "id" ) !== netgis . Client . Layers . EDIT _LAYER && a . setStyle ( null ) , netgis . util . invoke ( this . container , netgis . Events . MAP _FEATURE _LEAVE , { pixel : c , coords : d , layer : b . get ( "id" ) , properties : a . getProperties ( ) } ) ) } ; netgis . MapOpenLayers . prototype . findFeature = function ( a , b , c ) { if ( a = this . activeLayers [ a ] ) { a = a . getSource ( ) . getFeatures ( ) ; for ( var d = null , e = 0 ; e < a . length ; e ++ ) { var f = a [ e ] ; if ( f . get ( b ) === c ) { d = f ; break } } return d } } ;
netgis . MapOpenLayers . prototype . featureLeave = function ( a , b , c , d ) { b && ( this . container . classList . remove ( "netgis-clickable" ) , b . get ( "id" ) !== netgis . Client . Layers . EDIT _LAYER && a . setStyle ( null ) , netgis . util . invoke ( this . container , netgis . Events . MAP _FEATURE _LEAVE , { pixel : c , coords : d , layer : b . get ( "id" ) , properties : a . getProperties ( ) } ) ) } ; netgis . MapOpenLayers . prototype . findFeature = function ( a , b , c ) { if ( a = this . activeLayers [ a ] ) { a = a . getSource ( ) . getFeatures ( ) ; for ( var d = null , e = 0 ; e < a . length ; e ++ ) { var f = a [ e ] ; if ( f . get ( b ) === c ) { d = f ; break } } return d } } ;