Skip to content
Permalink
Browse files
fix: update links.
  • Loading branch information
plainheart committed Jun 29, 2020
1 parent 3ea6ea2 commit 27f3e91a058f081235b4ded7b6b569a52d31c8cd
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
@@ -8,11 +8,11 @@ footer
a(href='https://www.apache.org')
img(src='#{cdnRoot}/#{ecWWWLang}/images/asf_logo.svg', class="footer-apache-logo")
.icon-panel
a.footer-icon(href='mailto:dev@echarts.apache.com?Body=%28Thanks%20for%20using%20ECharts.%20Email%20us%20if%20you%20have%20non-technical%20problems%20using%20ECharts.%20For%20technical%20support%2C%20please%20go%20to%20https%3A//github.com/ecomfe/echarts/issues%20.%29')
a.footer-icon(href='mailto:dev@echarts.apache.com?Body=%28Thanks%20for%20using%20ECharts.%20Email%20us%20if%20you%20have%20non-technical%20problems%20using%20ECharts.%20For%20technical%20support%2C%20please%20go%20to%20https%3A//github.com/apache/incubator-echarts/issues%20.%29')
img(src='#{cdnRoot}/#{ecWWWLang}/images/icon-email.png')
a.footer-icon(href='https://twitter.com/EChartsJs')
img(src='#{cdnRoot}/#{ecWWWLang}/images/icon-twitter.png')
a.footer-icon(href='https://weibo.com/u/5160877841')
img(src='#{cdnRoot}/#{ecWWWLang}/images/icon-weibo.png')
a.footer-icon(href='https://github.com/ecomfe/echarts')
a.footer-icon(href='https://github.com/apache/incubator-echarts')
img(src='#{cdnRoot}/#{ecWWWLang}/images/icon-github.png')
@@ -95,7 +95,7 @@ mixin nav(basePath, cdnBasePath)

ul(class='nav navbar-nav navbar-right')
li#nav-github
a(href="https://github.com/ecomfe/echarts" target="_blank")
a(href="https://github.com/apache/incubator-echarts" target="_blank")
img(src="#{cdnBasePath}/zh/images/github.png", width="18")
li#nav-homeen
a(href='javascript:;', onclick="changeLang('en')") EN
@@ -70,7 +70,7 @@ block content
h2#map-chart map-chart
h3 Province names overlap on the chart. How to modify the location of the names?
p You can modify the <code>cp</code> coordinates of the corresponding province in the map file (JS or JSON), or modify the map data that has been loaded by <code>echarts.getMap('china')</code>.
p For more details, please refer to <a href="https://github.com/ecomfe/echarts/issues/4379#issuecomment-257765948">GitHub</a>.
p For more details, please refer to <a href="https://github.com/apache/incubator-echarts/issues/4379#issuecomment-257765948">GitHub</a>.

h3 Where can I download maps from other countries?
p Map information for other countries can be downloaded from <a href="https://github.com/echarts-maps/echarts-countries-js">here</a>.
@@ -86,15 +86,15 @@ block content
p Please refer to <a href="https://gallery.echartsjs.com/editor.html?c=xHyqn_rQ6g">this example</a>.

h3 How to make my custom map?
p The ECharts map is <a href="https://github.com/ecomfe/echarts/blob/8eeb7e5abe207d0536c62ce1f4ddecc6adfdf85e/src/util/mapData/rawData/encode.js">additionally encoded</a> from original coordinates. You can use the <a href="https://github.com/giscafer/mapshaper-plus">mapshaper-plus tool</a> to upload a custom geojson file and then generate a map file that can be used in Echarts.
p The ECharts map is <a href="https://github.com/apache/incubator-echarts/blob/8eeb7e5abe207d0536c62ce1f4ddecc6adfdf85e/src/util/mapData/rawData/encode.js">additionally encoded</a> from original coordinates. You can use the <a href="https://github.com/giscafer/mapshaper-plus">mapshaper-plus tool</a> to upload a custom geojson file and then generate a map file that can be used in Echarts.


h2#baidu-map baidu-map
h3 How to use ECharts with Baidu map?
ol
li Include <code>echarts.js</code>, <code>bmap.js</code> and <code>https://api.map.baidu.com/api?v=2.0&ak=Here is the access key you obtained on the Baidu development platform</code>.
li Set <code>bmap</code> in <code>option</code>,You can refer to this<a href="https://gallery.echartsjs.com/editor.html?c=effectScatter-bmap"> example</a>.
li If you need to get a Baidu map instance, you can use <code>chart.getModel().getComponent('bmap').getBMap()</code>,and then make do settings based on <a href="https://developer.baidu.com/map/reference/index.php?title=Class:%E6%80%BB%E7%B1%BB/%E6%A0%B8%E5%BF%83%E7%B1%BB">Baidu Maps API</a> .
li If you need to get a Baidu map instance, you can use <code>chart.getModel().getComponent('bmap').getBMap()</code>,and then make do settings based on <a href="https://lbsyun.baidu.com/cms/jsapi/reference/jsapi_reference.html">Baidu Maps API</a> .
p There are more examples about Baidu maps on <a href="https://gallery.echartsjs.com/explore.html#components=bmap~sort=rank~timeframe=all~author=all">ECharts Gallery</a> , which can be used as a reference.


