Sometimes it may be desireable to use multiple maps on a single webpage. However, with every map instance that is loaded on a webpage,
a billable Bing Maps transactions is created. There are many optimizations that can be made to reduce the number of billable transactions
that are generated when using multiple maps on a single webpage.
- Create a single map instance and reuse it as needed. This can be done by changing the dataset rendered on the map and by
displaying the map in a modal dilog when needed, or by repositioning and resizing the map as needed.
- If the map isn't displayed right away, delay loading it until the user actually wants to see it.
In this sample, a single map is used to display twp different data sets within the second and third tab. The first tab has no map and thus
when the page initially loads and this tab is displayed, the map will not be loaded until needed.