我正在为客户端生成谷歌地图。即时通讯使用下面的代码来生成地图上的区域:谷歌地图var城市地图区域可点击
citymap['Brandon'] = {
center: new google.maps.LatLng(52.447862, 0.622404)
};
然后我用以下样式:
for (var city in citymap) {
var Options = {
strokeColor: '#00AEEF',
strokeOpacity: 0.8,
strokeWeight: 2,
fillColor: '#00AEEF',
fillOpacity: 0.35,
map: map,
center: citymap[city].center,
radius: 10000
};
// Add the circle for this city to the map.
cityCircle = new google.maps.Circle(Options);
}
我想知道,如果有人可以为我怎么能建议添加href到该区域?我想让用户点击进入网页。我相对较新,所以任何建议都会在这方面受到极大的好评。
一个jsFiddle将不胜感激 –
这是我的工作: http://jsfiddle.net/keithriches/b1wcgo2n/1/ –