3

I have MX Google Maps working fine on a per-entry basis, but I'd like to give the user an option to view the full map on Google Maps.

This doesn't work:

<p>{the-map}
<a href="http://maps.google.com/maps?q={title}+{address}+{city}+
{state}+{zipcode}@{latitude},{longitude}" target="_blank">
Full-size Google Map</a>
{/the-map}

Ideas why?

2
  • 1
    What does it output...? Commented Aug 16, 2013 at 20:37
  • 3
    Can you post URLs where we can browse the working and non-working output? Also, what exactly doesn't work -- what's missing / broken?
    – Jay F
    Commented Aug 17, 2013 at 2:27

1 Answer 1

3
+50

I'm not sure what about your example doesn't work, but you don't need your link to contain so much information if you don't need it to. Simply using the longitude / latitude is enough to get your location up in Google Maps.

For example Tower Bridge, London can be linked just using:

https://maps.google.com/maps?q=51.505591,-0.075402

So with your example it'd be:

<p>{the-map}
<a href="http://maps.google.com/maps?q={latitude},{longitude}" target="_blank">
Full-size Google Map</a>
{/the-map}

If after all that, it's your MX Google Map tags that aren't outputting correctly then this will be of no help what so ever!

1
  • Thanks. I've decided to try a different map solution, as I'm seeing a glitch with icon placement.
    – 4midori
    Commented Aug 20, 2013 at 17:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.