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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
chaitu927
Helper I
Helper I

Custom visual bing maps examples? Better way to handle keys

I am trying to build  custom visual using bing maps. I have read in some posts that there are not any good source code examples available. Curious to know how they handle the scenario for getting bing map key per customer? Do they ask customer to input bing map key via 'Format' pane in custom visual? 

 

What will be a better way to handle this scenario? 

1 ACCEPTED SOLUTION
deldersveld
Resident Rockstar
Resident Rockstar

The Mapbox custom visual could act an example that you could extend to Bing. There's an option for access token under Format and a validation check for the token in the main visual file: 
https://github.com/mapbox/mapboxgl-powerbi/blob/master/capabilities.json

https://github.com/mapbox/mapboxgl-powerbi/blob/51e6ff5ae3047da1ccbae9643dd094035bfbc7d1/src/ts/mapb...

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

I create own custom visual for bing maps. How you resolved the problem with the callback in code?

I add script  https://www.bing.com/api/maps/mapcontrol?callback=my function. When I want to add function, power bi doesn't see global function in code. 

deldersveld
Resident Rockstar
Resident Rockstar

The Mapbox custom visual could act an example that you could extend to Bing. There's an option for access token under Format and a validation check for the token in the main visual file: 
https://github.com/mapbox/mapboxgl-powerbi/blob/master/capabilities.json

https://github.com/mapbox/mapboxgl-powerbi/blob/51e6ff5ae3047da1ccbae9643dd094035bfbc7d1/src/ts/mapb...

Thank you for the example resource. 

Helpful resources

Announcements
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 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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