Making a property optional
This commit is contained in:
parent
7b5abaccd3
commit
8341da64a3
|
@ -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='/'>
|
||||
|
|
|
@ -8,7 +8,7 @@ import { lon2tile, lat2tile } from '../../lib/geo';
|
|||
|
||||
export interface MapProperties {
|
||||
scope: MapScope;
|
||||
numberOfTiledLayers: number;
|
||||
numberOfTiledLayers?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue