I want to add a variable number of location pins on a WebMapViewer.
I can create a number of webmaplocations but the number of addresses may change each time the map is loaded (taking customer visit locations from a database which will change over time).
What is the best way to declare the New webmalocations?
I have the code from the examples but not sure how to dim a variable number of locations.
You could append them to an array declared without specified size (using -1 or nothing on declaration) when a map is loaded. Doing so wouldn’t specify the number of elements in the array and might be what you are looking for.