Exemplo n.º 1
0
 /**
  * @expectedException \Ivory\GoogleMap\Exception\MapException
  */
 public function testGetStylesheetOptionWithInvalidValue()
 {
     $this->map->getStylesheetOption('foo');
 }
Exemplo n.º 2
0
 /**
  * Renders the map container.
  *
  * @param \Ivory\GoogleMap\Map $map The map.
  *
  * @return string The HTML output.
  */
 public function renderHtmlContainer(Map $map)
 {
     return sprintf('<div id="%s" style="width:%s;height:%s;"></div>' . PHP_EOL, $map->getHtmlContainerId(), $map->getStylesheetOption('width'), $map->getStylesheetOption('height'));
 }