2012-10-08 19 views
0

在另一個線程我一直在尋找的從谷歌開發的商店定位器插件面板一些定製的幫助定製的GoogleMap的商店定位器插件板

How to customize the sidepanel of Store Locator plugin from google developer

我需要進一步定製,如: 1 。我想要訂購商店列表的無序列表。 2.想把更多的信息和細節列入清單。 3.想要從搜索的位置獲得每家商店的距離。

你能建議我該怎麼提前?

+1

如果您不再回答自己的問題,您將獲得更多幫助。未解答的問題吸引了答案。這也將有助於如果你upvote從別人有用的答案 –

+0

好的。你知道的。感謝: - |只是想我可以分享我得到的結果:S – marifrahman

回答

0

我想我已經得到了它: 在我使用的是DS:

store.getInfoPanelItem = function() 
    { 

     if (!store) { 
     return ; 
     } 
     var details = store.getDetails(); 

     var html = ['<li class="store"><div class="store"><div class="title">', details.title, 
     '</div><div class="address">', details.address, '</div>', 
     '<div class="email">', details.email, '</div></div></li>'].join(''); 

     return $(html)[0]; 
    } 

但現在當我點擊地圖上的點的列表項沒有得到選擇!