# Use of leaflet-gl-vector-layer from browser

**URL:** https://forum.atmospherictoolbox.org/t/use-of-leaflet-gl-vector-layer-from-browser/547
**Category:** AVL
**Created:** [August 10, 2022, 2:49pm UTC](https://forum.atmospherictoolbox.org/t/use-of-leaflet-gl-vector-layer-from-browser/547 "2022-08-10T14:49:32Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![sander.niemeijer](https://forum.atmospherictoolbox.org/user_avatar/forum.atmospherictoolbox.org/sander.niemeijer/32/5_2.png) [@sander.niemeijer](https://forum.atmospherictoolbox.org/u/sander.niemeijer)
#### Post date: [August 11, 2022, 7:24am UTC](https://forum.atmospherictoolbox.org/t/use-of-leaflet-gl-vector-layer-from-browser/547/2 "2022-08-11T07:24:48Z")

</div>

Since the leaflet-gl-vector-layer software is one of the components of the [atmosphere virtual lab](https://forum.atmospherictoolbox.org/t/introducing-atmosphere-virtual-lab-and-lps2022-demo), this question is definitely not out of scope for this forum.

The [leaflet-gl-vector-layer](https://github.com/stcorp/leaflet-gl-vector-layer) is actually a pure javascript leaflet plugin. It runs in the browser (not on the server). You can [npm install](https://www.npmjs.com/package/@stcorp/leaflet-gl-vector-layer) it to use it in your own webclient applications.

The main challenge for viewing this data in the browser is actually getting the data available in your browser as well. This requires some interface with a server or your local file system. For the Atmosphere Virtual Lab the data is provided via jupyter kernels and to make this interface efficient (using a compact binary data transfer from server to browser) we developed the [ipyleaflet-gl-vector-layer-plugin](https://github.com/stcorp/ipyleaflet-gl-vector-layer-plugin). So, if you want to use leaflet-gl-vector-layer without the jupyter part, you will have to find your own way of transferring the data in a compact form (for instance using opendap+[jsdap](https://github.com/stcorp/jsdap), or [a javascript hdf5 reader](https://github.com/usnistgov/jsfive) if your data is local).

---

_[View the full topic](https://forum.atmospherictoolbox.org/t/use-of-leaflet-gl-vector-layer-from-browser/547)._
