New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@timeroute/vmap

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@timeroute/vmap

VMap is a comprehensive MapboxGL component library. You can easily and happily apply VMap to your Vue projects. Import various data sources and layers in the form of components, and modify the state of the layer by modifying the parameters of props.

unpublished
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

VMap

VMap is a comprehensive MapboxGL component library. You can easily and happily apply VMap to your Vue projects. Import various data sources and layers in the form of components, and modify the state of the layer by modifying the parameters of props.

The purpose of VMap is to allow users to develop GIS in Vue more concisely and efficiently.

How it works?

VMap essentially wraps some classes in MapboxGL and implements componentization through some variable properties of the watch class.

For example, the v-fill-layer component actually wraps the FillLayer class.

Installation

pnpm add mapvue

Import

import { createApp } from "vue";
import VMap from "mapbox-vue";
import "mapbox-vue/dist/mapbox-vue.css";
import App from "./App.vue";

createApp(App).use(VMap).mount("#app");

Use Component

<script setup>
import { reactive } from "vue";
import token from "some-where";
</script>

<template>
  <v-map :accessToken="token" :options="state.mapOptions">
    <v-geo-source
      id="ports"
      data="https://d2ad6b4ur7yvpq.cloudfront.net/naturalearth-3.3.0/ne_10m_ports.geojson"
      :cluster="true"
    />
    <v-circle-layer id="ports" source="ports" />
  </v-map>
</template>

Keywords

mapbox-gl

FAQs

Package last updated on 22 Jul 2022

Did you know?

Socket

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