<?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 Alexander  Varlamov on Medium]]></title>
        <description><![CDATA[Stories by Alexander  Varlamov on Medium]]></description>
        <link>https://medium.com/@alexandervarlamov?source=rss-f4a4e89962fd------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*7Xx2jrvBFhbD-SaG.</url>
            <title>Stories by Alexander  Varlamov on Medium</title>
            <link>https://medium.com/@alexandervarlamov?source=rss-f4a4e89962fd------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 07:09:06 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@alexandervarlamov/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[Using Mapbox GL JS custom Maps with Tableau and PowerBI]]></title>
            <link>https://medium.com/@alexandervarlamov/using-mapbox-gl-js-custom-maps-with-tableau-and-powerbi-41c002d4617e?source=rss-f4a4e89962fd------2</link>
            <guid isPermaLink="false">https://medium.com/p/41c002d4617e</guid>
            <category><![CDATA[mapbox]]></category>
            <category><![CDATA[tableau]]></category>
            <category><![CDATA[power-bi]]></category>
            <dc:creator><![CDATA[Alexander  Varlamov]]></dc:creator>
            <pubDate>Thu, 05 Apr 2018 22:15:35 GMT</pubDate>
            <atom:updated>2018-04-05T22:15:58.846Z</atom:updated>
            <content:encoded><![CDATA[<p>The Mapbox tools are amazing things that can empower spacious data analysis and visual analytics. Tableau and PowerBI are efficient analytics software for complex analytics challenges and astounding data visualizations. Connecting monsters in geomapping and BI we can create powerful tools for the spacious analysis.</p><p>In the blog I am going to tell you about Mapbox GL interactive maps and tools that help to make superb visualizations in BI systems.</p><p>Find below the two different visualizations in Tableau and Power BI on the topic of Formula 1 2018 with my favorite team <a href="https://www.mercedesamgf1.com/"><strong>Mercedes-AMG Petronas Motorsport</strong></a><strong>!</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/594/1*N0qbMK8lcCddv_0sjmnPnw.png" /></figure><p>Tableau <a href="https://public.tableau.com/shared/6FN4X2P5Y?:display_count=yes"><strong>2018 FIA FORMULA ONE CHAMPIONSHIP RACE CALENDAR</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*lfrn4CYvKMyK6adyLDzofg.gif" /></figure><p>PowerBI <a href="https://app.powerbi.com/view?r=eyJrIjoiYjVlM2M2ZDctMzUyYS00NTQwLWJiYWEtOGJmYjQzZDMzNjE1IiwidCI6ImVhMTcyM2ZiLTI3NmMtNDM0OS04NDY1LWU1OTdhZmI2MjE4ZCIsImMiOjl9"><strong>FORMULA 1 CIRCUITS</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*P1_uvdclo2gnZU_qxxLUdg.gif" /></figure><h3>1. Mapbox. Using Cartogram</h3><p>The Tableau has only a couple of embedded maps and there is no map styles changing. <a href="https://www.mapbox.com/cartogram/?utm_source=challenge1map&amp;utm_medium=email&amp;utm_content=cartogram-land&amp;utm_campaign=challenge1map#13.01/40.7251/-74.0051">The Mapbox’ cartogram</a> is a drag-and-drop design tool to create a custom map.</p><p>I really like Formula 1 and Mercedes AMG Team. I have made a custom map using the cartogram tools and my favorite team colors. You need only open the tool and load a picture choosing map colors. That’s a piece of cake!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OBNJKoGBCG6m1623rFQhpw.png" /></figure><h3>2. Mapbox. Adding Points to the custom Map</h3><p>To add points on a custom map you may use another Mapbox Interactive Tool called <a href="https://www.mapbox.com/help/marker-playground/?utm_source=challenge2mapmad&amp;utm_medium=email&amp;utm_content=mark-play-mad&amp;utm_campaign=challenge2mapmad"><strong>Marker playground</strong></a><strong>. </strong>Using it and <a href="https://jsbin.com/jisuweyaju/edit?html,output"><strong>JS Bin</strong></a><strong> </strong>I’ve made a custom map with all 21 Formula 1 Grand Prix which take place this year. The events marked with racing flags. The code below generages the custom maps with F1 Grand Prix marks.</p><p>&lt;!DOCTYPE html&gt;</p><p>&lt;head&gt;<br> &lt;script src=”<a href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.0/mapbox-gl.js">https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.0/mapbox-gl.js</a>&quot;&gt;&lt;/script&gt; &lt;link href=”<a href="https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.0/mapbox-gl.css">https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.0/mapbox-gl.css</a>&quot; rel=”stylesheet” /&gt; &lt;style&gt;<br> body { margin:0; padding:0; }<br> #map { position:absolute; top:0; bottom:0; width:100%; }<br> &lt;/style&gt;<br>&lt;/head&gt;</p><p>&lt;body&gt;<br> &lt;div id=”map”&gt;&lt;/div&gt;</p><p>&lt;script&gt;<br>mapboxgl.accessToken = “pk.eyJ1IjoiYWxleGFuZGVydiIsImEiOiJjamFpNW9oeXQyaG53MzJuaW90dW1mcm9iIn0.E0kCU_HSmgJDe1EDiRrwsA”;</p><p>/* Map: This represents the map on the page. */<br>var map = new mapboxgl.Map({<br> container: “map”,<br> style: “mapbox://styles/alexanderv/cjev6qii0149e2sqoxlrqcbig”,<br> zoom:5,<br> center: [-1.015444,52.073274]<br>});</p><p>map.on(“load”, function () {<br> /* Image: An image is loaded and added to the map. */<br> map.loadImage(“<a href="https://i.imgur.com/BZjqCtk.png">https://i.imgur.com/BZjqCtk.png</a>&quot;, function(error, image) {<br> if (error) throw error;<br> map.addImage(“custom-marker”, image);<br> /* Style layer: A style layer ties together the source and image and specifies how they are displayed on the map. */<br> map.addLayer({<br> id: “markers”,<br> type: “symbol”,<br> /* Source: A data source specifies the geographic coordinate where the image marker gets placed. */<br> source: {<br> type: “geojson”,<br> data: {<br> type: “FeatureCollection”,<br> features:[<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“144.9666”,”-37.83730&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“121.218467”,”31.336159&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“50.519254”,”26.032652&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“49.8433”,”40.3699&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“2.2585”,”41.5638&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“7.4215”,”43.7338&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“-73.52670”,”45.5034&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“5.79350”,”43.2517&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“14.7607”,”47.2225&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“-1.0174”,”52.0706&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“8.565084”,”49.328014&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“19.2526”,”47.583&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“5.9687”,”50.444&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“9.2825”,”45.6169&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“103.849455”,”1.295226&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“39.948378”,”43.406736&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“136.537906”,”34.847081&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“-97.6411”,”30.1328&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“-99.0986”,”19.4028&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“-46.6969”,”-23.7014&quot;]}},<br> {“type”:”Feature”,”geometry”:{“type”:”Point”,”coordinates”:[“24.46904”,”54.600903&quot;]}}<br> ]<br> }<br> },<br> layout: {<br> “icon-image”: “custom-marker”,<br> }<br> <br> });<br> <br> });<br>});<br> &lt;/script&gt;</p><p>&lt;/body&gt;<br>&lt;/html&gt;</p><p>Using the JS Bin you may see what will your map look like</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3722d0xCWgNdeqIPlXqcaA.png" /></figure><h3>3. Google Earth. Drawing Formula 1 Circuits on the Map</h3><p>Traditionally I use Google Earth Pro for geoshapes drawing. To draw trajectories or pathways you should add path (Click ‘add’) in Google Earth. After the path will be finished you may save is as Kml file clicking on the path in the places panel.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OvS_a4zWJIT-6kJkWLymCQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sMGlAiTNzpGNm9FuwhyUNg.png" /></figure><p>When all pahways will be done you may save all of it as one kml file.</p><p>The kml file example below consist information i.e. all points’ coordinates about one Formula 1 Circuit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7HgCCMlVveslx9vPIHFTeA.png" /></figure><h3>4. Mapbox. Adding Tiletets on the Mapbox custom map</h3><p>Mapbox GL JS can use KML, GeoJSON, shape and other files with geodata. You can use Studio-Tilesets for adding your custom pathways, points or polygons or you can drag and drop your file on your custom map. The custom tileset will be available in a minute approximately.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*c737kAyWmhPenpsFVTL6_w.png" /></figure><p>To add your custom tileset on your map you should create a new level and choose your tileset as on the picture below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GIFWlaMn8SlVDbaGL8ZiRQ.png" /></figure><p>Also you can set some parameters for the new layer. I’ve chosen the color, width=6 and gap=2. The gap splits the pathway into two parts as shown on the picture below. I suppose it looks more ‘racing’.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o07or6GsD3u1Mn8TG-iJJg.png" /></figure><h3>5. Mapbox. Adding 3rd Dimension</h3><p>Frankly speaking I did not expect that it would be easy to get a three-dimensional map. The <a href="https://blog.mapbox.com/map-madness-round-3-f5536000fdbb">algorithm </a>is not so complex but allow to get the astounding results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qiCU2fvvjuSjp9fuvSJyUw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CvQlxK1g_a2cRuF8ybsmDA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mwljSLR_bGmNaSUEw6FHWQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hejWIjPQEUnh7giQLKkcSA.png" /></figure><p>Finally we have the<a href="https://api.mapbox.com/styles/v1/alexanderv/cjev6qii0149e2sqoxlrqcbig.html?fresh=true&amp;title=true&amp;access_token=pk.eyJ1IjoiYWxleGFuZGVydiIsImEiOiJjamFpNW9oeXQyaG53MzJuaW90dW1mcm9iIn0.E0kCU_HSmgJDe1EDiRrwsA#15.7/49.329373/8.573206/-9"> <strong>CUSTOM MAP.</strong></a></p><pre>https://api.mapbox.com/styles/v1/alexanderv/cjev6qii0149e2sqoxlrqcbig.html?fresh=true&amp;title=true&amp;access_token=pk.eyJ1IjoiYWxleGFuZGVydiIsImEiOiJjamFpNW9oeXQyaG53MzJuaW90dW1mcm9iIn0.E0kCU_HSmgJDe1EDiRrwsA#15.7/49.329373/8.573206/-9</pre><p>Also it is interesting result if we combine the custom map with satellite tileset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*U8jyMzjeUbbaccJC6R0Ghw.png" /></figure><h3>6. Tableau. Loading Data and Integration with Mapbox GL</h3><p>The web site <a href="https://www.formula1.com/">formula1.com</a> has data about all F1 races this year. I’ve prepared an csv file based on the data. Loading the data in Tableau we also should load the geodata from KML file and merge both sources. So we have all numbers and dates about F1 Races and Geodata as linestrings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*noyDH2I32nJqt4JCFb3QGQ.png" /></figure><p>To use Mapbox custom map in Tableau you should copy the integration URL from Mapbox Studio as you can see below, choose Map -Background Map - Map Services and paste the URL in Mapbox GL URL.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*fgd42Pe733vKMjUG4fdQeQ.gif" /></figure><p>Now Tableau can work with custom Mapbox GL Map.</p><h3>7. Power BI. Loading Data and Integration with Mapbox GL</h3><p>The latest update of Power BI has Mapbox integration and it is awesome. To start working with the Mapbox GL you should download Mapbox Visual from the store. When you drag and drop data to the visualisation the instruction appears. Just follow it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePmp9aiBF-pkpOuJwwF1yw.png" /></figure><p>Finally the Mapbox GL custom map will be available in the visualization.</p><h3>Conclusion</h3><p>The new Mapbox GL tools and integration with BI systems allow to improve data analysis and data visualization. Simply map creating and flexible customization allows you to create a map for any needs</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/120/1*n2ayExyr4nV1pc_JTQBgKQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41c002d4617e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>