samuelbetio / storyofmylife

Samuel Betio's clean lines and stylish design will give your site the perfect platform to stand out from the crowd. In modern web design content is everything and our Samuel Betio template puts its focus on just that.
https://goo.gl/8KacYq
MIT License
17 stars 22 forks source link

jVectorMap renders at the wrong size and there does not appear to be a way to change it #85

Open Arpet opened 6 years ago

Arpet commented 6 years ago

I'm using jVectorMap (latest version 2.0.3) to create a map inside of a div.

However, no matter what I do, the map takes up only a small portion of the div. It seems that it is due to

I have tried setting the size on the containing div, I've tried various css solutions, but it still doesn't allow me to resize. The background color resizes, but the SVG element simply does not.

How do I resize the SVG element with jVectorMap?

Here is my script: