Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Nedeľa, 29. november 2026
O nás
Magazín
Otvorený softvér
CVS
Služby
Index  »  Projekty  »  phpMyEdit  »  Fórum  »  Google Maps integrated on PME

phpMyEdit Configuration     Google Maps integrated on PME
Odoslať novú tému   Odpovedať na tému    
 
franciscohm     Založený: 08.05.2008   Príspevky: 33  
Príspevok 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    

Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok · Odkazový formulár · Prihláška
Upozorniť na chybu na PLATON.SK webstránke · Podmienky použitia · Ochrana osobných údajov