Replies: 1 comment 6 replies
-
There is no basemap implementation for OpenLayers, only Leaflet and MapLibre. You could try something like https://github.com/openlayers/ol-mapbox-style with the MapLibre JSON style but the results are generally just OK. |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been working to get the basemap tiles on OpenLayers but am stuck here...
![Screenshot from 2024-10-08 21-46-19](https://private-user-images.githubusercontent.com/33510351/374773516-f83c6b59-0821-4089-a0c8-eb744f5448d6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MTg3MDIsIm5iZiI6MTczOTkxODQwMiwicGF0aCI6Ii8zMzUxMDM1MS8zNzQ3NzM1MTYtZjgzYzZiNTktMDgyMS00MDg5LWEwYzgtZWI3NDRmNTQ0OGQ2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTglMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjE4VDIyNDAwMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTkzOWQzM2Q0NzhlODdkNzUwNGU0MmZmOGJmOTZkYWE0MjMyM2JmOTBkNWZlNGMzOGYyYjA3YzAxMzFhODgyNWYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.Ipphosv32V6t8E6AR4dtPGfpbNBFfrAJoLi_DFr5_kU)
I know the map is working fine from my Cloudflare-hosted .mvt file in Leaflet... https://smap-3nr.pages.dev/
I'm wondering how to get the same basemaps that are in Leaflet to my OpenLayers map
Beta Was this translation helpful? Give feedback.
All reactions