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 - npm Package Compare versions

Comparing version
0.0.3
to
0.0.4
+2
-4
package.json
{
"name": "vue-mapkit",
"version": "0.0.3",
"version": "0.0.4",
"description": "A Vue library for Apple Mapkit",

@@ -36,5 +36,3 @@ "main": "dist/vue-mapkit.min.js",

"homepage": "https://github.com/SeteMares/vue-mapkit#readme",
"dependencies": {
"webpack": "^4.35.2"
}
"dependencies": {}
}

@@ -1,1 +0,58 @@

# vue-mapkit
# vue-mapkit
A Vue library for Apple Mapkit. Inspired by [thomas-alrek/MapkitVue](https://github.com/thomas-alrek/MapkitVue).
>Plugin doesn't contain any component wrappers. You should use mapkit directly.
## Installation
```bash
# Yarn
yarn add vue-mapkit
# or NPM
npm install vue-mapkit --save
```
## Usage
#### Initialization
Please follow the official [MapkitJS documentation](https://developer.apple.com/maps/web/) to setup your API credentials.
```js
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.
```js
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
})
}
}
}
```