Skip to content

Commit

Permalink
Merge pull request #1800 from allyoucanmap/legend
Browse files Browse the repository at this point in the history
Removed height and width from default props of Legend
  • Loading branch information
allyoucanmap authored May 10, 2017
2 parents 8617224 + 392ff79 commit 5ba6f2d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
"react-dom": "15.4.2",
"react-draggable": "2.2.3",
"react-dropzone": "3.4.0",
"react-input-autosize": "1.1.0",
"react-intl": "2.2.3",
"react-joyride": "1.10.1",
"react-nouislider": "1.11.0",
Expand Down
4 changes: 0 additions & 4 deletions web/client/components/TOC/fragments/legend/Legend.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ const Legend = React.createClass({
},
getDefaultProps() {
return {
legendHeigth: 12,
legendWidth: 12,
legendOptions: "forceLabels:on;fontSize:10"
};
},
Expand All @@ -32,8 +30,6 @@ const Legend = React.createClass({
service: "WMS",
request: "GetLegendGraphic",
format: "image/png",
height: this.props.legendHeigth,
width: this.props.legendWidth,
layer: layer.name,
style: layer.style || null,
version: layer.version || "1.3.0",
Expand Down

0 comments on commit 5ba6f2d

Please sign in to comment.