jquery plugins - How to create pop up windows on google map clusterer circles -
i using following google map plugin
and works perfectly(insead of random variable see in link read locations database.)
now have been asked followoing: when user hover on clustered area(not markers) , clustered area mean red or yellow or blue circle , want pop window appears showing information . searched web lot not find anything, possible this?(i appreciate help)
update:
here code using :
$('#map_canvas').gmap({ 'zoom': 3, 'disabledefaultui': true }).one('init', function (evt, map) { var bounds = map.getbounds(); var temp = mark1; var southwest = bounds.getsouthwest(); var northeast = bounds.getnortheast(); var lngspan = northeast.lng() - southwest.lng(); var latspan = northeast.lat() - southwest.lat(); (var = 0; < 300; i++) { var contentstring = 'test'; var $marker = $(this).gmap('addmarker', { 'id': i, 'position': new google.maps.latlng( southwest.lat() + latspan * math.random(), southwest.lng() + lngspan * math.random()), 'content': 'm_' + }).click(function (i) { $('#map_canvas').gmap('openinfowindow', { content: this.content }, this); }); markers.push($marker); // add marker array } $(this).gmap('set', 'markerclusterer', new markerclusterer(map, $(this).gmap('get', 'markers'))); });
with latest markerclusterer.js should work:
google.maps.event.adddomlistener(markerclusterer, 'mouseover', function() { console.log('mouse on marker clusterer'); });
Comments
Post a Comment