Skip to content

Commit

Permalink
fix mapbox2d defaults
Browse files Browse the repository at this point in the history
match google tiles 3d rotation
fix zoom
  • Loading branch information
kfarr committed May 31, 2024
1 parent 2c30773 commit ad9725f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/street-geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ AFRAME.registerComponent('street-geo', {
'material',
'color: #ffffff; shader: flat; side: both; transparent: true;'
);
mapbox2dElement.setAttribute('rotation', '-90 -4.25 0');
mapbox2dElement.setAttribute('rotation', '-90 -90 0');
mapbox2dElement.setAttribute('anisotropy', '');
mapbox2dElement.setAttribute('mapbox', {
accessToken: MAPBOX_ACCESS_TOKEN_VALUE,
center: `${data.longitude}, ${data.latitude}`,
zoom: 15,
zoom: 18,
style: 'mapbox://styles/mapbox/satellite-streets-v11',
pxToWorldRatio: 4
});
Expand Down

0 comments on commit ad9725f

Please sign in to comment.