Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@karpojs/vue-tmap
Advanced tools
Readme
vue-tmap, a high-performance map component library for Vue3 based on Tencent Maps and TypeScript encapsulation, has the following features:
Welcome to Official document address to view more map components.
tmap-class | vue component | Introduction |
---|---|---|
Map | tmap-map | Map base components |
MultiMarker | tmap-multi-marker | Multiple Marker Points |
MultiPolyline | tmap-multi-polyline | Polyline |
MultiPolygon | tmap-multi-polygon | Polygon |
MultiLabel | tmap-multi-label | Text Labeling |
MultiCircle | tmap-multi-circle | Circle |
DOMOverlay | tmap-dom-overlay | DOM overlay abstract class |
InfoWindow | tmap-info-window | Information prompt window |
MarkerCluster | tmap-marker-cluster | Point Aggregation |
npm install @map-component/vue-tmap
https://lbs.qq.com/dev/console/key/manage
<template>
<tmap-map
mapKey="CGABZ-3MH66-6VGST-MEMS3-K6U3V-DGBKA"
:events="events"
:center="center"
:zoom="zoom"
:doubleClickZoom="doubleClickZoom"
:control="control"
>
</tmap-map>
</template>
<script lang="ts">
import { defineComponent, ref } from 'vue';
export default defineComponent({
name: 'Home',
setup() {
const center = ref({ lat: 30.290756, lng: 120.074387 });
const zoom = ref(10);
const doubleClickZoom = ref(true);
const print = (e: unknown) => {
console.log(e);
};
return {
events: {
dblclick: print,
},
center,
zoom,
doubleClickZoom,
control: {
scale: {},
zoom: {
position: 'bottomRight',
},
},
};
},
});
</script>
mapKey is the newly applied key
Thanks to all the technical enthusiasts who participated in the contribution, let's build an easy-to-use map component library together
Please submit a bug through issue, and describe in detail how to reproduce the error and the version of dependencies. It is best to display the reproduced code through an online code editor.
Please submit your code via pull request and we'll take a look soon
git clone xxx
cd react-tmap // cd vue-tmap
npm install
npm run dev
Add WeChat group after open source
FAQs
基于腾讯地图 JavaScript API GL、TypeScript 封装适用于 Vue3 的高性能地图组件库
The npm package @karpojs/vue-tmap receives a total of 7 weekly downloads. As such, @karpojs/vue-tmap popularity was classified as not popular.
We found that @karpojs/vue-tmap demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
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.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.