mapbox / mapboxgl-powerbi

Mapbox Visual for Power BI - High performance, custom map visuals for Power BI dashboards. This version of Mapbox Visual for Microsoft Power BI is no longer maintained. You can find the live and maintained version of the plugin at: https://github.com/starschema/mapboxgl-powerbi.
MIT License
127 stars 52 forks source link

Worldmap showing duplicate continents. How can I solve this? #366

Closed emilevanlier closed 1 year ago

emilevanlier commented 4 years ago

In Power BI I use the Mapbox visual to show a worldmap. the worldmap has been created by Mapbox studio. The power bi report is embedded into a website. A problem my customer just mentioned, is that at their workplace they see double continents. (see attachment)

What do I need to do in Mapbox Studio to make sure that initially (when the report loads) the worldmap is shown correctly?

worldmap1

steved-MarketGrunt commented 4 years ago

I'm not sure if this will help or not but, in Choropleth settings you can change the auto-zoom settings. I'd suggest changing the Min Zoom to ~5 to see if that fixes the issue.

emilevanlier commented 4 years ago

Hi, thanks for your advice. I tried this, but unfortunately is not the solution. I think it’s something what needs to be set in Mapbox studio, but I don’t know how to do it.

When you create a new ‘Basic’ layer in Mapbox Studio, I see that you can zoom this far: [cid:image001.png@01D5DA97.047522C0]

In Power BI visual you can zoom out to the max ( same as the image above ) and that doesn’t look good for our customers. I want to be able to set a max. zoom level so that you cannot zoom further than this: [cid:image003.png@01D5DA97.047522C0]

So, what I tried in Mapbox Studio is to zoom in, so that you see a correct worldmap ( see above). And in the settings, select ‘Lock’, hoping that this would lock the zoom-level.

[cid:image004.png@01D5DA97.047522C0]

I saved the layer, and used this for the Power BI visual. But then it’s still possible to zoom in to the maximum. So this didn’t solve the problem unfortunately. [cid:image005.png@01D5DA97.047522C0]

This is the max. zoomlevel I want to see, how can I do this? [cid:image006.png@01D5DA97.047522C0]

Met vriendelijke groet / Kind regards,​ ​ ​CRM Partners​ BV Emile van Lier Consultant

Emile.van.Lier@crmpartners.commailto:Emile.van.Lier@crmpartners.com +31 (6) 22180919<tel:+31%20(6)%2022180919>

[CRM Partners Website]https://www.crmpartners.com/ [Youtube]https://www.youtube.com/user/CRMPartnersnl [LinkedIn]https://www.linkedin.com/company/crm-partners [Twitter]https://twitter.com/crmpartnersnl [Facebook]https://www.facebook.com/CRMPartners/

From: steved-MarketGrunt notifications@github.com Sent: donderdag 30 januari 2020 11:06 PM To: mapbox/mapboxgl-powerbi mapboxgl-powerbi@noreply.github.com Cc: Emile van Lier Emile.van.Lier@crmpartners.com; Author author@noreply.github.com Subject: Re: [mapbox/mapboxgl-powerbi] Worldmap showing duplicate continents. How can I solve this? (#366)

I'm not sure if this will help or not but, in Choropleth settings you can change the auto-zoom settings. I'd suggest changing the Min Zoom to ~5 to see if that fixes the issue.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mapbox/mapboxgl-powerbi/issues/366?email_source=notifications&email_token=AMAQXP25LI34QHU5DQCIMUTRANFL7A5CNFSM4KNV33WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKMXUKA#issuecomment-580483624, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMAQXP4TPORRJ7MARSS2ER3RANFL7ANCNFSM4KNV33WA.

steved-MarketGrunt commented 4 years ago

I've read through other threads here and it looks like this feature is on the "to-do" list for V1.6(?).

Also, one of the threads indicated that if one of the data points has a 0,0 co-ordinate the map will default to the max zoom. It might be worth checking to see that all layer references are correctly related back to your PBI dataset.

emilevanlier commented 4 years ago

Hi, Thanks for your response. Do you have any idea when v1.6 is planned?

Met vriendelijke groet / Kind regards,​ ​ ​CRM Partners​ BV Emile van Lier Consultant

Emile.van.Lier@crmpartners.commailto:Emile.van.Lier@crmpartners.com +31 (6) 22180919<tel:+31%20(6)%2022180919>

[CRM Partners Website]https://www.crmpartners.com/ [Youtube]https://www.youtube.com/user/CRMPartnersnl [LinkedIn]https://www.linkedin.com/company/crm-partners [Twitter]https://twitter.com/crmpartnersnl [Facebook]https://www.facebook.com/CRMPartners/

From: steved-MarketGrunt notifications@github.com Sent: maandag 3 februari 2020 10:55 PM To: mapbox/mapboxgl-powerbi mapboxgl-powerbi@noreply.github.com Cc: Emile van Lier Emile.van.Lier@crmpartners.com; Author author@noreply.github.com Subject: Re: [mapbox/mapboxgl-powerbi] Worldmap showing duplicate continents. How can I solve this? (#366)

I've read through other threads here and it looks like this feature is on the "to-do" list for V1.6(?).

Also, one of the threads indicated that if one of the data points has a 0,0 co-ordinate the map will default to the max zoom. It might be worth checking to see that all layer references are correctly related back to your PBI dataset.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/mapbox/mapboxgl-powerbi/issues/366?email_source=notifications&email_token=AMAQXP4AL7CTM2DRT3FX7LTRBCHEJA5CNFSM4KNV33WKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKVRLRI#issuecomment-581637573, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AMAQXP5Z2NPF7WSOPNV2Y5DRBCHEJANCNFSM4KNV33WA.

emilevanlier commented 4 years ago

Hi, in the latest comments it was mentioned that a solution would (most likely) be provided in release v1.6.

Can you please inform us when this is planned, so that I can give at least an update to my customers?

Thank you!