@@ -8,11 +8,11 @@ footer
a(href='https://www.apache.org')
img(src='#{cdnRoot}/#{ecWWWLang}/images/asf_logo.svg', class="footer-apache-logo")
.icon-panel
a.footer-icon(href='mailto:dev@echarts.apache.com?Body=%28Thanks%20for%20using%20ECharts.%20Email%20us%20if%20you%20have%20non-technical%20problems%20using%20ECharts.%20For%20technical%20support%2C%20please%20go%20to%20https%3A//github.com/ecomfe/echarts/issues%20.%29')
a.footer-icon(href='mailto:dev@echarts.apache.com?Body=%28Thanks%20for%20using%20ECharts.%20Email%20us%20if%20you%20have%20non-technical%20problems%20using%20ECharts.%20For%20technical%20support%2C%20please%20go%20to%20https%3A//github.com/apache/incubator-echarts/issues%20.%29')
img(src='#{cdnRoot}/#{ecWWWLang}/images/icon-email.png')
a.footer-icon(href='https://twitter.com/EChartsJs')
img(src='#{cdnRoot}/#{ecWWWLang}/images/icon-twitter.png')
a.footer-icon(href='https://weibo.com/u/5160877841')
img(src='#{cdnRoot}/#{ecWWWLang}/images/icon-weibo.png')
a.footer-icon(href='https://github.com/ecomfe/echarts')
a.footer-icon(href='https://github.com/apache/incubator-echarts')
img(src='#{cdnRoot}/#{ecWWWLang}/images/icon-github.png')
@@ -93,7 +93,7 @@ mixin nav(basePath, cdnBasePath)

ul(class='nav navbar-nav navbar-right')
li#nav-github
a(href="https://github.com/ecomfe/echarts" target="_blank")
a(href="https://github.com/apache/incubator-echarts" target="_blank")
img(src="#{cdnBasePath}/en/images/github.png", width="18")
li#nav-homeen
a(href='javascript:;', onclick="changeLang('zh')") 中文
@@ -68,7 +68,7 @@ block content
h3 图表上的省份名称重叠,如何修改名称的位置?
p 可以修改地图文件(JS 或 JSON)中对应省份的 <code>cp</code> 坐标,或者通过 <code>echarts.getMap('china')</code> 修改已加载的地图数据。
p 更详细的做法请参考:
a(href='https://github.com/ecomfe/echarts/issues/4379#issuecomment-257765948') GitHub
a(href='https://github.com/apache/incubator-echarts/issues/4379#issuecomment-257765948') GitHub

h3 其他国家的地图在哪里下载?
p 可以在<a href="https://github.com/echarts-maps/echarts-countries-js">这里</a>下载到其他国家的地图信息。
@@ -83,7 +83,7 @@ block content
p 参见这个<a href="https://gallery.echartsjs.com/editor.html?c=xHyqn_rQ6g">完整的例子</a>。

h3 如何制作自定义地图?
p ECharts 地图在地图坐标的基础上进行过<a href="https://github.com/ecomfe/echarts/blob/8eeb7e5abe207d0536c62ce1f4ddecc6adfdf85e/src/util/mapData/rawData/encode.js">额外的编码</a>。可以使用 <a href="https://github.com/giscafer/mapshaper-plus">mapshaper-plus</a> 工具,上传自定义的 geojson 文件,生成 ECharts 可以使用的地图文件。
p ECharts 地图在地图坐标的基础上进行过<a href="https://github.com/apache/incubator-echarts/blob/8eeb7e5abe207d0536c62ce1f4ddecc6adfdf85e/src/util/mapData/rawData/encode.js">额外的编码</a>。可以使用 <a href="https://github.com/giscafer/mapshaper-plus">mapshaper-plus</a> 工具,上传自定义的 geojson 文件,生成 ECharts 可以使用的地图文件。



@@ -92,7 +92,7 @@ block content
ol
li 引入 <code>echarts.js</code>、<code>bmap.js</code> 以及 <code>https://api.map.baidu.com/api?v=2.0&ak=这里填在百度开发平台注册得到的 access key</code>;
li 在 <code>option</code> 中设置 <code>bmap</code>,参考<a href="https://gallery.echartsjs.com/editor.html?c=effectScatter-bmap">这个例子</a>;
li 如需获得百度地图实例,可以通过 <code>chart.getModel().getComponent('bmap').getBMap()</code>,然后根据<a href="https://developer.baidu.com/map/reference/index.php?title=Class:%E6%80%BB%E7%B1%BB/%E6%A0%B8%E5%BF%83%E7%B1%BB">百度地图 API</a> 做进一步设置。
li 如需获得百度地图实例,可以通过 <code>chart.getModel().getComponent('bmap').getBMap()</code>,然后根据<a href="https://lbsyun.baidu.com/cms/jsapi/reference/jsapi_reference.html">百度地图 API</a> 做进一步设置。
p <a href="https://gallery.echartsjs.com/explore.html#components=bmap~sort=rank~timeframe=all~author=all">Gallery</a> 上有更多百度地图的例子,可作为参考。


@@ -143,7 +143,7 @@ block content
h3 关注我们
p 可以通过以下渠道关注 ECharts,及时获得更多最新动态
.btn-panel
a.btn.btn-blue(href='https://github.com/ecomfe/echarts')
a.btn.btn-blue(href='https://github.com/apache/incubator-echarts')
img.lazy(data-src='#{cdnRoot}/#{ecWWWLang}/images/btn-github.png')
span GitHub
a.btn.btn-red(href='https://weibo.com/echarts')

0 comments on commit 27f3e91

Please sign in to comment.