@@ -25,8 +25,8 @@ export default {
2525 config: Config,
2626 polygon: null ,
2727 polygonResult: [],
28+ polygonResultAll: null ,
2829 polygonResultStart: null ,
29- polygonResultIntersect: null ,
3030 polygonResultEnd: null ,
3131 polygonResultLoaded: false ,
3232 polygonTool: null ,
@@ -65,8 +65,8 @@ export default {
6565 if (e .layerType !== ' polygon' ) return ;
6666
6767 this .polygonResult = [];
68+ this .polygonResultAll = null ;
6869 this .polygonResultStart = null ;
69- this .polygonResultIntersect = null ;
7070 this .polygonResultEnd = null ;
7171 this .mapLayer .clearLayers ();
7272 this .mapLayer .addLayer (e .layer );
@@ -82,17 +82,17 @@ export default {
8282 this .mapLayer .on (' click' , () => {
8383 this .polygon = null ;
8484 this .polygonResult = [];
85+ this .polygonResultAll = null ;
8586 this .polygonResultStart = null ;
86- this .polygonResultIntersect = null ;
8787 this .polygonResultEnd = null ;
8888 this .mapLayer .clearLayers ();
8989 this .polygonTool .enable ();
9090 });
9191 },
9292 loadRides () {
9393 let modes = [];
94- if (this .subViewMode & 1 << 0 && this .polygonResultStart === null ) modes .push (" containsStart " );
95- if (this .subViewMode & 1 << 1 && this .polygonResultIntersect === null ) modes .push (" contains " );
94+ if (this .subViewMode & 1 << 0 && this .polygonResultAll === null ) modes .push (" contains " );
95+ if (this .subViewMode & 1 << 1 && this .polygonResultStart === null ) modes .push (" containsStart " );
9696 if (this .subViewMode & 1 << 2 && this .polygonResultEnd === null ) modes .push (" containsEnd" );
9797
9898 if (modes .length > 0 ) this .apiWorker .postMessage ([" polygon" , this .polygon , modes]);
@@ -103,8 +103,8 @@ export default {
103103 this .$emit (' on-progress' , message .data [1 ], message .data [2 ])
104104 break ;
105105 case " polygon" :
106+ if (message .data [2 ] === " contains" ) this .polygonResultAll = message .data [1 ];
106107 if (message .data [2 ] === " containsStart" ) this .polygonResultStart = message .data [1 ];
107- if (message .data [2 ] === " contains" ) this .polygonResultIntersect = message .data [1 ];
108108 if (message .data [2 ] === " containsEnd" ) this .polygonResultEnd = message .data [1 ];
109109 this .mergeResults ();
110110 break ;
@@ -127,8 +127,8 @@ export default {
127127 }
128128 }
129129
130- iterationFn (1 << 0 , this .polygonResultStart );
131- iterationFn (1 << 1 , this .polygonResultIntersect );
130+ iterationFn (1 << 0 , this .polygonResultAll );
131+ iterationFn (1 << 1 , this .polygonResultStart );
132132 iterationFn (1 << 2 , this .polygonResultEnd );
133133
134134 this .polygonResult = {
0 commit comments