1.1.0 • Published 2 years ago

vuevectormap v1.1.0

Weekly downloads
44
License
MIT
Repository
github
Last release
2 years ago

VueVectorMap

A Vue wrapper component for Jsvectormap jsvectormap

Versions

Vuejs versionPackage versionBranch
3.x2.xnext (in development)
2.x1.xmaster

Installation

Installing via npm

npm i vuevectormap@next

Demo

Example at vuevectormap Example at codesandbox and code

Get started

import { createApp } from 'vue'
import VueVectorMap from 'vuevectormap'
import 'vuevectormap/src/scss/vuevectormap.scss'

// Import your preferred map
require('jsvectormap/dist/maps/world')

const app = createApp({})

app.use(VueVectorMap, {
  // Set global options if any etc..
  backgroundColor: '#f6f6f6'
})

app.mount('#app')

Just define vuevectormap component and we're done! Notice: the default map is world, so you don't have to pass map prop.

<template>
  <div class="...">
    <vuevectormap
      width="700"
      height="350"
      :options="{
        // Map options..
        // markers: []
        // markerStyle: {}
        // etc..
      }">
    </vuevectormap>
  </div>
</template>

Tip: if you're using sass and and you want to overwrite the default style, the below snippet is for you. Look at this file to know about all possible variables.

// Example variables.
$tooltip-bg-color: #3a3d4c;
$tooltip-font-family: Roboto, Etc;

@import 'vuevectormap';
2.0.1

2 years ago

1.1.0

2 years ago

2.0.0

2 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago