Since upgrading to v1.8, I get an index of of range message when attempting to label a newly created MapPointLayer, For example, the following code once executed successfully, an error is drawn when attempting to label the point with the FID attribute (the funny thing is, once the data are exported as a shapefile, labeling works just fine):
'the new point feature set
Dim MyPointFeatureSet As New FeatureSet(FeatureType.Point)
MyPointFeatureSet.Projection = Map.Projection
'make a coordinate, add it to the featureset
Dim MyCoordinate As New Coordinate
MyCoordinate.X = -155
MyCoordinate.Y = 65
Dim MyPoint As New DotSpatial.Topology.Point(MyCoordinate)
Dim MyFeature As IFeature = MyPointFeatureSet.AddFeature(MyPoint)
MyPointFeatureSet.AddFeature(MyFeature)
'add the featureSet as map layer
Dim MyMapPointLayer As MapPointLayer = Map.Layers.Add(MyPointFeatureSet)
MyMapPointLayer.LegendText = "Skeeter's Points"
'refresh the map
Map.ResetBuffer()
'the new point feature set
Dim MyPointFeatureSet As New FeatureSet(FeatureType.Point)
MyPointFeatureSet.Projection = Map.Projection
'make a coordinate, add it to the featureset
Dim MyCoordinate As New Coordinate
MyCoordinate.X = -155
MyCoordinate.Y = 65
Dim MyPoint As New DotSpatial.Topology.Point(MyCoordinate)
Dim MyFeature As IFeature = MyPointFeatureSet.AddFeature(MyPoint)
MyPointFeatureSet.AddFeature(MyFeature)
'add the featureSet as map layer
Dim MyMapPointLayer As MapPointLayer = Map.Layers.Add(MyPointFeatureSet)
MyMapPointLayer.LegendText = "Skeeter's Points"
'refresh the map
Map.ResetBuffer()