1.0.0 • Published 5 years ago
svg-sh-map v1.0.0
svg_sh_map
A svg map for shanghai with zoom function
component props:
- width: number
- height: number
- mapData: [
{
name: "崇明",
number: 0
},
{
name: "松江",
number: 66
},
{
name: "闵行",
number: 70,
zoom: true, //zoom or not
zIndex: 2, // render order, The bigger the number, the higher the hierarchy
}
]
- options: {
colorGradient: ["#028090", "#f0f3bd"], //default
range: [0, 150], //default
highlight: "#06f092", //default
gradWidth: 10, //default
barPosition: "", //default "side"
barPad: 10, //default
barRadius: 5, //default
barBackground: "#ccc" //default
}
1.0.0
5 years ago