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?

  • 1
    What does it output...? – Jason Varga Aug 16 '13 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 Aug 17 '13 at 2:27
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!

| improve this answer | |
  • Thanks. I've decided to try a different map solution, as I'm seeing a glitch with icon placement. – 4midori Aug 20 '13 at 17:20

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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