Refresh Datasource on startZoom

3 posts, 0 answers
  1. Nathan
    Nathan avatar
    7 posts
    Member since:
    Jan 2017

    Posted 13 Jul Link to this post

    How can I refresh the map datasource on every zoom, maybe with either startZoom or endZoom?

  2. Nathan
    Nathan avatar
    7 posts
    Member since:
    Jan 2017

    Posted 13 Jul in reply to Nathan Link to this post

    I think I found my solution. 

    vm.radiusMap.layers[1].dataSource.data(myData);

  3. Stefan
    Admin
    Stefan avatar
    1147 posts

    Posted 17 Jul Link to this post

    Hello Nathan,

    This is indeed the supported approach to programmatically change the data in the Map dataSource on the zoomStart event:

    http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/map#events-zoomStart

    http://docs.telerik.com/kendo-ui/api/javascript/data/datasource#methods-data

    If other options need to change as well, we can suggest using the setOptions method of the Map:

    http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/map#methods-setOptions

    Regards,
    Stefan
    Progress Telerik
    Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top