File tree Expand file tree Collapse file tree 7 files changed +36
-4
lines changed Expand file tree Collapse file tree 7 files changed +36
-4
lines changed Original file line number Diff line number Diff line change @@ -404,6 +404,9 @@ var whiteLists = {
404
404
'ElasticSearch'
405
405
] ,
406
406
leaflet : [
407
+ 'KnowledgeGraphService' ,
408
+ 'GraphMap' ,
409
+ 'FGBLayer' ,
407
410
'AddressMatchService' ,
408
411
'ChartService' ,
409
412
'CommonServiceBase' ,
@@ -491,6 +494,9 @@ var whiteLists = {
491
494
'WKTFormat'
492
495
] ,
493
496
mapboxgl : [
497
+ 'KnowledgeGraphService' ,
498
+ 'GraphMap' ,
499
+ 'FGBLayer' ,
494
500
'AddressMatchService' ,
495
501
'ChartService' ,
496
502
'CommonServiceBase' ,
@@ -563,9 +569,14 @@ var whiteLists = {
563
569
'WKTFormat'
564
570
] ,
565
571
maplibregl :[
572
+ 'KnowledgeGraphService' ,
573
+ 'GraphMap' ,
574
+ 'FGBLayer' ,
566
575
'L7Layer' ,
567
576
] ,
568
577
openlayers : [
578
+ 'KnowledgeGraphService' ,
579
+ 'GraphMap' ,
569
580
'AddressMatchService' ,
570
581
'ChartService' ,
571
582
'CommonServiceBase' ,
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ var typeLinks = {
85
85
86
86
//maplibregl
87
87
"maplibregl.Map" : mlbglapi + '#map' ,
88
+ "maplibregl.Evented" : mlbglapi + '#Evented' ,
88
89
89
90
//mapv
90
91
"Mapv.DataSet" : mapv + 'data/DataSet.md' ,
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ export class GeoprocessingService extends CommonServiceBase {
160
160
let eventListeners = {
161
161
scope : this ,
162
162
processCompleted : function ( result ) {
163
- if ( eventId === result . eventId && callback ) {
163
+ if ( eventId === result . result . eventId && callback ) {
164
164
delete result . result . eventId ;
165
165
callback ( result ) ;
166
166
}
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { KnowledgeGraph } from '@supermap/iclient-common/overlay/KnowledgeGraph'
19
19
* @param {boolean } [options.crossOrigin] - 是否允许跨域请求。
20
20
* @param {Object } [options.headers] - 请求头。
21
21
* @fires GraphMap#loaded
22
+ * @extends {L.Evented }
22
23
* @usage
23
24
*/
24
25
export class GraphMap extends L . Evented {
@@ -59,6 +60,10 @@ export class GraphMap extends L.Evented {
59
60
this . graph = new KnowledgeGraph ( options && options . config ) ;
60
61
this . graph . setData ( result ) ;
61
62
this . graph . on ( 'afterrender' , ( ) => {
63
+ /**
64
+ * @event GraphMap#loaded
65
+ * @description 渲染完成时触发。
66
+ */
62
67
this . fire ( this . EVENT_TYPES [ 0 ] ) ;
63
68
} ) ;
64
69
}
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ import mapboxgl from 'mapbox-gl';
17
17
* @param {boolean } [options.withCredentials=false] - 请求是否携带 cookie。
18
18
* @param {boolean } [options.crossOrigin] - 是否允许跨域请求。
19
19
* @param {Object } [options.headers] - 请求头。
20
- * @fires GraphMap#loaded 渲染完成时触发。
20
+ * @fires GraphMap#loaded
21
+ * @extends {mapboxgl.Evented }
21
22
* @usage
22
23
*/
23
24
export class GraphMap extends mapboxgl . Evented {
@@ -55,6 +56,10 @@ export class GraphMap extends mapboxgl.Evented {
55
56
this . graph = new KnowledgeGraph ( options && options . config ) ;
56
57
this . graph . setData ( result ) ;
57
58
this . graph . on ( 'afterrender' , ( ) => {
59
+ /**
60
+ * @event GraphMap#loaded
61
+ * @description 渲染完成时触发。
62
+ */
58
63
this . fire ( this . EVENT_TYPES [ 0 ] ) ;
59
64
} ) ;
60
65
}
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ import maplibregl from 'maplibre-gl';
17
17
* @param {boolean } [options.withCredentials=false] - 请求是否携带 cookie。
18
18
* @param {boolean } [options.crossOrigin] - 是否允许跨域请求。
19
19
* @param {Object } [options.headers] - 请求头。
20
- * @fires GraphMap#loaded 徐冉冉完成时触发。
20
+ * @fires GraphMap#loaded
21
+ * @extends {maplibregl.Evented }
21
22
* @usage
22
23
*/
23
24
export class GraphMap extends maplibregl . Evented {
@@ -55,6 +56,10 @@ export class GraphMap extends maplibregl.Evented {
55
56
this . graph = new KnowledgeGraph ( options && options . config ) ;
56
57
this . graph . setData ( result ) ;
57
58
this . graph . on ( 'afterrender' , ( ) => {
59
+ /**
60
+ * @event GraphMap#loaded
61
+ * @description 渲染完成时触发。
62
+ */
58
63
this . fire ( this . EVENT_TYPES [ 0 ] ) ;
59
64
} ) ;
60
65
}
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ import Observable from 'ol/Observable';
16
16
* @param {boolean } [options.withCredentials=false] - 请求是否携带 cookie。
17
17
* @param {boolean } [options.crossOrigin] - 是否允许跨域请求。
18
18
* @param {Object } [options.headers] - 请求头。
19
- * @fires GraphMap#loaded 徐冉冉完成时触发。
19
+ * @fires GraphMap#loaded
20
+ * @extends {ol.Observable }
20
21
* @usage
21
22
*/
22
23
export class GraphMap extends Observable {
@@ -55,6 +56,10 @@ export class GraphMap extends Observable {
55
56
const result = KnowledgeGraph . dataFromGraphMap ( res . data , res . graphMap . styles . style ) ;
56
57
this . graph = new KnowledgeGraph ( options && options . config ) ;
57
58
this . graph . on ( 'afterrender' , ( ) => {
59
+ /**
60
+ * @event GraphMap#loaded
61
+ * @description 渲染完成时触发。
62
+ */
58
63
this . dispatchEvent ( this . EVENT_TYPES [ 0 ] ) ;
59
64
} ) ;
60
65
this . graph . setData ( result ) ;
You can’t perform that action at this time.
0 commit comments