【发布时间】:2012-06-19 07:14:26
【问题描述】:
如果我的标记是在每个结果的 ajax 成功时填充的,我如何向我的标记添加标签。
map.gmap('addMarker', { 'position': new google.maps.LatLng(result.latitude, result.longitude) });
我试过这样,但没有成功:
map.gmap('addMarker', {
'position': new google.maps.LatLng(result.latitude, result.longitude),
'bounds': true,
'icon': markerIcon,
'labelContent': 'A',
'labelAnchor': new google.maps.Point(result.latitude, result.longitude),
'labelClass': 'labels', // the CSS class for the label
'labelInBackground': false
});
【问题讨论】: