Back to PhocaGalleryRenderMaposm class

Method renderCurrentPosition

public
renderCurrentPosition
()

Method renderCurrentPosition - Source code

public function renderCurrentPosition()
{
    if ($this->currentposition == 0) {
        return false;
    }
    $o = array();
    $o[] = 'L.control.locate({';
    $o[] = '	position: \'topright\',';
    $o[] = '	strings: {';
    $o[] = '		\'title\': \'' . Text::_('COM_PHOCAGALLERY_CURRENT_POSITION') . '\'';
    $o[] = '	},';
    $o[] = '	locateOptions: {';
    $o[] = '		enableHighAccuracy: true,';
    $o[] = '		watch: true,';
    $o[] = '	}';
    $o[] = '}).addTo(map' . $this->name . $this->id . ');';
    $this->output[] = implode("\n", $o);
    return true;
}