Quick bug fix?
Opened this issue · 1 comments
Nice extension, I just noticed a quick bug @106:
BEFORE:
contentString += '<p class="ask-for-directions get-directions" data-directions="DRIVING">Get Directions</p>';
AFTER:
contentString += '<p class="ask-for-directions get-directions" data-directions="DRIVING"><a href="http://maps.google.com/maps?saddr=&daddr='+marker.getPosition().lat()+','+marker.getPosition().lng()+'" target="_blank">Get Directions</a></p>';
@mosaiceye Thanks for this. Not sure if this is a bug. Your edit opens the directions on google maps or the maps application on mobile. As it is it works by displaying the directions on the website, not leaving the website. I agree that for mobile this is not ideal so probably it should be only for mobile..