What is the best way to enter over 200,000 latitude/longitude onto a azure map? Each marker will link to a photo for a popup for that photo.
Using the traditional HtmlMarker class isn't an option as these create DOM elements which drastically impact performance once you go over 1,000 points. The best way is to use a either a bubble layer or a symbol layer to show the points on a map. These layers can handle hundreds of thousands of points. I would also only have one popup and reuse it (each popup generates DOM elements). Take a look at these resources:
You may also want to consider using clustering as you might find the map too crowded to be useful:
One issue you might encounter is the initial download of your data. There are a couple of options if you find that download time is too long.
The simple option
Separate the metadata for each point from and only download the coordinates and ID for each location (or any other bare minimum data needed to render the points). Then when a location is clicked to show a popup, use the ID to retrieve the additional metadata from the server on demand. This is a fairly common approach that has worked well for years. It also slows data scrapers down from grabbing all your data.
The complex option
Consider creating a vector tiles from your data. This is a decent amount of work, especially if you haven't done this before. But once this has been done, this will likely be the most performant option and is capable of supporting billions of points. Similar to the above, if you have a lot of metadata, or large metadata (e.g. paragraphs descriptions), separating the metadata from the location data and retrieving that separating on demand as needed by the popup would provide the optimal solution.
7 people are following this question.