Kendo Map - Auto-Center after loading the geojson file.
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/.
Thanks for the additional explanation.
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.
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