<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Ernestas Buta on Medium]]></title>
        <description><![CDATA[Stories by Ernestas Buta on Medium]]></description>
        <link>https://medium.com/@mounted?source=rss-7bf67d8b1580------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/2*5jvWg5FGQli2RxeLBgyXCw.png</url>
            <title>Stories by Ernestas Buta on Medium</title>
            <link>https://medium.com/@mounted?source=rss-7bf67d8b1580------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 21 Nov 2026 13:16:15 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@mounted/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Angular CDK nested Drag And Drop]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://mounted.medium.com/angular-cdk-nested-drag-and-drop-d849365a7ca9?source=rss-7bf67d8b1580------2"><img src="https://cdn-images-1.medium.com/max/1535/1*ARnfeLjWj_GPayFut4OTZQ.png" width="1535"></a></p><p class="medium-feed-snippet">Building multi level, sortable drag and drop lists</p><p class="medium-feed-link"><a href="https://mounted.medium.com/angular-cdk-nested-drag-and-drop-d849365a7ca9?source=rss-7bf67d8b1580------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://mounted.medium.com/angular-cdk-nested-drag-and-drop-d849365a7ca9?source=rss-7bf67d8b1580------2</link>
            <guid isPermaLink="false">https://medium.com/p/d849365a7ca9</guid>
            <category><![CDATA[drag-and-drop]]></category>
            <category><![CDATA[angular]]></category>
            <category><![CDATA[angular-cdk]]></category>
            <dc:creator><![CDATA[Ernestas Buta]]></dc:creator>
            <pubDate>Sat, 26 Jun 2021 19:16:59 GMT</pubDate>
            <atom:updated>2021-06-26T19:16:59.929Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to use multiple environments in .Net Core]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://blog.devgenius.io/how-to-use-multiple-environments-in-net-core-b3441612e8bd?source=rss-7bf67d8b1580------2"><img src="https://cdn-images-1.medium.com/max/1280/1*f3WXZr5TimCxd8Nld9xQ8g.jpeg" width="1280"></a></p><p class="medium-feed-snippet">A comprehensive way to manage multiple development environments in&#xA0;.Net Core.</p><p class="medium-feed-link"><a href="https://blog.devgenius.io/how-to-use-multiple-environments-in-net-core-b3441612e8bd?source=rss-7bf67d8b1580------2">Continue reading on Dev Genius »</a></p></div>]]></description>
            <link>https://blog.devgenius.io/how-to-use-multiple-environments-in-net-core-b3441612e8bd?source=rss-7bf67d8b1580------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3441612e8bd</guid>
            <category><![CDATA[webapi]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[aspnetcore]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[appsettings]]></category>
            <dc:creator><![CDATA[Ernestas Buta]]></dc:creator>
            <pubDate>Sun, 21 Jun 2020 13:38:20 GMT</pubDate>
            <atom:updated>2021-06-26T19:19:16.717Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Getting Started With React Mapbox Gl JS: Markers]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://mounted.medium.com/getting-started-with-react-mapbox-gl-js-markers-f5cd8aabfc4e?source=rss-7bf67d8b1580------2"><img src="https://cdn-images-1.medium.com/max/1020/1*139WlgJ5fpJi7T9n1bvt_g.jpeg" width="1020"></a></p><p class="medium-feed-snippet">React MapBox Gl Js- Markers react hooks</p><p class="medium-feed-link"><a href="https://mounted.medium.com/getting-started-with-react-mapbox-gl-js-markers-f5cd8aabfc4e?source=rss-7bf67d8b1580------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://mounted.medium.com/getting-started-with-react-mapbox-gl-js-markers-f5cd8aabfc4e?source=rss-7bf67d8b1580------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5cd8aabfc4e</guid>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[mapbox]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Ernestas Buta]]></dc:creator>
            <pubDate>Sun, 16 Feb 2020 14:18:56 GMT</pubDate>
            <atom:updated>2021-06-26T19:20:29.809Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Getting Started With React Mapbox Gl JS: Introduction]]></title>
            <link>https://mounted.medium.com/getting-started-with-react-mapbox-gl-js-introduction-5853a801fb64?source=rss-7bf67d8b1580------2</link>
            <guid isPermaLink="false">https://medium.com/p/5853a801fb64</guid>
            <category><![CDATA[maps]]></category>
            <category><![CDATA[mapbox]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[react]]></category>
            <dc:creator><![CDATA[Ernestas Buta]]></dc:creator>
            <pubDate>Fri, 14 Feb 2020 19:18:26 GMT</pubDate>
            <atom:updated>2020-02-14T19:18:26.512Z</atom:updated>
            <content:encoded><![CDATA[<p>React MapBox Gl Js and it’s building blocks</p><h3>Introduction</h3><p>This is first article in a series introducing features of Mapbox which is considered by many alternative to a mammoth of a service called Google Maps. In recent years it’s been gaining momentum which is a result of 2 primary reasons:</p><ol><li>Ease of integration — winning over developers</li><li>Lower costs — winning over clients</li></ol><p>To learn more about it feel free check out their <a href="https://blog.mapbox.com/"><strong>official blog</strong></a></p><h3>First Things First: Initial Setting Up</h3><p>To get started we first have to setup our REACT application. To do that you can follow the commands below or clone the repository <a href="https://github.com/EButa/mapbox-marker">here</a></p><pre>npx create-react-app mapbox-app<br>cd mapbox-app<br>npm install --save react-map-gl<br>code . // If you&#39;re using VS Code otherwise just open it up</pre><p>Feel free to delete everything in <strong>src</strong> folder leaving only <strong>index.js</strong> which should look like:</p><pre>//index.js<br>import React from &#39;react&#39;; <br>import ReactDOM from &#39;react-dom&#39;; </pre><pre>ReactDOM.render(&lt;&gt;&lt;/&gt;, document.getElementById(&#39;root&#39;));</pre><h4>Notice before we start</h4><p>Now to get started normally you need to create mapbox <a href="https://account.mapbox.com/auth/signup/">account</a> and get Access Token, but for the purposes of this example feel free to use:</p><pre>pk.eyJ1IjoiZXJuZWJ1dGEiLCJhIjoiY2s2bDVwYTRlMGFwdDNncGE0ZWdjaWZzMCJ9.2PppNmYQsYZ8HDSjEGwjCA</pre><p>Also Mapbox comes with powerful <a href="https://studio.mapbox.com/">map styling studio</a> that we are not going to dwell in this article, but just to make us feel pretty I will also be using Monochrome styling:</p><pre>mapbox://styles/ernebuta/ck6l5q6me1dmn1ip74713pndm</pre><h3>Setting up our Map Page (Map.js).</h3><p>To get things rolling in <strong>src </strong>folder lets create map.js file that we will use for holding our map. It should look like this:</p><pre>// Map.js<br>import React from &quot;react&quot;;<br>import ReactMapGL from &quot;react-map-gl&quot;;</pre><pre>export const Map = () =&gt; {<br>  return (<br>    &lt;ReactMapGL<br>      mapboxApiAccessToken=&quot;Your Access Token&quot;<br>      mapStyle=&quot;Your Map style&quot;<br>    &gt;&lt;/ReactMapGL&gt;<br>  );<br>};</pre><p>Import the map in index.js to be rendered by changing some code:</p><pre>//App.js<br>import React from &#39;react&#39;;<br>import ReactDOM from &#39;react-dom&#39;;<br><strong>import { Map } from &quot;./Map&quot;;</strong></pre><pre>ReactDOM.render(<strong>&lt;Map/&gt;</strong>, document.getElementById(&#39;root&#39;));</pre><p>At this point if you launched the site you should be over overwhelmed with disappointment- WORRY NOT. There’s one more step missing to get map rendering —<strong>state.</strong></p><p>In React-map-gl map state is manage managed through <strong>viewport </strong>object. It includes all information about map: coordinates, zoom, pitch, size in browser and many more.</p><p>For managing that state we will be taking advantage of <strong>useState</strong> hook allowing us to use state without using pesky classes.</p><pre>// Map.js<br>import React<strong>,{useState}</strong> from &quot;react&quot;;<br>import ReactMapGL from &quot;react-map-gl&quot;;<br></pre><pre>export const Map = () =&gt; {<br><strong>  const [mapViewport, setMapViewport] = useState({<br>    height: &quot;100vh&quot;,<br>    width: &quot;100wh&quot;,<br>    longitude: 2.571606,<br>    latitude: 45.226913,<br>    zoom: 5<br>  });</strong></pre><pre>return (<br>    &lt;ReactMapGL<br>      <strong>{...mapViewport}<br>      onViewportChange={setMapViewport}<br></strong>      mapboxApiAccessToken=&quot;Your Access Token&quot;<br>      mapStyle=&quot;Your Map style&quot;<br>    &gt;&lt;/ReactMapGL&gt;<br>  );<br>};</pre><p>Every time one of <strong>viewport </strong>values change in the map it triggers onViewportChange updating our state values resulting in closed loop an effectively allowing to navigate around.</p><h3>Conclusion:</h3><p>Here’s the results of our hard labor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A74ldf3kLEJ2_mrL4HhuaQ.jpeg" /></figure><p>Also whole code is available <a href="https://github.com/EButa/mapbox-app/tree/introduction"><strong>here</strong></a><strong>.</strong></p><p>Thank you for reading. And I will be back shortly to expand this into cool and interactive application taking full advantage of MapBox.</p><h4>Resources:</h4><p><a href="https://uber.github.io/react-map-gl/docs">React Mapbox gl documentation</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5853a801fb64" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>