summaryrefslogtreecommitdiff
path: root/opendc-web/opendc-web-ui/src/containers/app/map/layers/MapLayer.js
blob: ccd0ea8f23d04e0d0288275f80242fbe1309242d (plain)
1
2
3
4
5
6
7
8
9
10
11
import React from 'react'
import MapLayerComponent from '../../../../components/app/map/layers/MapLayerComponent'
import { useMapPosition, useMapScale } from '../../../../store/hooks/map'

const MapLayer = (props) => {
    const position = useMapPosition()
    const scale = useMapScale()
    return <MapLayerComponent {...props} mapPosition={position} mapScale={scale} />
}

export default MapLayer