iran-map-vue
Iran Map Vue

Iran svg map... :)
Installation
npm i iran-map-vue
Usage
<template>
<iran-map-vue
:click="_clickMap"
:hover="_hoverMap"
:data="provinces"
border-color="#999"
lake-color="#8dccc9"
sea-color="#8dccc9"
width="100%"
/>
</template>
<script>
import IranMapVue from 'iran-map-vue'
export default {
name: 'DemoIranMap',
components: { IranMapVue },
data() {
return {
provinces: { Isfahan:{ color: '#3e3ec9'} },
}
},
methods: {
_hoverMap(item) {
console.log(item)
},
_clickMap(item) {
console.log(item)
},
},
}
</script>
Props
{
data: {
type: Object,
default() {
return {
Tehran:{
color: '#000',
stroke: '#333',
strokeWidth: '4px',
opacity: 0.5,
bgColor: '#f00',
bubbleColor: '#00f',
content : `<span>Tehran</span>`,
tooltip : `Tehran`,
count: 1000,
}
};
},
},
width: {
type: String,
default: '400px',
},
fontSize: {
type: String,
default: '12px',
},
borderColor: {
type: String,
default: '#333',
},
seaColor: {
type: String,
default: '#007de5',
},
lakeColor: {
type: String,
default: '#007de5',
},
islandColor: {
type: String,
default: '#cfcfcf',
},
provinceColor: {
type: String,
default: '#e1e1e1',
},
bubbleColor: {
type: String,
default: '#996666',
},
color: {
type: String,
default: '#333',
},
click: {
type: Function,
default: undefined,
},
hover: {
type: Function,
default: undefined,
},
showBgColor: {
type: Boolean,
default: true
},
showBubble: {
type: Boolean,
default: false,
},
showCount: {
type: Boolean,
default: false,
},
showContent: {
type: Boolean,
default: false,
},
showTooltip: {
type: Boolean,
default: false,
},
maxCount:{
type: Number,
default: 0
},
minCount:{
type: Number,
default: null
},
}
MapData
// island
AbuMusa: { ... },
FarorBig: { ... },
FarorSmall: { ... },
Hendorabi: { ... },
Hengam: { ... },
Hormoz: { ... },
Khark: { ... },
Kish: { ... },
Lark: { ... },
Lavan: { ... },
Qeshm: { ... },
Siri: { ... },
TunbBig: { ... },
TunbSmall: { ... }
// lake
Jazmourian: { ...},
Lake_Qom: { ... },
Urmia: { ... }
// province
Alborz: { ... },
Ardabil: { ... },
AzerbaijanEast: { ... },
AzerbaijanWest: { ... },
Bushehr: { ... },
ChaharMahaalBakhtiari: { ... },
Fars: { ... },
Gilan: { ... },
Golestan: { ... },
Hamadan: { ... },
Hormozgan: { ... },
Ilam: { ... },
Isfahan: { ... },
Kerman: { ... },
Kermanshah: { ... },
KhorasanNorth: { ... },
KhorasanRazavi: { ... },
KhorasanSouth: { ... },
Khuzestan: { ... },
KohgiluyehBoyerAhmad: { ... },
Kurdistan: { ... },
Lorestan: { ... },
Markazi: { ... },
Mazandaran: { ... },
Qazvin: { ... },
Qom: { ... },
Semnan: { ... },
SistanBaluchestan: { ... },
Tehran: { ... },
Yazd: { ... },
Zanjan: { ... },
// sea
Caspian: {...},
PersianGulf: { ... }
License
MIT
author
Javad Shariati jsh1400
[Lifeweb Company] lifeweb.webapp@gmail.com
Related Packages
nuxt-svgo-loader
Nuxt module to load SVG files as Vue components, using SVGO for optimization.
222,835
27
Version History
| Version | Released | Vue | License |
|---|---|---|---|
| 1.3.1 | ^2.6.11 | MIT | |
| 1.3.0 | ^2.6.11 | MIT | |
| 1.2.2 | ^2.6.11 | MIT | |
| 1.2.1 | ^2.6.11 | MIT | |
| 1.0.4 | ^2.6.11 | MIT | |
| 1.0.3 | ^2.6.11 | MIT | |
| 1.0.2 | ^2.6.11 | MIT | |
| 1.0.1 | ^2.6.11 | MIT | |
| 1.0.0 | ^2.6.11 | MIT | |
| 0.0.33 | ^2.6.11 | MIT | |
| 0.0.32 | ^2.6.11 | MIT | |
| 0.0.31 | ^2.6.11 | MIT | |
| 0.0.30 | ^2.6.11 | MIT | |
| 0.0.29 | ^2.6.11 | MIT | |
| 0.0.28 | ^2.6.11 | MIT | |
| 0.0.27 | ^2.6.11 | MIT | |
| 0.0.26 | ^2.6.11 | MIT | |
| 0.0.25 | ^2.6.11 | MIT | |
| 0.0.24 | ^2.6.11 | MIT | |
| 0.0.23 | ^2.6.11 | MIT | |
| 0.0.22 | ^2.6.11 | MIT | |
| 0.0.21 | ^2.6.11 | MIT | |
| 0.0.20 | ^2.6.11 | MIT | |
| 0.0.17 | ^2.6.11 | ||
| 0.0.16 | ^2.6.11 | MIT | |
| 0.0.15 | ^2.6.11 | MIT | |
| 0.0.14 | ^2.6.11 | MIT | |
| 0.0.13 | ^2.6.11 | MIT | |
| 0.0.12 | ^2.6.11 | MIT | |
| 0.0.11 | ^2.6.11 |
Showing the latest 30 of 40. See every release on npm