title: jQuery jVectorMap Dynamic Map Loading
body: <p>Using jVectorMap I have a map of the United States whereupon you click a state and then a popup comes up for a map of that individual state.</p>
  
  <p>The popup is loaded via AJAX (not using jQuery) and the following occurs:</p>
  
  <ol>
  <li><p>A script is executed for the map. It is a really long file, but is all part of the following:</p>
  
  <p>$.fn.vectorMap('addMap',....</p></li>
  <li><p>The scripts for the rest of the popup are located further down.</p>
  
  <p>var map = new jvm.WorldMap({
      container: $('.stateMap'),
      map: 'indiana',
      backgroundColor:'none',
      zoomOnScroll:false,
      series: {
          regions: [{
              attribute: 'fill',
              normalizeFunction: 'polynomial',
          }]
      }
  });</p></li>
  <li><p>This is executed and gives the following error:</p>
  
  <p>Error: Attempt to use map which was not loaded: indiana</p></li>
  </ol>
  
  <p>I can load all of the maps before any of the AJAX calls occur, but I would prefer not to load 51 maps at once.</p>