alex2wong opened a new pull request #12156: fix 11799 add new option 
'nameProperty' in map series option
URL: https://github.com/apache/incubator-echarts/pull/12156
 
 
   
   
   <!-- Please fill in the following information to help us review your PR more 
efficiently. -->
   
   ## Brief Information
   
   This pull request is in the type of:
   
   - [x] bug fixing
   - [x] new feature
   - [ ] others
   
   
   
   ### What does this PR do?
   
   <!-- USE ONCE SENTENCE TO DESCRIBE WHAT THIS PR DOES. -->
   add new option 'nameProperty' in map series option to denote key in geoJSON 
data
   
   
   ### Fixed issues
   
   <!--
   - #xxxx: ...
   -->
   bug  https://github.com/apache/incubator-echarts/issues/11799
   
   ## Details
   
   ### Before: What was the problem?
   
   <!-- DESCRIBE THE BUG OR REQUIREMENT HERE. -->
   In original version, geojson properties must have a property: "name". Now 
you can customize it.
   
   <!-- ADD SCREENSHOT HERE IF APPLICABLE. -->
   
   
   
   ### After: How is it fixed in this PR?
   
   <!-- THE RESULT AFTER FIXING AND A SIMPLE EXPLANATION ABOUT HOW IT IS FIXED. 
-->
   
   add a new option in map series
   
   <!-- ADD SCREENSHOT HERE IF APPLICABLE. -->
   
   
   
   ## Usage
   
   ### Are there any API changes?
   
   - [x] The API has been changed.
   
   <!-- LIST THE API CHANGES HERE -->
   ```
   {
                               name: 'USA PopEstimates',
                               type: 'map',
                               map: 'USA',
                               nameProperty: 'NAME', // new option to denote 
key in geoJSON, default is 'name',
                               data: []
   }
   ```
   
   ### Related test cases or examples to use the new APIs
   
   test/map-nameProperty.html
   
   ## Others
   
   ### Merging options
   
   - [ ] Please squash the commits into a single one when merge.
   
   ### Other information
   

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


With regards,
Apache Git Services

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

Reply via email to