Skip to content

Commit

Permalink
#3045: Fix geolocation printing no coordinates
Browse files Browse the repository at this point in the history
  • Loading branch information
cemalettin-work committed Oct 12, 2020
1 parent 06780cb commit 74fe0dc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion client/src/components/Leaflet.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import AppContext from "components/AppContext"
import { convertLatLngToMGRS } from "geoUtils"
import {
Control,
CRS,
Expand Down Expand Up @@ -303,7 +304,16 @@ const BaseLeaflet = ({
ReactDOM.render(
<>
<b>{location.name}</b> @{" "}
<GeoLocation lat={location.lat} lng={location.lng} />
<GeoLocation
coordinates={{
lat: location.lat,
lng: location.lng,
displayedCoordinate: convertLatLngToMGRS(
location.lat,
location.lng
)
}}
/>
</>,
e.popup.getContent()
)
Expand Down

0 comments on commit 74fe0dc

Please sign in to comment.