Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ilyaliao/voomap

Easy use of Google Maps with Composition API
https://github.com/ilyaliao/voomap

com composition-api google-maps google-maps-api typescript vue3

Last synced: about 2 months ago
JSON representation

Easy use of Google Maps with Composition API

Awesome Lists containing this project

README

        





Voomap


Easy use of Google Maps with Composition API

> Voomap is built using Composition API and TypeScript.

## šŸ“¦ Install

```bash
npm iĀ @voomap/map
```

## šŸ¦„ Usage

### Map

Before using `voomap`, the only thing you need to do is to [apply for a Google Maps API](https://developers.google.com/maps/documentation/javascript/get-api-key).

```html

import { GoogleMap } from "@voomap/map";
import { reactive } from "vue";

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

```

Refer to [documentations](https://voomap.vercel.app/) 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`!

```html

import { GoogleMap, Marker } from "@voomap/map";
import { reactive } from "vue";

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



```

## šŸ“ƒ Code Style

[![code style](https://antfu.me/badge-code-style.svg)](https://github.com/antfu/eslint-config)

## šŸ‘Øā€šŸš€ 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) License Ā© 2024-PRESENT [Ilya Liao](https://github.com/ilyaliao)