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:
parent
31d8390bdc
commit
5b91449749
|
@ -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>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue