0.0.1 ā€¢ Published 1 month ago

@voomap/core v0.0.1

Weekly downloads
-
License
ISC
Repository
github
Last release
1 month ago

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

0.0.1

1 month ago

0.0.1-beta.26

2 months ago

0.0.1-beta.25

8 months ago

0.0.1-beta.24

8 months ago

0.0.1-beta.23

9 months ago

0.0.1-beta.22

9 months ago

0.0.1-beta.21

9 months ago

0.0.1-beta.20

9 months ago

0.0.1-beta.19

9 months ago

0.0.1-beta.18

9 months ago

0.0.1-beta.17

9 months ago

0.0.1-beta.16

9 months ago

0.0.1-beta.15

9 months ago

0.0.1-beta.14

9 months ago

0.0.1-beta.13

9 months ago

0.0.1-beta.12

9 months ago

0.0.1-beta.11

9 months ago

0.0.1-beta.10

9 months ago

0.0.1-beta.9

9 months ago

0.0.1-beta.8

9 months ago

0.0.1-beta.7

9 months ago

0.0.1-beta.6

9 months ago

0.0.1-beta.5

9 months ago

0.0.1-beta.4

9 months ago

0.0.1-beta.3

9 months ago

0.0.1-beta.2

9 months ago

0.0.1-beta.1

9 months ago

0.0.1-beta.0

9 months ago