Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There's no such feature a this moment. But...</p> <ol> <li>It seems like someone else asked for an option to hide the zoom buttons, and it is already done but seems not documented, see feature request status: <a href="https://github.com/bjornd/jvectormap/pull/136" rel="nofollow noreferrer">https://github.com/bjornd/jvectormap/pull/136</a>.</li> <li>To allow zoom in/out by code you could and should create a feature request via GitHub: <a href="https://github.com/bjornd/jvectormap/issues/new" rel="nofollow noreferrer">https://github.com/bjornd/jvectormap/issues/new</a></li> </ol> <p>I strongly encourage you to create the <em>feature request</em> so the devs behind the project can actually know what are the real needs.</p> <h2>Edit</h2> <p>Looking trough the <a href="https://github.com/bjornd/jvectormap/pull/136" rel="nofollow noreferrer">mentioned</a> feature request, <a href="https://github.com/bjornd/jvectormap/commit/b4a237631a331c603b5ec3041db762f04d9bda3d" rel="nofollow noreferrer">I can see there is a parameter to hide zoom buttons</a>. So you will need to build your maps passing a <code>zoomButtons</code> attribute to <code>false</code>:</p> <pre><code>$('#map').vectorMap({ map: 'world_mill_en', zoomButtons : false }); </code></pre> <p>The other thing you are looking for (zoom in/out via API), I think if you are really sure there's no way to do it, you <em>should</em> create an issue masked as a feature request.</p> <h2>Edit 2</h2> <p>Months after my answer was posted, the feature got released <a href="https://stackoverflow.com/a/15361688/439427">see that answer</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload