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

Labels in Visualization Layer Blinking Issue

3 Answers 148 Views
Map
This is a migrated thread and some comments may be shown as answers.
Dipika
Top achievements
Rank 1
Dipika asked on 10 Apr 2015, 03:12 PM

Hi,

Issue#1

We are using Rad Map control in one of our application where we need to show current position of the device. To achieve the functionality we are using timer to get updated position at regular interval.We are also using VirtualizationSource class to bind data on map (reference  - http://demos.telerik.com/silverlight/#Map/DynamicLayer). But each time when we are binding the data to map control labels showing on the map are blinking. [see img1 & img2 Attached]

So Please suggest some solution for the same.

Issue#2

In above mentioned application, I want to retain the focus area of the Map. How can I achieve the same ?

Please guide.

 

Also, Is it possible to set Width and Height as AUTO of the Labels on the Map.

3 Answers, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 15 Apr 2015, 12:08 PM
Hello Dipika,

You usually implement VirtualizationSource (VS) to read / request some data and add objects in the VisualizationLayer. It's expected that when you change VirtualizationSource - items are - removed, re-added in the Visualization Layer and this results in blinking of objects that haven't changed their position.
Instead of refresh of VS, aren't you able to configure your VS with some method which request and collects only the objects that have changed their position in RadMap. Then iterate and update the Position of those elements in the Layer. You perhaps may need a Dictionary - a map between the objects in the layer and business objects you read / request with the VS. This would probably solve both blinking issue and improve the overall performance.

You lost the focus out of Map with some interaction. Why do you need to get it back to Map ? Is Focus() method applicable in this scenario ? Do you have some keyboard navigation in map ?

What's the requirement behind the Auto width and height ? Is it possible to explain it with pictures of the desired result or any additional information ?


Regards,
Petar Mladenov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
Dipika
Top achievements
Rank 1
answered on 15 Apr 2015, 06:19 PM

Hi,

About Setting Width and Height as AUTO of the Labels on the Map...

When my labels are binding on Visualization layer, there Width and Height are same for all the Locations, While I want to set the Label's Height and Width to AUTO so that it can Auto Adjust according to Text inside it.

 

How can I achieve the same ?

0
Petar Mladenov
Telerik team
answered on 20 Apr 2015, 08:27 AM
Hi Dipika,

I prepared a basic project for you in which I copied the *defaultTemplate* from the UI Virtualization Demo and replaced the Canvas in it with Grid. The result could be seen in the attached picture. I hope this meets your requirement and will help you move forward.

Regards,
Petar Mladenov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
Map
Asked by
Dipika
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Dipika
Top achievements
Rank 1
Share this question
or