Back to PhocaGalleryRenderMap class

Method createMap

public
createMap
(mixed $id, mixed $map, mixed $latlng, mixed $options, mixed $tst, mixed $tstint)

Method createMap - Source code

public function createMap($id, $map, $latlng, $options, $tst, $tstint)
{
    $this->_id = $id;
    $this->_map = $map;
    $this->_latlng = $latlng;
    $this->_options = $options;
    $this->_tst = $tst;
    $this->_tstint = $tstint;
    $js = "\n" . 'var ' . $this->_tst . ' = document.getElementById(\'' . $this->_id . '\');' . "\n" . 'var ' . $this->_tstint . ';' . "\n" . 'var ' . $this->_map . ';' . "\n";
    return $js;
}