There is problem. Code below where i add two layers to map. First LINE_KUCE - (Streets), Second (LINE_PROSPEKT) - prospekt. But map displace that An item with the same key already been added. I there is fields by name "NAME" in my oracle table. What is wrong? If i comment lines where i add DefaultTextStyle map display the layers without labels, but when i dont cooment map displays An Item With The Same Key Has Already Been Added error.
Could you please check the tables in your oracle database to see if there are duplicated columns exist in the table? The duplicated columns may cause this exception.
OK, we will do more research about this issue because we have just fixed a schema issue in the postgre feature layer, but we are not sure if there is same issue in the Oracle feature layer. We will let you know if there is any progress about this issue.
We have a similar problem… We use MultipleShapeFileFeatureLayer to add layers… We use InMemoryFeatureLayer to add features too…
once the map loads… on the tile it shows the text message in black "An Item With The Same Key Has Already Been Added"… do you have any idea what could have caused it?
We can’t recreate your problem when using MultipleShapeFileFeatureLayer and InMemoryFeatureLayer. But using InMemoryFeatureLayer to add two or more features with the same key, it will throw an exception message “An Item With The Same Key Has Already Been Added”, this text message will not be printed on the tile.
Please provide us your source code, so we can handle this problem quickly.
We create a sample using your code with the data of USA POI (including hospital, church, and golf). We add these three shape files into MultipleShapeFileFeatureLayer, and then add the three types of interesting places into three InMemoryFeatureLayers using different styles depend on some ColumnValues. We still can’t recreate your issue. Our code is the same as you posted in the last reply. So could you supply us with the entire code and data, if it’s too large, please send to support@thinkgeo.com and ask them to forward to me.
I don’t know what problem you mean. The bug for OracleFeatureLayer has been fixed in the lastes DLLs package. You could get the latest daily build from the link below: helpdesk.thinkgeo.com Please correct me if I misunderstand your meaning.
Sorry for misunderstanding your meaning. I don’t know how you load a layer and add it to map control. Please refer to the DisplayASimpleMap sample in our installed samples which you could find it’s souce code in “Samples\GettingStarted\DisplayASimpleMap.aspx”. If you still have any problem, please provide your code for us to address it.
We test reading shape files without .idx files, and it proves that all works fine. Please make sure set the “RequireIndex” property of ShapeFileFeatureSource to false like below:
ShapeFileFeatureSource featureSource = new ShapeFileFeatureSource(); featureSource.RequireIndex = false;