1.36.1 • Published 2 years ago

@feltmaps/protomaps v1.36.1

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
2 years ago

protomaps.js

A vector map renderer for the web.

npm Test suite minzipped size

This project is a complete web map renderer - including quality label layout, pattern fills, and icons - in as simple as possible of an implementation. It's an alternative to renderers like Mapbox GL JS in a fraction of the size.

Features

  • Render static maps to Canvas elements or interactive maps with Leaflet integration
  • Supports variable web fonts with multiple weights and italics in a single font file
  • Can read normal Z/X/Y tile URLs or offline, S3-hosted tile archives in PMTiles format
  • Full out-of-the-box support for right-to-left and Indic/Brahmic writing systems
  • Configurable via plain JavaScript
  • Extensible API for defining your own symbolizers

See the docs on what protomaps.js is, what protomaps.js is not

Demos

How to use

<script src="https://unpkg.com/protomaps@latest/dist/protomaps.min.js"></script>
<script>
    const map = L.map('map')
    var layer = protomaps.leafletLayer({url:'FILE.pmtiles OR ENDPOINT/{z}/{x}/{y}.pbf'})
    layer.addTo(map)
</script>

Exports of OpenStreetMap data in PMTiles format can be obtained from https://protomaps.com/bundles.

Benchmarking

  • Go into the benchmarks folder and run npm install and npm run start.
  • If you want to add benchmarks, take a look at the benchmarks/benchs/benchmarks.ts file

Benchmarking the felt style

  • Felt benchmarking is done in the map-benchmarks private repo. That compares the last @feltmaps/protomaps published package against the benchmarking-base branch of this repo

Project Status

The design is still evolving rapidly, so do not expect any kind of stable internal or external-facing API between minor versions. But please do report bugs and discuss requirements in the Issues.

See Also

1.35.0

2 years ago

1.36.0

2 years ago

1.36.1

2 years ago

1.33.3

2 years ago

1.33.1

2 years ago

1.33.2

2 years ago

1.32.0

2 years ago

1.34.0

2 years ago

1.33.0

2 years ago

1.30.0

2 years ago

1.30.1

2 years ago

1.31.0

2 years ago

1.29.0

2 years ago

1.27.2

2 years ago

1.27.0

2 years ago

1.27.1

2 years ago

1.26.0

2 years ago

1.28.1

2 years ago

1.28.2

2 years ago

1.28.0

2 years ago

1.25.0

2 years ago

1.23.2

2 years ago

1.25.1

2 years ago

1.23.3

2 years ago

1.23.0

2 years ago

1.23.1

2 years ago

1.23.4

2 years ago

1.23.5

2 years ago

1.24.1

2 years ago

1.24.2

2 years ago

1.24.0

2 years ago

1.24.3

2 years ago

1.24.4

2 years ago

1.21.1

2 years ago

1.21.2

2 years ago

1.22.0

2 years ago

1.22.1

2 years ago

1.21.0

2 years ago

1.19.0

2 years ago

1.19.1

2 years ago

1.20.1

2 years ago

1.20.0

2 years ago

1.18.1

2 years ago

1.18.0

2 years ago

1.18.5

2 years ago

1.18.4

2 years ago

1.18.3

2 years ago

1.18.2

2 years ago

1.18.7

2 years ago

1.18.6

2 years ago

1.17.2

2 years ago

1.16.0

2 years ago

1.15.0

2 years ago

1.15.4

2 years ago

1.17.1

2 years ago

1.15.3

2 years ago

1.17.0

2 years ago

1.15.2

2 years ago

1.15.1

2 years ago

1.15.8

2 years ago

1.15.7

2 years ago

1.15.6

2 years ago

1.15.5

2 years ago

1.15.9

2 years ago

1.14.1

2 years ago

1.14.0

2 years ago

1.11.3

2 years ago

1.13.0

2 years ago

1.12.0

2 years ago

1.11.2

2 years ago

1.11.1

2 years ago

1.9.1

2 years ago

1.9.0

2 years ago

1.8.0

2 years ago

1.7.0

2 years ago

1.6.0

2 years ago

1.5.1

2 years ago

1.5.0

3 years ago

1.9.3

2 years ago

1.9.2

2 years ago

1.11.0

2 years ago

1.10.0

2 years ago

1.4.4

3 years ago

1.4.3

3 years ago

1.4.2

3 years ago

1.4.1

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

1.13.8

3 years ago

1.13.7

3 years ago

1.13.6

3 years ago

1.13.5

3 years ago

1.13.4

3 years ago

1.13.3

3 years ago

1.13.2

3 years ago

1.13.1

3 years ago