diff --git a/components/case.js b/components/case.js index c47b2f52..04eff767 100644 --- a/components/case.js +++ b/components/case.js @@ -44,6 +44,7 @@ const Case = (props) => { showLoginCheck={props.showLoginCheck} eventsObj={props.eventsObj} mediaObj={props.mediaObj} + mapTarget={props.mapTarget} /> {showRepresentations == true && ( { @@ -95,7 +95,8 @@ const CaseSummary = (props) => { currentView, messagesObj, docsOffline, - ticketnumber + ticketnumber, + mapTarget } = props; const showLoginCheck = @@ -1533,9 +1534,11 @@ const CaseSummary = (props) => { width: "100%" }} > - {/* */} diff --git a/components/case/summaryTypes/pinswg_dnsid.js b/components/case/summaryTypes/pinswg_dnsid.js index 00708a03..a316d657 100644 --- a/components/case/summaryTypes/pinswg_dnsid.js +++ b/components/case/summaryTypes/pinswg_dnsid.js @@ -7,7 +7,7 @@ import SummaryCard from "../summary/components/SummaryCard"; import SummaryRow from "../summary/components/SummaryRow"; import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue"; -import GoogleMapComponent from "../../mapping/"; +import MapComponent from "../../mapping/"; import OSPoint from "ospoint"; import { getBilingualText } from "../summary/utils/helpers"; @@ -71,11 +71,7 @@ const Pinswg_dnsid = (props) => { width: "100%" }} > - - {/* */} + )} diff --git a/components/case/summaryTypes/pinswg_sipscase.js b/components/case/summaryTypes/pinswg_sipscase.js index 22095153..de7df669 100644 --- a/components/case/summaryTypes/pinswg_sipscase.js +++ b/components/case/summaryTypes/pinswg_sipscase.js @@ -7,7 +7,7 @@ import SummaryCard from "../summary/components/SummaryCard"; import SummaryRow from "../summary/components/SummaryRow"; import { getCaseLpaDisplayLines } from "../../utils/getCaseLpaDisplayValue"; -import GoogleMapComponent from "../../mapping"; +import MapComponent from "../../mapping"; import OSPoint from "ospoint"; diff --git a/components/mapping/index.js b/components/mapping/index.js index f4440f08..5ce168e0 100644 --- a/components/mapping/index.js +++ b/components/mapping/index.js @@ -1,7 +1,7 @@ import { he } from "date-fns/locale"; import GoogleMapReact from "google-map-react"; -const GoogleMapComponent = (props) => { - const { center, zoom } = props; +const MapComponent = (props) => { + const { center, zoom, locale, mapTarget } = props; let data = [center]; @@ -23,31 +23,8 @@ const GoogleMapComponent = (props) => { } }; - // console.log( - // "https://datamap.gov.wales/maps/pedw-dev/embed?center=" + - // props.center.lng + - // "," + - // props.center.lat + - // "&zoom=12#/" - // ); return ( - // ModelsMap(map, maps)} - // > <> - {" "}