Unplanned
Last Updated: 06 Nov 2024 13:09 by ADMIN
Joel
Created on: 23 Feb 2023 03:55
Category: Map
Type: Feature Request
13
Implement observable data for Map Layers

Ability to refresh data for specific Map Layers. Currently the only way to update markers on Map is by calling Refresh on the Map component or issuing a StateHasChanged call.

Currently Maps does not support observable data, according to documentation: Databind to Observable Collection - Telerik UI for Blazor

Purpose: Ability to have "live" updating markers and/or shapes without calling MapRef.Refresh() which causes a full component "blink" and refresh in Edge, and to avoid StateHasChanged.

Example/Pseduo-Razor code:
<TelerikMap @ref="MapRef">
  <MapLayers>
    <MapLayer Type="@MapLayersType.Marker" Data=@MyData" @ref="LayerRef" />
  </MapLayers>
</TeleriKMap>

Example/Pseudo C# example
@code {
  TelerikMap MapRef {get; set; }
  TelerikMapLayer LayerRef { get; set; }

  MyData = new List<MapMarker>() {
    // Data in here
  };

  private void WholeComponentRefresh() {
    MapRef.Refresh(); // Existing functionality
  }

  private void AddMarker() {
    MyData.Add(new MapMarker()); // Map ignores this because it does not treat as observable
  }

  private void MyLayerRefresh() {
    LayerRef.Refresh(); // If we don't have observable, could we at least get per-layer Refresh?
  }
}

2 comments
ADMIN
Hristian Stefanov
Posted on: 06 Nov 2024 13:09

Hi Scott,

Thank you for showing your interest in this item, it will be noted in the team.

I can confirm that the status is still Unplanned. That means no specific time frame has been assigned yet. As soon as we move the task to the short-term backlog, the status will change to "Planned", and most likely a release month will appear as well.

Please stay tuned for any updates on the status of this item.

Regards,
Hristian Stefanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Scott
Posted on: 06 Nov 2024 12:08
Has there been any progress on this? The issue with calling the Map Refresh or StateHasChanged, it resets the zoom, panning etc. So if a user has zoomed in the map or panned it, the refersh brings it back to the default properties.