Skip to content

viewBox #201

@Equipement

Description

@Equipement

Hello,

In the demo (https://jvm-docs.vercel.app/) :

  • The html source code shows (Ctrl + u) :
    <div id="__jvm__3" class="mx-auto home-map" style="width:700px;height:450px;"></div>

  • The script create the svg with the attributes 'width' and 'height' (F12) :
    <svg width="700" height="450">

I would like to have this :

  • The html source code shows (Ctrl + u) :
    <div id="__jvm__3" class="mx-auto home-map" style="width:700px;height:auto;max-width:100%;"></div>

  • The script create the svg with the attribute 'viewBox' (F12) :
    <svg viewBox="0 0 700 450">

How can I declare a new jsVectorMap to have the viewBox attribute ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions