Azure Map Render - Place pushpin on top of path

Manh Quang Dau 1 Reputation point
2021-07-03T04:01:05.65+00:00

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&center=-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}

124339930-fc84d900-dbf4-11eb-8875-100337cba39c.png

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
721 questions
{count} votes

1 answer

Sort by: Most helpful
  1. IoTGirl 3,126 Reputation points Microsoft Employee
    2021-07-06T02:47:35.12+00:00

    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).

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.