| Index
» Projekty
» phpMyEdit
» Fórum
» Google Maps integrated on PME |
 |
franciscohm
Založený: 08.05.2008
Príspevky: 33
Zaslal: 2008-12-03 00:05
Návrat hore
Odpovedať s citátom
|
There is no question in this post. I just wanted to share my experience to save some time to others.
I wanted to integrate Google Maps in my form. I intended to show maps depending on each register. However that is not posible unless you purchase some sort of Google APIs. You can plugin maps you have previously generated at Google Maps, but if you generate the code from parameters, google maps rejects the query.
So I just build up a dummy link that opens Google Maps in another window with the desired map.
I am sharing here my code just in case it is useful for you guys:
As a function of a postal address:
| Kód: |
| 'sql|V' => 'CONCAT("", "<a target=\"_blank\" href=\"http://maps.google.es/maps?f=q&hl=es&q=",psale_address1,"+",psale_city,"+",psale_zip,"+",psale_province,"&ie=UTF8\">See map at Google Maps</a> <img border=\"0\" align=\"absbottom\" src=\"images/new_window.png\">")', |
As a function of GeoCoordenates
| Kód: |
| 'sql|V' => 'CONCAT("", "<a target=\"_blank\" href=\"http://maps.google.es/maps?f=q&hl=es&q=",latitude,"+",longitude,"&ie=UTF8\">See map at Google Maps</a> <img border=\"0\" align=\"absbottom\" src=\"images/new_window.png\">")', |
:-)
|
|
Odoslať novú tému
Odpovedať na tému
|
|
|
|