Re: [問題] google map localSearch
※ 引述《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
09/25 08:04, 1F
→
09/25 10:13, , 2F
09/25 10:13, 2F
→
09/26 22:07, , 3F
09/26 22:07, 3F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
Web_Design 近期熱門文章
PTT數位生活區 即時熱門文章