Skip to content

Commit

Permalink
✨ wo #43: directionlayer only between ZL12 and ZL18
Browse files Browse the repository at this point in the history
  • Loading branch information
helllth committed Jul 15, 2020
1 parent 3ca0310 commit 07c0204
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/containers/Starkregen.js
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ export class Starkregen_ extends React.Component {
caching={this.state.caching}
/>
)}
{this.props.starkregen.displayMode === starkregenConstants.SHOW_VELOCITY && [
{this.props.starkregen.displayMode === starkregenConstants.SHOW_VELOCITY && (
<WMSTileLayer
ref={(c) => (this.modelLayer = c)}
key={
Expand All @@ -612,7 +612,10 @@ export class Starkregen_ extends React.Component {
maxZoom={19}
opacity={0.7}
caching={this.state.caching}
/>,
/>
)}
{this.props.starkregen.displayMode === starkregenConstants.SHOW_VELOCITY &&
currentZoom >= 12 && (
<WMSTileLayer
ref={(c) => (this.modelLayer = c)}
key={
Expand All @@ -638,7 +641,7 @@ export class Starkregen_ extends React.Component {
opacity={1}
caching={this.state.caching}
/>
]}
)}
{featureInfoLayer}
{mapRef !== undefined &&
this.props.starkregen.displayMode !== undefined &&
Expand Down

0 comments on commit 07c0204

Please sign in to comment.