Page 1 of 1

google maps link in contact form

Posted: 20 Feb 2013, 15:29
by Waynder
Have made my own chnages on contact form... I also added address of my firm there, and i want it to make a lightbox link to its location on google maps...


this is the code im using and its not working...

Code
<a href="javascript:lightbox('https://maps.google.com/maps?q=Limarija+Miljanovic+d.o.o.,+Rakarska+ulica,+Velika+Gorica,+Hrvatska&hl=hr&ie=UTF8&ll=45.719465,16.078202&spn=0.003131,0.008256&sll=45.71984,16.078942&sspn=0.003131,0.008256&oq=limarija&t=h&hq=limarija+miljanovic+doo&hnear=Rakarska+ulica,+Velika+Gorica,+Zagreba%C4%8Dka+%C5%BEupanija,+Hrvatska&z=18&iwloc=A&output=embed', {iframe:true})');">Rakarska 14a, Velika Gorica</a>

on your site it says that i have to add at the end "&output=embed", but when i save it... "&" goes away... Help?

Re: google maps link in contact form

Posted: 21 Feb 2013, 07:17
by mjau-mjau
You seem to have one too many single quotes ' at the end, after iframe:true})' ... Also, for the &output=embed, it needs to be URL-encoded, like Google maps would do if you got the code from the embed code: &output=embed.

Below is code from our working demo:
Code
<a href="javascript:lightbox('https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=new+york&aq=&sll=37.0625,-95.677068&sspn=41.767874,79.013672&t=w&ie=UTF8&hq=&hnear=New+York&z=11&ll=40.714353,-74.005973&output=embed', {iframe:true, width:'90%', height: '90%'})">Map</a>

Re: google maps link in contact form

Posted: 21 Feb 2013, 08:26
by Waynder
Your code helped...

I learned something... Thank you =)