I have an InMemoryMarkerOverlay to which programmatically add features. The points (markers) display just fine, but it seems that they receive no column values.
Here's the code:
For Each dbRow In dbPermits(nType, nIndex).Rows
dbRows = dbFeatures.Select("LINC = '" & dbRow("sLinc") & "'")
If dbRows IsNot Nothing AndAlso dbRows.Length > 0 Then
shpOverlay(nIndex).FeatureSource.BeginTransaction()
sID = dbRows(0)(0)
ftr = shpMuni.FeatureSource.GetFeatureById(sID, New String() {"LINC"})
shpOverlay(nIndex).FeatureSource.AddFeature(New Feature(ftr.GetBoundingBox.GetCenterPoint(), ftr.ColumnValues))
shpOverlay(nIndex).FeatureSource.CommitTransaction()
End If
Next
This seems to work, but when I put a watch on it, ftr.ColumnValues has the data, but the added feature in the overlay does not.
So when I try to do a popup.contentHtml = "[#LINC#]" - all I get is the string literal not the value it represents.
Thoughts?
Kirk