Security News
ESLint is Now Language-Agnostic: Linting JSON, Markdown, and Beyond
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
echarts-amap
Advanced tools
An echarts extension to support AMap(http://lbs.amap.com/), Ported from the offical echarts extension-bmap
https://github.com/ecomfe/echarts/tree/master/extension/bmap
npm install -S echarts-amap
Using Script Tag
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>ECharts AMap Test</title>
<style>
html,body,#map {
margin: 0;
padding: 0;
height: 100%;
}
</style>
</head>
<body>
<div id="map"></div>
<!-- external dependencies -->
<script src="http://webapi.amap.com/maps?v=1.3&key=YOUR_AMAP_API_KEY&plugin=AMap.CustomLayer"></script>
<script src="http://cdn.bootcss.com/echarts/3.4.0/echarts.min.js"></script>
<!-- import the extension -->
<script src="node_modules/echarts-amap/dist/echarts-amap.min.js"></script>
<script type="text/javascript">
var echart = echarts.init(document.getElementById('map'))
echart.setOption({
// use amap component
amap: {
center: [116.397475,39.908695],
zoom: 5,
mapStyle: 'blue_night'
},
// demo serie showing the capital BEIJING of our PRC :cn:
series: [{
type: 'effectScatter',
coordinateSystem: 'amap',
rippleEffect: {
brushType: 'stroke'
},
label: {
normal: {
show: true,
position: 'right',
formatter: '{b}'
}
},
symbolSize: 20,
itemStyle: {
normal: {
color: '#f44336'
}
},
data: [{
name: '首都',
value: [116.397475,39.908695]
}]
}]
})
</script>
</body>
</html>
Using Webpack
var echarts = require('echarts')
require('echarts-amap')
var echart = echarts.init(document.getElementById('map'))
echart.setOption({
... // see the example above
})
FAQs
an echarts extension to support AMap(http://lbs.amap.com/)
The npm package echarts-amap receives a total of 998 weekly downloads. As such, echarts-amap popularity was classified as not popular.
We found that echarts-amap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
ESLint has added JSON and Markdown linting support with new officially-supported plugins, expanding its versatility beyond JavaScript.
Security News
Members Hub is conducting large-scale campaigns to artificially boost Discord server metrics, undermining community trust and platform integrity.
Security News
NIST has failed to meet its self-imposed deadline of clearing the NVD's backlog by the end of the fiscal year. Meanwhile, CVE's awaiting analysis have increased by 33% since June.