mirror of
https://github.com/atlanticbiomedical/portal-legacy.git
synced 2025-07-02 01:47:28 -04:00
initial commit
This commit is contained in:
25
apps/atlbiomed/modules/maps/actions/components.class.php
Executable file
25
apps/atlbiomed/modules/maps/actions/components.class.php
Executable file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Defines components for the map actions, namely the ability to easily print a technician
|
||||
* map.
|
||||
*
|
||||
* @author Ciphent
|
||||
**/
|
||||
class mapsComponents extends sfComponents
|
||||
{
|
||||
/**
|
||||
* Displays the google map for all technicians. You can only have one instance of this component on a page.
|
||||
*
|
||||
* Call it as so: include_component('maps', 'displayTechnicianMap', array('markers' => array(elements of type GMapMarer))
|
||||
*
|
||||
**/
|
||||
public function executeDisplayTechnicianMap()
|
||||
{
|
||||
$map = new GoogleMap('map');
|
||||
|
||||
$map->includeDefaultLocation()->setWidth($this->mapwidth)->addMarkers($this->markers);
|
||||
$map->setHeight($this->mapheight);
|
||||
$this->map = $map;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user