This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var targetBounds, i, markerPositions; | |
markerPositions = ; //pole objektu google.mapsLatLng pro jdnotlive markery | |
targetBounds = new google.maps.LatLngBounds(); | |
for (i = 0; i < markerPositions.length; i++) { | |
targetBounds.extend(markerPositions[i]); | |
} | |
map.fitBounds(targetBounds); //map je objekt google.maps.Map |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class BaseDoctrineForm extends sfFormDoctrine | |
{ | |
public function __construct($object = null, $options = array(), $CSRFSecret = null) | |
{ | |
parent::__construct($object, $options, $CSRFSecret); | |
// tell the widget schema which fields are required | |
$this->widgetSchema->addOption('required_fields', $this->getRequiredFields()); |
NewerOlder