odd behavior with pan and level show

3 posts, 0 answers
  1. Gwen
    Gwen avatar
    2 posts
    Member since:
    May 2016

    Posted 11 Nov 2016 Link to this post

    I have run across a problem with the map widget when you pan the view and then call show() on a tile layer.

     

    I have a link to a dojo that should reproduce this. First pan the map and then click the "show()" button.  When you do this the map image will move in the same direction that you just panned it.  This happens on both chrome and ie.

    odd map dojo

  2. Ianko
    Admin
    Ianko avatar
    1707 posts

    Posted 15 Nov 2016 Link to this post

    Hello Gwen,

    This behavior is normal and expected. Calling the show method to a tile layer not only shows it, but points the extent of the map based on the first image in the layer's grid. 

    To prevent that from happening, you can reset the map's center by using the center method. Here you are a dojo with the solution: http://dojo.telerik.com/AVAHI

    Regards,
    Ianko
    Telerik by Progress
     
    Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
     
  3. Ianko
    Admin
    Ianko avatar
    1707 posts

    Posted 15 Nov 2016 Link to this post

    Hello Gwen,

    After some further research, it appears that this is actually a bug that has been logged in our internal backlog. It will be fixed soon and for the time being you can use the workaround provided in my previous message.

    Regards,
    Ianko
    Telerik by Progress
     
    Build rich, delightful, *native* Angular 2 apps with Kendo UI for Angular 2. Try it out today! Kendo UI for Angular 2 (currently in beta) is a jQuery-free toolset, written in TypeScript, designed from the ground up to offer true, native Angular 2 components.
     
Back to Top