I think you just want to swap your layers...render the pin layer "above" the polygon layer. https://learn.microsoft.com/en-us/javascript/api/azure-maps-control/atlas.layermanager and look at adding the layers in a particular order (maybe using the before keyword).
Azure Map Render - Place pushpin on top of path
Manh Quang Dau
1
Reputation point
Hi there, I wonder if there is a way I can put the red pushpins on top of the rectangle path when rendering the static map image ?
https://atlas.microsoft.com/map/static/png?subscription-key={subscription-key}&api-version=1.0&layer=basic&style=main&zoom=12¢er=-73.96682739257812%2C40.78119135317995&pins=default|la-35+50|ls12|lc003C62|co9B2F15||'Times Square'-73.98516297340393 40.758781646381024|'Central Park'-73.96682739257812 40.78119135317995&path=lc0000FF|fc0000FF|lw3|la0.80|fa0.30||udid-{udId}