Home  ›  Tutorials  ›  How to Change Country for Google Map While editing Partner Account

How to Change Country for Google Map While editing Partner Account

TO do this

Step1.Find your Coordinates

Goto

http://www.whatsmygps.com/

Put your address and location details and Get Geo Coordinates

Suppose you get
lat=1.352083
lang=103.819836

So put them like this( Keep 2 numbers after decimal and Separate them with comma)
1.35,103.81

Step2.
Goto ajax/system.php


else if('googlemap' == $action) {
$ll = strval($_GET['ll']);
if(!$ll) $ll = '33.75,-118.16';
list($longi, $lati) = preg_split('/[,\s]+/',$ll,-1,PREG_SPLIT_NO_EMPTY);
$html = render('manage_ajax_dialog_googlemap');
json($html, 'dialog');
}
else if('showgooglemap' == $action) {
$partner = Table::Fetch('partner', $id);
$ll = $partner['longlat'];
if(!$ll) $ll = '33.75,-118.16';
list($longi, $lati) = preg_split('/[,\s]+/',$ll,-1,PREG_SPLIT_NO_EMPTY);
$html = render('ajax_dialog_googlemap');
json($html, 'dialog');
}

and replace ‘33.75,-118.16′; with Your Latest Coordinates

Thats it.


Help us improve the wiki Send Your Comments