Hi friends ,
the following script will discuss for how to implement google map in smarty application.
1) Sign up for API key of googlemap
2) Create a google map class.

Googlemap implementation in smarty - Anil Labs
3) Create a tpl file, and add below code :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | {php} $key="Your API Key"; $gm = & new EasyGoogleMap($key); $gm->SetMarkerIconStyle('STAR'); $gm->SetMapZoom(10); $city ="baruva"; $country = "india"; $gm->SetAddress($city,$country); $gm->SetInfoWindowText("This is address ."); $gm->SetInfoWindowText("Anil Labs - http://www.anil2u.info"); echo $gm->GmapsKey(); echo $gm->MapHolder(); echo $gm->InitJs(); echo $gm->GetSideClick(); echo $gm->UnloadMap(); {/php} |









Hi,
I know the Google Translate API and done a small application.
I need smarty plugin for Google Translate API to change the content of my application into the selected language .
As like there is plug in for Google Map, Google Analytic ; like that I need Google Translate in smarty.
Can u please help me
@Ipsita: I developed small plugin in codeigniter using google translate API. Once check it and it will be useful.
hi dear, i’m no used for google map in smarty because
Fatal error: Class ‘EasyGoogleMap’ not found in … , help me.