My problem is that when I use InMemoryFeatureLayer, the lables does not display. Please see the code and screen shots in the attached file.
Would appreciate it if you can help.
My problem is that when I use InMemoryFeatureLayer, the lables does not display. Please see the code and screen shots in the attached file.
Would appreciate it if you can help.
Steve,
You forget to set the FeatureSourceColumn, so you cannot show the labels. Here is what you need to add:
……
'close and remove the zone layer
RemoveLayer(ZONE_LAYER)
Dim zoneTmpLayer As New MapSuite.Core.InMemoryFeatureLayer
zoneTmpLayer.Columns.Add(new FeatureSourceColumn(“ZONE_ID”))
zoneTmpLayer.Columns.Add(new FeatureSourceColumn(“X1”))
zoneTmpLayer.Columns.Add(new FeatureSourceColumn(“Y1”))
zoneTmpLayer.Columns.Add(new FeatureSourceColumn(“X2”))
zoneTmpLayer.Columns.Add(new FeatureSourceColumn(“Y2”))
zoneTmpLayer.Columns.Add(new FeatureSourceColumn(“X3”))
zoneTmpLayer.Columns.Add(new FeatureSourceColumn(“Y3”))
zoneTmpLayer.Columns.Add(new FeatureSourceColumn(“X4”))
zoneTmpLayer.Columns.Add(new FeatureSourceColumn(“Y4”))
zoneTmpLayer.Open()
……
Let me know for more queries.
Ben
Thanks! That did the trick.
I can send a Quick Reply but the Message field on "Add new topic" is still disabled. I have IE 7.
My other question is: will you include the DoubleClick on the winformsMap1 later? A previous answer was: "events like Map1.DoubleClick has been disabled temporarily in the current release, this is a bug and we will enable it in the next beta. " I have Desktop Edition Full 3.0.184 Beta 2
Regards
Alta
Alta,
The event Map1.DoubleClick cannot be raised in last version (3.0.131) and it can be raised in the latest 3.0.184 one. One thing needs to be aware is that double click will zoom in the map no mater the event is hooked up or not.
Ben.
Ben,
I think in the Desktop Edition we need to be more flexible with the double click zooming. This is a chance to allow and even to override the zooming in functionality. I would not have the Desktop team put any code in just yet but we need to consider all options for allowing the user to disable or override this functionality. This includes the double left click and the track zoom as well.
David