Google Maps API Key

Since KReporter 4.0 you need a GoogleMaps API Key to use GoogleMaps API. Generate the key by following instructions at => Button get a key

Once you have it, open config.php file of you CRM Installation, go to the bottom of the page an add following line: $sugar_config['KReports]['googlemapskey'] = "YouGeneratedKey";

Fields containing latitude and longitude values

Let say you want to see your Accounts on a map. Extend accounts table with 2 new fields and populate the values. The way you populate geo coordinates is left to your discretion.

In our example we added custom/Extension/modules/Accounts/Vardefs/kreports_googlemap.php


$dictionary["Account"]["fields"]['spice_geo_latitude'] = array(

'name' => 'spice_geo_latitude',


'type' => 'double',

'massupdate' => false


$dictionary["Account"]["fields"]['spice_geo_longitude'] = array(

'name' => 'spice_geo_longitude',


'type' => 'double',

'massupdate' => false


and custom/Extension/modules/Accounts/Language/en_us.lang.php


$mod_strings['LBL_SPICE_GEO_LATITUDE'] = 'Latitude';

$mod_strings['LBL_SPICE_GEO_LONGITUDE'] = 'Longitude';

Manipulate Tab

In our example we want to pin point accounts by account type.

Fields containing Latitude and Longitude values have to be dragged to manipulate tab.

Type will be used for the legend, name for title and Billing City for popup in Visualization tab.

results matching ""

    No results matching ""