{"id":29133252,"url":"https://github.com/do-me/leaflet_maplibre_hack","last_synced_at":"2026-02-03T03:06:36.187Z","repository":{"id":300707771,"uuid":"1006877543","full_name":"do-me/leaflet_maplibre_hack","owner":"do-me","description":"Displaying vector tile basemaps on Leaflet 0.7.7 with maplibre and protomaps basemaps ","archived":false,"fork":false,"pushed_at":"2025-06-23T07:09:27.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-23T07:27:22.307Z","etag":null,"topics":["leaflet","maplibre","protomaps","vector-tiles"],"latest_commit_sha":null,"homepage":"https://do-me.github.io/leaflet_maplibre_hack/","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/do-me.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-23T06:11:50.000Z","updated_at":"2025-06-23T07:09:30.000Z","dependencies_parsed_at":"2025-06-23T07:27:29.854Z","dependency_job_id":"659066f5-94fa-4b01-949c-7e4217308d9e","html_url":"https://github.com/do-me/leaflet_maplibre_hack","commit_stats":null,"previous_names":["do-me/leaflet_maplibre_hack"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/do-me/leaflet_maplibre_hack","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-me%2Fleaflet_maplibre_hack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-me%2Fleaflet_maplibre_hack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-me%2Fleaflet_maplibre_hack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-me%2Fleaflet_maplibre_hack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/do-me","download_url":"https://codeload.github.com/do-me/leaflet_maplibre_hack/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/do-me%2Fleaflet_maplibre_hack/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262727705,"owners_count":23354665,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["leaflet","maplibre","protomaps","vector-tiles"],"created_at":"2025-06-30T07:02:35.986Z","updated_at":"2026-02-03T03:06:31.166Z","avatar_url":"https://github.com/do-me.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Leaflet-Maplibre-Hack\n\n**This repo is only for you if you are bound to some legacy Leaflet version below v1.0 where vector tiles could not yet be displayed.**\n\nThe example here uses maplibre as base layer displaying vector-tile-based basemaps. This layer is not supposed to be interactive, so it can stay in the background. The markers, lines and geometries are drawn on top of this basemap with Leaflet so you do not need to rewrite your application but can still use:\n\n- super performant and cheap protomaps-based basemaps. See https://maps.protomaps.com/#flavorName=light\u0026lang=en\u0026map=1.22/0/0 for reference. This repo includes a style.json but you need to enter a valid URL for your own protomaps instance like `\"url\": \"pmtiles://https://fsn1.your-objectstorage.com/your-bucket/world.pmtiles\"`\n- official OSM vector tiles\n- BKG basemaps for Germany with: style: `https://gdz.bkg.bund.de/index.php/default/gdz-basemapde-vektor-gdz-basemapde-vektor.html`\n- OpenFreeMaps with: style: `https://tiles.openfreemap.org/styles/liberty`\n\n## Issues \n\nEverything works, however, note that animations (for a \"smooth\" zooming experience) are currently turned off. I did not manage yet to get smooth zooming for both leaflet \u0026 maplibre at the same time without delay. \n\nFor Leaflet, you can turn it on again with: `zoomAnimation: false,`, then the markers etc. will be animated. However, it creates an annoying offset for the animation duration between the actual coordinates of the markers vs. the basemap (that is not animated). \n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdo-me%2Fleaflet_maplibre_hack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdo-me%2Fleaflet_maplibre_hack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdo-me%2Fleaflet_maplibre_hack/lists"}