Making a property optional
This commit is contained in:
parent
7b5abaccd3
commit
8341da64a3
|
@ -36,10 +36,9 @@ const App: React.FC = () => (
|
||||||
<Map
|
<Map
|
||||||
scope={{
|
scope={{
|
||||||
center: { lat: -37.8403508, lon: 77.5539501 },
|
center: { lat: -37.8403508, lon: 77.5539501 },
|
||||||
zoom: 15,
|
zoom: 13,
|
||||||
tileProvider: 'osm',
|
tileProvider: 'osm',
|
||||||
}}
|
}}
|
||||||
numberOfTiledLayers={1}
|
|
||||||
/>
|
/>
|
||||||
</Route>
|
</Route>
|
||||||
<Route exact path='/'>
|
<Route exact path='/'>
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { lon2tile, lat2tile } from '../../lib/geo';
|
||||||
|
|
||||||
export interface MapProperties {
|
export interface MapProperties {
|
||||||
scope: MapScope;
|
scope: MapScope;
|
||||||
numberOfTiledLayers: number;
|
numberOfTiledLayers?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue