Terrain instead of satellite in Fires page
This commit is contained in:
parent
1360f742f3
commit
7b056ae754
2 changed files with 6 additions and 4 deletions
|
|
@ -56,9 +56,9 @@ class DefMapLayers extends Component {
|
||||||
<GoogleLayer opacity={defOpacity} googlekey={this.state.gkey} maptype="ROADMAP" />
|
<GoogleLayer opacity={defOpacity} googlekey={this.state.gkey} maptype="ROADMAP" />
|
||||||
</BaseLayer> }
|
</BaseLayer> }
|
||||||
{ this.state.gkey &&
|
{ this.state.gkey &&
|
||||||
<BaseLayer name={t('Mapa de terreno de Google')}>
|
<BaseLayer name={t('Mapa de terreno de Google')} checked={this.props.terrain}>
|
||||||
<GoogleLayer opacity={defOpacity} googlekey={this.state.gkey} maptype="TERRAIN" />
|
<GoogleLayer opacity={defOpacity} googlekey={this.state.gkey} maptype="TERRAIN" />
|
||||||
</BaseLayer> }
|
</BaseLayer> }
|
||||||
{ this.state.gkey &&
|
{ this.state.gkey &&
|
||||||
<BaseLayer name={t('Mapa de satélite de Google')} checked={this.props.satellite}>
|
<BaseLayer name={t('Mapa de satélite de Google')} checked={this.props.satellite}>
|
||||||
<GoogleLayer opacity={defOpacity} googlekey={this.state.gkey} maptype="SATELLITE" />
|
<GoogleLayer opacity={defOpacity} googlekey={this.state.gkey} maptype="SATELLITE" />
|
||||||
|
|
@ -72,6 +72,7 @@ DefMapLayers.propTypes = {
|
||||||
t: PropTypes.func.isRequired,
|
t: PropTypes.func.isRequired,
|
||||||
gray: PropTypes.bool,
|
gray: PropTypes.bool,
|
||||||
osmcolor: PropTypes.bool,
|
osmcolor: PropTypes.bool,
|
||||||
|
terrain: PropTypes.bool,
|
||||||
satellite: PropTypes.bool
|
satellite: PropTypes.bool
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
@ -79,6 +80,7 @@ DefMapLayers.propTypes = {
|
||||||
DefMapLayers.defaultProps = {
|
DefMapLayers.defaultProps = {
|
||||||
gray: false,
|
gray: false,
|
||||||
osmcolor: false,
|
osmcolor: false,
|
||||||
|
terrain: false,
|
||||||
satellite: false
|
satellite: false
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@ class Fire extends React.Component {
|
||||||
neighbour={false}
|
neighbour={false}
|
||||||
industries
|
industries
|
||||||
/>
|
/>
|
||||||
<DefMapLayers satellite />
|
<DefMapLayers terrain />
|
||||||
<FullScreenMap />
|
<FullScreenMap />
|
||||||
</Map>
|
</Map>
|
||||||
<p>{t('Coordenadas:')} {fire.lat}, {fire.lon}</p>
|
<p>{t('Coordenadas:')} {fire.lat}, {fire.lon}</p>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue