Hii

Please provide me configuration documents step by step of jVectorMap API.i am unable to configure it correctly.
Help me any body.

Comments

Sushil Kumar Sharma created an issue.

Sushil Kumar Sharma’s picture

#solved
Step by Step:-
1. I download jvectormap libraries (in /site/all/libraries/jvectormap)
2. I rename the css and js file to jquery.jvectormap.min.js and jquery.jvectormap..min.css (just like in explanations)[If use download full jvectormap libraries,there is no need to rename js and css]
3. I install the jvectormap module and enable it
4. Create any function in Custom Module and add these file(In My case my module name is general)
function general_jmap{
drupal_add_js(libraries_get_path('jvectormap') . '/jquery.jvectormap.min.js');
drupal_add_js(libraries_get_path('jvectormap') . '/jquery-jvectormap-world-mill-en.js');
drupal_add_css(libraries_get_path('jvectormap') . '/jquery.jvectormap.css');
drupal_add_js(drupal_get_path('module', 'general').'/main.js');
return theme('jvectormap', array('attributes' => array()));
}
5. Call this function any where in your tpl file.

Thanks.

sumeetjaggi’s picture

Hi,

Could the content of main.js file you have used to implement this feature mentioned here https://www.drupal.org/project/jvectormap/issues/2654012#comment-10774980

Thanks,
Sumeet