Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Arpet opened this issue Jun 13, 2018 · 0 comments

Comments

@Arpet
Copy link
Collaborator

Arpet commented Jun 13, 2018

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:

<script> $('#map').vectorMap({ map: 'world_mill_en', regionsSelectable: 1, regionStyle: { initial: { fill: 'white', "fill-opacity": 1, stroke: 'none', "stroke-width": 0, "stroke-opacity": 1 }, hover: { "fill-opacity": 0.8 }, selected: { fill: 'blue' }, selectedHover: { } } }); </script>
Arpet added a commit that referenced this issue Jun 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant