Skip to content

Commit

Permalink
district name on raster
Browse files Browse the repository at this point in the history
  • Loading branch information
Maneesh7012 committed Oct 12, 2023
1 parent 843aeee commit fba60ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -940,7 +940,6 @@ const Sidebar = (props) => {
LayerDesc.layer_name === "crop_land" ||
LayerDesc.layer_name === "WH" ||
LayerDesc.layer_name === "FIREEV" ||
layertype === "Raster" ||
currentregion === "CUSTOM"
? { display: "none" }
: {}
Expand Down
4 changes: 2 additions & 2 deletions src/web_portal/src/components/MapComponent/Map/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,11 @@ class LeafletMap extends React.Component {
}
onMouseOver(e) {
this.props.setlatlon(e.latlng.lat, e.latlng.lng);
if(this.props.CurrentRegion === "MANDAL" && this.props.currentLayerType === "Vector"){
if(this.props.CurrentRegion === "MANDAL" ){
var mandal_name = e.layer.feature.properties.mandal_name;
this.props.setplace(mandal_name);

}else if (this.props.CurrentRegion === "DISTRICT" && this.props.currentLayerType === "Vector"){
}else if (this.props.CurrentRegion === "DISTRICT" ){
var district_name = e.layer.feature.properties.district_name;
this.props.setplace(district_name);
}
Expand Down

0 comments on commit fba60ff

Please sign in to comment.