看板 Web_Design 關於我們 聯絡資訊
※ 引述《wind75609592 (風)》之銘言: : 找到了 demo : http://gmaps-samples-v3.googlecode.com/svn/trunk/localsearch/places.html : 我想要讓按 enter 之後,右邊的 searchWell不要顯示 我這邊是v2的code 但應該差異不大. gmap.addControl(new google.maps.MapTypeControl()); if (option.Scale) gmap.addControl(new google.maps.ScaleControl()); if(option.ControlSize == 'l'){ gmap.addControl(new google.maps.LargeMapControl()); } else { gmap.addControl(new google.maps.SmallMapControl()); } : 看了很久的 code 都不知道怎改 : 改來改去連地圖都出不來 : 有人可以提供最陽春版的嗎 : 也不用自訂 icon : 只要打地址 按 enter 之後就自動找到那位置 code... geocoder.getLatLng(address, function(point){ if (!point) { debug('Cant Find this address'); return false; } if (typeof callback == 'function') return callback(options, point); return $.omap.moveTo(point); }); Demo: http://www.mervynw.info/gmap/ ... ... 剛好回Fb順便. -- Exactly. For that one fraction of a second, you were open to options you had never considered. THAT is the exploration that awaits you: not mapping stars and studying nebulae,but charting the unknown possibilities of existence. Star Trek S7E26 "All Good Thing" -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 61.31.105.62
wind75609592:可是我不想用 addControl 要用自己的 textbox 09/25 08:04
Canboo:下面那段改一下就符合需求了~ 09/25 10:13
alpe:google.maps.Geocoder({address:''}, function(){}) 09/26 22:07