问一个google地图api的问题
google地图有一个功能,就是在搜索地址的时候, 页面左侧会出现多个地址, 点击其中一个地址, 该地址的market就会在地图上面突出显示并打开infowindows, 我在api 里面没有找到 直接操作market 打开infowindows的接口啊, 请问这个功能是怎么弄的?
[解决办法]
基本上就可以用IFRAME来实现,左侧点击右侧MARKET高亮,原来搞过。
例如框架上左右
左侧点击
function changeposition(shopID)
{
$.post('/Home/GetMapInfo',{ shopID: shopID }, function(data) {
if (!data)
{
}
else
{
for (var i=0;i<z.length;i++)
{
if(z[i] == data.Identifier)
{
parent.frames[2].changePosition(i+1,data.Identifier, data.ShopName, data.Address, data.Telephone);
}
}
}
},"json");
}
if (batch[i - 1] != "") {
//将数组元素赋值给标记
var marker1 = batch[i - 1];
//弹出提示信息
var showTitle = "<a href=" + """ + "/Shop/Display?identifier=" + shopID + """ + " target=" + """ + "_blank" + """ + ">" + info + "</a><br>地址:" + address + "<br>电话:" + telephone;
marker1.openInfoWindowHtml(showTitle);
//marker2.setLatLng(marker1.getLatLng());
//GEvent.trigger(marker2,"dragend");
}
else {
alert("none");
}
}