Making a property optional

This commit is contained in:
Eric van der Vlist 2022-10-31 15:08:50 +01:00
parent 7b5abaccd3
commit 8341da64a3
2 changed files with 2 additions and 3 deletions

View File

@ -36,10 +36,9 @@ const App: React.FC = () => (
<Map
scope={{
center: { lat: -37.8403508, lon: 77.5539501 },
zoom: 15,
zoom: 13,
tileProvider: 'osm',
}}
numberOfTiledLayers={1}
/>
</Route>
<Route exact path='/'>

View File

@ -8,7 +8,7 @@ import { lon2tile, lat2tile } from '../../lib/geo';
export interface MapProperties {
scope: MapScope;
numberOfTiledLayers: number;
numberOfTiledLayers?: number;
}
/**