You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I need to use MapLibre maps to store tiles legally for offline use. Everything works fine without the leaflet rotation feature.
Any ideas to make it compatible?
This code works until you uncomment the leaflet-rotate script:
<!DOCTYPE html><html><head><title>WebGL</title><metacharset="utf-8"><metaname="viewport" content="width=device-width, initial-scale=1"><style>
html, body, #map {
width: 100%;
height: 100%;
margin: 0;
}
</style><!-- Leaflet --><linkrel="stylesheet" href="./resources/leaflet/dist/leaflet.css" /><scriptsrc="./resources/leaflet/dist/leaflet.js"></script><!-- <script src="./resources/leaflet-rotate/dist/leaflet-rotate.js"></script> --><!-- Maplibre GL --><linkhref="./resources/maplibre-gl.css" rel='stylesheet' /><scriptsrc="./resources/maplibre-gl.js"></script><!-- Leaflet Maplibre GL plugin --><scriptsrc="./resources/leaflet-maplibre-gl.js"></script></head><body><divid="map"></div><script>varmap=L.map('map').setView([38.912753,-77.032194],15);L.marker([38.912753,-77.032194]).bindPopup("Hello <b>Leaflet GL</b>!<br>Whoa, it works!").addTo(map).openPopup();vargl=L.maplibreGL({// Cambia el estilo según tus necesidadesstyle: './resources/liberty.json',}).addTo(map);</script></body></html>
The text was updated successfully, but these errors were encountered:
Hi @Raruto,
The attached code above is a simple snippet you can save to an html file (notice local scripts).
As you can see, the only fact of uncomment the leaflet-rotate.js breaks everything and nothing works.
Really would be vey nice if you can make it compatible with maplibre, because actually it's THE ONLY tiles provider that allow to use and download maptiles for free (even for comercial use).
I need to use MapLibre maps to store tiles legally for offline use. Everything works fine without the leaflet rotation feature.
Any ideas to make it compatible?
This code works until you uncomment the leaflet-rotate script:
The text was updated successfully, but these errors were encountered: