This commit is contained in:
Eric van der Vlist 2022-10-16 11:53:05 +02:00
parent fb48042b62
commit 4762156296
2 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,7 @@ import MouseHandler from './MouseHandler';
import SlippyBoard from './SlippyBoard';
import SingleTouchHandler from './SingleTouchHandler';
import DoubleTouchHandler from './DoubleTouchHandler';
import TiledLayerConductor from './TiledLayersConductor';
import TiledLayersStack from './TiledLayersStack';
interface MapProperties {
height: number;
@ -80,7 +80,7 @@ const Map: react.FC<MapProperties> = (props: MapProperties) => {
height={boardSize}
fill='red'
/>
<TiledLayerConductor
<TiledLayersStack
height={props.height}
width={props.width}
shift={shift}

View File

@ -6,7 +6,7 @@ interface Point {
y: number;
}
interface TiledLayerConductorProperties {
interface TiledLayersStackProperties {
height: number;
width: number;
shift: Point;
@ -17,8 +17,8 @@ interface TiledLayerConductorProperties {
setBaseZoomLevel: (baseZoomLevel: number) => void;
}
const TiledLayerConductor: react.FC<TiledLayerConductorProperties> = (
props: TiledLayerConductorProperties
const TiledLayersStack: react.FC<TiledLayersStackProperties> = (
props: TiledLayersStackProperties
) => {
const numberOfZoomLevels =
props.numberOfZoomLevels === undefined
@ -75,4 +75,4 @@ const TiledLayerConductor: react.FC<TiledLayerConductorProperties> = (
return <>{layers}</>;
};
export default TiledLayerConductor;
export default TiledLayersStack;