Forum Discussion
tmoeltner
8 years agoFrequent Visitor
Leaflet integration is not working (map is not shown)
Hi, I have created a PBI custom visual with leaflet and geojson libraries. I used following npm and typings commands to install the frameworks npm install leaflet npm install geojson typin...
- 8 years agoSettingvar L = typeof L !== 'undefined' ? L : window['L'];in the construtor of solves the problem
- 8 years ago
Glad to hear that. You may help accept the solution above. Your contribution is highly appreciated.
v-viig
Community Champion
8 years agoHello tmoeltner
I suppose that you should apply the woraround from this topic.
Please let me know if that works for you. Othersize, please share the full source code as a zip to debug deeper.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
- tmoeltner8 years agoFrequent Visitor
Hello Ignat,
many thank for your help, I will try your suggestion.
What I have see when I debugged my code with the chrome debugger and Power BI is that L.map is not defined.
this.map = L.map('map');I'm a programmer but this are my first attempts with Power BI custom controls. Maybe I miss to declare some references in some files.