http://mtavares.geantduweb.ca/en/annonce?view=fiche&task=fiche.display&fiche_id=5
私はあらゆる場所を見てきました...ミニマップのMap / Sat / Ter / Earthメニューをオフにする方法...ユーザーはクリックしてマップを拡張し、それらすべてのオプションを取得できます。しかし、小さいバージョンではそれらを入れる余地はありません...誰かアイデアはありますか?
これが私のリンクジェネレーターです(PHPのjoomla 2.5用):
function getGoogleMapData($data='') {
if (!is_array($data)) {
$data = array();
$data['addr'] = $this->_data->addr;
$data['ville'] = $this->_data->city;
$data['province'] = $this->_data->province;
$data['postal'] = $this->_data->postal;
}
//Build the address into a string based on the data we have
$gm = array();
$gm['addr'] = '';
$gm['addr'] .= ($data['addr']!='') ? $data['addr'] : '';
$gm['addr'] .= (($gm['addr']!='') && ($data['city']!='')) ? ',' : '';
$gm['addr'] .= ($data['city']!='') ? $data['city'] : '';
$gm['addr'] .= (($gm['addr']!='') && ($data['province']!='')) ? ',' : '';
$gm['addr'] .= ($data['province']!='') ? $data['province'] : '';
$gm['addr'] .= (($gm['addr']!='') && ($data['postal']!='')) ? ',' : '';
$gm['addr'] .= ($data['postal']!='') ? $data['postal'] : '';
$gm['param'] = ($gm['addr']!='') ? urlencode($gm['addr']) : '';
//Use new address string and make URL to google map and a SRC URL for inside iframe (embed)
if ($gm['param']!='') {
//Popup window : &iwloc=A
//&sll=45.488370,-73.463742
if (JFactory::getLanguage()->getTag()=='en-GB') {
$lang='en';
} else if (JFactory::getLanguage()->getTag()=='es-ES') {
$lang='es';
} else {
$lang='fr';
}
$gm['embed'] = sprintf('https://maps.google.ca/maps?q=%s&hl='.$lang.'&ie=UTF8&hq=&hnear=%s&t=m&z=14&output=embed', $gm['param'], $gm['param']);
$gm['url'] = sprintf('https://maps.google.ca/maps?q=%s&hl='.$lang.'&ie=UTF8&hq=&hnear=%s&t=m&z=14&source=embed', $gm['param'], $gm['param']);
if (JFactory::getApplication()->getName()!='site') {
//Remove adresse popup in iframe if back-end. window too small
$gm['embed'] = str_replace('iwloc=A&', 'iwloc=&', $gm['embed']);
$gm['url'] = str_replace('iwloc=A&', 'iwloc=&', $gm['url']);
}
}
return $gm;
} //End of makeGoogleMap()
このリンクを試しましたが、役に立ちませんでした... http://www.seomoz.org/ugc/everything-you-never-wanted-to-know-about-google-maps-parameters
この部分は白いポップアップを削除します...しかし、マーカーをクリックして開くのを防ぐ方法... idを変更して、拡大版または合計を開くようにします。
if (JFactory::getApplication()->getName()!='site') {
//Remove adresse popup in iframe if back-end. window too small
$gm['embed'] = str_replace('iwloc=A&', 'iwloc=&', $gm['embed']);
$gm['url'] = str_replace('iwloc=A&', 'iwloc=&', $gm['url']);
}