Please tell me what is missing,it's not working.

var newpoints = new Array();

var markerGroups = new Array();
markerGroups= { "x": [], "w": [], "a": [], "q": [], "f": [], "t": [],
"j": [], "l": [], "r": [] };

function addPoints(map, newpoints, inert, type1, markerGroups) {
    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);
        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, icon, type1, inert);
    type1.push(marker);
    GEvent.addListener(marker, "click", function () {
        marker.openInfoWindowHtml(popuphtml);

    });
    return marker;
}
function toggleGroup(type1) {
    for (var i = 0; i < newpoints.length; i++) {
        var marker = type1[i];
        if (type1.hide) {
          marker.show();
        } else {
          marker.hide();
        }
      }
   }



Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps API V2" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-maps-api?hl=en.

Reply via email to