예제 #1
0
 public function testCircleWithoutAutoZoom()
 {
     $circle = $this->getMock('Ivory\\GoogleMap\\Overlays\\Circle');
     $this->setUpBound();
     $this->map->getBound()->expects($this->never())->method('extend');
     $this->map->addCircle($circle);
     $this->assertSame(array($circle), $this->map->getCircles());
 }
예제 #2
0
 /**
  * Renders the javascript container circles.
  *
  * @param \Ivory\GoogleMap\Map $map The map.
  *
  * @return string The JS output.
  */
 public function renderJsContainerCircles(Map $map)
 {
     $output = array();
     foreach ($map->getCircles() as $circle) {
         $output[] = sprintf('%s.circles.%s = %s', $this->getJsContainerName($map), $circle->getJavascriptVariable(), $this->circleHelper->render($circle, $map));
     }
     return implode('', $output);
 }