title: separate overlapping pushpins that are added dynamically on a bing map
body: <p>I am trying to create a bing map and adding a pushpin to the map by creating new pushpin using following</p>
  
  <pre><code>new Microsoft.Maps.Pushpin(locs[i], pushpinOptions);
  </code></pre>
  
  <p>where the locs array contains all the latitudes and longitudes of different location which are populated using a AJAX call and since the number of the locations to show on map varies from 2 to 20 I cannot pass the latitudes and longitudes in the bing map REST API call as the URL becomes too big.</p>
  
  <p>I have already tried to pass 'dcl=1' parameter in the REST API and its not working since its not a static map.
  I am following <a href="https://msdn.microsoft.com/en-us/library/ff701724.aspx" rel="nofollow noreferrer">this</a> tutorial but it is for static map i.e. where all data for the map to render is passed in the REST API to bing which is not feasible in my case. I have also tried but <a href="https://stackoverflow.com/questions/9906120/how-to-prevent-overlapping-pushpins-at-the-same-geolocation-with-bing-maps">this</a> but I need to separate pushpins when they are rendered. Is there any way to separate overlapping pushpins that are added dynamically on a bing map?</p>