Skip to content

Latest commit

 

History

History
35 lines (28 loc) · 1.5 KB

readme.md

File metadata and controls

35 lines (28 loc) · 1.5 KB

Sea labels

A GeoJSON collection of multilingual sea labels positioned with curved lines.

Example of a map made by d3 with sea labels

So far we support the following languages:

  • Arabic
  • Spanish
  • Hindi
  • French
  • Portuguese
  • Russian
  • Dutch
  • Chinese Traditional
  • Urdu
  • Indonesian
  • Inuktitut it's a facinating language
  • Japanese
  • Turkish
  • German
  • Hebrew

Contributing

Not all the seas are yet in this collection, we only have 26 😞 But you can help by following these steps:

  • Install QGIS (it's free)
  • Install the Bezier Editing plugin
  • Add data.geojson to your QGIS project
  • Add with the line tool and the Bezier tools some seas (don't worry about the translations)
  • If you want straight lines, add the country id to the idsOfLabelsWithStraightLine in straightenLines.js and run node modifyData/straightenLines.js
  • If you make a pull request, I can run the translation script
  • if you want to translate yourself, get an API key from Microsoft Translator (it's free) and add .env file in the modifyData folder with the following content: AZURE_TRANSLATE_KEY=YOUR KEY HERE. Navigate to modifyData and run npm install && node translateLabels.js