Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8880459
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:10:08+00:00 2026-06-14T20:10:08+00:00

I want to know how to create or generate a map for jquery plugin

  • 0

I want to know how to create or generate a map for jquery plugin jvectormap http://jvectormap.com/

The project has several maps:
http://jvectormap.com/maps/

but I need I map with Australia and new Zeland divided by states. In the documentation in github https://github.com/bjornd/jvectormap, it says that anyone can generate a map with this command:

python \
    path/to/converter.py \
    path/to/geo-data.shp \
    path/to/resulting-map.js \
    --width 900 \
    --country_name_index 4 \
    --where "ISO = 'USA'" \
    --codes_file path/to/codes-en.tsv \
    --insets '[{"codes": ["US-AK"], "width": 200, "left": 10, "top": 370}, {"codes": ["US-HI"], "width": 100, "left": 220, "top": 400}]' \
    --minimal_area 4000000 \
    --buffer_distance -3000 \
    --simplify_tolerance 1000 \
    --longtitude0 10w \
    --name us

but I think is outdates, cause I downloaded http://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-admin-1-states-provinces/ as the documentation says, but of course didn’t work.

Can anyone tell me how to generate a map with australia and new zeland divided by states for jvectormap??

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T20:10:09+00:00Added an answer on June 14, 2026 at 8:10 pm

    Just in case anyone will need the same.
    To run converter, you need (this instruction is valid for Windows environment):

    • download and install OSGeo4W (use Express Desktop Install)
    • download desired shape file (this natural data file works fine).
    • put anyjson to converter directory
    • create makemap.bat in converter directory, like this:


    python ^
       converter.py ^
       ../../ne_10m_admin_1_states_provinces_shp.shp ^
       test-map.js ^
       --width 400 ^
       --where "ISO_3166_2 = 'RU-' and code_hasc!=''" ^
       --country_name_index 12 ^
       --country_code_index 18 ^
       --minimal_area 4000000 ^
       --buffer_distance -0.5 ^
       --simplify_tolerance 10000 ^
       --longitude0 54.8270 ^
       --name russia

    • run OSGeo4W shell (it will be added to start menu)
    • run makemap.bat
    • enjoy generated map

    As a sample output attaching this fiddle with russian map generated using steps mentioned above http://jsfiddle.net/dyP4c/3/

    About parameters (what I know)

    where condition is used to filter out shapes from shapefile using shapefile attributes

    simplify_tolerance will affect map quality and size

    country_name_index index of REGION NAME attribute in shapefile or column in tab separated file if codes_file is used

    country_code_index index of REGION CODE attribute in shapefile or column in tab separated file if codes_file is used

    codes_file is tab separated file (if you want to use names/codes not from shapefile)

    longitude0 is longitude of area (used this)

    name is map name

    P.S.: OSGeo4W package has nice Quantium GIS Browser to browse shapefile attributes. You can try to search other shapefiles on the web (not only natural data) to convert to jvectormap

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know how to create a private attribute in a Javascript class.
I want to know how to create an image column in a SQL Server
I want to know how to create a label that contains two icons, one
This is a very newbie question. I want to know how to create a
I'm using multi-table-inheritance , and want to know how to create an inherited type
I want to know what happens when I create an instance of a ServiceHost
I want to know if PHPExcel can: Create Excel spreadsheets with embeded image. The
I want to know if I can create a WebBrowser through code in Vb.NET,
I want to know which FamilyName was used by Windows to create a font
I want to know what framework/Interface/API's Set is best to use to create multi-process

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.