Hi thanks @givemeawhisky I actually have the map working and showing the location(s) I want. I problem I have is with the directions.
If I show the directions link, when I then click on the link, the directions have the users location as the starting point, but wix hq as the end point.
I also have the same problem, I have the map working taking the location of the database, I would like the route to be created someone has been able to move forward with this matter?
I’m an official Wix Arena Dev - programmer. We are facing the same issue. The map works fine, displays the latitude and longitude for each business from the database but when you click “Directions” it finds the directions ONLY between Wix and the business… it doesn’t really show the right direction in Google. This bug needs to be fixed.
Just to make it clear all devs here can program and display the locations from the database in a Google map BUT when you click ON THE MAP the directions link IT DOESN’T WORK as expected.
The links are only to learn how to set a lat and lon. This is actually simple and we have no issues with it. The issue is when you click on the map the “DIRECTIONS LINK” which opens in a new tab the external Google map to show the direction from your location to the locations in the Wix map.
If you click the directions link you get the direction from Wix (HQ) in California to the Business.
This is wrong, this should show obviously the direction from your computer location to the business. We are looking to have an answer to this general bug.
Can you provide an example of this behavior? Please post the editor URL of your site. Only authorized Wix personnel can get access to your site in the editor.Please include the name of the page involved.
Thank you for your response, duplicate the page for this purpose.
Go to the location icon there, display maps, go to addresses and see how the address you give is the one that is set by default, but not the one it takes from the database.
You have at least 8 page onReady() event handler functions. The onReady() function is called only once - when the page is ready. I don’t know what you are trying to do with them all, but some of them show undefined data being displayed in the console.log() output.
You will need to rearrange your logic so that all of the code that must run when. the page is ready is put in one onReady() function. Code that is needed for other actions must then appear in the appropriate event handlers (e.g. onClick).
Also, I tried the Directions link and it seemed to work OK. The external map opened, but it didn’t know where I am which I think makes sense. The “from” was empty so I put in El Ingenio as my “from” location. It then showed the directions.
the code take it from an example in the forum and if in the console it throws an error that I have not been able to solve, however if you have defined the location, shouldn’t it show the route?
The same thing happens to other people here, perhaps mine is not the most immaculate example, but would you be able to guide us more about it?
change the static address but all locations lead to the same address location you replace, if not changed it would take you to the wix offices. the point is that it does not take you to the location shown on the map.