C# Google.map标记信息链接在chrome浏览器中不起作用
我使用google.maps api和标记定位在给定的纬度和经度位置。在鼠标上方打开一个div,其中包含一些关于位置和链接的信息 在这里,我在下面的代码中遇到的问题是,URL链接在firefox中工作得很好,但在chrome浏览器中却不起作用。我已经使用了Chrome24.0版本 我已经搜索了很多关于这个的链接,但我没有得到解决方案。如果有,请提供适当的解决方案。C# Google.map标记信息链接在chrome浏览器中不起作用,c#,google-maps,map,C#,Google Maps,Map,我使用google.maps api和标记定位在给定的纬度和经度位置。在鼠标上方打开一个div,其中包含一些关于位置和链接的信息 在这里,我在下面的代码中遇到的问题是,URL链接在firefox中工作得很好,但在chrome浏览器中却不起作用。我已经使用了Chrome24.0版本 我已经搜索了很多关于这个的链接,但我没有得到解决方案。如果有,请提供适当的解决方案。 marker=createInfoMarker(新的google.maps.LatLng(纬度、经度)) marker.setMap
marker=createInfoMarker(新的google.maps.LatLng(纬度、经度))
marker.setMap(map);
函数createInfoMarker(a、b、url)
{
var i=新的google.maps.Marker({
职位:a,
地图:地图
});
google.maps.event.addListener(i,“mouseover”,函数(){
变量信息=“”+
'' +
'' +
'' +
'';
i、 openExtInfoWindow(地图、信息);
});
返回i
}
marker=createInfoMarker(新的google.maps.LatLng(纬度、经度))
marker.setMap(map);
无功电流=零;
函数createInfoMarker(a、b、url)
{
var i=新的google.maps.Marker({
职位:a,
地图:地图
});
google.maps.event.addListener(i,“mouseover”,函数(){
变量信息=“”+
'' +
'' +
'' +
'';
如果(当前!=null)
{current.close();}
infowindow=new google.maps.infowindow();
infowindow.setContent(info);
打开(地图,i);
当前=信息窗口;
});
返回i
}
这个问题与C#有什么关系?对我来说,这更像是一个javascript问题……你能提供一个JSFIDLE来展示这个问题吗?或者有足够的代码来复制问题?
marker = createInfoMarker(new google.maps.LatLng(Latitude , Longitude))
marker.setMap(map);
function createInfoMarker(a, b, url)
{
var i = new google.maps.Marker({
position: a,
map: map
});
google.maps.event.addListener(i, "mouseover", function () {
var info = '<table width="300" style="max-width:500px;background:#fff;border:solid 1px #ddd;"><tr class="vProductItems"><td class="thumbSetting">' +
'<div class="thumbTitle nomargin pull-l" style="width:auto;">' +
'<span class="pull-r"><a href="' + URL + '"">' + CLICK + '</a></span>' +
'</div></td>' +
'</tr></table>';
i.openExtInfoWindow(map, info);
});
return i
}
marker = createInfoMarker(new google.maps.LatLng(Latitude , Longitude))
marker.setMap(map);
var current = null;
function createInfoMarker(a, b, url)
{
var i = new google.maps.Marker({
position: a,
map: map
});
google.maps.event.addListener(i, "mouseover", function () {
var info = '<table width="300" style="max-width:500px;background:#fff;border:solid 1px #ddd;"><tr class="vProductItems"><td class="thumbSetting">' +
'<div class="thumbTitle nomargin pull-l" style="width:auto;">' +
'<span class="pull-r"><a href="' + URL + '"">' + CLICK + '</a></span>' +
'</div></td>' +
'</tr></table>';
if (current != null)
{ current.close(); }
infowindow = new google.maps.InfoWindow();
infowindow.setContent(info);
infowindow.open(map, i);
current = infowindow;
});
return i
}