Get Direction not works and fire a JS error.

More
8 years 8 months ago #3566 by Quantility s.r.l.
The Get Direction function is not working. When i click on this link, i don't see nothing, but Google Chrome console show me this error:
"Uncaught ReferenceError: handleNoGeolocation is not defined"

The row is:
Code:
.... directionsService.route(request, function(result, status) { if (status == google.maps.DirectionsStatus.OK) { directionsDisplay.setDirections(result); // ERROR! document.getElementById('directions-panel').style.overflow="auto"; document.getElementById('map_dir').style.display="block"; } else { console.log("Unable to retrieve your route<br />"); } }); var myinfowindow = new google.maps.InfoWindow({ ....

I have check some of the code of module, i don't see any "handleNoGeolocation" function declared inside the code: is it normal?

I see that "handleNoGeolocation" is called in modules/mod_vrestaurant_restaurant_map/tmpl/default.php at rows 196 and 202.

Thank you!


Simone

Please Log in to join the conversation.

More
8 years 8 months ago #3567 by Quantility s.r.l.
I have tried to comment these rows. I receive this console warning:
"getCurrentPosition() and watchPosition() no longer work on insecure origins. To use this feature, you should consider switching your application to a secure origin, such as HTTPS. See goo.gl/rStTGz for more details."
Maybe we need an HTTPS site to have this function working?

Please Log in to join the conversation.

More
8 years 8 months ago #3574 by Daniel
Please share your backend & FTP login credentials via Contact us form, We'll look into it.

Thanks
Daniel

Please Log in to join the conversation.

More
8 years 8 months ago #3575 by Quantility s.r.l.
I have send a mail to you.

But same problem is in your demo!
www.demo.wdmtech.com/restaurants-map-layout

Get Direction is not working...

Please Log in to join the conversation.

More
8 years 8 months ago #3576 by Daniel
Hello,
Replied to your email, Please check....

Thanks
Daniel

Please Log in to join the conversation.

More
8 years 8 months ago #3578 by Quantility s.r.l.
Thank, but Get Direction is not working, "a" button contain a javascript:void(0).

Now I see some new JS errors in console and when i open Restaurant list and restaurant pages.

Map inside restaurant pages is working random: here goo.gl/gFM5WG works well, instead here goo.gl/hMT7St is not working (tab "trova indirizzo").

Please Log in to join the conversation.

Cron Job Starts