web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Load Bing Map in PCF c...
Power Apps
Unanswered

Load Bing Map in PCF control

(0) ShareShare
ReportReport
Posted on by

I am working on PCF control where we have added a Bing Map control in which we are using Bing Maps library. Currently, we are copying the code from Bing Maps library link: https://www.bing.com/api/maps/mapcontrol into our PCF.Bingmaps.js file and then we are importing it in our typescript code using import statement, but we are having an issue doing it this way. Is there any other way of using the Bing library tag like we normally do in HTML file.

I have the same question (0)
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    As far as I could evaluate, the typescript files are transpiled to JavaScript ES5 . So the issue is not that the IE doesn't know "import", because actually the the file you are importing is packed inside your "bundle.js" located in your "out" folder.

    But, it seems to me that the files imported like import "yourfile" are not transpiled

    import {getProposals} from "./data/Requests"; //this will be transpiled
    import "./Core/Dummy.js"; //this is not transpiled

    So in case Bing Maps doesn't have an npm package, maybe you can transpile the file yourself to ES5 before including it in the project, in order to have it working in IE. 

     

  • Community Power Platform Member Profile Picture
    on at

    We tried with import './path/file.js' but the control is not working in internet explorer as import of js is not supported in Intenet explorer and for bing map, there is only declaration file available.

    In other browser we are only facing issue in bingmap js it is loading completely while other js are working properly

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    I don't know what kind of problem you have using the library.

    Maybe there is possible to use an npm Package for the bing maps?

    In case that doesn't work for you and you have to import an old school js library,  you could try using

    import "./pathToMapControl/mapControl.js";

    after you downloaded the library in your project.

    There is a similar issue, in case it helps: https://powerusers.microsoft.com/t5/PowerApps-component-framework/Issue-Using-external-javascript-files/m-p/316483#M555

    Best regards,

    Diana

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 403

#2
WarrenBelz Profile Picture

WarrenBelz 338 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 320 Super User 2025 Season 2

Last 30 days Overall leaderboard