Hello! I am working on a plugin to get simplemaps working on my site.
So far the code is as follows
<script>
$(function(){
$("#myHtmlFileUSA").load("//dd7tel2830j4w.cloudfront.net/f1595284641798x169116110174714500/test.html");
});
</script>
and the for Function: Initialize
function(instance, context) {
var myVisual = $('<div id="myHtmlFileUSA"> </div>');
instance.canvas.append(myVisual);
simplemaps_usmap_mapdata.state_specific['AL'].color='#6FCF1C';
}
Now this works perfectly fine to display the map itself on my site, the problem is with “simplemaps_usmap_mapdata.state_specific[‘AL’].color=’#6FCF1C’;” this is just a hook that changes something on the map, but I have clearly not called it properly as I get the error “ReferenceError: simplemaps_usmap_mapdata is not defined” Not sure how to call this properly looking for some help. Thank you!