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

radmap refresh / redraw

1 Answer 151 Views
Map
This is a migrated thread and some comments may be shown as answers.
M L
Top achievements
Rank 1
M L asked on 09 May 2013, 01:25 PM
Hello,
Unless I'm missing something, radMap lacks a refresh / redraw functionality.
Assume I have a function like this:

void FillMapWithData(List<MyData> shapes)
{
    SqlGeospatialDataReader reader = new SqlGeospatialDataReader();
    reader.GeospatialPropertyName = "Geom";
    reader.Source = shapes;
    reader.ToolTipFormat = "{Name} - {Count}";
    worldLayer.Reader = reader;
}

It's filled from our database.
Now, if i execute this for the first time, everything works great.
But if i were to execute this for another set of data on the same radMap and the same information layer, nothing gets refreshed.
I have to zoom in and out to get the new shapes displayed. I cant find any refresh or similar method inside radMap or information layer.
There is a simple workaround for this, all I need to do is set the radmaps visibility to collapsed and then back to visible, but for the sake of clean code, i would rather have a proper method.
Could you please tell me if such a method exists and in case it doesn't, pass this to the dev team?
Thank you.

1 Answer, 1 is accepted

Sort by
0
Andrey
Telerik team
answered on 13 May 2013, 08:52 AM
Hello,

Unfortunately we can't reproduce the problem using the Q1.2013.
I have attached a sample solution we've created to do it. It works as expected. Items from new list are displayed without any problem.
Could you, please, provide us with a small sample solution which reproduces the issue?

Regards,
Andrey Murzov
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

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