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

Add Japan map #630

Closed
wants to merge 1 commit into from
Closed

Add Japan map #630

wants to merge 1 commit into from

Conversation

y310
Copy link

@y310 y310 commented Oct 29, 2013

I generated map data for Japan.
Original map data is in the public domain. It is published at following site.
http://www.naturalearthdata.com/downloads/10m-cultural-vectors/10m-admin-1-states-provinces/

I chose FIPS 10-4 as region code and removed JA prefix.
This works well with fluent-plugin-geoip.

convert script

Used jVectormap converter

#!/bin/sh

output=map.japan.js

python converter.py \
  --width 900 \
  --country_name_index 8 \
  --country_code_index 57 \
  --longitude0 135 \
  --where "iso_a2 = 'JP'" \
  --projection aea \
  --name japan \
  --minimal_area 100000000 \
  --language en \
  --insets '[{"codes": ["JA47"], "width": 200, "left": 100, "top": 100}]' \
  --input_file_encoding utf-8 \
  ne_10m_admin_1_states_provinces/ne_10m_admin_1_states_provinces.shp \
  $output

sed -i -e 's/JA//g' $output
sed -i -e 's/japan_aea_en/japan/' $output

nmnishikata added a commit to nmnishikata/kibana that referenced this pull request Jan 27, 2014
@rashidkpc
Copy link
Contributor

Thanks for the contribution, we're working on a replacement mapping library, during which time we'll standardize on region codes. I look forward to getting a japan map into that. Closing this for now.

@rashidkpc rashidkpc closed this Feb 24, 2014
@y310 y310 deleted the japan-map branch March 18, 2014 07:15
@MitaliNayak
Copy link

Can i get a proper document to add a new country map?
I have added world map in the panel but not able to track the IP on the Map.
I followed the link
http://sostore.blogspot.in/2014/11/fluentd-couchdb-elasticsearch-kibana.html
as well tried other links,
But unable to add the map.
Please help me out..

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

Successfully merging this pull request may close these issues.

3 participants