New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

vue-mapkit

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-mapkit

A Vue library for Apple Mapkit

latest
Source
npmnpm
Version
0.0.4
Version published
Weekly downloads
35
-60.23%
Maintainers
1
Weekly downloads
 
Created
Source

vue-mapkit

A Vue library for Apple Mapkit. Inspired by thomas-alrek/MapkitVue.

Plugin doesn't contain any component wrappers. You should use mapkit directly.

Installation

# Yarn
yarn add vue-mapkit
# or NPM
npm install vue-mapkit --save

Usage

Initialization

Please follow the official MapkitJS documentation to setup your API credentials.

import Vue from 'vue'
import VueMapkit from 'vue-mapkit'

Vue.use(VueMapkit, {
    authorizationCallback(done) {
        // provide mapkit jwt here
        done(process.env.VUE_APP_MAPKIT_JWT)
    },
    // you can use options from mapkit documentation as well
    language: 'ja',
})

Draw a map

Now you can draw a map in a component.

import { createMapkit } from 'vue-mapkit'

export default {
  computed: {
      map_id() {
          return `map-${this._uid}`
      },
    },
    mounted() {
      createMapkit(this.map_id, { language: 'ja' }).then(map => {
        // use `map` to perform any changes
      })
    }
  }

}

Keywords

mapkit

FAQs

Package last updated on 01 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts