Пример #1
0
 public function testLanguage()
 {
     $this->map->setLanguage('fr');
     $this->assertSame('fr', $this->map->getLanguage());
 }
 /**
  * {@inheritdoc}
  */
 public function renderLibraries(Map $map)
 {
     if ($this->apiHelper->isLoaded()) {
         return;
     }
     $callback = null;
     if ($map->isAsync()) {
         $callback = 'load_ivory_google_map';
     }
     $output = array();
     $output[] = $this->apiHelper->render($map->getLanguage(), $this->getLibraries($map), $callback, $map->getApiKey());
     $output[] = $this->markerClusterHelper->renderLibraries($map->getMarkerCluster(), $map);
     return implode('', $output);
 }