Declined
Last Updated: 11 Mar 2021 15:30 by ADMIN
Yong Yong
Created on: 23 Dec 2014 10:56
Category: Kendo UI for jQuery
Type: Feature Request
1
auto center
Kendo Map - Auto-Center after loading the geojson file.
4 comments
ADMIN
Ivan Danchev
Posted on: 11 Mar 2021 15:30

Hello,

We are closing this feature request due to lack of interest.

Regards,
Ivan Danchev
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

ADMIN
Telerik Admin
Posted on: 09 Jan 2015 17:16
Thanks for the additional explanation. 
Yong Yong
Posted on: 08 Jan 2015 02:41
Alright. For example, if the geojson contains regions in the Country A, after it is loaded, it is supposed to zoom and be centered at those regions (without the need of hard-code).

The effect can be observed with this link - http://openlayers.org/en/v3.1.1/examples/drag-and-drop.html.

After the drag and drop of the geojson file onto the map, it automatically zoom and center at those regions. (again, no hard-code).

Technically, i think there is a need to store all the coordinates of the boundaries, and obtain the average value.

It might be tricky if a geojson contains the regions from multiple countries, say US and Asia. But usually it won't.
ADMIN
Telerik Admin
Posted on: 07 Jan 2015 16:05
Can you elaborate further on what do you mean by auto-center in this case? Thus I'll be able to understand your request better.

Note that you can center the map via the respective attribute from the API: http://demos.telerik.com/kendo-ui/map/geojson