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" />
|
||||
</BaseLayer> }
|
||||
{ this.state.gkey &&
|
||||
<BaseLayer name={t('Mapa de terreno de Google')}>
|
||||
<GoogleLayer opacity={defOpacity} googlekey={this.state.gkey} maptype="TERRAIN" />
|
||||
</BaseLayer> }
|
||||
<BaseLayer name={t('Mapa de terreno de Google')} checked={this.props.terrain}>
|
||||
<GoogleLayer opacity={defOpacity} googlekey={this.state.gkey} maptype="TERRAIN" />
|
||||
</BaseLayer> }
|
||||
{ this.state.gkey &&
|
||||
<BaseLayer name={t('Mapa de satélite de Google')} checked={this.props.satellite}>
|
||||
<GoogleLayer opacity={defOpacity} googlekey={this.state.gkey} maptype="SATELLITE" />
|
||||
|
|
@ -72,6 +72,7 @@ DefMapLayers.propTypes = {
|
|||
t: PropTypes.func.isRequired,
|
||||
gray: PropTypes.bool,
|
||||
osmcolor: PropTypes.bool,
|
||||
terrain: PropTypes.bool,
|
||||
satellite: PropTypes.bool
|
||||
|
||||
};
|
||||
|
|
@ -79,6 +80,7 @@ DefMapLayers.propTypes = {
|
|||
DefMapLayers.defaultProps = {
|
||||
gray: false,
|
||||
osmcolor: false,
|
||||
terrain: false,
|
||||
satellite: false
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -169,7 +169,7 @@ class Fire extends React.Component {
|
|||
neighbour={false}
|
||||
industries
|
||||
/>
|
||||
<DefMapLayers satellite />
|
||||
<DefMapLayers terrain />
|
||||
<FullScreenMap />
|
||||
</Map>
|
||||
<p>{t('Coordenadas:')} {fire.lat}, {fire.lon}</p>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue