Back to PhocaGalleryRenderMaposm class

Method exportMarker

public
exportMarker
(mixed $markerId)

Method exportMarker - Source code

public function exportMarker($markerId)
{
    $o = array();
    $o[] = 'map' . $this->name . $this->id . '.on(\'click\', onMapClick);';
    $o[] = 'function onMapClick(e) {';
    $o[] = '	phmInputMarker(e.latlng.lat, e.latlng.lng);';
    $o[] = '	phmMoveMarker(marker' . $markerId . ', e.latlng.lat, e.latlng.lng);';
    $o[] = '}';
    $this->output[] = implode("\n", $o);
    return true;
}