Map Print
Vue.js library for printing maps with customizable options
🚀 Introduction
Map Print is a Vue.js library that provides components for printing maps with customizable options. The library supports printing maps in different formats, custom layouts, and advanced printing options.
📦 Installation
bash
npm install @hungpvq/vue-map-print
bash
yarn add @hungpvq/vue-map-print
🎯 Features
- ✅ Print controls - Easy-to-use print controls
- ✅ Custom layouts - Customizable print layouts
- ✅ Multiple formats - Support for various print formats
- ✅ Print preview - Preview before printing
- ✅ Advanced options - Advanced printing settings
- ✅ Export support - Export to PDF and images
- ✅ TypeScript support - Full TypeScript support
- ✅ Vue 3 Composition API - Modern Vue 3 Composition API
🚀 Basic Usage
Basic Print Control
vue
<template>
<Map @map-loaded="onMapLoaded">
<PrintControl />
</Map>
</template>
<script setup lang="ts">
import { Map } from '@hungpvq/vue-map-core';
import { PrintControl } from '@hungpvq/vue-map-print';
import '@hungpvq/vue-map-core/style.css';
import '@hungpvq/vue-map-print/style.css';
function onMapLoaded(map: any) {
console.log('Map loaded:', map);
}
</script>
🤝 Contributing
All contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
📄 License
MIT License