Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rbrundritt/maplibre-gl-svg
A maplibre-gl-js plugin that adds support for loading SVGs and SVG templates as images into the maps image sprite.
https://github.com/rbrundritt/maplibre-gl-svg
Last synced: about 1 month ago
JSON representation
A maplibre-gl-js plugin that adds support for loading SVGs and SVG templates as images into the maps image sprite.
- Host: GitHub
- URL: https://github.com/rbrundritt/maplibre-gl-svg
- Owner: rbrundritt
- License: mit
- Created: 2023-12-01T18:15:55.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-12-11T18:30:36.000Z (about 1 year ago)
- Last Synced: 2023-12-11T19:34:51.633Z (about 1 year ago)
- Language: TypeScript
- Size: 839 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# MapLibre GL SVG Plugin
> Status: New plugin, still being validated.
A [maplibre-gl-js](https://maplibre.org/maplibre-gl-js/docs/) plugin that adds support for loading SVGs images into the maps image sprite.
- [Go to the examples page](https://rbrundritt.github.io/maplibre-gl-svg/index.html)
- [Read the docs](https://github.com/rbrundritt/maplibre-gl-svg/blob/main/docs/docs.md)**Features:**
- Load an SVG into the maps image sprite and use as an icon in a symbol layer, or as an fill pattern.
- Framework for templatable SVG icons. Great way to create reusable icons that you can programmatically change the styles of.
- HTML marker support**Known Limitations**
- When loaded into the maps image sprite SVG's are converted into a data URI, and loaded as a static image into the maps image sprite. This means animations and CSS classes are not supported. All CSS styles should be embedded within the SVG. SVG's used with HTML markers will support CSS classes and animations as usual.
## LicenseMIT
See [License](https://github.com/rbrundritt/maplibre-gl-svg/blob/main/LICENSE.md) for full license text.