Fix all type errors
This commit is contained in:
parent
050d32e2ad
commit
cfe8897f2a
3 changed files with 13 additions and 5 deletions
|
|
@ -92,9 +92,16 @@ export default class ControlMap extends React.Component<ControlMapProps> {
|
|||
<LayersControlType
|
||||
key={layer.name}
|
||||
name={layer.name}
|
||||
checked={layer.defaultVisibility === "visible"}>
|
||||
checked={layer.defaultVisibility === "visible"}
|
||||
removeLayer={(_layer) => {}}
|
||||
removeLayerControl={(_layer) => {}}
|
||||
addOverlay={(_layer, _name, _checked) => {}}
|
||||
addBaseLayer={(_layer, _name, _checked) => {}}>
|
||||
<ImageOverlay url={layer.image}
|
||||
bounds={Object.values(layer.bounds).map(convertPoint)}
|
||||
bounds={[
|
||||
convertPoint(layer.bounds.topLeft),
|
||||
convertPoint(layer.bounds.bottomRight)
|
||||
]}
|
||||
opacity={layer.opacity || 1} />
|
||||
</LayersControlType>
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue