I am trying to create a bing map and adding a pushpin to the map by creating new pushpin using following
new Microsoft.Maps.Pushpin(locs[i], pushpinOptions);
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.
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 this 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 this 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?