File tree Expand file tree Collapse file tree
containers/workspace/components/FunctionToolbar Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,4 +130,15 @@ export default {
130130 layerIndex : 0 ,
131131 mapName : 'SuperMapCloud' ,
132132 } ,
133+ TrafficMap : {
134+ type : 'Datasource' ,
135+ DSParams : {
136+ server :
137+ 'https://www.supermapol.com/iserver/services/traffic/rest/maps/tencent' ,
138+ engineType : 225 ,
139+ alias : 'TrafficMap' ,
140+ } ,
141+ layerIndex : 0 ,
142+ mapName : 'TrafficMap' ,
143+ } ,
133144}
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ import PropTypes from 'prop-types'
2121import constants from '../../constants'
2222import ToolbarBtnType from '../ToolBar/ToolbarBtnType'
2323import { Bar } from 'react-native-progress'
24+ import ConstOnline from '../../../../constants/ConstOnline'
2425
2526const COLLECTION = 'COLLECTION'
2627const NETWORK = 'NETWORK'
@@ -603,7 +604,7 @@ export default class FunctionToolbar extends React.Component {
603604
604605 openTraffic = async ( ) => {
605606 if ( ! GLOBAL . NAVIGATIONMAPOPEN ) {
606- await SMap . openTrafficMap ( )
607+ await SMap . openDatasource ( ConstOnline . TrafficMap . DSParams , 0 , true )
607608 } else {
608609 Toast . show ( '请使用在线导航功能' )
609610 }
You can’t perform that action at this time.
0 commit comments