Active
Project:
Location
Version:
7.x-3.7
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
18 Dec 2010 at 16:49 UTC
Updated:
3 May 2017 at 23:22 UTC
Jump to comment: Most recent
How do you customise the "See Map: Google Maps" text?
Ideally, I would like to get rid of the "See Map" part and replace "Google Maps" with "View directions"
Comments
Comment #1
minneapolisdan commentedMe too, searching for an answer
Comment #2
ksavoie commentedI third the request (except for v.7.x).
I have looked high and low and scoured the render array and can't seem to find where I can remove (or edit) the prefixing 'See map:' text in front of the 'Google Maps' link.
I would really like to just remove it. Anyone know where this is set or how to set it?
Any help appreciated!
Comment #3
koppie commentedDoesn't look like this is supported. However, you can replace the built-in link with your own:
#347001: how to include ability to get directions in gmap, map
#151005: Driving directions?
#188099: gmap_view.module get directions
I'm changing this to a feature request because it's clearly desired! Now, if someone would just write a patch . . . ;-)
Comment #4
kfrank commentedDid anyone figure this out? I'd love to know how it's done.
Comment #5
rituraj.gupta commentedYou can do with jquery like below:
var location = $('.location.map-link').html();
var text = location.replace('See map:', '');
$('.location.map-link').html(text);
var location = $('.location.map-link').html();
var text = location.replace('Google Maps', 'Location');
$('.location.map-link').html(text);
Comment #6
d.bipes commentedI would like to be able to use the link created as a field so that I can have the title link to the "driving directions" map. I have been struggling in finding a way to accomplish for several days now.
I am no expert. How do I use the jquery above?
Comment #7
abarpetia commentedYou can put #5 jquery into your theme. Here is a document link.
Comment #8
abarpetia commentedJust checked the backend and this map link is rendered by Location module. So moving this ticket in location module ticket queue.
Comment #9
abarpetia commented