Back to PhocaGalleryRenderMaposm class

Method __construct

public
__construct
(mixed $id = '')

Method __construct - Source code

/*var $_map			= 'mapPhocaMap';
	var $_latlng		= 'phocaLatLng';
	var $_options		= 'phocaOptions';
	var $_tst			= 'tstPhocaMap';
	var $_tstint		= 'tstIntPhocaMap';
	var $_marker		= FALSE;
	var $_window		= FALSE;
	var $_dirdisplay	= FALSE;
	var $_dirservice	= FALSE;
	var $_geocoder		= FALSE;
	var $_iconArray		= array();*/
function __construct($id = '')
{
    $app = Factory::getApplication();
    $paramsC = ComponentHelper::getParams('com_phocagallery');
    $this->router = $paramsC->get('osm_router', 0);
    //
    $this->maprouterapikey = $paramsC->get('osm_map_router_api_key', '');
    $this->routerserviceurl = $paramsC->get('osm_router_routerserviceurl', '');
    //
    $this->routerprofile = $paramsC->get('osm_router_profile', '');
    //
    $this->thunderforestmaptype = $paramsC->get('thunderforest_map_type', '');
    $this->osmmaptype = $paramsC->get('osm_map_type', '');
    $this->currentposition = $paramsC->get('osm_current_position', 1);
    //
    $this->fullscreen = $paramsC->get('osm_full_screen', 1);
    //
    $this->search = $paramsC->get('osm_search', 0);
    //
    $this->zoomwheel = $paramsC->get('osm_zoom_wheel', 1);
    //
    $this->zoomcontrol = $paramsC->get('osm_zoom_control', 1);
    //
    $this->easyprint = $paramsC->get('osm_easyprint', 0);
    //
    $this->id = $id;
    //	if ($app->isClient('administrator')) {
    $this->fullscreen = 1;
    $this->search = 1;
    $this->zoomwheel = 1;
    $this->zoomcontrol = 1;
    $this->currentposition = 1;
    //	}
}