This is a migrated thread and some comments may be shown as answers.

Problems after we changed Q1 to Q2 version

1 Answer 54 Views
Map
This is a migrated thread and some comments may be shown as answers.
Pablo
Top achievements
Rank 1
Pablo asked on 22 Sep 2011, 02:55 PM
Hello everybody!
I've questions to you and specially Telerik's developers.

1. We changed library from full version Q1 (2011.1.0419.35) to full version Q2 (2011.2.0712.35). Both versions are full and were bought (not any trials).
After this change very important functionality for us - dragging / moving on map after click right button mouse - don't work.
We use Visual Studio 2010 and Team Foundation Server for software development. Our project is made in WPF(C#). 
Any old libraries (Q1) were replaced on new Q2 version (in TFS and local machines).

Interestingly if I make simple project in WPF and use this radmap Q2 version (without any TFS connection) this moving maps functionality works.
What should we do? any idea????

2. We changed Q1 to Q2, because new version has new functionality available by SqlGeospatialDataReader, and .... here is another problem namely: SqlGeospatial gets good data and don't display any polygon or points on informationlayer. Example code is shown below:

xaml:
................
           <telerik:InformationLayer x:Name="layer1" Visibility="Visible">
                <telerik:InformationLayer.Reader>
                    <telerik:SqlGeospatialDataReader x:Name="sqlGeospatialDataReader">
                        
                    </telerik:SqlGeospatialDataReader>
                </telerik:InformationLayer.Reader>
            </telerik:InformationLayer>
.................


code behind:
............
           DBContext.DataClasses1DataContext db = new DBContext.DataClasses1DataContext();

           List<string> mylist = new List<string>();

     


           foreach (var element in db.usp_GetRegions().ToList())
           {
              
               mylist.Add(element.WKT);
              
           }
           sqlGeospatialDataReader.Source = mylist;

at sqlGeospatialDataReader.Source = mylist, the SqGeoSpatialDataReader.Source gets complete list of WKT's as strings. This code has debugged and contains correct data required by SqlGeoSpatialDataReader (I think so :-)). 
usp_GetRegions() is stored procedure that gets data from SQL Server and works fine (return correct format of data).


Can you give (link example or some other) me any example of use this class in codebehind. I tried "List<IEnumerable> mylist" and don't work also.

I will be grateful for help.
Pablo


1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 27 Sep 2011, 12:47 PM
Hello Pablo,

1. It is very complicated and it is hard to reproduce the problem without your solution. Could you, please, provide us with a small runable solution which reproduces it?

2. The SqlGeospatialDataReader requires to use the GeospatialPropertyName property. It must define the name of the wkt or wkb geometry property of the class you use for collection. I have attached a small sample solution. For more information please take a look for the Wkt Geospatial Data Reader eaxmple and the following documentation topic:
http://demos.telerik.com/silverlight/#Map/WktReader
http://www.telerik.com/help/wpf/radmap-features-sql-geospatial-data.html

Greetings,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Map
Asked by
Pablo
Top achievements
Rank 1
Answers by
Andrey
Telerik team
Share this question
or