Active
Project:
jVectorMap API
Version:
7.x-1.x-dev
Component:
Documentation
Priority:
Major
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2016 at 07:46 UTC
Updated:
21 Jan 2016 at 13:19 UTC
Jump to comment: Most recent
Comments
Comment #2
Sushil Kumar Sharma commented#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.
Comment #3
sumeetjaggi commentedHi,
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