WebGL overlay for leaflet
Using leafletjs-canvas-overlay for canvas. Based on this blog post.
Building
Install the dependencies by running npm install
then build project by running npm run build
. The built files will be place in the ./dist
directory.
Installing
Install the package by running npm install leaflet-webgl-overlay
Basic usage
Create a new WebGLOverlay and add it to your leaflet map:
let overlay = ;overlay;
You can add GLMarkers and GLCircleMarkers to this overlay.
overlay;overlay;
A popup can be binded to the markers, that opens when the marker is clicked.
let marker = 00options;marker;
GLMarkerOptions:
GLIconOptions
GLCircleMarkerOptions: