[openstreetmap/openstreetmap-website] Add OpenMapTiles vector map (PR #4042)
petr-hajek
notifications at github.com
Tue Jul 1 15:20:30 UTC 2025
@petr-hajek commented on this pull request.
> L.extend(L.LatLngBounds.prototype, {
getSize: function () {
return (this._northEast.lat - this._southWest.lat) *
(this._northEast.lng - this._southWest.lng);
}
});
+if (OSM.MAPTILER_KEY) {
+ maplibregl.setRTLTextPlugin(OSM.RTL_TEXT_PLUGIN, true);
+
+ L.OSM.OpenMapTiles = L.MaplibreGL.extend({
+ options: {
+ maxZoom: 23,
+ style: "https://api.maptiler.com/maps/openstreetmap/style.json?key=" + OSM.MAPTILER_KEY
@tomhughes WDYT?
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4042#discussion_r2177888358
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4042/review/2975930853 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20250701/c6bd19b8/attachment.htm>
More information about the rails-dev
mailing list