Directions link disappeared after update

2 years 5 months ago #3564 by info@skelp.org
Directions link disappeared after update was created by info@skelp.org
Hi,


After update to the latest version, my Directions link in the results list is gone.

In the previous version (2.3.0) of Store Locator I did some edits in the map.js file. I copied and pasted the rules to display a directionslink not only in bubble view, but also on the result list.

Below the rules wich I copied from bubble view to results list in map.js:
if (currentPos)
		  	position = currentPos.lat() + ',' + currentPos.lng();
 
	  		html += '<div class="infoloc-directions"><a href="http://maps.google.com/maps?daddr=' +  encodeData(getNodeText(node, 'address')) 	
					+ '&amp;saddr=' + encodeData(position) + '" target="_blank">' + GET_DIRECTIONS + '</a></div>';
	  }


This worked fine in the previous version but after updating to 2.4.0 I eddited these rules again, but now the directions link is not displayed in my result list

Please take a look at the live site and attached screenshot to compare. You have to squeeze the screen for 'mobile' settings, so the results list will be below the map and have more items visible.
Attachments:

Please Log in or Create an account to join the conversation.

More
2 years 2 months ago #3587 by sysgenmedia
Replied by sysgenmedia on topic Directions link disappeared after update
I think you figured this out already... let me know if you still need help.

Please Log in or Create an account to join the conversation.

More