Topic: VectorMap is not defined

nonfinite priority asked 1 year ago

I want to show the Advanced data visualization, map.

But when i am coding then its giving an error

Uncaught ReferenceError: VectorMap is not defined

I have called these scrips

  <!-- SCRIPTS -->
  <script type="text/javascript" src="../js/jquery-3.4.1.min.js"></script>
 <script type="text/javascript" src="../js/popper.min.js"></script>
 <script type="text/javascript" src="../js/bootstrap.min.js"></script>
<script type="text/javascript" src="../js/mdb.min.js"></script>
 <script src="../js/addons/mdb-vector-map.js"></script>
  <script src="../js/addons/maps/world/world_mill.js"></script>

Please let me know if any other file needs to be called.

Grzegorz Bujański staff answered 1 year ago

How can we reproduce this error? I downloaded the latest version of the vector maps plugin and everything seems to be working fine there. Do you also have other errors in the console? Does the error appear after opening the html file that is in the plugin, or did you copy the necessary files and add your own html file?

nonfinite priority commented 1 year ago

I created an HTML file and copied the inner HTML of the file from the demo file given in the plugin.

But i wanted to use Advanced data visualization, map.

so copied the files from and used it.

Grzegorz Bujański staff answered 1 year ago

In the MDB4 jQuery you are trying to use an example from MDB5 Standard. Unfortunately, MDB5 is not compatible with MDB4 and the MDB5 examples will not work properly in MDB4

Documentation for Vector Map for MDB4 jQuery can be found here:

Unfortunately we don't have this example for MDB4

Please insert min. 20 characters.


Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.



Specification of the issue

  • ForumUser: Priority
  • Premium support: Yes
  • Technology: MDB jQuery
  • MDB Version: MDB4 4.20.0
  • Device: Laptop
  • Browser: chrome
  • OS: windows
  • Provided sample code: No
  • Provided link: No