How do I display the pinned locations as a list, in a separate scrollable box over the map? I cant find the docs for it.

Mahmud, Saif (Contractor) 21 Reputation points
2021-02-09T20:41:48.613+00:00

I have a pretty basic map with hardcoded number of locations with infoboxes. But I want to display the same info in a list that is scrollable and is laid out on top and left of the map. If you click on one list item, the corresponding pin would be highlighted, and so on...
I can't find it in the bing maps docs. Any help?

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

Accepted answer
  1. rbrundritt 18,061 Reputation points Microsoft Employee
    2021-02-09T20:46:44.247+00:00

    Here are a few samples that does this:

    https://azuremapscodesamples.azurewebsites.net/?sample=Page%20through%20POI%20results

    https://azuremapscodesamples.azurewebsites.net/?sample=Interactive%20Search%20Quickstart

    https://azuremapscodesamples.azurewebsites.net/?sample=Simple%20Store%20Locator

    Basically, in your list items, store an ID for each shape in it (i.e. use rel attribute, or pass as a parameter in an event onclick="myHandler('shapeID')". Then retrieve the shape from the data source using datasource.getShapeById and then you will have all the details for the shape in question and can create the experience you want, such as displaying a popup or some other workflow.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.