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

centralize the map

2 Answers 56 Views
Map
This is a migrated thread and some comments may be shown as answers.
Peter Beyer
Top achievements
Rank 1
Peter Beyer asked on 03 Sep 2015, 11:32 AM
Dear Telerik,

We have implemented a map inside a tab strip. but the map is not centralized when we click on the tab with the map. Map is aligned to the left side of the container. see our example: http://dojo.telerik.com/agOpU
but when the tab containing map is selected by default - has class "k-state-active", everything is fine. see example: http://dojo.telerik.com/oVAmu

How can we solve this issue?

Best,
CRM-Byggefakta

2 Answers, 1 is accepted

Sort by
0
Accepted
Iliana Dyankova
Telerik team
answered on 07 Sep 2015, 07:18 AM
Hi Peter,

In order to achieve the expected you should set the map center coordinates when the tab became visible (i.e. in the tabStrip activate event). For your I modified the dojo.

Regards,
Iliana Nikolova
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Peter Beyer
Top achievements
Rank 1
answered on 10 Sep 2015, 06:16 AM

Okay this looks like it is working. I would prefer, that the user can not see that we are moving the position, when we click the tab, but hope it will be solve in a future version of kendo.

 

Thanks Peter

Tags
Map
Asked by
Peter Beyer
Top achievements
Rank 1
Answers by
Iliana Dyankova
Telerik team
Peter Beyer
Top achievements
Rank 1
Share this question
or