@@ -17,7 +17,7 @@ const INTERNET_MAP_BOUNDS = {
1717 BING : [ - 180 , - 90 , 180 , 90 ]
1818}
1919
20- export function createWebMapV2Extending ( SuperClass , { MapManager, mapRepo } ) {
20+ export function createWebMapV2Extending ( SuperClass , { MapManager, mapRepo, DataFlowService , GraticuleLayer } ) {
2121 return class WebMapV2 extends SuperClass {
2222 constructor (
2323 id ,
@@ -537,7 +537,7 @@ export function createWebMapV2Extending(SuperClass, { MapManager, mapRepo }) {
537537
538538 _initGraticuleLayer ( graticuleInfo ) {
539539 const options = this . _createGraticuleOptions ( graticuleInfo ) ;
540- const graticuleLayer = new mapRepo . supermap . GraticuleLayer ( options ) ;
540+ const graticuleLayer = new GraticuleLayer ( options ) ;
541541 this . _setGraticuleDash ( options . strokeStyle , graticuleLayer ) ;
542542 this . _graticuleLayer = graticuleLayer ;
543543 this . map . addLayer ( graticuleLayer ) ;
@@ -950,7 +950,7 @@ export function createWebMapV2Extending(SuperClass, { MapManager, mapRepo }) {
950950 }
951951
952952 _createDataflowLayer ( layerInfo ) {
953- const dataflowService = new mapRepo . supermap . DataFlowService ( layerInfo . wsUrl ) . initSubscribe ( ) ;
953+ const dataflowService = new DataFlowService ( layerInfo . wsUrl ) . initSubscribe ( ) ;
954954 this . _handleDataflowFeaturesCallback = this . _handleDataflowFeatures . bind ( this , layerInfo ) ;
955955 this . _initDataflowLayerCallback = this . _initDataflowLayer . bind ( this , layerInfo ) ;
956956 dataflowService . on ( 'subscribesucceeded' , this . _initDataflowLayerCallback ) ;
@@ -2179,10 +2179,10 @@ export function createWebMapV2Extending(SuperClass, { MapManager, mapRepo }) {
21792179 layerOption . gradient . forEach ( ( item , index ) => {
21802180 color . push ( step [ index ] ) ;
21812181 if ( index === 0 ) {
2182- item = mapRepo . supermap . Util . hexToRgba ( item , 0 ) ;
2182+ item = Util . hexToRgba ( item , 0 ) ;
21832183 }
21842184 if ( index === 1 ) {
2185- item = mapRepo . supermap . Util . hexToRgba ( item , 0.5 ) ;
2185+ item = Util . hexToRgba ( item , 0.5 ) ;
21862186 }
21872187 color . push ( item ) ;
21882188 } ) ;
0 commit comments