ResolvedMap route not working
- This topic has 7 replies, 2 voices, and was last updated 2 years, 9 months ago by
Althemist.
- AuthorPosts
- August 19, 2020 at 11:43 am #25149
andrea
ParticipantHello,
I am having a hard time to make the map routing functionality work.
If I type the zip code and click on calculate route button, nothing happens.
Is there any particular permission that I need to enable to google api keys?
Thank you in advance for your support.
August 19, 2020 at 11:54 am #25155Althemist
KeymasterHello andrea,
Yes, the maps API project must be set to allow directions service. If you provide a link to your page we can check if that’s the case or something else.
Regards,
DimitarAugust 19, 2020 at 12:33 pm #25164andrea
ParticipantThis reply has been marked as private.August 20, 2020 at 9:38 am #25180Althemist
KeymasterAs I suspected, your API project is not configured to use Directions. Here is the error you can see in the console on your site:
Directions Service: This API project is not authorized to use this API. For more information on authentication and Google Maps JavaScript API services please see: https://developers.google.com/maps/documentation/javascript/get-api-key
code: “REQUEST_DENIED”
endpoint: “DIRECTIONS_ROUTE”
message: “DIRECTIONS_ROUTE: REQUEST_DENIED: There was an issue performing a Directions request.”
name: “MapsRequestError”
stack: “TP@https://maps.googleapis.com/maps-api-v3/api/js/42/1/directions.js:1:82\nVP@https://maps.googleapis.com/maps-api-v3/api/js/42/1/directions.js:1:314\njQ/<@https://maps.googleapis.com/maps-api-v3/api/js/42/1/directions.js:9:52\nfQ/<@https://maps.googleapis.com/maps-api-v3/api/js/42/1/directions.js:5:266\nc@https://maps.googleapis.com/maps-api-v3/api/js/42/1/common.js:67:84\n@https://maps.googleapis.com/maps/api/js/DirectionsService.Route?5m2&1m1&2sVia%20Monte%20Baldo%2029&5m4&1m3&1m2&1d45.61036905320006&2d10.814874570371188&6e0&12sen-US&23e1&callback=_xdc_._f7yir8&key=AIzaSyA9FdQ9n5w0ufqRZVqTPT78SK-h36UkYp8&token=81963:1:28\n" : {…} However, there are also other JS errors on your page. Make sure you’re using the latest theme version with the latest theme plugin (Lafka plugin) version AND the latest WordPress AND the latest WooCommerce.
Regards,
DimitarAugust 20, 2020 at 3:42 pm #25198andrea
ParticipantThis reply has been marked as private.August 20, 2020 at 3:42 pm #25199andrea
ParticipantThis reply has been marked as private.August 20, 2020 at 4:12 pm #25201andrea
ParticipantThis reply has been marked as private.August 21, 2020 at 11:01 am #25211Althemist
KeymasterI can’t tell what could be wrong by looking at a screenshot. Not to mention we don’t speak Italian. 🙂
Here you can find some instructions:
https://developers.google.com/maps/documentation/javascript/directions
As for the video background – there is a checkbox to mute the sound for the page video background settings. For row video background, the sound is always disabled.
regards,
Dimitar - AuthorPosts
You must be logged in and have valid license to reply to this topic.