Sha256: 5e90164a337650e06026ce5155567b2138e184b20b63946ecfa0d6bbcaf453e9

Contents?: true

Size: 1.06 KB

Versions: 155

Compression:

Stored size: 1.06 KB

Contents

/**
 * jVectorMap version 2.0.4
 *
 * Copyright 2011-2014, Kirill Lebedev
 *
 */

(function( $ ){
  var apiParams = {
        set: {
          colors: 1,
          values: 1,
          backgroundColor: 1,
          scaleColors: 1,
          normalizeFunction: 1,
          focus: 1
        },
        get: {
          selectedRegions: 1,
          selectedMarkers: 1,
          mapObject: 1,
          regionName: 1
        }
      };

  $.fn.vectorMap = function(options) {
    var map,
        methodName,
        map = this.children('.jvectormap-container').data('mapObject');

    if (options === 'addMap') {
      jvm.Map.maps[arguments[1]] = arguments[2];
    } else if ((options === 'set' || options === 'get') && apiParams[options][arguments[1]]) {
      methodName = arguments[1].charAt(0).toUpperCase()+arguments[1].substr(1);
      return map[options+methodName].apply(map, Array.prototype.slice.call(arguments, 2));
    } else {
      options = options || {};
      options.container = this;
      map = new jvm.Map(options);
    }

    return this;
  };
})( jQuery );

Version data entries

155 entries across 155 versions & 4 rubygems

Version Path
phcthemes_admin_panel_pack-4.0.7 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_admin_panel_pack-4.0.6 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_admin_panel_pack-4.0.5 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_admin_panel_pack-4.0.3 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_admin_panel_pack-4.0.2 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_web_theme_pack-4.0.6 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_admin_panel_pack-4.0.1 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_web_theme_pack-4.0.5 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_web_theme_pack-4.0.4 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_web_theme_pack-4.0.3 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_web_theme_pack-4.0.2 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_web_theme_pack-4.0.1 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_web_theme_pack-4.0.0 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_admin_panel_pack-4.0.0 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_admin_panel_pack-3.2.0 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_web_theme_pack-3.2.0 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_admin_panel_pack-3.1.3 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_admin_panel_pack-3.1.2 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_admin_panel_pack-3.1.1 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js
phcthemes_web_theme_pack-3.0.2 app/assets/javascripts/common/jquery-jvectormap/jquery-jvectormap.js