Skip to content

Commit

Permalink
Merge pull request #1852 from bphan002/1840-searching-outside-nc-boun…
Browse files Browse the repository at this point in the history
…dary-silently-fails

1840 searching outside nc boundary silently fails
  • Loading branch information
bphan002 authored Oct 27, 2024
2 parents 1c064aa + 35d1968 commit 1f79512
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions components/Map/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,16 @@ class Map extends React.Component {

// Add that cute House Icon on the map
return this.addressLayer.addMarker([longitude, latitude]);
} else {
this.setState({
address: address,
});
this.map.flyTo({
center: [longitude, latitude],
essential: true,
zoom: 9,
});
return this.addressLayer.addMarker([longitude, latitude]);
}
}
};
Expand Down

0 comments on commit 1f79512

Please sign in to comment.