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

odd behavior with pan and level show

2 Answers 11 Views
Map
This is a migrated thread and some comments may be shown as answers.
Gwen
Top achievements
Rank 1
Gwen asked on 11 Nov 2016, 06:37 PM

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 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 15 Nov 2016, 08:04 AM

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.
 
0
Ianko
Telerik team
answered on 15 Nov 2016, 08:38 AM

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.
 
Tags
Map
Asked by
Gwen
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or