hahatiantang opened a new issue #11923: ie9使用bmap导致地图无法加载
URL: https://github.com/apache/incubator-echarts/issues/11923
 
 
   ### Version
   4.2.1
   ### Steps to reproduce
   ie9  使用echarts ,加载地图  提示“无法获取未定义或 null 
引用的属性“add”"”,定位源码,到BMapCoordSys.js文件206行中存在兼容问题,希望紧急解决
   ```
     bmapRoot.classList.add('ec-extension-bmap');
   ```
   下面是我的options
   
   ```
   const mapOption = {
     'tooltip': {
       'trigger': 'item',
       'transitionDuration': 0,
       'show': true,
       // alwaysShowContent:true,   //鼠标离开区域不消失
       formatter: function(params) {
         var html = '<div class="point-tips"  data-guild="' + params.value[4] + 
'">';
         html +=
           '<h2>' + params.name + '</h2>';
         html +=
           '<p><span class="fr people-number">' + params.value[2] + 
'</span><span>用户数</span></p>' +
           '<p><span class="fr active-rate">' + params.value[3] + 
'</span><span>学业水平评价次数</span></p>' +
           '</div>';
         return html;
       },
       'triggerOn': 'none',
       'textStyle': {
         'fontSize': 10,
       },
     },
     'animation': false,
     'bmap': {
       'center': [117.30, 31.87],
       'zoom': 12,
       'roam': false,
       'enableMapClick': false,
       'mapStyle': {
         'styleJson': [
           {
             'featureType': 'land',
             'elementType': 'geometry',
             'stylers': {
               'color': '#ffffff',
             },
           }, {
             'featureType': 'subway',
             'elementType': 'geometry.fill',
             'stylers': {
               'color': '#f4f4f6',
             },
           },
           {
             'featureType': 'building',
             'elementType': 'geometry',
             'stylers': {
               'color': '#f4f4f6',
             },
           },
           {
             'featureType': 'building',
             'elementType': 'labels',
             'stylers': {
               'visibility': 'off',
             },
           },
           {
             'featureType': 'highway',
             'elementType': 'geometry',
             'stylers': {
               'color': '#f4f4f6',
             },
           },
           {
             'featureType': 'highway',
             'elementType': 'labels',
             'stylers': {
               'visibility': 'off',
             },
           },
           {
             'featureType': 'arterial',
             'elementType': 'geometry',
             'stylers': {
               'color': '#f4f4f6',
             },
           },
           {
             'featureType': 'arterial',
             'elementType': 'labels',
             'stylers': {
               'visibility': 'off',
             },
           },
           {
             'featureType': 'green',
             'elementType': 'geometry',
             'stylers': {
               'visibility': 'off',
             },
           },
           {
             'featureType': 'water',
             'elementType': 'geometry',
             'stylers': {
               'color': '#f4f4f6',
             },
           },
   
           {
             'featureType': 'railway',
             'elementType': 'geometry',
             'stylers': {
               'visibility': 'off',
             },
           },
           {
             'featureType': 'railway',
             'elementType': 'labels',
             'stylers': {
               'visibility': 'off',
             },
           },
           {
             'featureType': 'all',
             'elementType': 'labels.text.stroke',
             'stylers': {
               'color': '#ffffff',
             },
           },
           {
             'featureType': 'all',
             'elementType': 'labels.text.fill',
             'stylers': {
               'color': '#1890ff',
             },
           },
           {
             'featureType': 'manmade',
             'elementType': 'geometry',
             'stylers': {
               'visibility': 'off',
             },
           },
           {
             'featureType': 'manmade',
             'elementType': 'labels',
             'stylers': {
               'visibility': 'off',
             },
           },
           {
             'featureType': 'local',
             'elementType': 'geometry',
             'stylers': {
               'visibility': 'off',
             },
           },
           {
             'featureType': 'local',
             'elementType': 'labels',
             'stylers': {
               'visibility': 'off',
             },
           },
   
           {
             'featureType': 'railway',
             'elementType': 'all',
             'stylers': {
               'lightness': -40,
             },
           },
           {
             'featureType': 'boundary',
             'elementType': 'geometry',
             'stylers': {
               'color': '#8b8787',
               'weight': '1',
               'lightness': -29,
             },
           },
         ],
       },
     },
     'series': [
       {
         'type': 'effectScatter',
         'coordinateSystem': 'bmap',
         'symbolSize': 18,
         'data': [],
         'symbol': 'path://M512 1024C794.769792 1024 1024 794.769774 1024 512 
1024 229.230226 794.769792 0 512 0 229.230208 0 0 229.230226 0 512 0 794.769774 
229.230208 1024 512 1024L512 1024ZM512 950.857143C269.625893 950.857143 
73.142857 754.374107 73.142857 512 73.142857 269.625893 269.625893 73.142857 
512 73.142857 754.374107 73.142857 950.857143 269.625893 950.857143 512 
950.857143 754.374107 754.374107 950.857143 512 950.857143ZM512 
797.257143C669.543168 797.257143 797.257143 669.543168 797.257143 512 
797.257143 354.456832 669.543168 226.742857 512 226.742857 354.456832 
226.742857 226.742857 354.456832 226.742857 512 226.742857 669.543168 
354.456832 797.257143 512 797.257143Z',
         'showEffectOn': 'emphasis',
         'silent': true,
         'rippleEffect': {
           'period': 2,
           'scale': 8,
         },
         'label': {
           'normal': {
             'position': 'right',
             'show': false,
             'textStyle': {
               'fontSize': 16,
               'color': 'white',
               'fontWeight': 'bold',
             },
           },
           'emphasis': {
             'show': false,
           },
         },
         'itemStyle': {
           'normal': {
             'color': '#0dcffe',
             'textStyle': {
               'color': '#5F9BFF',
             },
           },
           'emphasis': {
             'textStyle': {
               'color': '#5F9BFF',
             },
           },
         },
       },
     ],
   };
   ```
   
   ### What is expected?
   正常预览
   ### What is actually happening?
   无法正常预览

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to