Posts:
62
Registered:
8/26/04
|
|
|
|
Problem in creating Label Layer
Posted:
Jun 24, 2006 2:10 AM
|
|
Hello everyone,
We are developing a windows application using .NET Framework 1.1 and we use Map control in one of our windows forms.
Our problem is when we create a LabelLayer and add it to the map's layer collection. We get the error bellow:
MapInfo.Engine.CoreEngineException: : Invalid identifier (name).: Unresolved identifier
Here is what we do before we add the label layer to the map:
1- In a seperate thread (when the Map control is loading in the Main thread) we create a "MapInfo.Data.Table" object which also has a column named "name" and using a "MICommand" object we insert some data into that table.
2- we return that Table (full of data) back to the main thread where the map control has been created and loaded.
3- We create a "FeatureLayer" using that Table. (_layer = new FeatureLayer(_miTable))
4- We add that layer to the Map. (map.Layers.Add(_layer))
After all those steps, we add the label layer and we get that error. Here is the code that creates the label layer:
_lblLayer = new LabelLayer(lblName, lblAlias);
_lblLayer.Sources.Append(new LabelSource(_layer.Table));
map.Layers.Add(_lblLayer); // we get error here
which "_layer" is that "FeatureLayer" that we've added to the map in step 4.
Any idea, please?
Thanks in advance
|
|
|
Posts:
1
Registered:
1/12/10
|
|
|
|
Re: Problem in creating Label Layer
Posted:
Jan 12, 2010 8:17 PM
in response to: Christopher Lim
|
|
Hi
I am having same issue as well. I really want MapInfo team to fix this problem.
Andy
|
|
|
|
Legend
|
|
Helpful Answer
|
|
Correct Answer
|
|