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
|
<LayersControlType
|
||||||
key={layer.name}
|
key={layer.name}
|
||||||
name={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}
|
<ImageOverlay url={layer.image}
|
||||||
bounds={Object.values(layer.bounds).map(convertPoint)}
|
bounds={[
|
||||||
|
convertPoint(layer.bounds.topLeft),
|
||||||
|
convertPoint(layer.bounds.bottomRight)
|
||||||
|
]}
|
||||||
opacity={layer.opacity || 1} />
|
opacity={layer.opacity || 1} />
|
||||||
</LayersControlType>
|
</LayersControlType>
|
||||||
);
|
);
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// @flow
|
// @flow
|
||||||
import React from "react";
|
import * as React from "react";
|
||||||
|
|
||||||
import withStyles from "material-ui/styles/withStyles";
|
import withStyles from "material-ui/styles/withStyles";
|
||||||
import Drawer from "material-ui/Drawer";
|
import Drawer from "material-ui/Drawer";
|
||||||
|
|
@ -14,7 +14,8 @@ export type SideBarProps = {
|
||||||
control: ?Control,
|
control: ?Control,
|
||||||
open: boolean,
|
open: boolean,
|
||||||
onCloseRequest: () => void,
|
onCloseRequest: () => void,
|
||||||
icon?: ?string
|
icon?: ?string,
|
||||||
|
children?: React.Node
|
||||||
};
|
};
|
||||||
|
|
||||||
export type SideBarState = {
|
export type SideBarState = {
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ module.exports = {
|
||||||
},
|
},
|
||||||
plugins: [
|
plugins: [
|
||||||
new CleanWebpackPlugin(["dist"]),
|
new CleanWebpackPlugin(["dist"]),
|
||||||
// new WebpackShellPlugin({onBuildStart:preBuildScripts}),
|
new WebpackShellPlugin({onBuildStart:preBuildScripts}),
|
||||||
new HtmlWebpackPlugin({
|
new HtmlWebpackPlugin({
|
||||||
title: 'Space Map',
|
title: 'Space Map',
|
||||||
template: 'index.ejs'
|
template: 'index.ejs'
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue