public function testHtmlContainerIdWithValidValue() { $this->map->setHtmlContainerId('html_container_id'); $this->assertSame('html_container_id', $this->map->getHtmlContainerId()); }
/** * Renders the html map stylesheets. * * @param \Ivory\GoogleMap\Map $map The map. * * @return string The HTML output. */ public function renderStylesheets(Map $map) { $html = array(); $html[] = '<style type="text/css" scoped>' . 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); }