Skip to content

Commit

Permalink
Open Google Maps link in app instead of browser. (#2497)
Browse files Browse the repository at this point in the history
* Changed Google Maps link

Fixed Google Maps opening in browser instead of app when clicking on any coordinates.

* Fixed Google Maps URL
  • Loading branch information
farstarss authored and sebastienvercammen committed Feb 27, 2018
1 parent debc452 commit d16c0e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ function getTypeSpan(type) {
function openMapDirections(lat, lng) { // eslint-disable-line no-unused-vars
var url = ''
if (Store.get('mapServiceProvider') === 'googlemaps') {
url = 'https://www.google.com/maps/?daddr=' + lat + ',' + lng
url = 'https://maps.google.com/maps?daddr=' + lat + ',' + lng
window.open(url, '_blank')
} else if (Store.get('mapServiceProvider') === 'applemaps') {
url = 'https://maps.apple.com/maps?daddr=' + lat + ',' + lng
Expand Down

0 comments on commit d16c0e6

Please sign in to comment.