Lets you embed customized maps, based on Google Maps API V3. Provides more then 50 configuration options, but don't worry - the only settings which you must be aware are for latitude & longitude coordinates, or an address. Loads the maps API javascript code asynchronously, after the page has finished loading. Explore the various possibilities!
Put the file in the templates/helpers subdirectory of your component, adjust the class name and load the helper in your template(s) with the well known @helper alias:
echo @helper('map.init', array(
'lat' => 13.2,
'lng' => -59.583
));
echo @helper('map.init', array(
'address' => 'Barbados'
));
The helper works also inside a module created with the module injector.