fix map embed
This commit is contained in:
parent
9f54400f18
commit
7978772d7b
|
|
@ -36,7 +36,7 @@ const transformUrl = (url: string): string => {
|
||||||
|
|
||||||
if (origin && destination) {
|
if (origin && destination) {
|
||||||
return `https://www.google.com/maps/embed/v1/directions?key=${
|
return `https://www.google.com/maps/embed/v1/directions?key=${
|
||||||
import.meta.env.VITE_GOOGLE_MAPS_API_KEY
|
import.meta.env["VITE_GOOGLE_MAPS_API_KEY"]
|
||||||
}&origin=${encodeURIComponent(origin)}&destination=${encodeURIComponent(
|
}&origin=${encodeURIComponent(origin)}&destination=${encodeURIComponent(
|
||||||
destination,
|
destination,
|
||||||
)}&mode=driving`
|
)}&mode=driving`
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue