title: jvectormap show labels only for specific regions
body: <p>I'm trying to show labels for the only region I highlight on the map.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>var map = $('#map').vectorMap({
      regionsSelectable: true,
      regionsSelectableOne: true,
      series: {
          regions: [{
              scale: ['#cccccc', '#0A6EB4'],
              values: data
          }]
      },
      regionStyle: {
          initial: {
              fill: '#ffffff',
              "fill-opacity": 1,
              stroke: '#cccccc',
              "stroke-width": 0,
              "stroke-opacity": 1
          },
          hover: {
              "fill-opacity": 1,
              cursor: 'pointer'
          },
          selected: {
              fill: '#0A6EB4'
          },
          selectedHover: {
              fill: '#1E4669'
          }
      },
      regionLabelStyle: {
          initial: {
              'font-family': 'Verdana',
              'font-size': '12',
              'font-weight': 'bold',
              cursor: 'default',
              fill: 'black'
          },
          hover: {
              cursor: 'pointer'
          }
      },
      labels: {
          regions: {
              render: function (code) {
                  if (activeCountries.hasOwnProperty(code)) {
                      var regions = $("#map").vectorMap("get", "mapObject").regions;
                      console.log(code, regions[code]); //&lt;&lt; ERROR!
                  }
              }
          }
      }
  });
  </code></pre>
  
  <p>In the labels.regions.render function I'm able to get the code of the country, I'm able to verify that is a country present in the array activeCountries, but then when I try to retrieve the country name (regions[code].config.name) the regions[code] is undefined, the specific code is missing!</p>
  
  <p>So I can show the labels on the regions that are present in the activeCountries array?</p>
  
  <p>That is what I'm trying to achieve:</p>
  
  <p><a href="https://i.stack.imgur.com/m7FXo.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/m7FXo.png" alt="enter image description here"></a></p>
  
  <p>The above image is done using Highmaps. </p>
  
  <p><strong>UPDATE</strong>
  Thanks to deblocker that has found the solution. </p>
  
  <p>Now I need only to find a way to add a white shadow to the region text to make it better visible also on dark highlighted regions.</p>