Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
GinoPicozzi
Regular Visitor

Issue Using Shape Map with Non-Contiguous Regions

Hi All,

 

I am trying to build a custom shape map using the Nielsen Designated Marketing Areas, and have run into an issuing rendering non-contiguous regions.  I started by converting a GeoJSON file to TopoJSON using mapshaper (https://mapshaper.org/).  I then used this TopoJSON file with the shape map feature in Power BI, and ran into the following rendering issue:

 

dma_rendering_issue.PNG

To the best of my knowledge, all of the missing regions share the common trait of having non-contiguous parts -  Like the Los Angeles DMA (including coastal islands) (The following maps are from a third-party site, for reference):

 

los_angeles_dma.PNG

 

Or the unique Devner DMA:

 

denver_dma.PNG

 

At first, I thought the issue may have to do with mapping regions defined by multiple arcs, but this is not the case as the Salt Lake City DMA rendered correctly (and is defined by over 30 arcs in the TopoJSON file):

 

salt_lake_city_dma.PNG

 

Has anyone run into this issue before (or have an idea of how to solve it)?  Any advice is greatly appreciated.

 

Best,

Gino

2 REPLIES 2

Hi @v-xicai ,

 

Thank you for sharing this.  The article was very helpful in getting a better understanding of shape maps.  While it was not able to solve my rendering issue, it helped to uncover some further information.

 

In the example you shared, the original file was a .shp file within a .zip folder.  Using this entire .zip folder, mapshaper was able to create a topojson file that properly renders non-contiguous regions.  My starting file is in a geojson format.  After digging a little further, I noticed that the topojson file created from the .zip folder in your example uses MultiPolygons for non-contiguous regions (like the UK), and Polygons for contiguous regions (like Bulgaria).  The topojson file created from my geojson file, uses Polygons for both contiguous and non-contiguous regions.  This seems to be the underlying cause of the rendering issue.  Would you say that is accurate?

 

Thanks again for your help on this,

Gino

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.