コード例 #1
0
 /**
  * Renders the map stylesheets
  *
  * @param Ivory\GoogleMapBundle\Model\Map $map
  * @return string HTML output
  */
 public function renderStylesheets(Map $map)
 {
     $html = array();
     $html[] = '<style type="text/css">' . PHP_EOL;
     $html[] = '#' . $map->getHtmlContainerId() . '{' . PHP_EOL;
     foreach ($map->getStylesheetOptions() as $option => $value) {
         $html[] = $option . ':' . $value . ';' . PHP_EOL;
     }
     $html[] = '}' . PHP_EOL;
     $html[] = '</style>' . PHP_EOL;
     return implode('', $html);
 }