Hey there! I'm currently working on creating a form with a map to select the country of birth using JVectorMap. However, when checking the Google Chrome developer console, I encountered the following error message:
jquery-jvectormap-2.0.5.min.js:1 Error: <g> attribute transform: Expected number, "scale(NaN) translate(N…".
Does anyone have any insights into what might be causing this issue? Here is the code for my map:
<div id="world-map-log" style="width:100%;height:175px;"></div>
<script>
$(function() {
$('#world-map-log').vectorMap({
map : 'world_mill',
backgroundColor : '#F9F9F9', //#F9F9F9
regionsSelectable : true,
regionStyle : {
initial : {
fill : '#B8E186'
},
selected : {
fill : '#F4A582'
}
},
zoomOnScroll: false,
zoomButtons : false
});
});
Here are the libraries that I am using:
<script src="js/jquery.js"></script>
<script src="js/jquery-jvectormap-2.0.5.min.js"></script>
<script src="js/jquery-jvectormap-world-mill.js"></script>
<link rel="stylesheet" href="css/jquery-jvectormap-2.0.5.css" type="text/css" media="screen" />
I would greatly appreciate any assistance, Thanks, David