Back to PhocaGalleryRenderMaposm class

Method moveMarker

public
moveMarker
()

Method moveMarker - Source code

public function moveMarker()
{
    $o = array();
    $o[] = 'function phmMoveMarker(marker, lat, lng) {';
    $o[] = '   var newLatLng = new L.LatLng(lat, lng);';
    $o[] = '   marker.setLatLng(newLatLng);';
    $o[] = '}';
    $this->output[] = implode("\n", $o);
    return true;
}