1
votes

I am using Bing map version 8, earlier with version 7 used entities, now we use layers and create a new layer and add pushpins to that layer and then add the layer to the map.

But, in a situation when an sea port icon is there and a pushpin emerges very close to it, it hides the icon and pushpin stands visible.I want both icon and pin to stay visible. Please help.

var pinLayer = new Microsoft.Maps.Layer();

//Created pins

pinLayer.add(pin); //added the pin to layer

//

map.layers.insert(pinLayer); //Added the layer to map

Earlier in v7 (using entities)-

Now in V8, the same icon of airport is not visible. I want it to show up.

1
Is the port icon a pushpin? Can you provide more info, it isn't clear. Have you tried the experimental branch to see if it happens there. All the bug fixes in the experimental branch are being added to the main release branch early next week.rbrundritt
No it is a general airport icon(actually) for any airport on bing map. When any pushpin is created close to that airport icon(kind of overlap situation) then pushpin hides the airport icon. can you please help?Christian

1 Answers

0
votes

Are you talking about the airport icon that is automatically added by Bing Maps? If so, this is to be expected as it is a map label which is lower priority than your data. Bing Maps uses vector labels and label collision to hide map labels which are overlapped by pushpins to keep the map view nice and clean. If you would prefer to disable the vector labels simply add the following map option when loading: liteMode: true

You can find out more about vector labels in Bing Maps V8 here: https://msdn.microsoft.com/en-us/library/mt750538.aspx