Reputation: 31343
I have an application that leverages Azure Maps to show pins of various locations on a map. All works great, but when I zoom out, some of the pins will disappear. When I zoom back in they reappear.
Is there a way to keep the map from hiding the pins even when zoomed out? I have set my iconOptions in the layer to...
layer = new atlas.layer.SymbolLayer(datasource, null, {
iconOptions: {
ignorePlacement: true
},
});
But that hasn't really helped.
Upvotes: 2
Views: 631
Reputation: 18023
Also set the allowOverlap
option to true
. If displaying text in a symbol layer, and you want that to always show, set the same options under the textOptions
of the symbol layer.
layer = new atlas.layer.SymbolLayer(datasource, null, {
iconOptions: {
allowOverlap: true,
ignorePlacement: true
}
});
Upvotes: 6