This is my code
This is my code,can you please tell me what is missing,its not working.
I have created checkboxes for each marker group, and then calling toggle function and in my aspx file i have onclick="toggleGroup('restaurant')for each check box
var newpoints = new Array();
var markerGroups = { "x": [], "y": [], "z": [], "u": [], "v": [], "w": [], "x": [], "a": [], "b": [] };
function addPoints(map, newpoints, inert,type1) {
for (var i = 0; i < newpoints.length; i++) {
var point = new GPoint(newpoints[i][1], newpoints[i][0]);
var popuphtml = newpoints[i][4];
var type1 = newpoints[i];
var marker = createMarker(point, newpoints[i][2], popuphtml, inert, type1);
markerGroups[type1].push(marker);
map.addOverlay(marker);
marker.show();
}
}
function createMarker(point, icon, popuphtml, inert, type1, markerGroups) {
var popuphtml = "<div id=\"popup\">" + popuphtml + "<\/div>";
var marker = new GMarker(point, ic
View Complete Post