@@ -43,7 +43,8 @@ import {
4343 `function (feature,latlng) {
4444 return feature.properties['rotate'];
4545 }`
46- * @fires L.supermap.dataFlowLayer#subscribesuccessed
46+ * @fires L.supermap.dataFlowLayer#subscribesucceed
47+ * @fires L.supermap.dataFlowLayer#subscribefaild
4748 * @fires L.supermap.dataFlowLayer#setfilterparamsuccessed
4849 * @fires L.supermap.dataFlowLayer#dataupdated
4950 */
@@ -79,11 +80,17 @@ export var DataFlowLayer = L.LayerGroup.extend({
7980 onAdd : function ( map ) { // eslint-disable-line no-unused-vars
8081 this . dataService . initSubscribe ( ) ;
8182 /**
82- * @event L.supermap.dataFlowLayer#subscribesuccessed
83+ * @event L.supermap.dataFlowLayer#subscribesucceed
8384 * @description 初始化成功后触发。
8485 * @property {Object } e - 事件对象。
8586 */
86- this . dataService . on ( 'subscribeSocketConnected' , ( e ) => this . fire ( "subscribesuccessed" , e ) ) ;
87+ this . dataService . on ( 'subscribeSocketConnected' , ( e ) => this . fire ( "subscribesucceed" , e ) ) ;
88+ /**
89+ * @event L.supermap.dataFlowLayer#subscribefaild
90+ * @description 初始化失败后触发。
91+ * @property {Object } e - 事件对象。
92+ */
93+ this . dataService . on ( 'subscribeSocketError' , ( e ) => this . fire ( "subscribefaild" , e ) )
8794 this . dataService . on ( 'messageSuccessed' , ( msg ) => this . _onMessageSuccessed ( msg ) ) ;
8895 /**
8996 * @event L.supermap.dataFlowLayer#setfilterparamsuccessed
0 commit comments