Show pushpin based zoom level/view

bala autade 1 Reputation point
2022-03-30T05:36:59.827+00:00

Hi,

We have requirement to show pushpin based zoom level/view.

Is there a way to limit the number of existing Pushpin displayed on a Bing Map depending on the zoom level? Like at level 5 only show one Pushpin and on a higher zoom level increase the amount displayed, so that at level 15 all existing Pushpin are shown. Is there any sample code for this.

Do we need to fetch all pushpin and then show based on zoom level or fetch only pushpin that are within zoom level/view.

Thanks!

Windows Maps
Windows Maps
A Microsoft app that provides voice navigation and turn-by-turn driving, transit, and walking directions.
229 questions
{count} votes

1 answer

Sort by: Most helpful
  1. IoTGirl 2,946 Reputation points Microsoft Employee
    2022-04-11T16:45:31.66+00:00

    Hi @bala autade ,

    Please take a look at the clustering feature as demonstrated at https://www.bing.com/api/maps/sdkrelease/mapcontrol/isdk/customizeclusteredpushpins. You can set the zoom levels that the cluster changes in the layer itself.

    Sincerely, IoTGirl

    0 comments No comments