fix(widget-map): update ol to latest version
This commit is contained in:
@ -30,6 +30,6 @@
|
||||
"react-immutable-proptypes": "^2.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"ol": "^5.3.1"
|
||||
"ol": "^6.9.0"
|
||||
}
|
||||
}
|
||||
|
@ -33,11 +33,13 @@ export default function withMapControl({ getFormat, getMap } = {}) {
|
||||
static propTypes = {
|
||||
onChange: PropTypes.func.isRequired,
|
||||
field: PropTypes.object.isRequired,
|
||||
height: PropTypes.string,
|
||||
value: PropTypes.node,
|
||||
};
|
||||
|
||||
static defaultProps = {
|
||||
value: '',
|
||||
height: '400px',
|
||||
};
|
||||
|
||||
constructor(props) {
|
||||
@ -70,6 +72,8 @@ export default function withMapControl({ getFormat, getMap } = {}) {
|
||||
}
|
||||
|
||||
render() {
|
||||
const { height } = this.props;
|
||||
|
||||
return (
|
||||
<ClassNames>
|
||||
{({ cx, css }) => (
|
||||
@ -80,6 +84,7 @@ export default function withMapControl({ getFormat, getMap } = {}) {
|
||||
${olStyles};
|
||||
padding: 0;
|
||||
overflow: hidden;
|
||||
height: ${height};
|
||||
`,
|
||||
)}
|
||||
ref={this.mapContainer}
|
||||
|
Reference in New Issue
Block a user