fix: remove compass from map (#346)

(as it can not be rotated anyway)

Co-authored-by: yyxcv <yxcv@github.com>
Co-authored-by: gluap <44007906+gluap@users.noreply.github.com>
This commit is contained in:
yyxcv 2023-06-22 20:31:29 +02:00 committed by GitHub
parent 31d8390bdc
commit 5b91449749
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -152,9 +152,8 @@ function Map({
attributionControl={false} attributionControl={false}
> >
<AttributionControl style={{top: 0, right: 0}} /> <AttributionControl style={{top: 0, right: 0}} />
<NavigationControl style={{left: 16, top: hasToolbar ? 64 : 16}} /> <NavigationControl showCompass={false} style={{left: 16, top: hasToolbar ? 64 : 16}} />
<ScaleControl maxWidth={200} unit="metric" style={{left: 16, bottom: 16}} /> <ScaleControl maxWidth={200} unit="metric" style={{left: 16, bottom: 16}} />
{children} {children}
</ReactMapGl> </ReactMapGl>
) )