Skip to content

A Leaflet plugin integrating WebAssembly and service workers for advanced tile management. Features include optimized caching, spatial indexing with KDBush, Bing Maps support, and dynamic tile loading based on viewport for enhanced performance.

Notifications You must be signed in to change notification settings

TuanTayHo/L.tileLayer.viqy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

L.TileLayer.ViQy

L.TileLayer.ViQy is a Leaflet plugin that enhances the default tile layer management with advanced features like WebAssembly integration, service workers, and spatial indexing using KDBush. This plugin provides optimized caching, improved performance, and supports alternative map services such as Bing Maps.

Features

  • WebAssembly Integration: Utilizes FastBitSet for efficient spatial indexing and performance.
  • Service Workers: Provides offline capabilities and optimized tile caching.
  • KDBush Spatial Indexing: Enhances tile management by using spatial indexing for quick lookups.
  • Bing Maps Support: Optionally use Bing Maps as a tile source with adaptive retries for tile loading.
  • Dynamic Tile Loading: Automatically adjusts tile loading based on the viewport for better performance.

Installation

To use this plugin, include it in your Leaflet project.

Example

const L = require('leaflet');
require('./source/L.tileLayer.ViQy');

document.addEventListener("DOMContentLoaded", function() {
    const map = L.map('map').setView([21.028511, 105.804817], 13);

    L.tileLayer.viqy('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
    }).addTo(map);

    L.marker([21.028511, 105.804817]).addTo(map)
        .bindPopup('Hà Nội, Việt Nam')
        .openPopup();
});

About

A Leaflet plugin integrating WebAssembly and service workers for advanced tile management. Features include optimized caching, spatial indexing with KDBush, Bing Maps support, and dynamic tile loading based on viewport for enhanced performance.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published