You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@echarts.apache.org by GitBox <gi...@apache.org> on 2020/09/23 06:58:22 UTC

[GitHub] [incubator-echarts] aiyoudiao opened a new issue #13331: bmap 无法setMapStyle

aiyoudiao opened a new issue #13331:
URL: https://github.com/apache/incubator-echarts/issues/13331


   ### Version
   4.9.0
   
   ### Steps to reproduce
   1. 在vue中使用echarts的bmap扩展包。
   2. 设置bmap的mapStyle属性,添加了styleJson无效。
   
   ### What is expected?
   可以setMapStyle。
   
   ### What is actually happening?
   echarts/extension/bmap/BMapView.js文件代码有问题。
   代码位置在120行
   ```js
   if (!isEmptyObject(newMapStyle2)) {
   ```
   这段代码中newMapStyle2应该改成newMapStyle
   
   ---
   我弄了好久,看了半天官网,各种测试都无效。看了源码之后,发现居然是一个变量错误的问题噢。尴尬。
   
   <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE -->
   <!-- This issue is in English. DO NOT REMOVE -->


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] plainheart closed issue #13331: bmap 无法setMapStyle

Posted by GitBox <gi...@apache.org>.
plainheart closed issue #13331:
URL: https://github.com/apache/incubator-echarts/issues/13331


   


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] aiyoudiao commented on issue #13331: bmap 无法setMapStyle

