Google マップの表示にbiostall の codeigniter Google マップ ライブラリを使用しています。指示に従って情報ウィンドウを表示すると、ページに地図が正しく表示されました。現在、情報ウィンドウはポインターをクリックしたときにのみ開きます。ここまでの進捗状況は、デモで表示される紫色のアイコンのようなものです。クイック デモをクリックします。
デフォルトでは情報ウィンドウを開くことができませんでした。お知らせ下さい。
以下の構成コード:
// map
$this->load->library('googlemaps');
// Initialize our map. Here you can also pass in additional parameters for customising the map (see below)
$config['center'] = '37.4419, -122.1419';
$config['zoom'] = '14';
$config['map_width'] = '500px';
$this->googlemaps->initialize($config);
// set markers
$marker = array();
$marker['position'] = '37.4419, -122.1419';
$marker['infowindow_content'] = '<b>We are here!!</b>;
$marker['animation'] = 'DROP';
$this->googlemaps->add_marker($marker);
// Create the map. This will return the Javascript to be included in our pages <head></head> section and the HTML code to be placed where we want the map to appear.
$data['map'] = $this->googlemaps->create_map();