Unplanned
Last Updated: 03 Oct 2023 22:18 by Alexander
Phil
Created on: 30 Jan 2023 21:46
Category: Map
Type: Feature Request
3
Add ability to set map centre at runtime
When trying to set center at runtime, warnings are generated explaining that center should only be set from within the component. It would be hugly beneficial to be able to set centre dynamically at runtime to manipulate the map and have it pan programmatically to different locations.
1 comment
Alexander
Posted on: 03 Oct 2023 22:18

You just need to bind it to a variable like:

 

<TelerikMap Center="@Center" />

 

@code

{

     double Center = new double[] { 0.0, 0.0 };

     void Change(double lat, double lon)

     {

          Center = new double[] { lat, lon }

     }

}