Posted by GitBox <gi...@apache.org>.
aiyoudiao commented on issue #13331:
URL: https://github.com/apache/incubator-echarts/issues/13331#issuecomment-697174189


   ```vue
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] echarts-bot[bot] commented on issue #13331: bmap 无法setMapStyle

Posted by GitBox <gi...@apache.org>.
echarts-bot[bot] commented on issue #13331:
URL: https://github.com/apache/incubator-echarts/issues/13331#issuecomment-697173344


   Hi! We've received your issue and please be patient to get responded. 🎉
   The average response time is expected to be within one day for weekdays.
   
   In the meanwhile, please make sure that **you have posted enough image to demo your request**. You may also check out the [API](http://echarts.apache.org/api.html) and [chart option](http://echarts.apache.org/option.html) to get the answer.
   
   If you don't get helped for a long time (over a week) or have an urgent question to ask, you may also send an email to dev@echarts.apache.org. Please attach the issue link if it's a technical questions.
   
   If you are interested in the project, you may also subscribe our [mail list](https://echarts.apache.org/en/maillist.html).
   
   Have a nice day! 🍵


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] plainheart edited a comment on issue #13331: bmap 无法setMapStyle

Posted by GitBox <gi...@apache.org>.
plainheart edited a comment on issue #13331:
URL: https://github.com/apache/incubator-echarts/issues/13331#issuecomment-697210473


   抱歉,给您带来不便了。该问题已经发现并且被修复,会在接下来的 5.0 版本中修复。可先使用 4.8.0 的 bmap 扩展库,或者手动修改源码。See #13213


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] aiyoudiao removed a comment on issue #13331: bmap 无法setMapStyle

Posted by GitBox <gi...@apache.org>.
aiyoudiao removed a comment on issue #13331:
URL: https://github.com/apache/incubator-echarts/issues/13331#issuecomment-697173956


   `<template>
     <div class="bmap">
       <vue-echarts :options="options"></vue-echarts>
     </div>
   </template>
   
   <script>
   import 'echarts/extension/bmap/bmap'
   
   export default {
     data () {
       return {
         options: {}
       }
     },
     mounted () {
       this.options = {
         bmap: {
           key: 'G1LFyjrNGIkns5OfpZnrCGAKxpycPLwb',
           center: [104.114129, 37.550339], /* 中心点 */
           zoom: 5, /* 缩放比例,焦距 */
           roam: false, /* 是否允许缩放 */
           mapStyle: {
             // styleId: 'ae2291f853c26c030656ffe33e6fbc4d',
             styleJson: [{
               featureType: 'water',
               elementType: 'all',
               stylers: {
                 color: '#044161'
               }
             }, {
               featureType: 'land',
               elementType: 'all',
               stylers: {
                 color: '#091934'
               }
             }, {
               featureType: 'boundary',
               elementType: 'geometry',
               stylers: {
                 color: '#064f85'
               }
             }, {
               featureType: 'railway',
               elementType: 'all',
               stylers: {
                 visibility: 'off'
               }
             }, {
               featureType: 'highway',
               elementType: 'geometry',
               stylers: {
                 color: '#004981'
               }
             }, {
               featureType: 'highway',
               elementType: 'geometry.fill',
               stylers: {
                 color: '#005b96',
                 lightness: 1
               }
             }, {
               featureType: 'highway',
               elementType: 'labels',
               stylers: {
                 visibility: 'on'
               }
             }, {
               featureType: 'arterial',
               elementType: 'geometry',
               stylers: {
                 color: '#004981',
                 lightness: -39
               }
             }, {
               featureType: 'arterial',
               elementType: 'geometry.fill',
               stylers: {
                 color: '#00508b'
               }
             }, {
               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: 'arterial',
               elementType: 'labels',
               stylers: {
                 visibility: 'off'
               }
             }, {
               featureType: 'boundary',
               elementType: 'geometry.fill',
               stylers: {
                 color: '#029fd4'
               }
             }, {
               featureType: 'building',
               elementType: 'all',
               stylers: {
                 color: '#1a5787'
               }
             }, {
               featureType: 'label',
               elementType: 'all',
               stylers: {
                 visibility: 'off'
               }
             }, {
               featureType: 'poi',
               elementType: 'labels.text.fill',
               stylers: {
                 color: '#ffffff'
               }
             }, {
               featureType: 'poi',
               elementType: 'labels.text.stroke',
               stylers: {
                 color: '#1e1c1c'
               }
             }, {
               featureType: 'administrative',
               elementType: 'labels',
               stylers: {
                 visibility: 'on'
               }
             }, {
               featureType: 'road',
               elementType: 'labels',
               stylers: {
                 visibility: 'off'
               }
             }]
   
           }
         }
   
       }
     }
   }
   </script>
   
   <style lang="scss" scoped>
   .bmap {
     height: 100%;
     width: 100%;
   }
   </style>
   `


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] aiyoudiao commented on issue #13331: bmap 无法setMapStyle

Posted by GitBox <gi...@apache.org>.
aiyoudiao commented on issue #13331:
URL: https://github.com/apache/incubator-echarts/issues/13331#issuecomment-697173956


   `<template>
     <div class="bmap">
       <vue-echarts :options="options"></vue-echarts>
     </div>
   </template>
   
   <script>
   import 'echarts/extension/bmap/bmap'
   
   export default {
     data () {
       return {
         options: {}
       }
     },
     mounted () {
       this.options = {
         bmap: {
           key: 'G1LFyjrNGIkns5OfpZnrCGAKxpycPLwb',
           center: [104.114129, 37.550339], /* 中心点 */
           zoom: 5, /* 缩放比例,焦距 */
           roam: false, /* 是否允许缩放 */
           mapStyle: {
             // styleId: 'ae2291f853c26c030656ffe33e6fbc4d',
             styleJson: [{
               featureType: 'water',
               elementType: 'all',
               stylers: {
                 color: '#044161'
               }
             }, {
               featureType: 'land',
               elementType: 'all',
               stylers: {
                 color: '#091934'
               }
             }, {
               featureType: 'boundary',
               elementType: 'geometry',
               stylers: {
                 color: '#064f85'
               }
             }, {
               featureType: 'railway',
               elementType: 'all',
               stylers: {
                 visibility: 'off'
               }
             }, {
               featureType: 'highway',
               elementType: 'geometry',
               stylers: {
                 color: '#004981'
               }
             }, {
               featureType: 'highway',
               elementType: 'geometry.fill',
               stylers: {
                 color: '#005b96',
                 lightness: 1
               }
             }, {
               featureType: 'highway',
               elementType: 'labels',
               stylers: {
                 visibility: 'on'
               }
             }, {
               featureType: 'arterial',
               elementType: 'geometry',
               stylers: {
                 color: '#004981',
                 lightness: -39
               }
             }, {
               featureType: 'arterial',
               elementType: 'geometry.fill',
               stylers: {
                 color: '#00508b'
               }
             }, {
               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: 'arterial',
               elementType: 'labels',
               stylers: {
                 visibility: 'off'
               }
             }, {
               featureType: 'boundary',
               elementType: 'geometry.fill',
               stylers: {
                 color: '#029fd4'
               }
             }, {
               featureType: 'building',
               elementType: 'all',
               stylers: {
                 color: '#1a5787'
               }
             }, {
               featureType: 'label',
               elementType: 'all',
               stylers: {
                 visibility: 'off'
               }
             }, {
               featureType: 'poi',
               elementType: 'labels.text.fill',
               stylers: {
                 color: '#ffffff'
               }
             }, {
               featureType: 'poi',
               elementType: 'labels.text.stroke',
               stylers: {
                 color: '#1e1c1c'
               }
             }, {
               featureType: 'administrative',
               elementType: 'labels',
               stylers: {
                 visibility: 'on'
               }
             }, {
               featureType: 'road',
               elementType: 'labels',
               stylers: {
                 visibility: 'off'
               }
             }]
   
           }
         }
   
       }
     }
   }
   </script>
   
   <style lang="scss" scoped>
   .bmap {
     height: 100%;
     width: 100%;
   }
   </style>
   `


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] aiyoudiao removed a comment on issue #13331: bmap 无法setMapStyle

Posted by GitBox <gi...@apache.org>.
aiyoudiao removed a comment on issue #13331:
URL: https://github.com/apache/incubator-echarts/issues/13331#issuecomment-697174189


   ```vue
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



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


[GitHub] [incubator-echarts] plainheart commented on issue #13331: bmap 无法setMapStyle

Posted by GitBox <gi...@apache.org>.
plainheart commented on issue #13331:
URL: https://github.com/apache/incubator-echarts/issues/13331#issuecomment-697210473


   抱歉,给您带来不便了。该问题已经发现并且被修复,会在接下来的 5.0 版本中修复。可先使用 4.8.0 的 bmap 扩展库,或者手动修改源码。


----------------------------------------------------------------
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:
users@infra.apache.org



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