Introduction
Installation
This section covers how to install and set up libregl, the following steps will guide you through the installation process.
Installation
To get started with libregl, you can install it through your preferred package manager or include it directly from a CDN for quick integration.
npm install libregl # pnpm add libregl || yarn add libregl
Quick usage
To get started with libregl in your project, follow these quick and easy steps:
<script setup lang="ts">
import { Map } from 'libregl'
</script>
<template>
<Map
height="400px"
width="600px"
:center="[18, 48]"
:zoom="3"
:style="`https://api.maptiler.com/maps/streets-v2/style.json?key=KEY`"
>
</Map>
</template>
Licence
The libregl library is released under the permissive MIT License.
This means you have the freedom to use, modify, and distribute the framework in your projects, with minimal restrictions. Check out the LICENSE file for more details.