この質問はhereと同様に1年前に返されましたが、回答はありませんでした。私は "ドリルダウン"マップをメインマップと同じスタイルと背景にする方法を知りたいのですが。JVectorMapマルチマップドリルダウンは、ドリルダウン時に異なるスタイルを持ちますが、どのようにこのスタイルを変更することもできますか?
var regionStyling9 = { // This style is set to the main map's regionStyle
initial: {
fill: '#E9E9E9',
stroke: '#505050',
"fill-opacity": 1,
"stroke-width": 1,
"stroke-opacity": 1
},
hover: { fill: "#4DB870" }
};
$(function() {
new jvm.MultiMap({
container: $('#Chart9Map'),
maxLevel: 1,
main: {
map: 'us_aea_en',
backgroundColor: '#fff',
regionStyle: regionStyling9, // Here I set the top level style to the main map
series: {
regions: [{ values: stateMapData, scale: ['#cce2ec', '#006593'], normalizeFunction: 'polynomial' }]
}
},
mapUrlByCode: function(code, multiMap) {
return '../Scripts/JVectorMap/jquery-jvectormap-data-' +
code.toLowerCase() +
'-' +
multiMap.defaultProjection +
'-en.js';
}
});
});
メインチャートの場合と同様に、セカンダリチャートのスタイルにどのような影響を与えることができますか?
jVectorMap MultiMap Documentationによると、メインマップ、ドリルダウンマップのいない他のオブジェクトに対してのみ設定がある...