You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@echarts.apache.org by GitBox <gi...@apache.org> on 2018/05/29 09:09:04 UTC

[GitHub] Conquer369 opened a new issue #8422: echarts与bmap结合使用绘制散点图,单击散点,地图自动放大

Conquer369 opened a new issue #8422: echarts与bmap结合使用绘制散点图,单击散点,地图自动放大
URL: https://github.com/apache/incubator-echarts/issues/8422
 
 
   <!--
   为了方便我们能够复现和修复 bug,请遵从下面的规范描述您的问题。
   -->
   
   
   ### One-line summary [问题简述]
   echarts与bmap结合使用绘制散点图时,首次单击地图上的散点,地图会无限放大,经过缩小后,不会再出现该问题。
   
   
   
   
   ### Version & Environment [版本及环境]
   + ECharts version [ECharts 版本]:4.1.0
   + Browser version [浏览器类型和版本]:Chrome 65.0.3325.162
   + OS Version [操作系统类型和版本]:Win10
   
   
   
   
   
   ### Expected behaviour [期望结果]
   单击散点地图不会无故放大
   
   
   
   
   ### ECharts option [ECharts配置项]
   <!-- Copy and paste your 'echarts option' here. -->
   <!-- [下方贴你的option,注意不要删掉下方 ```javascript 和 尾部的 ``` 字样。最好是我们能够直接运行的 option。如何得到能运行的 option 参见上方的 guidelines for contributing] -->
   ```javascript
   option = {
           bmap: {
             center: _that.countryMap[_that.selectedCountry].point,
             zoom: _that.countryMap[_that.selectedCountry].zoom,
             roam: false,
             mapStyle:{
               styleJson: [
                 {
                   "featureType": "water",
                   "elementType": "all",
                   "stylers": {
                     "color": "#252A47"
                   }
                 },
                 {
                   "featureType": "land",
                   "elementType": "all",
                   "stylers": {
                     "color": "#5A6075"
                   }
                 },
                 {
                   "featureType": "boundary",
                   "elementType": "geometry",
                   "stylers": {
                     "color": "#3A3F57"
                   }
                 },
                 {
                   "featureType": "boundary",
                   "elementType": "geometry.fill",
                   "stylers": {
                     "color": "#3A3F57"
                   }
                 },
                 {
                   "featureType": "railway",
                   "elementType": "all",
                   "stylers": {
                     "visibility": "off"
                   }
                 },
                 {
                   "featureType": "highway",
                   "elementType": "geometry",
                   "stylers": {
                     "visibility": "off"
                   }
                 },
                 {
                   "featureType": "highway",
                   "elementType": "geometry.fill",
                   "stylers": {
                     "visibility": "off"
                   }
                 },
                 {
                   "featureType": "highway",
                   "elementType": "labels",
                   "stylers": {
                     "visibility": "off"
                   }
                 },
                 {
                   "featureType": "arterial",
                   "elementType": "geometry",
                   "stylers": {
                     "visibility": "off"
                   }
                 },
                 {
                   "featureType": "arterial",
                   "elementType": "geometry.fill",
                   "stylers": {
                     "visibility": "off"
                   }
                 },
                 {
                   "featureType": "arterial",
                   "elementType": "labels",
                   "stylers": {
                     "visibility": "off"
                   }
                 },
                 {
                   "featureType": "poi",
                   "elementType": "all",
                   "stylers": {
                     "visibility": "off"
                   }
                 },
                 {
                   "featureType": "green",
                   "elementType": "all",
                   "stylers": {
                     "color": "#056197",
                     "visibility": "off"
                   }
                 },
                 {
                   "featureType": "subway",
                   "elementType": "all",
                   "stylers": {
                     "visibility": "off"
                   }
                 },
                 {
                   "featureType": "manmade",
                   "elementType": "all",
                   "stylers": {
                     "visibility": "off"
                   }
                 },
                 {
                   "featureType": "local",
                   "elementType": "all",
                   "stylers": {
                     "visibility": "off"
                   }
                 },
                 {
                   "featureType": "building",
                   "elementType": "all",
                   "stylers": {
                     "visibility": "off"
                   }
                 },
                 {
                   "featureType": "label",
                   "elementType": "all",
                   "stylers": {
                     "visibility": "off"
                   }
                 }
               ]
             }
           },
           series : [
             {
               type: 'effectScatter',
               coordinateSystem: 'bmap',
               data: _that.convertData(_that.mapData.locationData),
               symbolSize: 12,
               showEffectOn: 'render',
               rippleEffect: {
                 brushType: 'fill',
                 scale: 3
               },
               itemStyle: {
                 color: 'red'
               }
             }
           ]
         }
   
   ```
   
   
   
   
   ### Other comments [其他信息]
   <!-- For example: Screenshot or Online demo -->
   <!-- [例如,截图或线上实例 (JSFiddle/JSBin/Codepen)] -->
   echarts官方实例
   http://echarts.baidu.com/examples/editor.html?c=map-polygon
   中就存在该问题。
   

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@echarts.apache.org
For additional commands, e-mail: dev-help@echarts.apache.org