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

minneapolisdan’s picture

Me too, searching for an answer

ksavoie’s picture

Version: 6.x-1.1 » 7.x-1.x-dev

I 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!

koppie’s picture

Category: support » feature

Doesn'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 . . . ;-)

kfrank’s picture

Issue summary: View changes

Did anyone figure this out? I'd love to know how it's done.

rituraj.gupta’s picture

You 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);

d.bipes’s picture

I 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?

abarpetia’s picture

You can put #5 jquery into your theme. Here is a document link.

abarpetia’s picture

Project: GMap Module » Location
Version: 7.x-1.x-dev » 7.x-5.x-dev

Just checked the backend and this map link is rendered by Location module. So moving this ticket in location module ticket queue.

abarpetia’s picture

Version: 7.x-5.x-dev » 7.x-3.7
Related issues: +#1002064: Customise "See Map: Google Maps" text