Skip to content

Commit

Permalink
hide empty map control container with CSS (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
camdendotlol authored Jan 9, 2025
1 parent fee28e6 commit eb7655b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/geospatial/src/components/GeocodingControl.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.maplibregl-ctrl-top-left .maplibregl-ctrl:empty {
margin: 0;
}
1 change: 1 addition & 0 deletions packages/geospatial/src/components/GeocodingControl.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { GeocodingControl as MapTilerGeocoding } from '@maptiler/geocoding-contr
import maplibregl from 'maplibre-gl';
import { forwardRef, useImperativeHandle } from 'react';
import { useControl, type ControlPosition } from 'react-map-gl';
import './GeocodingControl.css';

type Props = {
apiKey: string,
Expand Down

0 comments on commit eb7655b

Please sign in to comment.