I had a question about adding CSS, since I could not find any other issues related to this. I am trying to move the Geocoder Search farther down the map than where it is positioned at 'top-right' and I cannot change it's position, whether I use inline or internal CSS:
import React from "react";
import "mapbox-gl/dist/mapbox-gl.css";
import "react-map-gl-geocoder/dist/mapbox-gl-geocoder.css";
import Geocoder from "react-map-gl-geocoder";
const geostyle {
margin: '20px';
}
const Map = () = > {`
...
return(
<div>
...
<Geocoder
style={geostyle}
mapRef={myMap}
onViewportChange={setViewport}
mapboxApiAccessToken={MAPBOX_TOKEN}
viewport={viewport}
position="top-left"
/>
...
</div>
);
};
Is there a way to customize the Geocoder search bar? Would I have to edit the mapbox css that I imported from 'react-map-gl-geocoder? Thanks!