Custom Bounding Box in Power Bi Azure Map to exclude unwanted areas

AnjaBrummer-2183 0 Reputation points
2025-10-03T07:16:22.4833333+00:00

"Current - with Marion Island as part of City of Cape Town.png" – shows the current undesired view where Marion Island is included, which unnecessarily alters the zoom level.Current - with Marion ISland as part of City of Cape Town

"Correct view with bounding box.png" – shows the intended view of the Western Cape municipalities without Marion Island, keeping the focus on the relevant mainland areas.Correct view with bounding box

Marion Island does not appear in my dataset. However, it is still drawn on the map because it is part of the City of Cape Town administrative boundary in the TomTom base data. Since the Azure Maps visual currently does not respond to bounding box settings, there is no way to stop Marion Island from affecting the map’s auto-zoom.

A side note: I would have preferred to use coordinates as a layer, but I am restricted because I cannot add a district (polygon) layer to a coordinate layer in the Azure Maps visual. As a result, I am forced to work with addresses instead. On a positive note, once I drill down with Auto Zoom enabled, I do get the correct view — but with Auto Zoom enabled, my main/default view is distorted.

(Reference layers will not work as I need this to filter the rest of the data - and have drill down abilities)

Proposed enhancement:

Enable the Azure Maps visual to respect a defined bounding box (min/max latitude & longitude) so that the visible area can be constrained to a specific region. (This feature is mentioned with Azure but I don't see it in the Power Bi Visual Settings?)

Example bounding box for Western Cape province of South Africa:

Southwest corner (min latitude, min longitude): (-35.0, 16.0)

Northeast corner (max latitude, max longitude): (-22.0, 33.0)

  • Min Latitude: -35.0 // near Cape Agulhas

Max Latitude: -32.0 // just above Saldanha Bay

Min Longitude: 17.5 // just west of the coast

Max Longitude: 22.0 // just east of George

Why this is important:

  1. Keeps Auto Zoom usable
  2. Prevents outlier administrative areas from distorting the map extent.
  3. Maintains a clean, relevant map view focused on the region of interest.

Would it be possible for the Azure Maps visual to support this functionality in Power BI, or do you have any other recommendations for achieving the same outcome in this scenario? Things I have tried that were unsuccessful:

  1. Adding Marion Island into my Dataset in order to deselect it in the Filters
  2. Limiting the Coordinates to a min and Max (Above or below a certain latitude/longitude in the filter Pane)

Thank you for your time if you read this far!

Azure Maps
Azure Maps
An Azure service that provides geospatial APIs to add maps, spatial analytics, and mobility solutions to apps.
{count} votes

2 answers

Sort by: Most helpful
  1. Alex Burlachenko 18,310 Reputation points Volunteer Moderator
    2025-10-03T08:21:23.0833333+00:00

    Hi AnjaBrummer-2183,

    marion island is technically part of the boundary, so the map auto zooms to include it, completely wrecking your view of the mainland. you've done a great job diagnosing the issue.

    you're absolutely right, the power bi azure maps visual currently lacks a built in bounding box property in its settings pane, which is the most straightforward fix for this. that feature exists in the full azure maps sdk but hasn't been ported to the power bi visual yet.

    since you can't use a bounding box, here's a workaround you can try. instead of filtering by address, try filtering by latitude and longitude directly in your power bi data.

    add calculated columns to your dataset that extract the latitude and longitude for each of your locations. then, in the power bi filters pane for the page or visual, you can set a filter on these columns to only show points where the latitude is greater than -35.0 and less than -32.0, and the longitude is between 17.5 and 22.0.

    this acts as a manual bounding box filter. the map will only plot the points within your specified coordinates, and the auto zoom should then focus on that filtered set of points, effectively excluding marion island from the calculation.

    it's not as elegant as a native bounding box, but it should achieve the result you're looking for and keep your drill through functionality intact.

    add lat/lon columns to your data and use the power bi numeric range filters on those columns to create a manual bounding box that excludes the outlier.

    regards,

    Alex

    and "yes" if you would follow me at Q&A - personaly thx.
    P.S. If my answer help to you, please Accept my answer
    

    https://ctrlaltdel.blog/


  2. IoTGirl 3,811 Reputation points Microsoft Employee Moderator
    2025-10-09T01:02:15.72+00:00

    Please ask your questions regarding Maps in Power BI in their forum. The folks that know the customization are available there. Please review https://community.fabric.microsoft.com/t5/forums/searchpage/tab/message?advanced=false&allow_punctuation=false&filter=location&location=category:powerbi&q=Maps and see if your question has already been asked and answered.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.