<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>JavaScript | JIN IGARASHI</title><link>https://jin-igarashi.me/en/tags/javascript/</link><atom:link href="https://jin-igarashi.me/en/tags/javascript/index.xml" rel="self" type="application/rss+xml"/><description>JavaScript</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><copyright>©Jin IGARASHI 2026</copyright><lastBuildDate>Sun, 01 Sep 2024 00:00:00 +0900</lastBuildDate><image><url>https://jin-igarashi.me/media/icon_hua67609e7cec176748a23eb15cc956f1a_21755_512x512_fill_lanczos_center_2.png</url><title>JavaScript</title><link>https://jin-igarashi.me/en/tags/javascript/</link></image><item><title>maplibre-gl-terradraw &amp; Terra Draw</title><link>https://jin-igarashi.me/en/project/202409-maplibre-gl-terradraw/</link><pubDate>Sun, 01 Sep 2024 00:00:00 +0900</pubDate><guid>https://jin-igarashi.me/en/project/202409-maplibre-gl-terradraw/</guid><description>&lt;p>&lt;strong>Period:&lt;/strong> September 2024 – present&lt;/p>
&lt;p>&lt;strong>Links:&lt;/strong> &lt;a href="https://github.com/watergis/maplibre-gl-terradraw" target="_blank" rel="noopener">GitHub (watergis/maplibre-gl-terradraw)&lt;/a> · &lt;a href="https://github.com/JamesLMilner/terra-draw" target="_blank" rel="noopener">Terra Draw&lt;/a> · &lt;a href="https://workshops.terradraw.water-gis.com/" target="_blank" rel="noopener">Terra Draw workshops&lt;/a>&lt;/p>
&lt;h2 id="background">Background&lt;/h2>
&lt;p>For a long time, both Mapbox and MapLibre relied on &lt;a href="https://github.com/mapbox/mapbox-gl-draw" target="_blank" rel="noopener">mapbox-gl-draw&lt;/a> to provide drawing functionality. However, it is no longer actively maintained, and it has become increasingly difficult to use with MapLibre. &lt;a href="https://github.com/JamesLMilner/terra-draw" target="_blank" rel="noopener">Terra Draw&lt;/a> is a drawing library with a unified API for most web mapping libraries (MapLibre, Mapbox, Leaflet, OpenLayers, Google Maps and ArcGIS), but integrating its full functionality into MapLibre still requires a lot of configuration.&lt;/p>
&lt;h2 id="what-i-built">What I built&lt;/h2>
&lt;p>I developed &lt;strong>maplibre-gl-terradraw&lt;/strong>, a MapLibre plugin that adds a pre-configured drawing feature with a single line of code:&lt;/p>
&lt;pre>&lt;code class="language-js">map.addControl(new MaplibreTerradrawControl())
&lt;/code>&lt;/pre>
&lt;ul>
&lt;li>All Terra Draw modes (point, line, polygon, rectangle, circle, freehand, etc.) with pre-configured icons&lt;/li>
&lt;li>Selecting, editing and deleting features, and downloading drawn features&lt;/li>
&lt;li>Customizable Terra Draw options and styles&lt;/li>
&lt;li>&lt;strong>Measure control&lt;/strong> to measure line distances and polygon areas, and to query elevation from raster DEM sources (MapLibre Terrain, TerrainRGB and Terrarium)&lt;/li>
&lt;/ul>
&lt;p>I also contribute to Terra Draw itself and maintain hands-on workshop materials for developers.&lt;/p>
&lt;h2 id="talks--workshops">Talks &amp;amp; workshops&lt;/h2>
&lt;ul>
&lt;li>&lt;a href="../../talk/20250718_foss4g2025/">FOSS4G Europe 2025 Mostar: maplibre-gl-terradraw - new drawing plugin for maplibre-gl-js&lt;/a>&lt;/li>
&lt;li>&lt;a href="../../talk/20251118_foss4g2025_terradraw_workshop/">FOSS4G 2025 Auckland: Terra Draw workshop&lt;/a>&lt;/li>
&lt;li>&lt;a href="../../talk/20251119_foss4g2025_maplibre-gl-terradraw/">FOSS4G 2025 Auckland: maplibre-gl-terradraw - new drawing plugin for maplibre-gl-js&lt;/a>&lt;/li>
&lt;li>&lt;a href="../../talk/20260831_foss4g2026_terradraw_workshop/">FOSS4G 2026 Hiroshima: Terra Draw workshop&lt;/a>&lt;/li>
&lt;li>&lt;a href="../../talk/20260903_foss4g2026_terradraw/">FOSS4G 2026 Hiroshima: Terra Draw - bring drawing feature to all map applications&lt;/a>&lt;/li>
&lt;/ul>
&lt;h2 id="tech-stack">Tech stack&lt;/h2>
&lt;p>TypeScript, MapLibre GL JS, Terra Draw, Vite&lt;/p></description></item></channel></rss>