コード例 #1
0
 public function testRenderMapWithDisabledMapControls()
 {
     $map = new Map();
     $map->setJavascriptVariable('map');
     $map->setMapOption('mapTypeControl', false);
     $expected = 'map = new google.maps.Map(' . 'document.getElementById("map_canvas"), ' . '{"mapTypeId":google.maps.MapTypeId.ROADMAP,"mapTypeControl":false,"zoom":3}' . ');' . PHP_EOL;
     $this->assertSame($expected, $this->mapHelper->renderMap($map));
 }