Sub searchNamen_Click
If MarkerGeladen=False Then
NamenList.Initialize
NamenData.Initialize
Namen.AddSingleLine("Name suchen...")
NamenData.Add("Name suchen...")
For i = 1 To Namen_ListeGross.Size-1
Dim PointsTempG() As String = Regex.Split(",",Namen_ListeGross.Get(i))
NamenData.Add(PointsTempG(0)&","&PointsTempG(1)&","&PointsTempG(2))
Namen.AddTwoLines(PointsTempG(2),PointsTempG(0)&","&PointsTempG(1))
NamenList.Add(PointsTempG(2))
Next
For i = 1 To Namen_ListeKlein.Size-1
Dim PointsTempK() As String = Regex.Split(",",Namen_ListeKlein.Get(i))
NamenData.Add(PointsTempG(0)&","&PointsTempG(1)&","&PointsTempG(2))
Namen.AddTwoLines(PointsTempK(2),PointsTempK(0)&","&PointsTempK(1))
NamenList.Add(PointsTempK(2))
Next
For i = 1 To NamenListe.Size-1
Dim PointsTemp() As String = Regex.Split(",",NamenListe.Get(i))
NamenData.Add(PointsTempG(0)&","&PointsTempG(1)&","&PointsTempG(2))
Namen.AddTwoLines(PointsTemp(2),PointsTemp(0)&","&PointsTemp(1))
NamenList.Add(PointsTemp(2))
Next
Namen.Color=Colors.Black
Namen.FastScrollEnabled=True
Namen.Visible=True
Activity.AddView(Namen, 0, 0, 100%x, 100%y-42dip)
ToastMessageShow(Namen.Size & " Namen gefunden", False)
If svNPanel.NumberOfViews>0 Then
svNPanel.RemoveAllViews
svN.AddToParent(svNPanel, 0, 0, 300dip, 300dip)
svN.SetIndex(indexN)
Else
svN.AddToParent(svNPanel, 0, 0, 300dip, 300dip)
indexN=svN.SetItems(NamenList)
End If
End If
End Sub
Sub svN_ItemClick (Value As String)
svNPanel.Visible=False
Dim Position As Int
Position=NamenList.IndexOf(Value)+1
Dim PointsTemp() As String = Regex.Split(",",NamenData.Get(Position))
cp.Initialize(PointsTemp(0),PointsTemp(1), 15)
gmap.AnimateCamera(cp)
Dim markertemp As Marker
markertemp=gmap.AddMarker3(PointsTemp(0),PointsTemp(1),PointsTemp(2),IconTransp)
markertemp.InfoWindowShown=True
End Sub
Sub Namen_ItemClick (Position As Int, Value As Object)
Namen.RemoveView
If Position=0 Then
svNPanel.Visible=True
Else
Dim PointsTemp() As String = Regex.Split(",",NamenData.Get(Position))
cp.Initialize(PointsTemp(0),PointsTemp(1), 15)
gmap.AnimateCamera(cp)
Dim markertemp As Marker
markertemp=gmap.AddMarker3(PointsTemp(0),PointsTemp(1),PointsTemp(2),IconTransp)
markertemp.InfoWindowShown=True
End If
End Sub