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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.