There is some way to set an initial zoom in chart of map type?
I have this options:
m.setOption({
tooltip : {
trigger: 'item'
},
toolbox: {
show : true,
orient : 'vertical',
x: 'right',
y: 'center',
feature : {
mark : {show: true},
dataView : {show: true, readOnly: false},
restore : {show: true},
saveAsImage : {show: true}
}
},
asoluteZoom : {start : 90, end : 100},
series : [
{
name: 'Name',
type: 'map',
mapType: 'world',
hoverable: false,
roam:true,
data : [],
markPoint : {
symbolSize: 10,
itemStyle: {
normal: {
borderColor: '#87cefa',
borderWidth: 1,
label: {
show: false
}
},
emphasis: {
borderColor: '#1e90ff',
borderWidth: 5,
label: {
show: false
}
}
},
data : [
{name: "Hello!"},
]
},
geoCoord: {
"Hello!":[-4.729075, 37.906475],
}
}
]
});
I tried with asoluteZoom but nothing happens.
There is some way to set an initial zoom in chart of map type?
I have this options:
m.setOption({
tooltip : {
trigger: 'item'
},
toolbox: {
show : true,
orient : 'vertical',
x: 'right',
y: 'center',
feature : {
mark : {show: true},
dataView : {show: true, readOnly: false},
restore : {show: true},
saveAsImage : {show: true}
}
},
asoluteZoom : {start : 90, end : 100},
series : [
{
name: 'Name',
type: 'map',
mapType: 'world',
hoverable: false,
roam:true,
data : [],
markPoint : {
symbolSize: 10,
itemStyle: {
normal: {
borderColor: '#87cefa',
borderWidth: 1,
label: {
show: false
}
},
emphasis: {
borderColor: '#1e90ff',
borderWidth: 5,
label: {
show: false
}
}
},
data : [
{name: "Hello!"},
]
},
geoCoord: {
"Hello!":[-4.729075, 37.906475],
}
}
]
});
I tried with asoluteZoom but nothing happens.
Share Improve this question asked Apr 26, 2017 at 7:11 ƒernando Valleƒernando Valle 3,7146 gold badges38 silver badges59 bronze badges3 Answers
Reset to default 3I solved with: scaleLimit is explained here
Use zoom property of series object.
You can do so as below,
echartInstance.dispatchAction({
type: 'dataZoom',
start: 90,
end: 100
});