Forum Discussion

jayanthan's avatar
jayanthan
Helper III
7 years ago
Solved

Mapbox Visual

Hi there

 

anyone has a sample for power bi mapbox choropleth , i would lilke to create a map using topojson file. Please advise

 

Json file link is given below

http://localboundries.oknp.org/css/province.topojson

 

 

 

Regards

Jayanthan

  • Jayanthan - Creating your own custom map using Mapbox and Power BI is a multistep process. The most important part you need to remember is that Mapbox does not currently support topojson files, only geojson files. Luckily, it's very easy to convert topojson to geojson.

     

    Here are the steps you need to take:

    1. Import the latest Mapbox Visual in Power BI (if you haven't done so already)

    2. Download a local copy of the topojson file

    3. Upload the topojson file to mapshaper.org

    4. Use mapshaper to convert the topojson to geojson

    5. Export a local copy of the new geojson file (when saving, make sure the file type is ".geojson" and not ".json")

    6. Follow the steps on the Mapbox blog, starting with "Upload your tileset to Mapbox"

     

    I created a short video below to show how to convert your Nepal topojson to geojson, upload it to Mapbox Studio, and use it as a layer in the Mapbox Visual in Power BI. Note: I'm using Nepalese data that shows population by province.

6 Replies

  • Jayanthan - Creating your own custom map using Mapbox and Power BI is a multistep process. The most important part you need to remember is that Mapbox does not currently support topojson files, only geojson files. Luckily, it's very easy to convert topojson to geojson.

     

    Here are the steps you need to take:

    1. Import the latest Mapbox Visual in Power BI (if you haven't done so already)

    2. Download a local copy of the topojson file

    3. Upload the topojson file to mapshaper.org

    4. Use mapshaper to convert the topojson to geojson

    5. Export a local copy of the new geojson file (when saving, make sure the file type is ".geojson" and not ".json")

    6. Follow the steps on the Mapbox blog, starting with "Upload your tileset to Mapbox"

     

    I created a short video below to show how to convert your Nepal topojson to geojson, upload it to Mapbox Studio, and use it as a layer in the Mapbox Visual in Power BI. Note: I'm using Nepalese data that shows population by province.

    • Anonymous's avatar
      Anonymous
      Not applicable

      tonmcg 

      Thank you for the great tutorial!!! really helpful

    • jayanthan's avatar
      jayanthan
      Helper III

      Hi tonmcg

       

      It works, perfect, thank you so much for the support

       

      Cheers

       

      Jayanthan

    • jayanthan's avatar
      jayanthan
      Helper III

      Hi Xiaoxin Sheng

       

      Thank you for the support

       

      Regards

      Jayanthan

  • Anonymous's avatar
    Anonymous
    Not applicable

    Here's another good resource for all things geographic map related at Power BI. This bloke James Dales has some great explanation on animating time series data