Here is my code

var newpoints = new Array();

var markerGroups = [ "a", "b", "c", "d", "f", "g", "h", "i", "j" ];

 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);

markerGroups[type1].push(marker);

GEvent.addListener(marker, "click", function () {

marker.openInfoWindowHtml(popuphtml);

});

return marker;

}

function toggleGroup(type1) {

for (type1 in markerGroups) {

for (var i = 0; i < markerGroups[type1].length; i++) {

var marker = markerGroups[type1];

if (marker.isHidden()) {

marker.show(type1);

} else {

marker.hide(type1);

}

}

}

}
this is the link i have used as a sample
http://gmaps-utility-library.googlecode.com/svn/trunk/labeledmarker/release/docs/examples.html

I get this errors at this lines


markerGroups[type1].push(marker);

if (marker.isHidden()) {
can you provide my any tutorial or sample code for hide/show markers
(complete code)
What I have in this link is relevant parts of the javascript ,it would be
helpful if I can have the complete code!!

Thanks
On Tue, Oct 26, 2010 at 3:39 PM, Andrew Leach <[email protected]>wrote:

> On 26 October 2010 14:29, S Z <[email protected]> wrote:
> > The link you have provided is my own link!
>
> No it's not, it's Google's link. Where is **your** page? What have done so
> far?
>
> Please read the posting guidelines. You have already followed the
> tutorial. We now need to see what you have actually done and where
> things have gone wrong. For that, you need to put your page online and
> give a link here.
>
> --
>  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]<google-maps-api%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-maps-api?hl=en.
>
>


-- 
Br.
Solmaz Zohdi

-- 
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