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 = {
404404 'ElasticSearch'
405405 ] ,
406406 leaflet : [
407+ 'KnowledgeGraphService' ,
408+ 'GraphMap' ,
409+ 'FGBLayer' ,
407410 'AddressMatchService' ,
408411 'ChartService' ,
409412 'CommonServiceBase' ,
@@ -491,6 +494,9 @@ var whiteLists = {
491494 'WKTFormat'
492495 ] ,
493496 mapboxgl : [
497+ 'KnowledgeGraphService' ,
498+ 'GraphMap' ,
499+ 'FGBLayer' ,
494500 'AddressMatchService' ,
495501 'ChartService' ,
496502 'CommonServiceBase' ,
@@ -563,9 +569,14 @@ var whiteLists = {
563569 'WKTFormat'
564570 ] ,
565571 maplibregl :[
572+ 'KnowledgeGraphService' ,
573+ 'GraphMap' ,
574+ 'FGBLayer' ,
566575 'L7Layer' ,
567576 ] ,
568577 openlayers : [
578+ 'KnowledgeGraphService' ,
579+ 'GraphMap' ,
569580 'AddressMatchService' ,
570581 'ChartService' ,
571582 'CommonServiceBase' ,
Original file line number Diff line number Diff line change @@ -85,6 +85,7 @@ var typeLinks = {
8585
8686 //maplibregl
8787 "maplibregl.Map" : mlbglapi + '#map' ,
88+ "maplibregl.Evented" : mlbglapi + '#Evented' ,
8889
8990 //mapv
9091 "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 {
160160 let eventListeners = {
161161 scope : this ,
162162 processCompleted : function ( result ) {
163- if ( eventId === result . eventId && callback ) {
163+ if ( eventId === result . result . eventId && callback ) {
164164 delete result . result . eventId ;
165165 callback ( result ) ;
166166 }
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { KnowledgeGraph } from '@supermap/iclient-common/overlay/KnowledgeGraph'
1919 * @param {boolean } [options.crossOrigin] - 是否允许跨域请求。
2020 * @param {Object } [options.headers] - 请求头。
2121 * @fires GraphMap#loaded
22+ * @extends {L.Evented }
2223 * @usage
2324 */
2425export class GraphMap extends L . Evented {
@@ -59,6 +60,10 @@ export class GraphMap extends L.Evented {
5960 this . graph = new KnowledgeGraph ( options && options . config ) ;
6061 this . graph . setData ( result ) ;
6162 this . graph . on ( 'afterrender' , ( ) => {
63+ /**
64+ * @event GraphMap#loaded
65+ * @description 渲染完成时触发。
66+ */
6267 this . fire ( this . EVENT_TYPES [ 0 ] ) ;
6368 } ) ;
6469 }
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ import mapboxgl from 'mapbox-gl';
1717 * @param {boolean } [options.withCredentials=false] - 请求是否携带 cookie。
1818 * @param {boolean } [options.crossOrigin] - 是否允许跨域请求。
1919 * @param {Object } [options.headers] - 请求头。
20- * @fires GraphMap#loaded 渲染完成时触发。
20+ * @fires GraphMap#loaded
21+ * @extends {mapboxgl.Evented }
2122 * @usage
2223 */
2324export class GraphMap extends mapboxgl . Evented {
@@ -55,6 +56,10 @@ export class GraphMap extends mapboxgl.Evented {
5556 this . graph = new KnowledgeGraph ( options && options . config ) ;
5657 this . graph . setData ( result ) ;
5758 this . graph . on ( 'afterrender' , ( ) => {
59+ /**
60+ * @event GraphMap#loaded
61+ * @description 渲染完成时触发。
62+ */
5863 this . fire ( this . EVENT_TYPES [ 0 ] ) ;
5964 } ) ;
6065 }
Original file line number Diff line number Diff line change @@ -17,7 +17,8 @@ import maplibregl from 'maplibre-gl';
1717 * @param {boolean } [options.withCredentials=false] - 请求是否携带 cookie。
1818 * @param {boolean } [options.crossOrigin] - 是否允许跨域请求。
1919 * @param {Object } [options.headers] - 请求头。
20- * @fires GraphMap#loaded 徐冉冉完成时触发。
20+ * @fires GraphMap#loaded
21+ * @extends {maplibregl.Evented }
2122 * @usage
2223 */
2324export class GraphMap extends maplibregl . Evented {
@@ -55,6 +56,10 @@ export class GraphMap extends maplibregl.Evented {
5556 this . graph = new KnowledgeGraph ( options && options . config ) ;
5657 this . graph . setData ( result ) ;
5758 this . graph . on ( 'afterrender' , ( ) => {
59+ /**
60+ * @event GraphMap#loaded
61+ * @description 渲染完成时触发。
62+ */
5863 this . fire ( this . EVENT_TYPES [ 0 ] ) ;
5964 } ) ;
6065 }
Original file line number Diff line number Diff line change @@ -16,7 +16,8 @@ import Observable from 'ol/Observable';
1616 * @param {boolean } [options.withCredentials=false] - 请求是否携带 cookie。
1717 * @param {boolean } [options.crossOrigin] - 是否允许跨域请求。
1818 * @param {Object } [options.headers] - 请求头。
19- * @fires GraphMap#loaded 徐冉冉完成时触发。
19+ * @fires GraphMap#loaded
20+ * @extends {ol.Observable }
2021 * @usage
2122 */
2223export class GraphMap extends Observable {
@@ -55,6 +56,10 @@ export class GraphMap extends Observable {
5556 const result = KnowledgeGraph . dataFromGraphMap ( res . data , res . graphMap . styles . style ) ;
5657 this . graph = new KnowledgeGraph ( options && options . config ) ;
5758 this . graph . on ( 'afterrender' , ( ) => {
59+ /**
60+ * @event GraphMap#loaded
61+ * @description 渲染完成时触发。
62+ */
5863 this . dispatchEvent ( this . EVENT_TYPES [ 0 ] ) ;
5964 } ) ;
6065 this . graph . setData ( result ) ;
You can’t perform that action at this time.
0 commit comments