Skip to content

Achraf931/nuxt-woosmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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>

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published