Next.js Discord

Discord Forum

Missing location param in GoogleMapsEmbed in @next/third-parties/google when mode='streetview'

Unanswered
Siamese Crocodile posted this in #help-forum
Open in Discord
Siamese CrocodileOP
Google Maps Platform rejected your request. Invalid request. Missing the 'location' parameter.

17 Replies

Siamese CrocodileOP
what should I pass to q?
@Siamese Crocodile what should I pass to `q`?
a place name
Siamese CrocodileOP
now it yells at me Google Maps Platform rejected your request. Invalid request. Unexpected parameter 'q'.
Siamese CrocodileOP
it works in place mode, but my requirement is to use the streetview mode so I can show the 360 view
       <GoogleMapsEmbed
          allowfullscreen
          apiKey={PublicConfig.GOOGLE_MAPS_API_KEY}
          q={`${props.project_name}${props.location_address}@${props.latitude},${props.longitude}`}
          height={600}
          width='100%'
          mode='streetview'
        />

This code isn't working
When I remove q it is looking for the location parameter but GoogleMapsEmbed doesn't have that prop
ignore the type error first
Siamese CrocodileOP
doesn't work Google Maps Platform rejected your request. Invalid request. Missing the 'location' parameter.
you may want to open an issue on github
Siamese CrocodileOP
as a prop?
@Siamese Crocodile as a prop?
yes
not sure will it work tho