In amap official example, to use a plugin, an access to map instance is needed.
var map = new AMap.Map('container',{
resizeEnable: true,
zoom: 10,
center: [116.480983, 40.0958]
});
AMap.plugin(['AMap.ToolBar','AMap.Scale'],function(){
var toolBar = new AMap.ToolBar();
var scale = new AMap.Scale();
map.addControl(toolBar);
map.addControl(scale);
})
In amap official example, to use a plugin, an access to map instance is needed.
how to access it in echarts-amap?