Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tron i tronlink #1529

Open
wants to merge 5,316 commits into
base: Marktes-Mobile-Optimisation
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 250 commits
Commits
Show all changes
5316 commits
Select commit Hold shift + click to select a range
4f2cbe4
jst token test build
leon-2018 Apr 8, 2020
5cfb44f
update npm
myfocus Apr 8, 2020
a119075
just url whitelist
leon-2018 Apr 8, 2020
3b81044
switch debug
well-monkey Apr 8, 2020
6d31661
address contract url enter show
well-monkey Apr 8, 2020
38360cd
add just-token supply page
leon-2018 Apr 8, 2020
b5f2161
contract_address
well-monkey Apr 8, 2020
8857609
switch apilist
well-monkey Apr 8, 2020
a5bdcd2
switch apilist
well-monkey Apr 8, 2020
9da7625
switch apilist
well-monkey Apr 8, 2020
9c30440
switch apilist env and transfer amount center style
well-monkey Apr 8, 2020
55df2c7
merge new code build
well-monkey Apr 8, 2020
9110753
Merge pull request #1431 from tronscan/feature/contract-address
bbsyaya Apr 8, 2020
ae7e868
Merge pull request #1432 from tronscan/develop
bbsyaya Apr 8, 2020
f4c4c90
translations
xueyuanying Apr 8, 2020
d7f15df
translations
xueyuanying Apr 8, 2020
c03fc47
Change jst token tabs
myfocus Apr 8, 2020
5f2fcac
account address
well-monkey Apr 8, 2020
27399a6
account address
well-monkey Apr 8, 2020
4c12242
contract style
well-monkey Apr 8, 2020
4e95312
address and contract modify
well-monkey Apr 8, 2020
0e264c5
Merge pull request #1433 from tronscan/feature/contract-address
bbsyaya Apr 8, 2020
61735fe
Merge pull request #1434 from tronscan/feature/contract-address
bbsyaya Apr 8, 2020
26e7cf0
Merge pull request #1435 from tronscan/develop
bbsyaya Apr 8, 2020
fec8acb
change account tag list
well-monkey Apr 9, 2020
794ca6f
switch account and update user tag
well-monkey Apr 9, 2020
7340357
tag list
well-monkey Apr 9, 2020
cf10888
tag sunnet display none
well-monkey Apr 9, 2020
9327c66
Add ledger transfer note
myfocus Apr 9, 2020
6834d5e
tag language and default address
well-monkey Apr 9, 2020
ca74d7a
max length
xueyuanying Apr 9, 2020
f73d56e
Merge branch 'feature/tags' of https://github.com/tronscan/tronscan-f…
xueyuanying Apr 9, 2020
903433c
Representative IS_MAINNET and language
well-monkey Apr 9, 2020
c1c7cf2
add tag form
well-monkey Apr 9, 2020
1c39ac7
some translations
xueyuanying Apr 9, 2020
0b899cd
add cousor pointer
well-monkey Apr 9, 2020
e5c7078
add cousor pointer build
well-monkey Apr 9, 2020
9cf71d2
translations
xueyuanying Apr 9, 2020
3a6ce50
Merge remote-tracking branch 'origin/master' into feature/transfer-note
myfocus Apr 9, 2020
eeb4619
add user_address
xueyuanying Apr 10, 2020
26cf836
Add DappChain transfer note
myfocus Apr 10, 2020
635b450
Set debug test
myfocus Apr 10, 2020
19bd827
jst data update
leon-2018 Apr 10, 2020
7e0c7a7
Set test config
myfocus Apr 10, 2020
cfa220a
jst price update
leon-2018 Apr 10, 2020
9a3e60f
jst price
leon-2018 Apr 10, 2020
1586eb5
jst debug server
leon-2018 Apr 10, 2020
052af46
jst supply online build
leon-2018 Apr 10, 2020
917cc8b
buid:update package
xueyuanying Apr 10, 2020
c20350f
Add tronlink transfer note
myfocus Apr 11, 2020
70af438
Set tronlink payload
myfocus Apr 11, 2020
9bb9ae2
Set new test
myfocus Apr 11, 2020
c2b4e5f
set online config
xueyuanying Apr 13, 2020
eeeb3c5
Set debug test
myfocus Apr 13, 2020
24df3e0
fix account page some bugs
xueyuanying Apr 13, 2020
a01fa2b
set online config
xueyuanying Apr 13, 2020
4a3ee6d
Merge pull request #1436 from tronscan/hotfix/account_tip
bbsyaya Apr 13, 2020
b1f96a3
Merge pull request #1437 from tronscan/develop
bbsyaya Apr 13, 2020
043703f
account page
xueyuanying Apr 13, 2020
79f589d
Set robots config
myfocus Apr 13, 2020
2dfa3ff
set height
xueyuanying Apr 13, 2020
0b03711
account page hieght
xueyuanying Apr 13, 2020
8405f2a
set mobile style
xueyuanying Apr 14, 2020
a3d3c9d
set mobile style
xueyuanying Apr 14, 2020
dc21a07
set height
xueyuanying Apr 14, 2020
394855f
add contract sign
xueyuanying Apr 14, 2020
ccf63f7
nav and footer menu optimize
well-monkey Apr 14, 2020
3770da6
mobile footer menu modify
well-monkey Apr 14, 2020
d95f67e
Singular, plural
xueyuanying Apr 14, 2020
6726481
Set transaction extra and change translation
myfocus Apr 14, 2020
44f8cef
price change
well-monkey Apr 14, 2020
077ece7
Set debug build
myfocus Apr 14, 2020
23cc409
Set ledger note invalid
myfocus Apr 14, 2020
a06838f
set mobile style
xueyuanying Apr 14, 2020
2a04992
set mobile style
xueyuanying Apr 14, 2020
c6d3f9d
build:set mobile style
xueyuanying Apr 14, 2020
34c9d1c
Merge remote-tracking branch 'origin/master' into feature/transfer-note
myfocus Apr 15, 2020
8031b41
Set online config
myfocus Apr 15, 2020
0d64c22
Merge pull request #1438 from tronscan/feature/transfer-note
bbsyaya Apr 15, 2020
4a90d34
Merge pull request #1439 from tronscan/develop
bbsyaya Apr 15, 2020
5e5389a
build:update package
xueyuanying Apr 15, 2020
8ba9934
merge master code
xueyuanying Apr 15, 2020
29bec47
Optimize printing information
myfocus Apr 15, 2020
731adad
build:tags feature packaging
xueyuanying Apr 15, 2020
c586d00
Merge pull request #1440 from tronscan/feature/tags
bbsyaya Apr 15, 2020
f34322e
Merge pull request #1441 from tronscan/develop
bbsyaya Apr 15, 2020
44434eb
add tag no update fix
well-monkey Apr 15, 2020
7271d34
set update time
xueyuanying Apr 15, 2020
a98a2fd
merge master
leon-2018 Apr 15, 2020
2a56083
set update time
xueyuanying Apr 15, 2020
c4f52af
build:set update time
xueyuanying Apr 15, 2020
c85242d
remov settimeout request tag info
well-monkey Apr 15, 2020
c4b4355
remov settimeout request tag info build
well-monkey Apr 15, 2020
2755c13
add random
xueyuanying Apr 15, 2020
e879a7c
taglist sets random
xueyuanying Apr 15, 2020
38f3cc5
add get usdj guide
leon-2018 Apr 15, 2020
b08e5ee
build:taglist sets a random
xueyuanying Apr 15, 2020
3c19bbf
Merge pull request #1442 from tronscan/feature/tags
bbsyaya Apr 15, 2020
847f978
Merge pull request #1443 from tronscan/develop
bbsyaya Apr 15, 2020
d76af80
merge master
leon-2018 Apr 15, 2020
9cda649
jst page build
leon-2018 Apr 15, 2020
ce4432d
jst price update
leon-2018 Apr 15, 2020
8146e10
navigation
well-monkey Apr 15, 2020
32e2f2a
Add sunnet dapp award list
myfocus Apr 15, 2020
0a8a233
navigation
well-monkey Apr 15, 2020
fce2511
add rward data
myfocus Apr 15, 2020
12c0196
route
well-monkey Apr 15, 2020
9081642
Set test build
myfocus Apr 15, 2020
263046e
route add The first DApp competition
well-monkey Apr 15, 2020
9be9eeb
fix conflict
well-monkey Apr 15, 2020
54fbd09
Set online config
myfocus Apr 15, 2020
4ae8ad6
Merge pull request #1444 from tronscan/feature/sunnet-dappllist
myfocus Apr 15, 2020
ba36ba1
Merge pull request #1445 from tronscan/develop
myfocus Apr 15, 2020
a6e8bba
merge master code
leon-2018 Apr 16, 2020
f2e8c0d
build:jst page test
leon-2018 Apr 16, 2020
c0c4c4c
build:jst page debug
leon-2018 Apr 16, 2020
5e1cadd
jst supply page
leon-2018 Apr 16, 2020
01624a9
Merge pull request #1446 from tronscan/feature/jst-token
bbsyaya Apr 16, 2020
8bb7615
Merge pull request #1447 from tronscan/develop
bbsyaya Apr 16, 2020
1857bfc
price style modify
well-monkey Apr 16, 2020
2d9e8d2
nav price no result and timeout
well-monkey Apr 16, 2020
2740902
modify token20-search input
well-monkey Apr 16, 2020
b15101f
holder mobile style
well-monkey Apr 16, 2020
27e686f
mobile price show
well-monkey Apr 16, 2020
57d0839
switch online env
well-monkey Apr 16, 2020
76f4442
Set trc20 token list keys
myfocus Apr 17, 2020
6885241
Set online config
myfocus Apr 17, 2020
87aedd4
Merge pull request #1448 from tronscan/hotfix/account-token-0417
well-monkey Apr 17, 2020
e42c324
nav price
well-monkey Apr 17, 2020
dffb82b
price and loading build
well-monkey Apr 17, 2020
106a766
price show
well-monkey Apr 20, 2020
7d1aad6
nav price network error
well-monkey Apr 20, 2020
9314bf2
debug foundation address
well-monkey Apr 20, 2020
8f9050e
switch debug apilist env
well-monkey Apr 20, 2020
66b063c
nav price
well-monkey Apr 20, 2020
c62dbe1
nav price
well-monkey Apr 20, 2020
25f852c
foudation address style modify
well-monkey Apr 20, 2020
f0c1cf2
price show same
well-monkey Apr 20, 2020
74e7c3d
price request timeout
well-monkey Apr 20, 2020
f3f669f
searbox
well-monkey Apr 20, 2020
78460d5
mobile search result show
well-monkey Apr 20, 2020
386c114
mobile search result show build
well-monkey Apr 20, 2020
3c18e69
mearge new master code
well-monkey Apr 20, 2020
343b44a
mobile search style
well-monkey Apr 20, 2020
4c9b338
new master code build and mobile search style show
well-monkey Apr 20, 2020
49fd08f
Merge pull request #1450 from tronscan/hotfix/pagination-mobile-search
bbsyaya Apr 20, 2020
bee724e
Merge pull request #1451 from tronscan/develop
bbsyaya Apr 20, 2020
4734e85
route link
well-monkey Apr 20, 2020
35ec767
Merge pull request #1452 from tronscan/hotfix/pagination-mobile-search
bbsyaya Apr 20, 2020
fc9d3a3
Merge pull request #1453 from tronscan/develop
bbsyaya Apr 20, 2020
16837de
switch online env
well-monkey Apr 20, 2020
e28dd96
Merge pull request #1454 from tronscan/hotfix/pagination-mobile-search
bbsyaya Apr 20, 2020
ae6ed33
Merge pull request #1455 from tronscan/develop
bbsyaya Apr 20, 2020
4678a4f
switch online env
well-monkey Apr 20, 2020
0f0ae4f
switch online env build
well-monkey Apr 20, 2020
85fdfc0
Merge pull request #1456 from tronscan/hotfix/pagination-mobile-search
well-monkey Apr 20, 2020
8b8cc45
Merge pull request #1457 from tronscan/develop
well-monkey Apr 20, 2020
4b6a4ac
foundation table address remove link
well-monkey Apr 21, 2020
b19e967
pull new mastert code
well-monkey Apr 21, 2020
88a5384
foundation address build
well-monkey Apr 21, 2020
ee0cb88
nav price build
well-monkey Apr 21, 2020
63d0911
test price
well-monkey Apr 21, 2020
bb75ccb
mobile style change
well-monkey Apr 21, 2020
ec9c403
Set debug test
myfocus Apr 21, 2020
e52ae29
Set online config
myfocus Apr 21, 2020
068e7c8
Merge pull request #1458 from tronscan/hotfix-ledger-note
bbsyaya Apr 21, 2020
fd3f3ba
Merge pull request #1459 from tronscan/develop
bbsyaya Apr 21, 2020
cdc8505
nav price
well-monkey Apr 21, 2020
414d979
nav price and build
well-monkey Apr 21, 2020
de989a0
build
well-monkey Apr 21, 2020
f30a97a
new build
well-monkey Apr 21, 2020
c89176e
foundation build
well-monkey Apr 21, 2020
2fcee0e
Merge pull request #1460 from tronscan/feature/foundation-address
bbsyaya Apr 21, 2020
d7d1cf1
foundation-address
well-monkey Apr 21, 2020
fdba0e7
Merge pull request #1461 from tronscan/feature/foundation-address
bbsyaya Apr 21, 2020
9466af0
build
well-monkey Apr 21, 2020
795b782
foundation address
well-monkey Apr 21, 2020
39bbe59
Merge pull request #1462 from tronscan/feature/foundation-address
bbsyaya Apr 21, 2020
68bea77
build
well-monkey Apr 21, 2020
42cf583
Merge pull request #1463 from tronscan/feature/foundation-address
bbsyaya Apr 21, 2020
edb7aef
debug build
well-monkey Apr 21, 2020
2346c41
show foundatiom
well-monkey Apr 21, 2020
80a685c
online env
well-monkey Apr 22, 2020
da837a6
Merge pull request #1465 from tronscan/feature/foundation-address
bbsyaya Apr 22, 2020
375f0a1
Merge pull request #1466 from tronscan/develop
bbsyaya Apr 22, 2020
ab80bd7
Merge branch 'master' of github.com:tronscan/tronscan-frontend into f…
well-monkey Apr 22, 2020
baae224
env change
well-monkey Apr 22, 2020
8d46104
debug build
well-monkey Apr 22, 2020
90615b1
debbug build
well-monkey Apr 22, 2020
1664dc5
hidden charts_average_price
well-monkey Apr 22, 2020
b9d7e5e
hidden charts_average_price build
well-monkey Apr 22, 2020
8d48f66
Merge pull request #1467 from tronscan/hotfix/average-price-hidden
myfocus Apr 22, 2020
32bc48f
Merge pull request #1468 from tronscan/hotfix/average-price-hidden
myfocus Apr 22, 2020
3d39001
pc price change show
well-monkey Apr 22, 2020
502a8e9
switch online env
well-monkey Apr 22, 2020
0c76066
switch online env build
well-monkey Apr 22, 2020
80d5abd
nav price
well-monkey Apr 22, 2020
5499086
Merge pull request #1470 from tronscan/feature/nav-price
bbsyaya Apr 22, 2020
a3c30b1
Merge pull request #1471 from tronscan/develop
bbsyaya Apr 22, 2020
b4a7957
nav style limit
well-monkey Apr 22, 2020
6259ec9
build online env
well-monkey Apr 22, 2020
876bd0a
Merge pull request #1472 from tronscan/feature/nav-price
bbsyaya Apr 23, 2020
19964b5
Merge pull request #1473 from tronscan/develop
bbsyaya Apr 23, 2020
30b9483
price shwo
well-monkey Apr 24, 2020
7c8dd67
Merge branch 'master' of github.com:tronscan/tronscan-frontend into f…
well-monkey Apr 24, 2020
7fa6801
nav price build
well-monkey Apr 24, 2020
514d443
nav price build
well-monkey Apr 24, 2020
3997d89
mobile dateselect style
well-monkey Apr 24, 2020
dda576b
switch online env
well-monkey Apr 24, 2020
96ea1d8
switch online env build
well-monkey Apr 24, 2020
009cf1a
Update ledger support version
myfocus Apr 24, 2020
a4320d8
switch online env build
well-monkey Apr 24, 2020
bb6a884
Merge pull request #1474 from tronscan/feature/nav-price
leon-2018 Apr 24, 2020
3f2b93b
Merge pull request #1475 from tronscan/develop
leon-2018 Apr 24, 2020
f3cf581
Set debug test
myfocus Apr 24, 2020
0761aad
Set online config
myfocus Apr 24, 2020
3d25db9
Merge pull request #1476 from tronscan/feature/multi-sign-list
bbsyaya Apr 24, 2020
45fe5ab
Merge pull request #1477 from tronscan/develop
bbsyaya Apr 24, 2020
e5dd6d6
sign modal fee change and show change
well-monkey Apr 27, 2020
e4b3fe0
add tronex dappchain api address
well-monkey Apr 27, 2020
746cb31
new code about dappchain withdrawFee
well-monkey Apr 27, 2020
dde0ef3
Add ledger login account selection function
myfocus Apr 27, 2020
b15149b
Set deug test
myfocus Apr 28, 2020
b55c8f3
Change translations
myfocus Apr 28, 2020
e1bbe53
Set shasta config
myfocus Apr 28, 2020
4a475d4
Delete test info
myfocus Apr 28, 2020
cadc1d9
build shasta test
myfocus Apr 28, 2020
c6bee58
Del build
myfocus Apr 29, 2020
d86cf87
switch tronex env
well-monkey Apr 29, 2020
158b249
build 65 env
well-monkey Apr 29, 2020
5de4b38
build 65 env
well-monkey Apr 29, 2020
6c30227
Set online config
myfocus Apr 29, 2020
17f9e79
Added Ledger login Multi-account selection
myfocus Apr 29, 2020
aafb9dc
Merge pull request #1478 from tronscan/feature/ledger-choose-account
bbsyaya Apr 29, 2020
5ac9559
Merge pull request #1479 from tronscan/develop
bbsyaya Apr 29, 2020
0fa7de7
switch online env
well-monkey Apr 30, 2020
2d57f93
switch 66 67 env
well-monkey Apr 30, 2020
6ad1acf
Merge remote-tracking branch 'origin/master' into feature/withdraw-fee
myfocus Apr 30, 2020
6d80efb
Fix ledger first login
myfocus Apr 30, 2020
e4ac094
modify getway address
well-monkey Apr 30, 2020
d3b7e1b
Merge branch 'feature/withdraw-fee' of github.com:tronscan/tronscan-f…
well-monkey Apr 30, 2020
a9e7837
getway address build
well-monkey Apr 30, 2020
6149cf9
build withdraw-fee new code
well-monkey Apr 30, 2020
e58caba
Merge pull request #1480 from tronscan/feature/withdraw-fee
bbsyaya Apr 30, 2020
19c7448
Merge pull request #1481 from tronscan/develop
bbsyaya Apr 30, 2020
4267ff7
remove usdj tips
well-monkey Apr 30, 2020
5b1f77b
Merge pull request #1482 from tronscan/feature/just-link
bbsyaya Apr 30, 2020
35e793c
Merge pull request #1483 from tronscan/develop
bbsyaya Apr 30, 2020
acdd0cc
Fix all typos on tronscan website (en)
fulldecent Aug 27, 2022
ee31580
Merge pull request #1576 from fulldecent/patch-1
bbsyaya Dec 2, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
18 changes: 18 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"presets": [
"react-app",
// "env", {
// "modules": false
// }
],
"plugins": [
["@babel/plugin-proposal-decorators", {"legacy": true}],
"add-module-exports",
["import", { "libraryName": "antd" }, "antd"],
["import", {
"libraryName": "lodash",
"libraryDirectory": "",
"camel2DashComponentName": false, // default: true
}, "lodash"],
]
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
src/lib
27 changes: 25 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,29 @@
{
"extends": "react-app",
"env": {
"amd": true
},
"parserOptions": {
"ecmaFeatures": {
"legacyDecorators": true
}
},
"rules": {
"import/no-webpack-loader-syntax": "off"
"import/no-webpack-loader-syntax": "off",
"no-restricted-properties": 0,
"no-unused-expressions": 0,
"eqeqeq": 0,
"no-unused-vars": 0,
"no-restricted-globals": 0,
"array-callback-return": 0,
"no-unreachable": 0,
"jsx-a11y/alt-text": 0,
"jsx-a11y/anchor-is-valid": 0,
"default-case": 0,
"no-script-url": 0,
"react/jsx-no-target-blank": 0,
"no-eval": 0,
"no-throw-literal": 0,
"jsx-a11y/anchor-has-content": 0
}
}
}
9 changes: 6 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
/coverage

