Skip to content

Commit

Permalink
Update examples (#5218)
Browse files Browse the repository at this point in the history
  • Loading branch information
ibesora authored Dec 16, 2024
1 parent 4a50534 commit d325252
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 13 deletions.
2 changes: 1 addition & 1 deletion test/examples/3d-buildings.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
pitch: 45,
bearing: -17.6,
container: 'map',
antialias: true
canvasContextAttributes: {antialias: true}
});

// The 'building' layer in the streets vector source contains building-height
Expand Down
2 changes: 1 addition & 1 deletion test/examples/3d-extrusion-floorplan.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
zoom: 15.99,
pitch: 40,
bearing: 20,
antialias: true
canvasContextAttributes: {antialias: true}
});

map.on('load', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/examples/add-3d-model-babylon.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
zoom: 18,
center: [148.9819, -35.3981],
pitch: 60,
antialias: true // create the gl context with MSAA antialiasing, so custom layers are antialiased
canvasContextAttributes: {antialias: true} // create the gl context with MSAA antialiasing, so custom layers are antialiased
}));

// World matrix parameters
Expand Down
2 changes: 1 addition & 1 deletion test/examples/add-3d-model-threejs-with-shadow.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
zoom: 18,
center: [148.9819, -35.3981],
pitch: 60,
antialias: true
canvasContextAttributes: {antialias: true}
});

const modelOrigin = [148.9819, -35.39847];
Expand Down
2 changes: 1 addition & 1 deletion test/examples/add-3d-model-with-terrain.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
zoom: 16.27,
pitch: 60,
bearing: -28.5,
antialias: true,
canvasContextAttributes: {antialias: true},
style: {
version: 8,
layers: [
Expand Down
2 changes: 1 addition & 1 deletion test/examples/add-3d-model.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
zoom: 18,
center: [148.9819, -35.3981],
pitch: 60,
antialias: true // create the gl context with MSAA antialiasing, so custom layers are antialiased
canvasContextAttributes: {antialias: true} // create the gl context with MSAA antialiasing, so custom layers are antialiased
});

// parameters to ensure the model is georeferenced correctly on the map
Expand Down
2 changes: 1 addition & 1 deletion test/examples/center-point.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
pitch: 85,
bearing: -17.6,
container: 'map',
antialias: true,
canvasContextAttributes: {antialias: true},
centerClampedToGround: false,
elevation: 541,
maxPitch: 105
Expand Down
2 changes: 1 addition & 1 deletion test/examples/custom-style-layer.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
zoom: 3,
center: [7.5, 58],
style: 'https://demotiles.maplibre.org/style.json',
antialias: true // create the gl context with MSAA antialiasing, so custom layers are antialiased
canvasContextAttributes: {antialias: true} // create the gl context with MSAA antialiasing, so custom layers are antialiased
});

// create a custom style layer to implement the WebGL content
Expand Down
2 changes: 1 addition & 1 deletion test/examples/geocoder.html
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
zoom: 15.99,
pitch: 40,
bearing: 20,
antialias: true
canvasContextAttributes: {antialias: true}
});

const geocoderApi = {
Expand Down
2 changes: 1 addition & 1 deletion test/examples/globe-3d-model.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
center: [150.16546137527212, -35.017179237129994],
maxPitch: 80,
pitch: 70,
antialias: true, // create the gl context with MSAA antialiasing, so custom layers are antialiased
canvasContextAttributes: {antialias: true} // create the gl context with MSAA antialiasing, so custom layers are antialiased
});

map.on('style.load', () => {
Expand Down
2 changes: 1 addition & 1 deletion test/examples/globe-custom-simple.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
style: 'https://demotiles.maplibre.org/style.json',
zoom: 3,
center: [7.5, 58],
antialias: true,
canvasContextAttributes: {antialias: true}
});

map.on('style.load', () => {
Expand Down
3 changes: 1 addition & 2 deletions test/examples/globe-custom-tiles.html
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,7 @@
container: 'map',
style: 'https://demotiles.maplibre.org/style.json',
zoom: 2,
center: [7.5, 58],
antialias: false,
center: [7.5, 58]
});

map.on('style.load', () => {
Expand Down

0 comments on commit d325252

Please sign in to comment.