Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/maptalks/maptalks.e4
A plugin for echarts 4.0
https://github.com/maptalks/maptalks.e4
Last synced: about 2 months ago
JSON representation
A plugin for echarts 4.0
- Host: GitHub
- URL: https://github.com/maptalks/maptalks.e4
- Owner: maptalks
- Created: 2018-01-22T08:15:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-03-02T14:37:52.000Z (over 6 years ago)
- Last Synced: 2024-07-14T05:33:51.838Z (2 months ago)
- Language: JavaScript
- Size: 580 KB
- Stars: 9
- Watchers: 7
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# maptalks.e4
A plugin for echarts 4.0### usage ###
```javascript
//new map
var map = new maptalks.Map("map", {
center: [104.114129, 37.550339],
zoom: 3,
attributionControl: {
'content': '© OpenStreetMap contributors, © CARTO'
}
});
//new e4layer
var e4Layer = new maptalks.E4Layer('e4', ecOption, { hideOnZooming: false, hideOnRotating: false, hideOnMoving: false }).addTo(map);
```
![2rr56x ti 7 8 h r_x](https://user-images.githubusercontent.com/5127112/36574772-3ab165de-1882-11e8-8af8-f11ec53d9732.png)
>adding addintlayer options in e4layer to replace echart-gl's default tile map layer
```javascript
var addintiallayer = new maptalks.TileLayer('base', {
'urlTemplate': 'http://{s}.basemaps.cartocdn.com/dark_nolabels/{z}/{x}/{y}.png',
'subdomains': ['a', 'b', 'c', 'd']
});
//set addintiallayer parameter
var e4Layer = new maptalks.E4Layer('e4', ecOption, { hideOnZooming: false, hideOnRotating: false, hideOnMoving: false },addintiallayer).addTo(map);
```
![opflbx7j_py l u9hn _uf](https://user-images.githubusercontent.com/5127112/36574770-391da534-1882-11e8-8d21-e690179a06d6.png)