Socket
Socket
Sign inDemoInstall

@voomap/map

Package Overview
Dependencies
27
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @voomap/map

Google Maps with Composition API


Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Install size
805 kB
Created
Weekly downloads
 

Readme

Source

Voomap

Easy use of Google Maps with Composition API

Voomap is built using Composition API and TypeScript.

📦 Install

npm i @voomap/map

🦄 Usage

Map

Before using voomap, the only thing you need to do is to apply for a Google Maps API.

<script setup lang="ts">
  import { GoogleMap } from "@voomap/map";
  import { reactive } from "vue";

  const center = reactive<google.maps.LatLngLiteral>({
    lat: 25.0855388,
    lng: 121.4791004,
  });
</script>

<template>
  <GoogleMap :api-key="YOUR_GOOGLE_MAPS_API_KEY" :center="center" :zoom="11" />
</template>

Refer to documentations for more details.

Marker

To make it easy for you to use Google Map, you can simply add the components you need as child components, just as easily as with element-ui!

<script setup lang="ts">
  import { GoogleMap, Marker } from "@voomap/map";
  import { reactive } from "vue";

  const center = reactive<google.maps.LatLngLiteral>({
    lat: 25.0855388,
    lng: 121.4791004,
  });
</script>

<template>
  <GoogleMap :api-key="VITE_GOOGLE_MAP_API_KEY" :center="center" :zoom="11">
    <Marker :position="center" />
  </GoogleMap>
</template>

📃 Code Style

code style

👨‍🚀 Contributors

This project is not yet complete, and I warmly welcome feature requests and improvement suggestions. You can create an issue to initiate a discussion with me!

📄 License

MIT License © 2023 CofCat

Keywords

FAQs

Last updated on 04 Apr 2024

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc