File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed
web-ui/src/main/resources/catalog/components/common/savedselections Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change 5959 label : "addToMap" ,
6060 filterFn : function ( record ) {
6161 var md = new Metadata ( record ) ;
62- const linkTypes = [
62+ var linkTypes = [
6363 "OGC:WMS" ,
6464 "ESRI REST: Map Service" ,
6565 "ESRI REST: Map Server"
6666 ] ;
6767 // returns true as soon as any type has ≥1 link
68- return linkTypes . some ( type => md . getLinksByType ( type ) . length > 0 ) ;
68+ return linkTypes . some ( function ( type ) {
69+ return md . getLinksByType ( type ) . length > 0 ;
70+ } ) ;
6971 } ,
7072 fn : function ( uuids , records ) {
7173 for ( var i = 0 ; i < uuids . length ; i ++ ) {
102104 } ) ;
103105 } ) ;
104106
105- const esriLinks = [
106- ...md . getLinksByType ( "ESRI REST: Map Server" ) ,
107- ...md . getLinksByType ( "ESRI REST: Map Service" )
108- ] ;
107+ var esriLinks = md
108+ . getLinksByType ( "ESRI REST: Map Server" )
109+ . concat ( md . getLinksByType ( "ESRI REST: Map Service" ) ) ;
109110
110111 angular . forEach ( esriLinks , function ( link ) {
111112 if ( gnMap . isLayerInMap ( viewerMap , link . name , link . url ) ) {
119120 gnMap . feedLayerWithRelated ( layer , link . group ) ;
120121 }
121122 } ) ;
122-
123123 } ) ;
124-
125124 }
126125 } ,
127126 icon : "fa-globe"
You can’t perform that action at this time.
0 commit comments