Re: [問題] google map localSearch

看板Web_Design作者 (薛丁格的貓)時間13年前 (2012/09/25 00:52), 編輯推噓1(102)
留言3則, 3人參與, 最新討論串2/2 (看更多)
※ 引述《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

09/25 08:04, , 1F
可是我不想用 addControl 要用自己的 textbox
09/25 08:04, 1F

09/25 10:13, , 2F
下面那段改一下就符合需求了~
09/25 10:13, 2F

09/26 22:07, , 3F
google.maps.Geocoder({address:''}, function(){})
09/26 22:07, 3F
文章代碼(AID): #1GO8_eBp (Web_Design)
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
文章代碼(AID): #1GO8_eBp (Web_Design)