Skip to content

Commit

Permalink
feat(globe): enable antialiasing
Browse files Browse the repository at this point in the history
  • Loading branch information
clementgayvallet committed Jan 20, 2025
1 parent c31d2da commit 663be1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions examples/globe-projection.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
// Don't forget to replace <YOUR_ACCESS_TOKEN> by your own access token
const accessToken = "<YOUR_ACCESS_TOKEN>";

// Get the style then entend it with the globe projection
const style = await fetch(`https://api.jawg.io/styles/jawg-terrain.json?access-token=${accessToken}`)
.then((response) => response.json())
.then((style) => {
Expand All @@ -43,6 +44,7 @@
zoom: 2,
center: [0, 0],
maxPitch: 85,
canvasContextAttributes: { antialias: true },
}).addControl(new maplibregl.NavigationControl(), "top-right");
// This plugin is used for right to left languages
maplibregl.setRTLTextPlugin("https://unpkg.com/@mapbox/[email protected]/mapbox-gl-rtl-text.min.js");
Expand Down
1 change: 0 additions & 1 deletion examples/globe-rotate.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@
center: [0, 0],
maxPitch: 85,
canvasContextAttributes: { antialias: true },
hash: false,
});
// This plugin is used for right to left languages
maplibregl.setRTLTextPlugin("https://unpkg.com/@mapbox/[email protected]/mapbox-gl-rtl-text.min.js");
Expand Down

0 comments on commit 663be1d

Please sign in to comment.