Labels in Visualization Layer Blinking Issue

4 posts, 0 answers
  1. Dipika
    Dipika avatar
    3 posts
    Member since:
    Apr 2015

    Posted 10 Apr 2015 Link to this post

    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.

  2. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 15 Apr 2015 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Dipika
    Dipika avatar
    3 posts
    Member since:
    Apr 2015

    Posted 15 Apr 2015 in reply to Petar Mladenov Link to this post

    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 ?

  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 20 Apr 2015 Link to this post

    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.

     
Back to Top