This project is read-only.

GoogleMap: Show/Hide Markers, Center Map, Address Not found

May 4, 2009 at 5:15 PM

First of all, congratulations for the great work.

I apologize if these issues have been already addressed in other topics, but I really didn't have the time to search thoroughly.

The problems I am trying to solve are:

1. Show/Hide Markers based on their title (sth like a category)
    This is the code I've been using, but it hides all markers and doesn't show them again.

    Public Sub ShowHideMarker(ByVal showMarker As Boolean, ByVal categoryTitle As String)
        Dim i As Integer
        Dim mrk As GoogleMarker

        With GoogleMap1
            For i = 0 To .Markers.Count - 1
                mrk = .Markers.Item(i)

                If mrk.Title = categoryTitle Then
                    If showMarker = True Then
                    End If
                End If
        End With
    End Sub

2. I can't seem to center the map so that all markers are shown. Autopan=True for each marker and I have enabled the MarkerManager.

3. How can I detect whether an address is found? I add the markers through a for loop and would like to produce an html table with each address and the status of the search (that is Found or Not Found)

Many thanks in advance!
Sep 10, 2009 at 4:35 PM

did you solve it? Specialy point 3??.

Thanks JME