# production
/build


# misc
.DS_Store
Expand All @@ -21,7 +21,10 @@ yarn-debug.log*
yarn-error.log*

/.idea
build-desktop
build-native


update-to-*

/web.tar*

.history
5 changes: 3 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: node_js
node_js:
- "9"
- "11"
before_install:
- "npm config set spin false"
install:
Expand All @@ -20,4 +20,5 @@ deploy:
github-token: $GITHUB_TOKEN
keep-history: true
on:
branch: master
branch: develop

23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,21 @@
* Node Tester
* Transaction Debugger
* Notifications
* Market Information
* Poloni DEX Information
* News
* Node Overview
* Basic info browser
* Quick search token
* Web wallet
* Poloni DEX
* DApp Recommend
* Vote for SR
* TRON Committee
* Token List
* Contract Deploy& Verify
* DAppChain
* Node Tester
* Transaction Debugger

# Requirements

Expand All @@ -50,12 +62,3 @@ When developing locally the url can be changed by defining the `API_URL` environ
> API_URL=http://127.0.0.0:9000 yarn start
```

## Building Desktop Apps

Tronscan.org can be published as a Desktop app wrapped in Electron.

To build a Windows, Mac and Linux app run the following command:

```bash
> yarn run desktop:build:full
```
22 changes: 22 additions & 0 deletions backuplib/leaflet-echarts/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
The MIT License (MIT)

Copyright (c) 2015 记忆的残骸

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

36 changes: 36 additions & 0 deletions backuplib/leaflet-echarts/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# leaflet-echarts
A plugin for leaflet to load echarts map and make BigData Visualization.
## 基于leaflet 扩展echarts,使ECharts的地图可以加到leaflet上

> 根据百度地图echarts的扩展改写,在事件联动这个地方以及echarts的容器与地图容器在拖动和缩放中的适应上耗费了很长时间,为了兼容echarts的map其他类型的数据又下了不少功夫。现在可以算是一个稍微完美的版本了。好的效果请在谷歌浏览器访问。~~偶尔拖拽会飘,建议拖拽的时候在没有echarts渲染数据的区域拖拽。~~ 貌似修复了!

> This is a beta version,so it would have some bugs,visit it by **chrome** will be better. ~~When you want to drag the map,drag on zhe basemap without echarts data.~~ It seems that i have solved this problem.

# [在线访问(Demo)](http://wandergis.github.io/leaflet-echarts)
# [Online Demo(Not in china?Visit this!)](http://wandergis.github.io/leaflet-echarts/index-en.html)

# 使用方法(Usage)

1. Confirm you have import `leaflet` first, 引入leaflet的js和css库自然不用说
2. Import `eaflet-echarts.js` ,可以通过npm安装,输入`npm install leaflet-echarts` 即可
3. Import `echarts.source.js` under directory `lib` 引入lib目录下的`echarts.source.js`文件
4. As you can use this plugin like this,按照下面的方法使用

```
var overlay = new L.echartsLayer(map, echarts);
var chartsContainer=overlay.getEchartsContainer();
var myChart=overlay.initECharts(chartsContainer);
var option={};//这里跟百度echarts的map的option一样,the option is same as echarts map
overlay.setOption(option);
```
5. If you don't konw how to use this plugin,hava a look at `/examples/index.html`,如果你不会用,看看examples目录下的`index.html`

# 截图示例

![](https://raw.githubusercontent.com/wandergis/leaflet-echarts/master/examples/demo.gif)

![](https://raw.githubusercontent.com/wandergis/leaflet-echarts/master/examples/demo2.gif)

# 参考

>[https://github.com/ecomfe/echarts](https://github.com/ecomfe/echarts)
Loading