How to determine if points are visible on a map after zoom or pan

Hello,

I'm using SFMap component.
I need a way to be able to tell which points are visible after the map is panned or zoomed.

For example, after panning the map:


Or the same concept after zooming in:


I'm not sure if there is any built-in way to achieve this.

Thanks


4 Replies

IR Indumathi Ravi Syncfusion Team August 16, 2021 01:56 PM UTC

Hi Sorin,

Thank you for contacting Syncfusion Support.

The markers in the Maps component's view will always be hidden when the map is zoomed or panned. This is the default behavior of the Maps component. If we want to look into that marker, we must change the "ZoomFactor" property or the size of the component.

Please let us know the exact requirement and the purpose of this requirement in detail. So that it will be helpful for us to analyze the requirement further and assist you better.

Regards,
Indumathi R



SO Sorin September 8, 2021 10:52 AM UTC

Hello Indumathi,

Let me try to clarify the use case by an example where 


  1. Assume Parent Component (Blazor Page) has a List<GPSPoint> with 4 points in it.
  2. The Child component (SF Map) receives this list of 4 points as input to DataSouce parameter. 
  3. Map initially renders and shows all 4 points.
  4. User pans the map so that only 3 points are showing and the 4th point is no longer in view.
  5. I need to present the user with a list of only the 3 visible points. How can I identify which point is no longer visible in order to notify the Parent Component?

Please let me know if this is more clear.


IR Indumathi Ravi Syncfusion Team September 9, 2021 07:07 PM UTC

Hi Sorin,

Thank you for your update.

We are analyzing the feasibility for your requirement in the Maps component. We will update you with further details on September 10, 2021.

Regards,
Indumathi R


IR Indumathi Ravi Syncfusion Team September 10, 2021 04:34 PM UTC

Hi Sorin, 
  
When we analyzed the feasibility for your requirement, we came to know that this requirement is dependent on the feature discussed in the forum 168112. Once we provide the support for minimum and maximum latitude and longitude values, we can find the markers that are inside the map area bounds. So, we have considered this requirement as a feature and added it to our features request list. This feature will be available in any of our upcoming releases. Meanwhile, please find the below feedback link to keep track of this feature.  
   
  
Please let us know if you need any further assistance. 
  
Regards, 
Indumathi R 


Loader.
Up arrow icon