From ad9725fbda017e0f56de054f6e5fe2dbf1bc5810 Mon Sep 17 00:00:00 2001 From: Kieran Farr Date: Thu, 30 May 2024 21:44:41 -0700 Subject: [PATCH] fix mapbox2d defaults match google tiles 3d rotation fix zoom --- src/components/street-geo.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/street-geo.js b/src/components/street-geo.js index 129cf46fc..cb15ccd80 100644 --- a/src/components/street-geo.js +++ b/src/components/street-geo.js @@ -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 });