nuxt-woosmap
v1.0.22
Published
Module for Nuxt.js to integrate Woosmap
Downloads
42
Readme
Nuxt Woosmap
Introduction
This is a Nuxt.js module for Woosmap.
Installation
To use in a project, you can run the following command to install the nuxt-woosmap
NPM package:
npm i nuxt-woosmap
Usage
To use this module, you need to add it to the modules
section of your nuxt.config.js
file:
{
modules: [
'nuxt-woosmap'
]
}
And then, add the environment variables to your .env
file:
WOOSMAP_API_KEY=YOUR_API_KEY
Then, you can use it in your code like this:
<template>
<Woosmap :options="options" />
</template>
<script lang="ts">
import { Woosmap } from "nuxt-woosmap";
export default {
data: () => {
return {
options: {
center: { lat: 51.50940214, lng: -0.133012 },
zoom: 13
}
}
},
components: {
Woosmap
}
};
</script>