question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

No ability to set the original map position and zoom level in Power BI

See original GitHub issue

Currently there is no ability to set the initial map position and zoom level in Power BI as is available with Mapbox GL. I have tried to manually position the map and save the workbook (hoping that the position would be retained) but the map just returns to its default.

There are fields within Power BI that look like they should do the job under the map control: Viz Settings (zoom, longitude, latitude) but fiddling with these didn’t have any effect.

In Mapbox GL this can be done when the map is instantiated:

var map = new mapboxgl.Map({
    container: 'map',
    style: 'mapbox://styles/mapbox/streets-v9',
    center: [-73.9978, 40.7209],
    zoom: 13
});

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
djodonnellcommented, Nov 21, 2018

Thanks for the quick reply Ryan.

I have done some further investigation and these fields do in fact work, but the control does not refresh (and apply the settings) until you select another sheet and then return to the original sheet containing the Mapbox map which causes it to re-render.

0reactions
otraverscommented, Jun 11, 2019

Happens with both custom and default styles.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Set map on zoom in position - Microsoft Power BI Community
Try zooming in and then turn off Auto zoom under Map controls in the Format pane for the visual. Alternatively, keep auto zoom...
Read more >
Tips and tricks for Power BI Map visualizations - Microsoft Learn
Tips and Tricks for Power BI Map visualizations, visuals, locations, longitude and latitude, and how they work with Bing Maps.
Read more >
Default zoom Mapbox when used in Power BI - Stack Overflow
Currently, when I deselect the location in a slicer connected to the map, it will zoom out to the very middle of the...
Read more >
Power BI Visual Guide #14 - Maps - How to Set-Up ... - YouTube
Map visuals have the wow factor when you add them to your Power BI reports, but are they actually any use at displaying...
Read more >
Downloads - Icon Map
Fixed bug where lines weren't correctly extending the map bounds for auto zoom. Improved tolerance to poorly formatted WKT objects. Added ability to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found